Skip to content

Stabilize CLI descendant cleanup tests across process exit - #911

Open
renkun-ken wants to merge 1 commit into
masterfrom
codex/stabilize-cli-descendant-test
Open

renkun-ken wants to merge 1 commit into
masterfrom
codex/stabilize-cli-descendant-test

Conversation

@renkun-ken

Copy link
Copy Markdown
Member

The CLI backend test starts a worker and its child, then checks that both exit after cancellation, supersession, shutdown, worker failure, or timeout. On a busy runner, the test could read an incomplete readiness file or look up a PID after the timeout had already reaped the process.

The fixture now records each PID and creation time while both processes are alive, then publishes the completed file with a rename. The test uses those identities to verify cleanup, including when a PID has since been reused.

Extracted from #896 so this test fix can be reviewed independently. All 28 assertions in test-backends-cli.R passed locally on R 4.6.1.

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