Skip to content

Keep the rules that fill the platform packages in packages/dune - #9448

Draft
cknitt wants to merge 9 commits into
runtime-test-suitesfrom
packaging-rules
Draft

cknitt wants to merge 9 commits into
runtime-test-suitesfrom
packaging-rules

Conversation

@cknitt

@cknitt cknitt commented Nov 27, 2026

Copy link
Copy Markdown
Member

Moves the dune rules that strip and copy every executable (bsc, rescript, the editor analysis, rescript-tools) into packages/@rescript/<platform>/bin from compiler/sync/dune to packages/dune. They are packaging, not compiler code, and now sit next to the packages they fill.

(dirs) in packages/dune keeps dune out of the npm packages. The root dune now lists packages. The Makefile and scripts/checkCompilerExes.js read the promoted binaries from _build/default/packages/.

Stacked on #9447.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo

compiler/sync held only the dune rules that strip and copy every executable
(bsc, rescript, the editor analysis and rescript-tools) into
packages/@rescript/<platform>/bin. That is packaging, not compiler code, and
"sync" did not say so. The rules now sit next to the packages they fill;
(dirs) keeps dune out of the npm packages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
@cknitt
cknitt changed the base branch from master to runtime-test-suites November 27, 2026 06:24
@cknitt
cknitt added this pull request to stack #9449 November 27, 2026 06:24
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Changelog

🏠 Internal

  • Move the rules that copy the executables into the platform packages from compiler/sync/dune to packages/dune.

Semantic Diff

4 commits · Full page

Keep the rules that fill the platform packages in packages/dune

10cfd73 · cknitt + Claude · Nov 27, 2026, 06:22 UTC

compiler/sync held only the dune rules that strip and copy every executable (bsc, rescript, the editor analysis and rescript-tools) into packages/@rescript/<platform>/bin. That is packaging, not compiler code, and "sync" did not say so. The rules now sit next to the packages they fill; (dirs) keeps dune out of the npm packages.

Drop the fallback to tests/dependencies in the benchmarks

9d24300 · cknitt + Claude · Nov 27, 2026, 06:42 UTC

The base of this pull request already has tests/fixtures.

Drop the benchmarks' fallback to tests/dependencies again

c1a4df0 · cknitt + Claude · Nov 27, 2026, 07:29 UTC

The base of this pull request already has packages/rescript-react.

Rebuild through make when packages/dune changes

96af597 · cknitt + Claude · Nov 27, 2026, 09:04 UTC

Make reran dune only for changes in the directories it scans, which covered compiler/sync/dune but not packages/dune, so editing the packaging rules alone left the binaries as they were. The root dune and dune-project, which hold the shared flags, were not tracked either.

Answers the Codex review on #9448.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Compiler benchmarks

Allocated words

In total: 638,386,534 → 638,387,553 (±0.00%).

Generated projects: 629,069,440 → 629,070,201 (±0.00%).

None of the 265 benchmarks changed by 0.1% or more.

Instructions

In total: 9,221,543,294 → 9,221,543,294 (±0.00%).

None of the 33 benchmarks changed by 0.1% or more.

Output size

In total: 26,070,038 → 26,070,038 (±0.00%).

None of the 13 benchmarks changed by 0.1% or more.

Pull request 5e124b9 compared with base 67ea6d5 in this run.

cknitt and others added 3 commits November 27, 2026 06:34
Brings the fix for the integration suite on Windows into this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
Brings the benchmarks' React fixture path fix into this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
The base of this pull request already has tests/fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (runtime-test-suites@6a468b9). Learn more about missing BASE report.

Additional details and impacted files
@@                  Coverage Diff                   @@
##             runtime-test-suites    #9448   +/-   ##
======================================================
  Coverage                       ?   82.23%           
======================================================
  Files                          ?      462           
  Lines                          ?    65582           
  Branches                       ?        0           
======================================================
  Hits                           ?    53929           
  Misses                         ?    11653           
  Partials                       ?        0           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript@9448

@rescript/belt

npm i https://pkg.pr.new/@rescript/belt@9448

@rescript/darwin-arm64

npm i https://pkg.pr.new/@rescript/darwin-arm64@9448

@rescript/linux-arm64

npm i https://pkg.pr.new/@rescript/linux-arm64@9448

@rescript/linux-x64

npm i https://pkg.pr.new/@rescript/linux-x64@9448

@rescript/runtime

npm i https://pkg.pr.new/@rescript/runtime@9448

@rescript/win32-x64

npm i https://pkg.pr.new/@rescript/win32-x64@9448

commit: 5e124b9

cknitt and others added 2 commits November 27, 2026 07:29
Brings the move of rescript-react to packages/rescript-react into this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
The base of this pull request already has packages/rescript-react.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
@cknitt

cknitt commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T09:50:03.371335Z 5e124b9 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c1a4df0623

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/dune Resolved
cknitt and others added 2 commits November 27, 2026 09:03
Brings the integration target fix from the Codex review into this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
Make reran dune only for changes in the directories it scans, which
covered compiler/sync/dune but not packages/dune, so editing the
packaging rules alone left the binaries as they were. The root dune and
dune-project, which hold the shared flags, were not tracked either.

Answers the Codex review on #9448.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
@cknitt

cknitt commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 96af597062

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Brings the integration target fixes from the Fable review into this branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gLP8xKdoF8ZA2WZNCo
Signed-off-by: Christoph Knittel <ck@cca.io>
@cknitt

cknitt commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 5e124b9eaa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant