CI: a check that did not run must not read as passing #2852

Open
HailLucifer666 wants to merge 15 commits from upstream-pr/2854 into main
HailLucifer666 commented 2026-11-25 22:27:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by HailLucifer666 on 2026-11-25T22:27:05Z.


What

Two checks for one defect class: a check that did not run must not read as passing.

cargo xtask test-gate [cargo test args] runs the tests, then reads each binary's account of itself back — running N tests against test result: …. It fails when a binary announced 0 tests (doc-test binaries exempt: a crate with no doc examples runs none by design), when a binary accounted for fewer tests than it announced, and when the run executed no test at all.

cargo xtask workflows reads every file under .github/workflows/ and refuses the shapes GitHub will not load. GitHub parses those files before it creates a job, so a file it cannot load produces no run at all — and no CI check can report that from inside CI. .githooks/pre-commit calls it with --staged, so the blob being committed is the one checked.

Why one PR: both catch the same failure — a green check that proves nothing. A workflow that does not parse produces no run; a test command whose filter matches nothing exits 0. Neither appears as a failure to anything reading the checks.

Verification

  • cargo test -p xtask --locked — 36 passed (16 before this PR).
  • cargo xtask test-gate -p xtask --locked — exit 0, 36/36 accounted for.
  • On the tree merged with main (63bcca43): 36 passed; gate exit 0; cargo xtask workflows 1 file ok; cargo xtask policy 193 files ok; cargo clippy -p xtask --all-targets --locked -- -D warnings clean.
  • cargo xtask test-gate -p victory-hle --locked — exit 0; four binaries named; 152+1+1+0 tests executed; one nested report, from a test that spawns current_exe().
  • cargo xtask test-gate -p xtask --locked -- no_such_test — exit 1, the run executed no test.
  • A real build error keeps its location: --> xtask\src\workflows.rs:610:26, reproduced by temporarily breaking a source file, restored byte-identical (sha256 checked).
  • The workflow guard goes red on a step indented two columns short of its siblings — the real ci.yml defect — and green once restored, through both the unit test and the hook's staged check (the YAML error named line 36, column 11).

Behaviour and limits

  • Targets run serially (--jobs 1), measured at no cost over this workspace (27 s either way), because concurrent binaries write into one stream and no report can be attributed to a binary.
  • Counts are read only when cargo test exited 0: a failing run dumps captured output that can contain harness-shaped lines. A red run is reported from cargo's own diagnosis, and each failing test's panic block is echoed — this process captured cargo's stdout, so nothing else prints it.
  • A test that spawns current_exe() writes a child's harness lines into the same stream. Results close reports last-in-first-out, and only the outermost reports — the binaries cargo ran and named — are gated.
  • The workflow check covers what it can see without GitHub's schema: one document, a trigger, jobs that each name runs-on or call another workflow, and steps with exactly one of uses/run. Unknown keys, expression syntax and nonexistent actions are not checked; actionlint is not wired in.

Note on the existing red

main's CI is green. On a machine with a GPU, victory-gpu fails descriptor::host::tests::dynamic_slots_are_held_until_released and memory::tests::lists_share_a_table_and_copies_keep_their_views: both ask for a shader-visible heap of HEAP_VIEWS = 1 << 21 descriptors, and a CBV/SRV/UAV heap is capped at 1,000,000 (PORTABLE_VIEWS in the same module already records that limit), so CreateDescriptorHeap fails and the tests cannot pass there. CI has no GPU, so its runs return early. On hardware, victory-shader's lib test binary also dies with 0xc0000005 (STATUS_ACCESS_VIOLATION) after 83 of 305 tests, so 222 never run. Both are separate upstream defects and this branch touches no file in either crate. The frame wait test has also failed intermittently in CI (run 45713337193); this branch does not touch that file either, and the gate now prints its panic instead of a bare test name.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5500250226 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-25T22:27:05Z. --- ## What Two checks for one defect class: **a check that did not run must not read as passing.** `cargo xtask test-gate [cargo test args]` runs the tests, then reads each binary's account of itself back — `running N tests` against `test result: …`. It fails when a binary announced 0 tests (doc-test binaries exempt: a crate with no doc examples runs none by design), when a binary accounted for fewer tests than it announced, and when the run executed no test at all. `cargo xtask workflows` reads every file under `.github/workflows/` and refuses the shapes GitHub will not load. GitHub parses those files before it creates a job, so a file it cannot load produces no run at all — and no CI check can report that from inside CI. `.githooks/pre-commit` calls it with `--staged`, so the blob being committed is the one checked. Why one PR: both catch the same failure — a green check that proves nothing. A workflow that does not parse produces no run; a test command whose filter matches nothing exits 0. Neither appears as a failure to anything reading the checks. ## Verification - `cargo test -p xtask --locked` — 36 passed (16 before this PR). - `cargo xtask test-gate -p xtask --locked` — exit 0, 36/36 accounted for. - On the tree merged with `main` (`63bcca43`): 36 passed; gate exit 0; `cargo xtask workflows` 1 file ok; `cargo xtask policy` 193 files ok; `cargo clippy -p xtask --all-targets --locked -- -D warnings` clean. - `cargo xtask test-gate -p victory-hle --locked` — exit 0; four binaries named; 152+1+1+0 tests executed; one nested report, from a test that spawns `current_exe()`. - `cargo xtask test-gate -p xtask --locked -- no_such_test` — exit 1, `the run executed no test`. - A real build error keeps its location: `--> xtask\src\workflows.rs:610:26`, reproduced by temporarily breaking a source file, restored byte-identical (sha256 checked). - The workflow guard goes red on a step indented two columns short of its siblings — the real `ci.yml` defect — and green once restored, through both the unit test and the hook's staged check (the YAML error named line 36, column 11). ## Behaviour and limits - Targets run serially (`--jobs 1`), measured at no cost over this workspace (27 s either way), because concurrent binaries write into one stream and no report can be attributed to a binary. - Counts are read only when `cargo test` exited 0: a failing run dumps captured output that can contain harness-shaped lines. A red run is reported from cargo's own diagnosis, and each failing test's panic block is echoed — this process captured cargo's stdout, so nothing else prints it. - A test that spawns `current_exe()` writes a child's harness lines into the same stream. Results close reports last-in-first-out, and only the outermost reports — the binaries cargo ran and named — are gated. - The workflow check covers what it can see without GitHub's schema: one document, a trigger, jobs that each name `runs-on` or call another workflow, and steps with exactly one of `uses`/`run`. Unknown keys, expression syntax and nonexistent actions are not checked; `actionlint` is not wired in. ## Note on the existing red `main`'s CI is green. On a machine with a GPU, `victory-gpu` fails `descriptor::host::tests::dynamic_slots_are_held_until_released` and `memory::tests::lists_share_a_table_and_copies_keep_their_views`: both ask for a shader-visible heap of `HEAP_VIEWS = 1 << 21` descriptors, and a CBV/SRV/UAV heap is capped at 1,000,000 (`PORTABLE_VIEWS` in the same module already records that limit), so `CreateDescriptorHeap` fails and the tests cannot pass there. CI has no GPU, so its runs return early. On hardware, `victory-shader`'s lib test binary also dies with `0xc0000005` (`STATUS_ACCESS_VIOLATION`) after 83 of 305 tests, so 222 never run. Both are separate upstream defects and this branch touches no file in either crate. The `frame` wait test has also failed intermittently in CI (run 45713337193); this branch does not touch that file either, and the gate now prints its panic instead of a bare test name.
kotekompotek commented 2026-11-25 22:51:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by kotekompotek on 2026-11-25T22:51:31Z.

Review: COMMENTED


The false-green gap is real (empty filter -> exit 0 -> CI pass), and the design notes show the two subtle requirements handled: serial targets so reports can be attributed, and only reading counts when cargo exited 0 so captured failure output can't inject harness-shaped lines. Doc-test exemption is right — empty doc-test sets aren't defects. LGTM.

<!-- greyfinch-sync:Marvisak/VIctory:review:6066073811 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#pullrequestreview-6066073811). Originally posted by [kotekompotek](https://github.com/kotekompotek) on 2026-11-25T22:51:31Z. **Review:** COMMENTED --- The false-green gap is real (empty filter -> exit 0 -> CI pass), and the design notes show the two subtle requirements handled: serial targets so reports can be attributed, and only reading counts when cargo exited 0 so captured failure output can't inject harness-shaped lines. Doc-test exemption is right — empty doc-test sets aren't defects. LGTM.
fuzeofficlal commented 2026-11-26 00:17:39 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T00:17:39Z.

Review: COMMENTED


Verified head 5a83dded merged onto origin/main (63bcca43) on Windows 11 x64. Found two reproducible blocking issues (one breaks CI on this workspace as-is):

Blocking Findings

  1. cargo xtask test-gate -p victory-hle --locked deterministically fails on this repo:
    • crates/victory-hle/src/host.rs (loading_a_host_dll_does_not_block_thread_attach) spawns a child current_exe() with inherited stdout, interleaving the child's running 1 test and test result: ok. 1 passed; ... inside the parent binary's test output.
    • gate::parse appends into a flat Vec<Report> and updates reports.last_mut(), splitting the parent report into two mismatched entries. Running cargo xtask test-gate -p victory-hle --locked exits with code 1:
      GATE: (unnamed target): announced 152 test(s), accounted for 0
      GATE: (unnamed target): announced 1 test(s), accounted for 152
      Error: 2 test-gate problem(s) in a run cargo called a success
      
    • Because .github/workflows/ci.yml runs cargo xtask test-gate --workspace --locked, this will fail CI immediately unless either the child test captures its own stdout (.output()) or gate::parse handles nested child-process output.
  2. Passing -- test-harness arguments fails because --no-fail-fast / --jobs 1 are appended after args:
    • Running cargo xtask test-gate -p xtask --locked -- no_such_test_name_xyz forwards --no-fail-fast after -- to libtest and fails with error: Unrecognized option: 'no-fail-fast' (exit 101). Inserting cargo flags before any -- separator in args fixes this.
  3. CI runtime note: .github/workflows/ci.yml keeps the existing cargo test --workspace --locked step and adds cargo xtask test-gate --workspace --locked right after it, running the entire workspace test suite twice (with --jobs 1 on the second pass).

Positive Checks

  • cargo test --locked -p xtask (16/16), cargo xtask test-gate -p xtask --locked (16/16), cargo clippy --locked -p xtask --tests -- -D warnings, and cargo xtask policy (192 files ok) all pass.
<!-- greyfinch-sync:Marvisak/VIctory:review:6066835255 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#pullrequestreview-6066835255). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T00:17:39Z. **Review:** COMMENTED --- Verified head `5a83dded` merged onto `origin/main` (`63bcca43`) on Windows 11 x64. Found **two reproducible blocking issues** (one breaks CI on this workspace as-is): ### Blocking Findings 1. **`cargo xtask test-gate -p victory-hle --locked` deterministically fails on this repo**: - `crates/victory-hle/src/host.rs` (`loading_a_host_dll_does_not_block_thread_attach`) spawns a child `current_exe()` with inherited stdout, interleaving the child's `running 1 test` and `test result: ok. 1 passed; ...` inside the parent binary's test output. - `gate::parse` appends into a flat `Vec<Report>` and updates `reports.last_mut()`, splitting the parent report into two mismatched entries. Running `cargo xtask test-gate -p victory-hle --locked` exits with code `1`: ``` GATE: (unnamed target): announced 152 test(s), accounted for 0 GATE: (unnamed target): announced 1 test(s), accounted for 152 Error: 2 test-gate problem(s) in a run cargo called a success ``` - Because `.github/workflows/ci.yml` runs `cargo xtask test-gate --workspace --locked`, this will fail CI immediately unless either the child test captures its own stdout (`.output()`) or `gate::parse` handles nested child-process output. 2. **Passing `--` test-harness arguments fails because `--no-fail-fast` / `--jobs 1` are appended after `args`**: - Running `cargo xtask test-gate -p xtask --locked -- no_such_test_name_xyz` forwards `--no-fail-fast` after `--` to libtest and fails with `error: Unrecognized option: 'no-fail-fast'` (exit `101`). Inserting cargo flags *before* any `--` separator in `args` fixes this. 3. **CI runtime note**: `.github/workflows/ci.yml` keeps the existing `cargo test --workspace --locked` step and adds `cargo xtask test-gate --workspace --locked` right after it, running the entire workspace test suite twice (with `--jobs 1` on the second pass). ### Positive Checks - `cargo test --locked -p xtask` (**16/16**), `cargo xtask test-gate -p xtask --locked` (**16/16**), `cargo clippy --locked -p xtask --tests -- -D warnings`, and `cargo xtask policy` (`192 files ok`) all pass.
Marvisak commented 2026-11-26 04:06:18 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-26T03:24:31Z.


Automated triage for the maintainers.

Verdict: proposed close. The new cargo xtask test-gate (xtask/src/gate.rs) catches a cargo test run whose filter matched nothing. CI runs cargo test --workspace --locked with no filter, so that case cannot arise there. The added CI step in .github/workflows/ci.yml runs the whole workspace suite a second time, serially (--jobs 1 --no-fail-fast), which adds a full extra test run to every check for no gain. For local runs, a filter that matches nothing is already visible in libtest's running 0 tests line. The module doc is also a long rationale (repo rule 3) with an unexplained /kee class 14 reference. CI workflow changes and process-spawning tooling need the maintainer in any case.

This will be closed in 48 hours unless you push a change or a maintainer removes the label.

CI: failing (check). The PR body says the existing Tests step fails on main too.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7181692340 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7181692340). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-26T03:24:31Z. --- <!-- victory-triage v1 head=5a83ddedea8fb73eb9c44165e194d07cceeb579b verdict=proposed-close at=2026-11-26T03:24:30Z --> Automated triage for the maintainers. **Verdict: proposed close.** The new `cargo xtask test-gate` (`xtask/src/gate.rs`) catches a `cargo test` run whose filter matched nothing. CI runs `cargo test --workspace --locked` with no filter, so that case cannot arise there. The added CI step in `.github/workflows/ci.yml` runs the whole workspace suite a second time, serially (`--jobs 1 --no-fail-fast`), which adds a full extra test run to every check for no gain. For local runs, a filter that matches nothing is already visible in libtest's `running 0 tests` line. The module doc is also a long rationale (repo rule 3) with an unexplained `/kee class 14` reference. CI workflow changes and process-spawning tooling need the maintainer in any case. This will be closed in 48 hours unless you push a change or a maintainer removes the label. CI: failing (`check`). The PR body says the existing `Tests` step fails on `main` too. --- _Generated by [Claude Code](https://claude.ai/code)_
upstream-sync changed title from [PR #2854] xtask: fail the test run when it executed nothing to [PR #2854] CI: a check that did not run must not read as passing 2026-11-26 11:03:26 +00:00
HailLucifer666 commented 2026-11-26 11:04:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by HailLucifer666 on 2026-11-26T11:01:30Z.


Thanks for the review — both blocking findings reproduced on Windows 11 x64 at head 5a83dded before anything changed, and both are fixed at 7878c324.

1. -p victory-hle exited 1, exactly as reported (announced 152, accounted for 0 and announced 1, accounted for 152). The stream shows the mechanism: loading_a_host_dll_does_not_block_thread_attach spawns current_exe() with inherited stdout, so the child announces its 1 test inside the parent binary's run and its result arrives before the parent's 152-test result. gate::parse attached each result to the most recent announcement; it now closes the most recent unresolved one, last-in-first-out, and gates only the outermost reports — the binaries cargo ran and named. Re-run: exit 0, four binaries named, 152+1+1+0 tests executed, one nested report counted separately. Regression test: a_child_process_report_keeps_its_parents_counts.

2. -- no_such_test_name_xyz forwarded --no-fail-fast to libtest and exited 101. gate::argv now splits at the first -- and places the gate's flags before it. The same command now reaches libtest and exits 1 with the run executed no test, which is the gate doing its job. Regression test: the_gates_flags_go_before_the_harness_separator.

3. The duplicate suite run is gone. ci.yml now has one Tests, gate step; the plain Tests step was removed in fa1b61e8.

Also from the triage note: the module doc's /kee reference is removed. The gate and the workflow check stay one PR because they are one defect class — a check that did not run must not read as passing.

One correction to the earlier body: main's CI is green. On a machine with a GPU, victory-gpu fails dynamic_slots_are_held_until_released and lists_share_a_table_and_copies_keep_their_views because both request a shader-visible heap of 1 << 21 descriptors against the 1,000,000 cap, so CreateDescriptorHeap fails and the tests fall back and cannot pass there. CI has no GPU, so its runs return early. That is upstream and untouched here.

Verification on the final head: 36 xtask tests; gate and clippy clean; the tree merged with main (63bcca43) also 36/36, gate exit 0, workflows ok. Four mutation probes, each red for the right reason and restored byte-identical. Machine: Windows 11 x64, Rust 1.98.1. AI-assisted; every run above was executed on this machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7190158462 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7190158462). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-26T11:01:30Z. --- Thanks for the review — both blocking findings reproduced on Windows 11 x64 at head `5a83dded` before anything changed, and both are fixed at `7878c324`. **1. `-p victory-hle` exited 1, exactly as reported** (`announced 152, accounted for 0` and `announced 1, accounted for 152`). The stream shows the mechanism: `loading_a_host_dll_does_not_block_thread_attach` spawns `current_exe()` with inherited stdout, so the child announces its 1 test inside the parent binary's run and its result arrives *before* the parent's 152-test result. `gate::parse` attached each result to the most recent announcement; it now closes the most recent *unresolved* one, last-in-first-out, and gates only the outermost reports — the binaries cargo ran and named. Re-run: exit 0, four binaries named, `152+1+1+0` tests executed, one nested report counted separately. Regression test: `a_child_process_report_keeps_its_parents_counts`. **2. `-- no_such_test_name_xyz` forwarded `--no-fail-fast` to libtest and exited 101.** `gate::argv` now splits at the first `--` and places the gate's flags before it. The same command now reaches libtest and exits 1 with `the run executed no test`, which is the gate doing its job. Regression test: `the_gates_flags_go_before_the_harness_separator`. **3. The duplicate suite run is gone.** `ci.yml` now has one `Tests, gate` step; the plain `Tests` step was removed in `fa1b61e8`. Also from the triage note: the module doc's `/kee` reference is removed. The gate and the workflow check stay one PR because they are one defect class — a check that did not run must not read as passing. One correction to the earlier body: `main`'s CI is green. On a machine with a GPU, `victory-gpu` fails `dynamic_slots_are_held_until_released` and `lists_share_a_table_and_copies_keep_their_views` because both request a shader-visible heap of `1 << 21` descriptors against the 1,000,000 cap, so `CreateDescriptorHeap` fails and the tests fall back and cannot pass there. CI has no GPU, so its runs return early. That is upstream and untouched here. Verification on the final head: 36 xtask tests; gate and clippy clean; the tree merged with `main` (`63bcca43`) also 36/36, gate exit 0, workflows ok. Four mutation probes, each red for the right reason and restored byte-identical. Machine: Windows 11 x64, Rust 1.98.1. AI-assisted; every run above was executed on this machine.
HailLucifer666 commented 2026-11-26 13:04:31 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by HailLucifer666 on 2026-11-26T12:36:38Z.


Follow-up: all 13 preflight findings are fixed at 8f162ce0, and CI is green again (check 2m50s).

  1. CRITICAL — hook mode. git ls-tree HEAD .githooks/ now reports 100755, and git diff --summary shows the mode change. The previous push still had 644 because splitting the commits reset the index mode on a Windows checkout; install-hooks now also chmods the hook on Unix.
  2. on: null / [] / '' is refused; the check asks whether the value names an event, not whether the key exists.
  3. runs-on: null / [] is refused; the group/labels mapping is accepted so a valid runner group is not a false red.
  4. The staged scan uses git diff -z and splits on NUL, so a quoted café.yml is read; a path it cannot interpret becomes a problem, not a silent continue. Tested against a real temporary git repo.
  5. A name/report mismatch is a gate failure on stderr with a non-zero exit, not a stdout note beside success.
  6. --jobs 1 is forced and a caller -j/--jobs is refused with the reason. CI now builds in parallel (cargo test --workspace --locked --no-run, 4m38s) and the gate runs the already-built binaries.
  7. failure_report quotes the first error blocks, so --> file:line and the caret survive any amount of stderr after them (tested with E0308 followed by 80 lines).
  8. The child is streamed and captured, so a hang or the 60-minute CI timeout leaves a log instead of nothing.
  9. An announcement that never reports is named — "announced N and never accounted for" — and the zero-executed message no longer contradicts itself. A run whose every test was ignored still fails, with its own accurate message.
  10. The filtered-test fixture now exercises the per-binary rule instead of passing on the whole-run branch.
  11. The hook skips with an explicit stderr line when cargo is absent, and the two overclaiming comments now say "the shape checks this repository can make" and "the only place ci.yml itself can be caught".

One further defect surfaced when the strict pairing rule hit CI for the first time: with CARGO_TERM_COLOR=always, cargo wraps Running and Doc-tests in ANSI escapes, targets() found zero names, and the gate refused a green run (cargo named 0 target(s) but 29 report(s)). Fixed in 8f162ce0 by stripping CSI sequences before matching and trimming after; the regression test uses the exact colored line shape from run 45819533685. This is the false-attribution class the rule exists to catch, found on its first real run.

Evidence: 54 xtask tests; eleven mutation probes, each red for the stated reason and restored byte-identical; pairing checked on victory-core (2 binaries), victory-loader (5) and victory-hle (4 plus 1 nested report); CARGO_TERM_COLOR=always runs of xtask and victory-hle both exit 0 with every binary named. CI run 45820677011 on 8f162ce0 is green. Machine: Windows 11 x64, Rust 1.98.1. AI-assisted; every run above was executed on this machine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7192225533 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7192225533). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-26T12:36:38Z. --- Follow-up: all 13 preflight findings are fixed at `8f162ce0`, and CI is green again (`check` 2m50s). 1. **CRITICAL — hook mode.** `git ls-tree HEAD .githooks/` now reports `100755`, and `git diff --summary` shows the mode change. The previous push still had `644` because splitting the commits reset the index mode on a Windows checkout; `install-hooks` now also chmods the hook on Unix. 2. **`on:` null / `[]` / `''`** is refused; the check asks whether the value names an event, not whether the key exists. 3. **`runs-on:` null / `[]`** is refused; the `group`/`labels` mapping is accepted so a valid runner group is not a false red. 4. **The staged scan** uses `git diff -z` and splits on NUL, so a quoted `café.yml` is read; a path it cannot interpret becomes a problem, not a silent `continue`. Tested against a real temporary git repo. 5. **A name/report mismatch is a gate failure** on stderr with a non-zero exit, not a stdout note beside success. 6. **`--jobs 1` is forced** and a caller `-j/--jobs` is refused with the reason. CI now builds in parallel (`cargo test --workspace --locked --no-run`, 4m38s) and the gate runs the already-built binaries. 7. **`failure_report` quotes the first error blocks**, so `--> file:line` and the caret survive any amount of stderr after them (tested with `E0308` followed by 80 lines). 8. **The child is streamed and captured**, so a hang or the 60-minute CI timeout leaves a log instead of nothing. 9. **An announcement that never reports is named** — "announced N and never accounted for" — and the zero-executed message no longer contradicts itself. A run whose every test was ignored still fails, with its own accurate message. 10. **The filtered-test fixture** now exercises the per-binary rule instead of passing on the whole-run branch. 11. **The hook** skips with an explicit stderr line when cargo is absent, and the two overclaiming comments now say "the shape checks this repository can make" and "the only place `ci.yml` itself can be caught". One further defect surfaced when the strict pairing rule hit CI for the first time: with `CARGO_TERM_COLOR=always`, cargo wraps `Running` and `Doc-tests` in ANSI escapes, `targets()` found zero names, and the gate refused a green run (`cargo named 0 target(s) but 29 report(s)`). Fixed in `8f162ce0` by stripping CSI sequences before matching and trimming after; the regression test uses the exact colored line shape from run `45819533685`. This is the false-attribution class the rule exists to catch, found on its first real run. Evidence: 54 xtask tests; eleven mutation probes, each red for the stated reason and restored byte-identical; pairing checked on victory-core (2 binaries), victory-loader (5) and victory-hle (4 plus 1 nested report); `CARGO_TERM_COLOR=always` runs of xtask and victory-hle both exit 0 with every binary named. CI run `45820677011` on `8f162ce0` is green. Machine: Windows 11 x64, Rust 1.98.1. AI-assisted; every run above was executed on this machine.
HailLucifer666 commented 2026-11-26 13:04:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by HailLucifer666 on 2026-11-26T13:03:37Z.


One more pass, from an independent QA probe of the new guards (fixed at f65301ba, CI green):

  • A test-less target was a false red. A binary target with no tests reports running 0 tests and 0 filtered out, exactly like a binary whose filter removed every test minus the removed count. The zero-announcement rule treated both as "a filter that matched nothing", so any workspace with a test-less bin failed. Report now carries the filtered out count and the rule fires only when tests were actually removed. This would have hit the next crate that adds a test-less binary.
  • Three workflow shapes GitHub refuses were accepted: on: [42], on: [push, {}], and a runs-on mapping with an unknown key or a mis-typed value. Every event-list entry must now name an event, and a runner mapping accepts only group (a non-empty string) and labels (a label or a non-empty list of them). Each has its own fixture.
  • Three limits are now documented in the module doc rather than silently accepted: stdout is unauthenticated (a test can print a harness-shaped test result: and forge or close its binary's account; the gate never counts test … ok lines, so only cargo's exit status protects a red run), a harness = false target prints no libtest report and is refused as unattributable, and a narrowed command (--exclude, -p, --lib) is gated as the set it actually ran.
  • The hook is installed in this clone, so the next commit ran it for real: asset policy: 2 files ok / workflows: none staged.

Verification: 57 xtask tests; CARGO_TERM_COLOR=always gate runs of xtask and victory-hle green; the workflow shape fixtures cover the new refusals and the accepted group mapping. CI run 45824858976 on f65301ba passed in 2m51s.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7192818887 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7192818887). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-26T13:03:37Z. --- One more pass, from an independent QA probe of the new guards (fixed at `f65301ba`, CI green): - **A test-less target was a false red.** A binary target with no tests reports `running 0 tests` and `0 filtered out`, exactly like a binary whose filter removed every test minus the removed count. The zero-announcement rule treated both as "a filter that matched nothing", so any workspace with a test-less `bin` failed. `Report` now carries the `filtered out` count and the rule fires only when tests were actually removed. This would have hit the next crate that adds a test-less binary. - **Three workflow shapes GitHub refuses were accepted:** `on: [42]`, `on: [push, {}]`, and a `runs-on` mapping with an unknown key or a mis-typed value. Every event-list entry must now name an event, and a runner mapping accepts only `group` (a non-empty string) and `labels` (a label or a non-empty list of them). Each has its own fixture. - **Three limits are now documented in the module doc rather than silently accepted:** stdout is unauthenticated (a test can print a harness-shaped `test result:` and forge or close its binary's account; the gate never counts `test … ok` lines, so only cargo's exit status protects a red run), a `harness = false` target prints no libtest report and is refused as unattributable, and a narrowed command (`--exclude`, `-p`, `--lib`) is gated as the set it actually ran. - **The hook is installed in this clone**, so the next commit ran it for real: `asset policy: 2 files ok` / `workflows: none staged`. Verification: 57 xtask tests; `CARGO_TERM_COLOR=always` gate runs of xtask and victory-hle green; the workflow shape fixtures cover the new refusals and the accepted group mapping. CI run `45824858976` on `f65301ba` passed in 2m51s.
HailLucifer666 commented 2026-11-26 14:01:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by HailLucifer666 on 2026-11-26T13:18:59Z.


Final review pass (build-pr). One blocker, fixed at fc12c569; CI green again (run 45827208025, 2m39s).

  • BLOCKER — the red-run excerpt was colour-blind. failure_report/error_excerpt matched error on the raw line. ci.yml sets CARGO_TERM_COLOR=always workflow-wide, so a coloured error[E0308] starts with an escape byte, no block was found, and the excerpt silently fell back to the 60-line tail it replaced. Both now strip colour first, and a coloured twin of the long-red-run test pins it — the same false-green class as the PR's headline, one function short.
  • The hook mode now has a regression test. git ls-tree HEAD .githooks/pre-commit must start 100755. A Windows checkout cannot show the mode, and a split commit reset it once already.
  • copy keeps its captured bytes on a read error instead of discarding them; an all-filtered run prints one message instead of one per binary; the streaming test is renamed for what it proves; a -j after -- is covered as passing through; docs/architecture.md names the two new xtask commands.
  • Merged tree: the pull_request run is GitHub's own merge of this head with main (63bcca43), so run 45827208025 is the merged-tree evidence. A local workspace run stays red on the two heap assertions and a victory-shader STATUS_ACCESS_VIOLATION that stops 222 tests; neither is in a file this branch touches, and both predate it.
  • Not changed: the message of the already-pushed 5a83dded says a "verdict that is not ok"; the parser deliberately does not read the verdict because a non-zero exit is caught first. Correcting a pushed commit's message would rewrite history.

Evidence: 61 xtask tests; CARGO_TERM_COLOR=always gate runs of xtask and victory-hle green; fmt and clippy clean; the hook ran on the last two commits in this clone.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7193172468 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7193172468). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-26T13:18:59Z. --- Final review pass (build-pr). One blocker, fixed at `fc12c569`; CI green again (run `45827208025`, 2m39s). - **BLOCKER — the red-run excerpt was colour-blind.** `failure_report`/`error_excerpt` matched `error` on the raw line. `ci.yml` sets `CARGO_TERM_COLOR=always` workflow-wide, so a coloured `error[E0308]` starts with an escape byte, no block was found, and the excerpt silently fell back to the 60-line tail it replaced. Both now strip colour first, and a coloured twin of the long-red-run test pins it — the same false-green class as the PR's headline, one function short. - **The hook mode now has a regression test.** `git ls-tree HEAD .githooks/pre-commit` must start `100755`. A Windows checkout cannot show the mode, and a split commit reset it once already. - `copy` keeps its captured bytes on a read error instead of discarding them; an all-filtered run prints one message instead of one per binary; the streaming test is renamed for what it proves; a `-j` after `--` is covered as passing through; `docs/architecture.md` names the two new xtask commands. - **Merged tree:** the `pull_request` run is GitHub's own merge of this head with `main` (`63bcca43`), so run `45827208025` is the merged-tree evidence. A local workspace run stays red on the two heap assertions and a `victory-shader` `STATUS_ACCESS_VIOLATION` that stops 222 tests; neither is in a file this branch touches, and both predate it. - **Not changed:** the message of the already-pushed `5a83dded` says a "verdict that is not `ok`"; the parser deliberately does not read the verdict because a non-zero exit is caught first. Correcting a pushed commit's message would rewrite history. Evidence: 61 xtask tests; `CARGO_TERM_COLOR=always` gate runs of xtask and victory-hle green; fmt and clippy clean; the hook ran on the last two commits in this clone.
HailLucifer666 commented 2026-11-27 09:37:30 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by HailLucifer666 on 2026-11-27T09:37:30Z.


@Marvisak — the triage: proposed close label is still attached and its 48-hour window ends 2026-11-28 03:24Z (the bot's note was filed 2026-11-26 03:24Z). I cannot remove it: this token has no triage permission, so the ask is yours.

All three objections in the triage note are fixed at fc12c569, and CI is green on that head (run 45827208025, 2m39s):

  • The duplicate suite run is gone. ci.yml has one Tests, gate step. cargo test --no-run builds once; the gate executes the built binaries once.
  • The /kee reference is removed from the module doc.
  • The "a filter that matches nothing cannot arise in CI" point stands as written — CI passes no filter. What the gate buys in CI is the accounting: a binary that announced N and reported fewer, a test-less target, an all-ignored run. Separately, the workflow guard is the only check that can catch a workflow file GitHub refuses to load, because that failure produces no run at all.

@kotekompotek — your LGTM was on 5a83dded; the head is fc12c569 if you want a second look before the window closes.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7214900538 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7214900538). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-27T09:37:30Z. --- @Marvisak — the `triage: proposed close` label is still attached and its 48-hour window ends 2026-11-28 03:24Z (the bot's note was filed 2026-11-26 03:24Z). I cannot remove it: this token has no triage permission, so the ask is yours. All three objections in the triage note are fixed at `fc12c569`, and CI is green on that head (run 45827208025, 2m39s): - **The duplicate suite run is gone.** `ci.yml` has one `Tests, gate` step. `cargo test --no-run` builds once; the gate executes the built binaries once. - **The `/kee` reference is removed** from the module doc. - **The "a filter that matches nothing cannot arise in CI" point stands as written** — CI passes no filter. What the gate buys in CI is the accounting: a binary that announced N and reported fewer, a test-less target, an all-ignored run. Separately, the workflow guard is the only check that can catch a workflow file GitHub refuses to load, because that failure produces no run at all. @kotekompotek — your LGTM was on `5a83dded`; the head is `fc12c569` if you want a second look before the window closes.
HailLucifer666 commented 2026-11-28 18:20:10 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by HailLucifer666 on 2026-11-28T18:20:10Z.


Updating this thread: the branch moved again since the ping above — five commits, all from our own second adversarial review round plus one contract correction found by it. Head is now c062d41c, CI run 46174566548 completed success on it, PR is MERGEABLE. The five: the four review fixes (fail-closed policy --staged, the duplicate-key and typechange workflow checks, the hook's skip message) and one correction to this gate's own docs — the --jobs rationale claimed a mechanism cargo does not have (test executables run one at a time regardless; --jobs is compile-only), now rewritten to what cargo actually does, with the pin kept for determinism.

Same ask as the comment above: label removal and review/merge when you have a moment. Nothing further from us on this one.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7243712163 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7243712163). Originally posted by [HailLucifer666](https://github.com/HailLucifer666) on 2026-11-28T18:20:10Z. --- Updating this thread: the branch moved again since the ping above — five commits, all from our own second adversarial review round plus one contract correction found by it. Head is now `c062d41c`, **CI run 46174566548 completed success on it**, PR is MERGEABLE. The five: the four review fixes (fail-closed `policy --staged`, the duplicate-key and typechange workflow checks, the hook's skip message) and one correction to this gate's own docs — the `--jobs` rationale claimed a mechanism cargo does not have (test executables run one at a time regardless; `--jobs` is compile-only), now rewritten to what cargo actually does, with the pin kept for determinism. Same ask as the comment above: label removal and review/merge when you have a moment. Nothing further from us on this one.
DieQuelle commented 2026-11-29 13:30:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DieQuelle on 2026-11-29T13:30:59Z.


A question on the hook rewrite in c69ec65d. When cargo isn't on PATH, the new .githooks/pre-commit prints a message and exits 0, so the commit goes through without cargo xtask policy --staged. Today's hook fails in that case and blocks the commit. With this change, the asset-policy check would be silently skipped on exactly the machines where it can't run. Is that intended? Failing (exit 1) with the same message would keep the policy check mandatory. A one-off bypass is still possible with git commit --no-verify.

For context: the mode change on its own (100644 -> 100755) is now https://github.com/Marvisak/VIctory/pull/3839 as a single-purpose PR, so it can land independently of this one. Whichever lands first makes the other a no-op on the mode.

AI-assisted (Kiro, claude-opus-5.5), posted for DieQuelle.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7256595882 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2854#issuecomment-7256595882). Originally posted by [DieQuelle](https://github.com/DieQuelle) on 2026-11-29T13:30:59Z. --- A question on the hook rewrite in `c69ec65d`. When `cargo` isn't on `PATH`, the new `.githooks/pre-commit` prints a message and exits 0, so the commit goes through without `cargo xtask policy --staged`. Today's hook fails in that case and blocks the commit. With this change, the asset-policy check would be silently skipped on exactly the machines where it can't run. Is that intended? Failing (exit 1) with the same message would keep the policy check mandatory. A one-off bypass is still possible with `git commit --no-verify`. For context: the mode change on its own (`100644 -> 100755`) is now https://github.com/Marvisak/VIctory/pull/3839 as a single-purpose PR, so it can land independently of this one. Whichever lands first makes the other a no-op on the mode. _AI-assisted (Kiro, claude-opus-5.5), posted for DieQuelle._
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2854:upstream-pr/2854'
git switch 'upstream-pr/2854'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2854'
git switch 'upstream-pr/2854'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2854'
git switch 'upstream-pr/2854'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2854'
git switch 'main'
git merge --squash 'upstream-pr/2854'
git switch 'main'
git merge --ff-only 'upstream-pr/2854'
git switch 'main'
git merge 'upstream-pr/2854'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2852
No description provided.