Repository navigation
Allow clean with invalid module graphs - #8640
fhammerschmidt wants to merge 4 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f1c1a738fb
ℹ️ 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".
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-8640 |
f1c1a73 to
96c35a5
Compare
766e69a to
35b5524
Compare
0d7a3c2 to
9ac4780
Compare
35b5524 to
60b4bb6
Compare
9ac4780 to
0175386
Compare
60b4bb6 to
5cea2cf
Compare
0175386 to
b81ba05
Compare
5cea2cf to
7132187
Compare
b81ba05 to
3102f42
Compare
7132187 to
a32a29e
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
f9b34b1 to
7795392
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Verdict: approve with nits. No correctness bugs found. Dropping
|
Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8640 +/- ##
==========================================
+ Coverage 80.40% 80.51% +0.10%
==========================================
Files 447 447
Lines 60990 61060 +70
==========================================
+ Hits 49042 49162 +120
+ Misses 11948 11898 -50 🚀 New features to boost your workflow:
|
Build two non-namespaced dependencies independently and assert both Foo.mjs outputs exist before cleaning their common root. Check both outputs are removed so name-based module deduplication cannot silently leave a package behind. Signed-off-by: Florian Hammerschmidt <florianh89@gmail.com>
|
Added the cross-package regression in |
Summary
rescript cleanconstructed the build graph before removing generated JavaScript. Duplicate module names or another invalid source state could therefore abort cleanup and leave files behind.Derive both in-source and out-of-source outputs directly from discovered package source files so cleanup does not require compiler discovery or a valid module graph. This also removes generated
lib/es6andlib/jsoutputs in the project and its dependencies, including dependencies undernode_modules. The progress message lists suffixes from all configured package outputs. Cleaning also removes outputs from every package when non-namespaced dependencies share a module name.Validation
make test-rewatchFoo.mjsoutputs exist, then checks root cleanup removes both. It passes with this PR and fails with the previous cleanup implementation, which leaves one output behind.cargo test --manifest-path rewatch/Cargo.tomlcargo clippy --manifest-path rewatch/Cargo.toml --all-targets --all-featuresmake checkformat