Repository navigation
ci: an opt-in skip under CI says what it skipped, so the built-and-never-run rows are visible (engine#3000) - #3005
bong-water-water-bong wants to merge 1 commit into
Conversation
…ver-run rows are visible (engine#3000) `hrx_build` builds every fork test target (`-k 0`, ~34 binaries) and then runs `ctest -R '^fork_ctest_known_fail$'`. Without ONEBIT_FORK_CTEST that row takes its opt-in skip, ctest counts a skip as not-failed, the step is green, and its summary reads "100% tests passed" -- measured in run 44737964422: 1/1 Test #21: fork_ctest_known_fail ............***Skipped 0.00 sec 100% tests passed, 0 tests failed out of 1 The following tests did not run: 21 - fork_ctest_known_fail (Skipped) So the targets are compiled by CI and executed by nothing: the 15 known failures the baseline names cannot fail the job, the rows it lists as now-passing are unverified, and rows merged today are built and never run. This is the half that needs no workflow edit and adds no runtime: under CI the skip now emits a `::warning::` annotation and a step-summary section naming what was built and not executed and the one-line fix. The exit code stays 77, so nothing goes red while the owner decides whether to spend the ratchet's runtime on a ~40-minute job -- a row that fails until a workflow change lands is worse than a row that is loud about why it did nothing. Verified both ways, and the second one is the point (it is the state CI is in): $ ONEBIT_FORK_CTEST= HRX_BUILD=/nonexistent sh tools/ci/fork_ctest_known_fail.sh fork_ctest_known_fail: SKIP -- opt-in: … rc 77, no annotation $ GITHUB_ACTIONS=1 GITHUB_STEP_SUMMARY=/tmp/s.md … sh tools/ci/fork_ctest_known_fail.sh rc 77 fork_ctest_known_fail: SKIP -- opt-in: … ::warning title=the fork's test rows were built and not run::fork_ctest_known_fail skipped: opt-in: … -- ctest counts a skip as not-failed, so this step is green while the fork's ~34 built test binaries ran nothing. … and /tmp/s.md gains the "The fork ctest ratchet did NOT run" section.
|
VERDICT: READY (as a draft, which it correctly is) "This is the half of #3000 that needs no workflow edit and no queue budget." That sentence is the right reason to split a fix, and drafted for the right reason too — the cap is a real constraint and a half that needs no workflow edit should not wait behind one that does. It is also the half that can be tested without the queue. Three asks:
On the pairing: two PRs, one issue, disjoint files ( |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 630d941: CHANGES
Same finding as #3004, one level less fixed — and its body's central premise is disproved by #3004 sitting in the same queue.
"The fix that actually runs the suite is a workflow edit and a queue budget (one
env:line plus the ratchet's runtime), which is the owner's call — so this does the part a lane can"
#3004 is that workflow edit, made by a lane, with the budget measured rather than argued: "leaving 113 of 116 rows whose recorded cost sums to 184 s → ~46 s wall at the script's -j 4, about 2 % of a 40-minute job." So the choice this PR frames — run the suite (owner's call) or make the silence loud (a lane's job) — was never the choice. Both halves were available to a lane, and one of them stops the suite being built-and-never-run.
What that means concretely for this PR after #3004 lands:
$ git grep -l fork_ctest_known_fail <3004> -- .github/workflows/* → hrx-build.yml (only CI caller)
$ grep -n 'ONEBIT_FORK_CTEST=1 ctest' <3004> → that exact call site opts in
There is one CI job that runs this row, and #3004 sets ONEBIT_FORK_CTEST=1 at its call site — so the skip path this PR instruments becomes unreachable in CI the moment #3004 merges, and the ::warning would never print. A diagnostic for a state the other PR removes is not the wrong instinct; it is the wrong order, and merged as-is it would have made the job louder while still green, which is exactly the complaint in engine#3000.
The one role it can keep
If it is reframed as a backstop for a future job that forgets the env, that is worth having: the ::warning + step-summary code is correct, gated on GITHUB_ACTIONS and GITHUB_STEP_SUMMARY properly, keeps 77 (right — a row that fails until a workflow change lands is worse than a loud no-op), and it costs nothing when the suite does run. It just needs the body to say "this is the net under #3004, not the fix", and the skip() text to stop implying the run is deferred to the owner.
What is right in the code itself
77stays, with the reasoning stated: "a row that fails until a workflow change lands is worse than a row that is loud about why it did nothing." That is the correct conservatism for a script other lanes and local boxes also run.- The annotation names the consequence, not the mechanism: "ctest counts a skip as not-failed, so this step is green while the fork's ~34 built test binaries ran nothing" — a reader who never opens ctest's docs learns the bug from the message.
- The step summary is the right surface for something that must survive to the PR's checks tab.
Recommend closing this one in favour of #3004, or reducing it to the backstop note. As a pair, they are the pile-up the queue rule is about: two PRs, one finding, and the weaker of the two is the one whose body says the fix is somebody else's.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
A second edit belongs in this PR or its successor: the stamp the ratchet reads is written after the step that runs it. Step order in engine#2934's guard refuses to compare when that stamp is absent or names a different That makes the full fix two edits, and the second is free: set the variable, and move the stamp step above the ctest step. Setting the variable alone would turn a green step into It does not change anything about this PR — a warning is a warning wherever the stamp is — but whichever PR sets |
|
Closing as superseded by #3004, which does the better version of the same job: it opts the ratchet in ( That was the deliberate half-measure I chose — a warning costs no runtime and leaves the queue decision with the owner — and #3004 answers the queue question with a measurement (113 rows, 184 s of recorded cost, ~46 s wall at The one thing from this PR that #3004 still needs I have put on its thread rather than carrying it here: the stamp the ratchet reads is written by a later step ( Also passed on: |
Draft: the engine is at 4 non-draft against a cap of 3. This is the half of #3000 that needs no workflow edit and no queue budget; the half that costs runtime is left to the owner.
The gap, measured
hrx_buildbuilds every fork test target (-k 0, ~34 binaries) and then runsctest -R '^fork_ctest_known_fail$'. WithoutONEBIT_FORK_CTESTthat row takes its opt-in skip, and ctest counts a skip as not failed — run44737964422, 12:42:23Z:So ~34 fork binaries are compiled by CI and executed by nothing: the 15 known failures the baseline names cannot fail the job, the rows it lists as now-passing are unverified, and rows merged today (
test-hrx-gtt-reservefrom fork #451,test-testing-suite-skipfrom #439/#441) are built and never run.What this does
Under CI the skip now emits a
::warning::annotation and a step-summary section naming what was built and not executed and the one-line fix. Exit stays 77.Why not the
env:line: that is a workflow edit plus the ratchet's whole runtime on a ~40-minute job — an owner/queue decision. And why not fail instead: a row that goes red until a workflow change lands is a worse state than a row that is loud about why it did nothing. If the owner setsONEBIT_FORK_CTEST=1, this becomes redundant in the same commit and I will close it.Verified both ways — the second is the state CI is in
and
/tmp/s.mdgains the "The fork ctest ratchet did NOT run" section (full text in the commit message).pre-pr-checks14 green / 2 skipped.