A recorded-host run that ended before its switch fails by name, not at a missing record (martha#227) #243
Loading…
Reference in a new issue
No description provided.
Delete branch "vesta/227-recorded-host-model-record"
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?
Purpose (flake class): a recorded-host run that reported success while the model record its case then read was never
written. This makes such a run fail by name, at the run, instead of at a
readFileSyncENOENT.What run 5176 actually was
ci.ymlon PR 200 (martha#197), run 5176, job "the relay loads in the recorded host", task 17042. The casea_switch_does_not_move_the_owners_default.node-test.ts:173failed with:and took 5.8 s where its two neighbours in the same file took 35 s and 38 s. That is the whole of it: in
5.8 s the setup and
martha starthad been made and the member had already ended — the run answered no modelrequest at all. Nothing was switched, so no model record was owed, and the case read its absence.
The case could not say so, for two reasons:
whatTheRunSawdiscarded the run'sexit_codeand returned whatever it had, so "the member exited before doinganything" was indistinguishable from "the run finished".
owner's settings file was unchanged, which is equally true of a run that did nothing. Its two neighbours assert the
host answered the model command; it did not.
So the red named a missing file in a file the package never touched, and cost martha#197 a round — as filed.
What changed (one file)
whatTheRunSawis handed the request count its script gives it and refuses a run that answered fewer: on a normalearly return with the member's own exit code and the end of its terminal, and by re-throwing the named stop a wait
threw. A stop after every request is answered is still the observation these cases want — that is the host holding
its own switch confirmation open, which the file's own note describes.
Set model to Opus), as its two neighbours already do, soits premise is checked before anything is read off the disk. The three copies of that assertion are now one helper.
theRecordOfsays "no model record was written at " instead of letting the read raise ENOENT, so an absenceis the case's own assertion and it says whether the record is there.
Proof
Driven through the relay script's own command for one file (
node --test,--test-concurrency=1, the force-exit andthe guard), inside the namespace wrapper, with a host binary that exits at once — the shape run 5176 had:
theRecordOfwithENOENT … model/builder.model.jsonafter 2.6 s — the flake reproduced exactly.the run ended after 0 of the 2 model requests its script gives it, so nothing this case asserts was done: martha start exited with 1. The terminal last showed: … The member is not started: … does not load Martha's relay …Offline:
tsc --noEmitclean,eslint --max-warnings=0on the file clean, the file's three cases skip cleanlywithout
MARTHA_RECORDED_HOST(0 fail),check:recorded-host-runs,check:restated-values,check:base-tests --base 74041d92 --head a0b60fef(475 files, every base title at the tip) andcheck:privateall pass.The recorded-host cases themselves run only in
ci.yml's relay job, which is where this change is proved end to end.Refs martha-ai/martha#227, martha-ai/martha#197 (PR 200), PR 200 comment 5407, run 5176 / task 17042.
b478e03f, PR 268) into vesta/227-recorded-host-model-record f442310970