test(codegen): restore the unary-pos assertions lost in the #8657 squash - #8669
Merged
Conversation
#8650 changed `UnaryOp::Pos` on a non-numeric operand from `js_number_coerce` to `js_dynamic_pos` and updated the three computed_store_rooting_tests that assert on it. The #8657 squash kept the emission change and lost the test edit, leaving the assertions naming a helper the compiler no longer emits there. They failed 4/4 on main; 0/3 with this. Refs #8658.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe change restores three computed store rooting test assertions to match ChangesUnary plus assertion updates
Estimated code review effort: 1 (Trivial) | ~2 minutes ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mainis red; this makes it green. Threeexpr::computed_store_rooting_testscases fail 4/4 onmainand 0/3with this change.
What happened
#8650 changed unary
+on a non-numeric operand to emitjs_dynamic_posinstead of
js_number_coerce(expr/unary.rs,UnaryOp::Pos), and updated thethree tests that assert on that helper. When I squash-merged it as part of
#8657, the emission change survived and the test edit did not — so the
assertions kept naming a helper the compiler no longer emits at that site.
Bisected:
c2da0343906e1ab349(#8657)b5359b4de(#8664)2382a9f15(current main)Each of #8657's five PRs is 0/3 alone, and all five re-merged together are also
0/3 — only the landed squash fails, which is what isolates it to the merge
rather than to any PR.
My error, recorded
I saw these same three tests fail 3/12 while validating #8657 and judged them
"likely pre-existing codegen tier nondeterminism," landing with a note. That was
wrong twice over: the failure was real and caused by my merge, and the
"nondeterminism" framing sent me looking at load sensitivity instead of at the
diff. #8658 was filed on that mistaken premise and should be re-scoped — the
intermittency I measured then was masking a deterministic breakage, not
describing one.
The lesson is narrow and worth keeping: a squash that drops one hunk of a PR
while keeping another produces a tree that no reviewer approved, and no
individual-PR check can see it. The only thing that catches it is testing the
merged result — which I did, and then explained away.
No product behaviour changes here; the tests now name the helper the compiler
actually emits.
Summary by CodeRabbit
Bug Fixes
+operations on non-numeric values.Documentation