-
-
Notifications
You must be signed in to change notification settings - Fork 151
ci(gc): give the moving-GC matrix a main-line run, and gate the wiring (#7194) #7253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+539
−3
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| ### CI | ||
|
|
||
| - **The moving-GC matrix now runs on `main`.** `gc-stress` carries | ||
| `scripts/gc_repsel_matrix.sh`, the only CI execution of the `requires=move` | ||
| allocation-point arms over the representation corpus, and it had **no | ||
| main-line run at all**. `test.yml`'s `push:` trigger is tags-only ("Direct | ||
| pushes to main do NOT trigger tests"), so `push` in the job's `if:` only ever | ||
| meant a release tag; and the nightly cron — which the same file calls "the | ||
| only backstop for integration-suite regressions a scoped PR run can't see" — | ||
| fires as `schedule`, which the `if:` did not list. Twelve consecutive nightly | ||
| `main` runs reported `gc-stress` as `skipped`. Between release tags nothing | ||
| adjudicated the matrix on `main`, which is how `test_gap_repsel_p4a3_ptr_numarray` | ||
| (#7194) stayed red on ten arms for over a week and forced three separate PRs | ||
| to hand-exonerate the same seventy cells. `schedule` is now in the `if:`. | ||
|
|
||
| - **New `lint` gate: `scripts/gc_gate_wiring_check.py`.** Asserts, for each of | ||
| the four moving-GC gate jobs (`gc-stress`, `gc-moving-witnesses`, | ||
| `gc-root-dominance`, `gc-ratchet`), that it executes on main-line code, carries | ||
| no job-level `continue-on-error`, does not swallow its gating step's exit | ||
| status, and does not let a new merge cancel the previous `main` run — CLAUDE.md's | ||
| four ways a gate can be unable to fail, mechanised. A **tag-only** run does not | ||
| count as main-line: a gate that speaks only at release time cannot name the | ||
| merge that broke it. The checker fails on the pre-fix tree, naming `gc-stress`, | ||
| and passes after; `--self-test` covers seven cases. It reports, and cannot | ||
| enforce, that none of these jobs is in branch protection's required contexts. | ||
|
|
||
| ### Fixed (verification only — no product change) | ||
|
|
||
| - **#7194 `test_gap_repsel_p4a3_ptr_numarray` is closed as fixed by #7249.** | ||
| Bisected across the five GC/codegen merges that followed the issue's last | ||
| measurement, one build per hop and ten runs each: red at `c9cd73ba5`, | ||
| `8b024958f` (#7242), `c7893c4ac` (#7250) and `061b24163` (#7252); green at | ||
| `64c1f56fb` (#7249, the globalThis bootstrap no-move window). The base | ||
| reproduction is byte-identical to the issue's evidence, including the | ||
| `scavenged=6514`/`6515` split across arm groups; the failure was one lost | ||
| `counts[v]++` out of 5000, deterministic 10/10. Because #7249 changes *where* | ||
| minor #0 lands, the head build collects less than the failing base did | ||
| (`cycles=1 scavenged=3585` vs `cycles=2 scavenged=6515`), so green was | ||
| re-established *above* the base's movement rather than below it: under loop | ||
| polls + `PERRY_GC_ZEAL=1` the test survives **14 373 evacuating minors** | ||
| byte-exact, 10/10. |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
gc-stressstill cannot block a merge.This comment states that the job is not in branch protection's required contexts. Adding
schedulefixes main-line execution, and it does not make the gate blocking. A redgc-stresson the nightlymainrun produces a notification, not a merge block, so the same class of miss can still reachmainthrough a PR.The required-context list is server-side state and cannot change in this diff. Record the follow-up so it is not lost.
Do you want me to open an issue that tracks adding
gc-stress,gc-moving-witnesses,gc-root-dominance, andgc-ratchetto branch protection's required contexts?As per coding guidelines: "A CI gate must be able to fail: do not use
continue-on-error, ensure it is required by branch protection, avoid unconditional cancellation ofmainruns, and assert that the tested subject actually executed."🤖 Prompt for AI Agents
Source: Coding guidelines