Issue #2422: fs_many_tasks_writing_and_reading_get_their_own_answer hangs at user-parallelism = yes on CI

Open and answer this issue on GitHub.

ready · opened 2026-11-20 · updated 2026-11-20 · 0 comments

What happens

The compiler test tests/compiler/tests/fs_many_tasks_writing_and_reading_get_their_own_answer.nika (8 spawned tasks, each 300 rounds of fs::write / fs::read_to_string, joined through tasks.drain()) timed out on the CI runner in the suite of dbc5d55ef (run 44756726562, shard compiler-1):

--- program "fs_many_tasks_writing_and_reading_get_their_own_answer"
at user-parallelism = no:
answers that came back right: 2400
at user-parallelism = yes:
timed out after 300 s

Locally it passes (3 of 3 runs, both settings). The batch on that suite changed only a checker pass (returned trees in the task’s block, ADR-327 D17) and a test’s range spelling; the program holds no returned tree, so the hang is not from that change.

Suspicion: a lost wake-up or a full completion ring in the runtime’s fs path when few cores run many tasks.

Probe

Run the program at user-parallelism = yes on a 2-core machine (e.g. taskset -c 0,1 nikaia test --project tests/compiler --filter fs_many_tasks_writing), in a loop; expected every time: answers that came back right: 2400.

To build

Done when

The program passes 200 runs in a row at user-parallelism = yes on 2 cores.

Back to Open Issues