Skip to content

SDK suite flake: ENOENT '.relayflow/backlog-picker-entry.json' under vitest parallelism #156

Description

@kjgbot

Now that #153 makes CI run all 26 SDK test files rather than four, this will surface in CI periodically.

Symptom

Error: ENOENT: no such file or directory, open '.relayflow/backlog-picker-entry.json'

Observed once in roughly five full vitest run invocations. Re-runs of the same tree are clean, so it is order/timing dependent rather than a real failure:

run 1:  Test Files  1 failed | 23 passed | 1 skipped (25)
run 2:  Test Files  26 passed | 1 skipped (27)   ← same tree
run 3:  Test Files  26 passed | 1 skipped (27)   ← same tree

Likely cause

The path is relative, so it resolves against the process working directory rather than a per-test temp dir. Under vitest's default parallelism, sibling test files share that directory, so one test can create, consume or remove .relayflow/ while another is midway through using it.

The fix shape is probably to give the test its own temp directory and an absolute path, the way the kernel's fixtures already do, rather than to serialise the suite.

Why file it separately

It is unrelated to the v2 lane PRs; it was simply invisible while CI ran four named files. Noting it so an intermittent red on an unrelated PR is not misdiagnosed as that PR's fault.

Found while verifying #139 and #134 rebases.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions