Skip to content

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

Merged
cknitt merged 3 commits into
runtime-test-suitesfrom
packaging-rules
Nov 30, 2026
Merged

cknitt merged 3 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

@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

3 commits · Full page

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

98dccf4 · 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 benchmarks' fallback to tests/dependencies again

8634321 · 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

a918ba3 · 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: 674,905,687 → 674,905,849 (±0.00%).

Generated projects: 630,569,718 → 630,571,181 (±0.00%).

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

Instructions

In total: 9,225,173,628 → 9,225,173,628 (±0.00%).

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

Output size

In total: 27,368,415 → 27,368,415 (±0.00%).

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

Pull request a918ba3 compared with base 4c45949 in this run.

@codecov

codecov Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.47%. Comparing base (cb34136) to head (a918ba3).

Additional details and impacted files
@@                 Coverage Diff                  @@
##           runtime-test-suites    #9448   +/-   ##
====================================================
  Coverage                82.47%   82.47%           
====================================================
  Files                      466      466           
  Lines                    66070    66070           
====================================================
  Hits                     54493    54493           
  Misses                   11577    11577           
🚀 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: a918ba3

@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-30T08:15:21.276255Z a918ba3 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 added a commit that referenced this pull request Nov 27, 2026
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".

@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".

cknitt and others added 3 commits November 30, 2026 08:00
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>
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>
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 30, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: a918ba3c73

ℹ️ 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".

@cknitt
cknitt marked this pull request as ready for review November 30, 2026 08:39
@cknitt
cknitt merged commit 5e5a3a7 into master Nov 30, 2026
42 of 57 checks passed
@cknitt
cknitt deleted the packaging-rules branch November 30, 2026 09:27
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.

2 participants