Skip to content

ci(release): deliver the verdict self-check from the dispatch ref - #330

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/preflight-gate-delivery
Oct 13, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/preflight-gate-delivery

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Fourth-run follow-up: the journey job's pre-flight self-check (#329) ran the working tree's copy of test_verdict_exit.py - on a tag-push release the working tree is the tag's own tree, which predates the self-check file, so the job died with 'No such file or directory' before the gate even ran (run 38469653660). The golden journey itself already solves this with 'Deterministic gate delivery' (git checkout origin/master -- scripts/journey); the self-check now gets the same one-liner.

…he gate

The pre-flight self-check added in #329 ran the working tree's copy of
scripts/journey/test_verdict_exit.py - but on a tag-push release the
working tree is the tag's own tree, which predates the self-check file
(the release gate itself takes scripts/journey from origin/master for
exactly this reason, 'Deterministic gate delivery'). Deliver the
self-check the same way.
@caomengxuan666
caomengxuan666 merged commit c7b9ae2 into master Oct 13, 2026
11 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/preflight-gate-delivery branch October 13, 2026 23:02
caomengxuan666 added a commit that referenced this pull request Oct 14, 2026
… to end (run 38481728706) (#333)

Release run 38481728706 (tag v1.4.0 @ c7b9ae2, pushed) died in the
journey job's verdict self-check: FileNotFoundError on
scripts\journey\golden-journey.py while test_verdict_exit.py itself was
found. Root cause: the RUNNER_TEMP/Copy-Item gate-delivery relay nested
the directory at BOTH hops, and #330's single-file self-check delivery
masked the misdelivery for exactly one file.

1. The Preserve hop (deleted here) pre-created RUNNER_TEMP\journey with
   New-Item, so Copy-Item -Recurse copied scripts/journey INTO the
   existing destination: RUNNER_TEMP\journey\journey\*. The same
   Copy-Item semantics #327's remove-then-copy comment documented for
   the restore hop alone (release runs 2-5) - hitting from the other
   end, silently (Copy-Item exits 0).
2. The restore hop then copied the ALREADY-NESTED parent: after
   Remove-Item, `Copy-Item -Recurse RUNNER_TEMP\journey scripts/journey`
   lands the tree as scripts\journey\journey\*. (The perfbudget job
   escapes this because its restore grabs the nested child explicitly -
   RUNNER_TEMP\perf\perf, release.yml "Checkout release tag".)
3. The self-check (#330) restored exactly test_verdict_exit.py to the
   correct path - which is why the test was "found" - and its
   load_module() (test_verdict_exit.py:21, MODULE_PATH = HERE /
   "golden-journey.py") then found no module beside it.

Fix: one delivery mechanism, the one the gate body has used since
72b1f10 and #330 extended to the self-check - `git checkout
origin/master -- scripts/journey` - used at all three points:

- "Preserve current journey gate" is deleted (redundant since 72b1f10,
  and the source of the nested relay).
- "Checkout release tag" now ends with Remove-Item + git pathspec
  checkout of scripts/journey: the tag tree cannot leak files master
  deleted (pathspec checkout overlays, never deletes), and no
  Copy-Item semantics exist anywhere in the chain anymore.
- "Verdict-exit contract self-check" delivers the WHOLE current
  directory, not one file - the self-check loads golden-journey.py
  from beside itself, so a single-file delivery hands it a test with
  no module. The re-assert is idempotent and keeps the step
  self-contained against reordering.

origin/master is present in every trigger mode: checkout@v4 with
fetch-depth 0 fetches refs/remotes/origin/* (run log), and the job
checks out unixwin/niubash unconditionally.

Verified locally: release.yml YAML-parses (10 jobs, Preserve gone);
the four edited pwsh blocks pass the PowerShell language parser (with
${{ }} templating substituted); the new delivery chain was exercised
in a scratch repo with a stale-tag tree carrying a master-deleted file
- exact current-gate delivery, no nesting, idempotent re-assert;
test_verdict_exit.py / golden-journey.py / asset-timing.py byte-compile.

perfbudget: NO gate change in this commit - runs 38462805309 (6 over /
0 hard-fail) and 38481728706 (9 over / 0 hard-fail) are recorded in
the budgets.toml ledger as measured: class medians stable across four
windows-2025 runs, the over-set moves between runs, fp overs cluster
alphabetically (= temporally) with the fp tail growing 6.0 -> 7.4 ->
9.9s - transient runner contention, not per-asset regressions.
mairan / helm / elixr stay deliberately unratified (unexplained vs
baseline). A class-default bump would push omb.theme first_prompt_ms
over the 12s phase cap - the residual is a gate-semantics decision
(hard-fail-only blocking, soft-over warning; optionally a
reproducibility re-measure) and goes to owner adjudication in the PR
description; until then the gate keeps its teeth exactly as ratified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant