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.
Now that #153 makes CI run all 26 SDK test files rather than four, this will surface in CI periodically.
Symptom
Observed once in roughly five full
vitest runinvocations. Re-runs of the same tree are clean, so it is order/timing dependent rather than a real failure: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.