Skip to content

CSV walk test: wait on the walk, not whatever the caller monitors first - #245

Merged
deepfates merged 1 commit into
mainfrom
claude/csv-walk-test
Sep 28, 2026
Merged

deepfates merged 1 commit into
mainfrom
claude/csv-walk-test

Conversation

@deepfates

Copy link
Copy Markdown
Owner

"a CSV walk ends when its caller is killed" (test/datasets_contract_test.exs) failed on #243's CI with assert_receive {:DOWN, ^ref, :process, ^walk, :killed} timing out. The pid it waited on was #PID<0.53.0>.

The helper took the caller's first monitor to be the CSV walk. While the caller reads the file, it briefly monitors the file server too. When that monitor came first, the test watched the file server, which of course never died.

The helper now picks the monitored process whose current stack is in Imp.Datasets or Imp.CSV, and retries until it finds one. It is a test-only change.

  • test/datasets_contract_test.exs: 22 tests, 0 failures.
  • The killed-caller test passed 100 repeats (--repeat-until-failure 100).
  • I couldn't reproduce the wrong pick on demand. The CI failure above is the only evidence of it.

@deepfates
deepfates merged commit 366e017 into main Sep 28, 2026
10 checks passed
@deepfates
deepfates deleted the claude/csv-walk-test branch September 28, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant