ttx ab: heal a dirty mesh (tt-smi -r 0 1) before every boot within the run #228
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!228
Loading…
Reference in a new issue
No description provided.
Delete branch "ttx-heal-within-run"
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?
Tooling only. No card-facing paths are touched (
tools/ttx/only), so the cards job skips and nothing boots.Why: in run 7551 (#227, verdict #227 (comment)), three separate boots in a row ended in
container needed SIGKILL.runner.downmarks the mesh dirty (/tmp/ttlock.d/mesh-dirty). However,heal_mesh_if_dirtyonly runs on the next mesh acquire, andttx abholds the mesh for the whole run. So every later boot in that run used an un-reset mesh: g9c2304-mix booted in ~3.5 min on rep 0, then hit the 600 s deadline on rep 1.Change (
tools/ttx/ttxlib/ab.py): before each separate boot and each switch-group boot,ab_switchnow calls the existingN.heal_mesh_if_dirty(host, owner). On a dirty mesh that runssudo tt-smi -r 0 1, checks that both cards are held by…:aband have no containers, clears the marker and settles forMESH_SETTLE_S. On a clean mesh it does a singlecatand nothing else. If the heal is refused, the run aborts (aborted = "mesh heal before boot of … refused") before any further boot, the summary is still written, and the slot is released.Tests (
tools/ttx/tests/test_arm_switch.py):heal_mesh_if_dirtypath issuestt-smi -r 0 1before the nextuponce the SIGKILL marker is set.Local results:
test_arm_switch+test_mesh_heal36/36 OK. Fulltools/ttx/testsrun: 515 tests; the only error istest_seed_symlinkfailing to import outside the nix test env, and it fails the same way on master.verdict: approve
tier: T1 (tooling only —
tools/ttx/ttxlib/ab.py+ tests; no card-facing paths, so the card job green-skips)rationale:
ab_switchnow calls the existingN.heal_mesh_if_dirty(host, owner)before each fresh boot within a run (separate-arm re-boot and switch-group fallback boot), not only at the next mesh acquire. That closes the run-7551/#227 hole where SIGKILL'd stops left the mesh dirty and every later boot in the same run hit the 600 s deadline on an un-reset mesh. The heal path (owner+container pre-checks,tt-smi -r 0 1, settle) is the same code the acquire path already ran under our own slot, and a refused heal aborts the run cleanly before any further boot (summary written, slot released infinally).concerns:
ab.py:222— each refused/dirty heal addsMESH_SETTLE_S(default 120 s) before the next boot. Intended and bounded (one per re-boot, and only when the marker is set); no action needed.Diff is +119/-0, test-covered (3 new cases: heal-before-every-boot, refused-heal-aborts, real
tt-smi -r 0 1path). No secret/vuln patterns.Cards skipped
PR #228
386a7c34f2c0779cb96dbd40d7ed1e36826ccc42(refs/pull/228/head) does not touch card-facing paths (bench/arms/,patches/, kernel/op sources, or.forgejo/workflows/). No card boot. Build out:/nix/store/hbb3j0xxx0pqf760i3p54q54gzgmzpc9-vm-test-run-tenstorrent-serving.agent-gateway closeout (merged): cleared
agent:*labels.Hermes kanban card (if any) is left for Hermes to archive/complete.