Repository navigation
fix(release): run-38452840701 followups - labeled known-fail no longer holds the gate, rr family root-caused and annotated - #329
Merged
Conversation
…r holds the gate, rr family root-caused and annotated The v1.4.0 re-dispatch (run 38452840701) went from three red gates to two: crates tolerance landed (#328), journey and perfbudget remain. 1. journey: every scenario passed (the rubash wt56 lexer fix landed on master and the journey job runs the CURRENT gate against the tag's build) except P4-S3's wt80-undo-receipt-ambiguous-theme - and every one of its BAD lines carries the [KNOWN-FAIL] label. The verdict was KNOWN-FAIL while the job exited 1: the label and the exit code disagreed about what the gate saw. Fix: gate_exit_code() maps pass/known-fail -> 0, unlabeled fail -> 1 (anything unrecognized also 1 - the gate never pretends an unread verdict is green). This is labeling, never waiving: the BAD lines stay in verdict.txt with the owning ticket, the wt80 defect itself is tracked and fixed on master by #328 (the re-dispatched tag predates that commit, so its binary still refuses the bare-name disable; the next tag picks the fix up), and verdict.txt now prints the contract explicitly on known-fail. Regression tests (scripts/journey/test_verdict_exit.py, stdlib, no niu.exe needed): labeled wt80 BAD -> exit 0 with the ticket named in the verdict; unlabeled BAD -> exit 1; clean run -> 0; labeled known-fail PLUS unlabeled fail -> still 1 (a label never launders an unlabeled red); unrecognized verdicts -> 1. Wired into the release journey job as a pre-flight self-check so the contract cannot drift silently. 2. per-asset timing: 264 over-budget assets in run 38404767765 -> 17 in run 38452840701 (the runner recalibration did its job). All 17 classified with fresh measurements: - rr family, ROOT-CAUSED (axin/clean/simple/sexy + the bash-it namesakes): the four oh-my-bash themes embed a command substitution INSIDE PS1 (`\$(scm_prompt_info)` / 'parse_git_branch'), so every re-render rides the prompt-string EXPANSION path - which executes substitutions ~100x slower than the same call from PROMPT_COMMAND. Ablation (dev box, pinned trees, N=3): pristine axin rr 1566ms; removing ONLY the PS1-embedded scm call -> 110ms (-93%); removing the theme's `$(date)` clock or the venv probe changed nothing. Same ordering on all three machines: runner 617/441/541/336ms, baseline rig 544/541/464/332ms, healthy class band 20-75ms. Real defect, engine fix-lane (rubash prompt-string substitution); annotated at the worst machine observed per asset (1800/1800/1800/ 1000/1200/260/260) with the ablation data in the justification. - fp transport tail (binaryanomaly, dulcie, hawaii50, mairan, modern, powerline-light; bash-it mairan): fp-only, +2..+14% over the p90-derived budgets with class medians holding (~4500/~1500) - ConPTY batching noise. omb.theme fp 5600 -> 6500, bashit.theme 2800 -> 3100; the 400ms mandate stays the fix-lane goal. - known-red loaders (omb.plugin:git 6275ms, omb.completion:git 6044ms, liquidprompt 3100.8ms vs a 3100ms override): annotated at measured ceilings with fix-lane REQUIRED in the justification - annotated, not waived; the KNOWN-RED ledger records the status change and what stays unratified (the iterate pair). Replay of all 17 assets against the new budgets: 0 remaining overs. Local axin re-test with the new budgets: GATE: PASS.
caomengxuan666
added a commit
that referenced
this pull request
Oct 13, 2026
…he gate (#330) 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.
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.
Closes the two residual failures of the v1.4.0 re-dispatch (release run 38452840701; follow-up to #328). Based on origin/master.
1. journey: verdict=KNOWN-FAIL but job exit 1 — the label and the exit code disagreed
The re-dispatch passed every scenario (the rubash wt56 lexer fix landed on master and the journey job runs the CURRENT gate against the tag's own build) except P4-S3 — and all four of its BAD lines carry the
[KNOWN-FAIL] wt80-undo-receipt-ambiguous-themelabel.GOLDEN JOURNEY VERDICT: KNOWN-FAILstill exited 1.Fix: a new
gate_exit_code()maps pass → 0, known-fail → 0, unlabeled fail → 1 (and any unrecognized verdict → 1 — the gate never pretends an unread verdict is green).verdict.txtnow states the contract explicitly on a known-fail run.Audit note (labeling, never waiving): the BAD lines stay in the verdict with the owning ticket; the wt80 defect itself is real and already fixed on master by #328 (
resolve_targetresolves an ambiguous bare theme name to the spec's theme-claim owner). The re-dispatched tag predates that commit — its binary still refuses the bare-name disable — so until the next tag, re-dispatches will keep showing the wt80 BAD as a labeled, non-blocking known-fail. Nothing is hidden: the registry entry, the BAD text and the ticket all remain.Regression tests (
scripts/journey/test_verdict_exit.py, stdlib, no niu.exe/ConPTY needed, wired into the release journey job as a pre-flight self-check):check_with_known_fail, the real path) → verdict known-fail, exit 0, ticket named in the verdict,[KNOWN-FAIL]+BADlines present in verdict.txt2. per-asset timing: 17 over, axin rr hard-fail line — root-caused
Run 38452840701 went 264 over (run 38404767765) → 17 over (the runner recalibration did its job). Full list, classified from fresh measurements:
rr family — REAL DEFECT, root-caused (engine fix-lane), annotated:
本机单测定性 + ablation (dev box, pinned oh-my-bash@abf8461, N=3 medians): pristine axin rr 1566ms; removing ONLY the PS1-embedded
\$(scm_prompt_info)→ 110ms (−93%); removing the theme's$(date)clock → 1575ms (no change); removing the venv probe → 1587ms (no change).Root cause: these themes embed a command substitution INSIDE PS1 (
\$(scm_prompt_info)/'$(parse_git_branch)'), so every ENTER re-render executes the substitution through the prompt-string expansion path — which the engine runs ~100x slower than the identical call made from PROMPT_COMMAND (robbyrussell: 21ms). Machine-independent (10x outlier on all three machines) → real defect; the engine fix (rubash prompt-string command substitution) is the fix-lane that collapses all four omb themes at once. Per the sanctioned remedy they are annotated at the worst machine observed with the ablation data in each justification.fp transport tail — jitter, class bump: binaryanomaly 5999 / dulcie 5697 / hawaii50 5937 / mairan 6359 / modern 5850 / powerline-light 6289 (budget 5600); bash-it mairan 2936 (2800). fp-only, +2..+14% over the p90-derived budgets with class medians holding (~4500 / ~1500) — ConPTY batching noise, not per-asset regressions. omb.theme fp 5600 → 6500, bashit.theme 2800 → 3100 (the 400ms mandate stays the fix-lane goal).
known-red loaders — annotated with fix-lane REQUIRED: omb.plugin:git 6275ms src / 9234ms fp → 7000/11500; omb.completion:git 6044 / 10108 → 6600/12000; liquidprompt 3100.8ms vs its 3100 override → 3200. The KNOWN-RED ledger records the status change (owner-directed annotation replaces the ever-red stance) and what stays unratified (the iterate pair).
Replay: all 17 assets against the new budgets → 0 remaining overs. Local axin re-test with the new budgets → GATE: PASS.
Self-checks
python -m py_compileclean on both journey scripts; verdict-exit test green (5 cases)D:/repo/niubash-wt-relfix2onfix/run-38452840701-followups