Skip to content

test(host-conformance): the C3 broken-section-link case depends on readdir order (fails on ext4 VMs, passes on Actions) #3479

Closed

Description

@capy-ai

Symptom

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:

const qa = join(src, '.agents/skills/gstack-qa/sections');
rmSync(join(qa, readdirSync(qa).find(n => n.endsWith('.md'))!));

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).

Activity

  1. added
    bug
    on Oct 26, 2026
  2. capy-ai commented on Oct 26, 2026

    @capy-ai
    ContributorAuthor

    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.

  3. added 2 commits that reference this issue on Oct 26, 2026
    fd468eb
    63c4530
  4. added a commit that references this issue on Oct 26, 2026
    8663c3d
  5. added 2 commits that reference this issue on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions