ci: card runs on the merged tree, fingerprinted (reuse / C1 skip / cards:go / cards-fresh) #226
No reviewers
Labels
No labels
cards:go
hermes-approved
human-approved
human-approved
iter
0
iter
1
iter
2
iter
3
prio:high
prio:low
prio:med
priority/high
state
blocked
state
doing
state
done
state
review
state
todo
x280
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitpartner/tt-stack!226
Loading…
Reference in a new issue
No description provided.
Delete branch "ci-fingerprint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Owner-approved CI design (D. H., 2026-10-09 11:00). Parked: base is
ci-fp-base(a copy of master at91ce5f02) and the title hasWIP:, so no workflow fires (ci.yml only runs on PRs intomaster). To book its card run, retarget the base tomasterand dropWIP:. It touches the ci.ymlcards:job, so it books the cards once.What changes
pull_requestrun checks out the PR head:github.ref=refs/pull/N/head,github.sha= head (see the "Cards skipped" comment on #204), and there is norefs/pull/N/mergeref (git ls-remoteonly lists/head). The cards job now runsscripts/ci-cards.py merge, which merges the current base into the head before measuring and fails closed on a conflict. CONTROL comes from the merged tree, not from the head's ci.yml literal.bench/arms/**(arm specs and models.toml),bench/overlays/**(store manifests),patches/**(overlay trees)tools/ttx/ttx,tools/ttx/ttxlib/**,tools/ttx/lib/**,tools/ttx/clients/**,tools/ttx/slot-reset.shbench/smoke/**,bench/serving-bench.py,bench/batch-equiv-bench.py,bench/gsm8k.py,bench/kv-accuracy.py,bench/fixtures/equiv-corpus-*,bench/fixtures/gsm8k-*,scripts/verify-arm-banners.shcards:job of ci.yml only. An edit to the build job does not re-key.*.md(docs, LEDGER, LEVERS, READMEs),tests/,test_*.py,__pycache__,.claude/,.orig/.rej/.pyc, bench/runs, probes, docs/, modules/, nix/, docker/, other scripts, andscripts/ci-pick-winner.py(changes the verdict, not the measurement; owner 10-09).cards-planjob, no concurrency group). In priority order: label/body-only edit events are ignored → conflict →cards:golabel forces a run (the label is then removed, so re-adding it forces again) → draft (draftor aWIP:/[WIP]title) is skipped → C1 (adds no arm, touches no card file) is skipped → a fingerprint equal to the PR's last successful verdict is reused (statuscards: reused run N) → otherwise the cards run.<!-- tt-cards-verdict {json} -->(only comments from the CI user are trusted), writesci-cards-fingerprint.jsoninto thebench-runsartifact, and sets thecards-freshstatus.cards-fresh.yml(push to master) re-checks every open PR. The Record step also re-checks against the base as it is when the run ends.Tests:
tools/ttx/tests/test_ci_cards.py, 27 tests (pure logic plus a scratch git repo: merge-tree, fingerprint stability across docs moves, re-key on a CONTROL move, conflicts, and plan reuse→stale with a fake Forgejo). It runs in the existing ttx unit-test step.After it lands (owner's call): turn off
block_on_outdated_branchon master and requirecards-fresh. Thecards:golabel now exists.Card queue: #226 is queued right after the rebuilt #201 finishes its card run, before the #59622 repro (order: #220 running → rebuilt #201 → #226 → #59622 repro → #222). Owner-scheduled (D. H. 10-09). When #201's run is done and the mesh is free, I will retarget this PR to
masterand dropWIP:(addingcards:goif no run starts). Nothing fires before then: the base is the parkedci-fp-base.verdict: request_changes
tier: T2
rationale: Sound, owner-approved CI design that strengthens the gate (card runs measure the PR merged onto the base, add fingerprint reuse / C1 skip /
cards:goforce, and acards-freshcommit status), with 27 unit tests covering the pure logic and a scratch-repo end-to-end. No secret leakage, no gate weakening. One functional defect in the Record step breaks the core contract and must be fixed before this can approve.concerns:
.forgejo/workflows/ci.yml:588— theRecord verdict and cards-freshstep reads${{ steps.gate.outcome }}, but thegatestep (id at line 153) has nooutputs:block and its script never writesoutcometo$GITHUB_OUTPUT. Soscripts/ci-cards.py record --outcome ""is always called with an empty outcome; incmd_record,verdict = "success" if a.outcome == "success" else "failure"therefore records every run as a failure. A green card run would be stored as a failure,cards-freshwould stay red, and the fingerprint-reuse path (which keys off the last marker withverdict == "success") could never fire — the whole reuse mechanism is dead. Fix: have thegatestep emit the outcome (e.g.echo "outcome=success" >> "$GITHUB_OUTPUT"on itsexit 0path andoutcome=failureon the measured-but-failed path), or derive the verdict from the step's success/failure in the Record step instead of a missing output..forgejo/workflows/ci.yml:210— the fingerprint step--base "origin/${BASE_REF}"only works because the precedingMerge onto basestep fetchedorigin/<base>(cmd_merge→fetch_base). That is an implicit coupling; if the merge step's fetch is ever reordered or dropped, the fingerprint step fails. Consider an explicit fetch in the fingerprint path or a comment noting the dependency.WIP: ci: card runs on the merged tree, fingerprinted (reuse / C1 skip / cards:go / cards-fresh)to ci: card runs on the merged tree, fingerprinted (reuse / C1 skip / cards:go / cards-fresh)Card gate —
prodvsprod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48#226refrefs/pull/226/headfaadafc491f9a27da8d7e992078b50d01b13472emerged ontomaster(measured tree, fingerprint in the verdict comment)cfx-llm2, slot mesh (card0+card1)/nix/store/hbb3j0xxx0pqf760i3p54q54gzgmzpc9-vm-test-run-tenstorrent-servingttx abexit 0 (3 = aborted: the job fails even if a control record exists); gates exit 0gsm8k / retrieval / equiv do not gate merge. A FAIL below is a report.
Gates
prodequiv: kindMEASUREDverdictpass(bench/runs/ttx-prod-equiv-20261009T121316Z.jsonl)prodgsm8k: kindMEASUREDverdictpass(bench/runs/ttx-prod-gsm8k-20261009T121316Z.jsonl)prodretrieval: kindMEASUREDverdictpass(bench/runs/ttx-prod-retrieval-20261009T121316Z.jsonl)PP tok/s and TG tok/s per user (TG ms/token secondary)
prodprodprodprodprodprodprod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48Records
bench/runs/ttx-ab-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48-switch-20261009T115154Z.jsonlbench/runs/ttx-prod-equiv-20261009T121316Z.jsonlbench/runs/ttx-prod-gsm8k-20261009T121316Z.jsonlbench/runs/ttx-prod-retrieval-20261009T121316Z.jsonlbench/runs/ttx-sweep32k-prod-ab20261009T115154Z-r0.jsonlbench/runs/ttx-sweep32k-prod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48-ab20261009T115154Z-r0.jsonlFull jsonl from this run: https://git.bitp.cz/bitpartner/tt-stack/actions/runs/7580 (artifact
bench-runswhen the upload step ran).Cards verdict: success
89560df22cfb7b44567eae047b2c61c12cc9d32b7e8061d8ed0ebc9779c091e7(CONTROLprod-g2-c86-colpar2-rz3-sl-pfw2-gf-ab-so-dn-d8k16-nhp-tail-k8v4-mtp-stack-warm-kb-cm-so1-kda2-lmlofi-csplit-t0-gdc-cpk-wy-kvd-sddec-cph32-kvfold-dx-w2t-b8k3-cph48, armsprod, 469 card files69ad14ca52adc9d0)faadafc491f9a27da8d7e992078b50d01b13472emerged onto base386a7c34f2c0779cb96dbd40d7ed1e36826ccc42A later event with the same fingerprint reuses this verdict instead of booting the cards.
agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.
Mesh free for the next queued job. #226 card run finished green at 14:31 (run 533, https://git.bitp.cz/bitpartner/tt-stack/actions/runs/533) and #226 is merged (fast-forward, master
35797346). No #226 locks or containers remain on cfx-llm2. Next in the queue: gpool / E gates → #59622 repro → #222.Also now in effect on master:
cards-freshis a required check andblock_on_outdated_branchis off.