test(gc): register the dark call-argument witness from #7252 - #7263
Conversation
📝 WalkthroughWalkthroughThe GC representation-selection corpus now registers ChangesGC corpus registration
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test-parity/gc_repsel_corpus.txt`:
- Around line 290-292: Update the comment for test_gap_gc_call_argument_rooting
to change the relative-location reference from “above” to “below,” since the
referenced sections appear later in the file.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 9dc60482-3471-40c5-b7d7-b05cb8cf5f1e
📒 Files selected for processing (2)
changelog.d/7263-register-dark-call-arg-witness.mdtest-parity/gc_repsel_corpus.txt
| # `test_gap_gc_call_argument_rooting` shipped with #7252 (cross-module direct | ||
| # call argument rooting, authored by @jdalton, restacked at merge). Same defect | ||
| # as #7192 and #7216 above: the PR added the witness and did not add the line. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Correct the stale relative-location reference.
Line 292 says that #7192 and #7216 are documented “above.” Their section starts at Line 299, below this block. Change “above” to “below.”
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@test-parity/gc_repsel_corpus.txt` around lines 290 - 292, Update the comment
for test_gap_gc_call_argument_rooting to change the relative-location reference
from “above” to “below,” since the referenced sections appear later in the file.
test-files/test_gap_gc_call_argument_rooting.tsshipped with #7252 and was never added totest-parity/gc_repsel_corpus.txt. It has not run anywhere since that merge. Adding the line is the entire fix.How it surfaced
The
GC Moving Witnessesjob failed onmainwith:This is the third occurrence of the same mistake. #7192 and #7216 did it before, and are documented in that file immediately above the line this PR adds. The difference is that this one was caught by a machine instead of by someone noticing months later — the
test_gap_gc_*enforcement written in response to those two did its job.It only got the chance because #7253 gave the moving-GC matrix a main-line trigger two hours earlier. Before that,
gc-stressreportedskippedon 12/12 nightly runs, and this witness would have stayed dark indefinitely.I merged #7252 (restacking @jdalton's branch past two squash-merged parents), so this omission is mine to fix.
What is NOT verified
CI is the first real execution of this test. I did not build locally to run it — the box is disk-constrained. If it goes red, that is the test doing its job on first contact, and it would be the first independent exercise of the rooting fix #7252 shipped. A dark test is strictly worse than a red one.
Summary by CodeRabbit
Bug Fixes
Documentation