You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(host-conformance): the C3 broken-section-link case depends on readdir order (fails on ext4 VMs, passes on Actions) #3479
test/host-conformance.test.ts > "--status names a symlinked router and a broken section link per host (C3)" failed on a remote free-tier gate (Ubicloud us-east-a2 VM, PR #3471 head cacc600, tree 9e633fcf30ee) with Expected: 1, Received: 0 at test/host-conformance.test.ts:209 (./setup --status exited 0 instead of 1), and failed again on the runner's serial retry on the same VM. The same head passes the test on GitHub Actions (Free Tests run 40340573038) and on a Capy machine. The PR touches neither the qa skill, setup, nor this test.
Diagnosis
The test breaks a section link by deleting the first .md that readdirSync returns under .agents/skills/gstack-qa/sections:
setup --status only counts a section link when the SKILL.md references it as Read \…sections/.md`(the awk regex insetup's _status_install_checks). In qa/SKILL.md, sections/qa-patterns.mdandsections/system-functional.md are referenced only in the table form (| `sections/qa-patterns.md` relative to the installed …), never as Read `sections/…`. So the test's outcome depends on which file readdirSynclists first: on a filesystem that returnsbrowser-setup.mdfirst (sorted order, as on Actions runners and Capy machines) the deleted link is counted and--statusexits 1; on an ext4 directory whose htree hash order putsqa-patterns.mdorsystem-functional.mdfirst, the deleted file is not a counted link,--status` exits 0, and the test fails deterministically on that VM (the hash seed is per filesystem, so the in-run retry fails too).
Fix
Delete a named, always-counted section instead of the first listing entry, e.g. rmSync(join(qa, 'scope.md')), or sort the listing and pick a file that setup's regex counts. Separately, decide whether the two table-only references should count as section links.
Filed from the /ship run of #3471 (review pass 1 rule: findings outside the diff are filed, not fixed in the PR).
Reproduced on a Capy machine where the test normally passes: replacing readdirSync(qa).find(n => n.endsWith('.md'))! with 'qa-patterns.md' fails the same way (Expected: 1, Received: 0 at line 209); replacing it with 'scope.md' passes. So the outcome depends only on which section file is deleted, and the remote gate VM's readdirSync order picks one of the two table-only-referenced files. A second fresh VM (ubirun-md63314ff-1793026488, us-east-a2) failed identically, so on that image it is deterministic, not flaky.
Activity
capy-ai commentedon Oct 26, 2026
Reproduced on a Capy machine where the test normally passes: replacing
readdirSync(qa).find(n => n.endsWith('.md'))!with'qa-patterns.md'fails the same way (Expected: 1, Received: 0at line 209); replacing it with'scope.md'passes. So the outcome depends only on which section file is deleted, and the remote gate VM'sreaddirSyncorder picks one of the two table-only-referenced files. A second fresh VM (ubirun-md63314ff-1793026488, us-east-a2) failed identically, so on that image it is deterministic, not flaky.test(host-conformance): delete a named section in the C3 broken-link …
test(host-conformance): delete the named scope.md in the C3 broken-li…
v1.91.252.0 feat(retro): factory scorecard (lead time, gate cost, red…
test: take main's host-conformance C3 fix (#3479) so the remote gate …
test: take main's host-conformance C3 fix (#3479) so the remote gate …
v1.91.258.0 feat(capy-install): project floor, --for none, WARN for b…
v1.91.259.0 feat(ubicloud): /ubicloud skill with TTL-named VMs and a …
v1.91.263.0 feat(ship-queue): screens read from the run, train watch/…