Repository navigation
ci(release): deliver the verdict self-check from the dispatch ref - #330
Merged
Merged
Conversation
…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.
6 tasks
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.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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.