Skip to content

fix(release): run-38452840701 followups - labeled known-fail no longer holds the gate, rr family root-caused and annotated - #329

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/run-38452840701-followups
Oct 13, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/run-38452840701-followups

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

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-theme label. GOLDEN JOURNEY VERDICT: KNOWN-FAIL still 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.txt now 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_target resolves 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):

  • wt80-labeled BAD (via check_with_known_fail, the real path) → verdict known-fail, exit 0, ticket named in the verdict, [KNOWN-FAIL] + BAD lines present in verdict.txt
  • unlabeled BAD → exit 1
  • labeled known-fail PLUS unlabeled fail → still exit 1 (a label never launders an unlabeled red)
  • clean run → 0; unrecognized verdicts → 1

2. 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:

asset runner rr (38452840701) baseline rig dev box new budget
omb.theme:axin 617.5ms 544 1566 1800
omb.theme:clean 441.0 541 1602 1800
omb.theme:simple 540.7 464 1595 1800
omb.theme:sexy 336.5 332 838 1000
bashit.theme:sexy 336.1 330 984 1200
bashit.theme:font 220.5 185 118 260
bashit.theme:sirup 176.1 4.9 140 260

本机单测定性 + 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_compile clean on both journey scripts; verdict-exit test green (5 cases)
  • release.yml parses (10 jobs); the pre-flight step runs before the gate so the exit contract cannot drift
  • budgets.toml parses (tomllib, 26 per-asset overrides); 17/17 replay covered
  • No stash, no force-push; worktree D:/repo/niubash-wt-relfix2 on fix/run-38452840701-followups

…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
caomengxuan666 merged commit 285d87f into master Oct 13, 2026
11 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/run-38452840701-followups branch October 13, 2026 20:26
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.
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