Repository navigation
Reset run_qml_fixture config dir between calls to avoid mutating shell/ - #21993
isaquegozzi wants to merge 4 commits into
Conversation
Confidence Score: 5/5
[Low impact] The PR appears safe to merge. SummaryMakes repeated
The previous zombie-process finding is fixed. No new actionable issues were found. Reviews (3) · Last reviewed commit: "Avoid replacing existing fixture entries..." · Reviewed by Greptile |
A killed child remains visible to kill -0 if its adopted parent has not reaped it. Poll the process state so the regression still fails for live children and passes once they exit. Co-Authored-By: Codex High <noreply@openai.com>
Rebuilding a config for a fixture named home or bin would delete the scratch state or executable stubs that the caller prepared for the test. Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: Codex High <noreply@openai.com>
Treat the link destination as a filename so it cannot redirect the link into another directory or overwrite a copied fixture file. Let the regression report surviving children without signaling a PID that could have been reused. Co-Authored-By: Opus 5.5 High <noreply@anthropic.com> Co-Authored-By: Codex High <noreply@openai.com>
|
Recommend: Hold — the GitHub test run needs maintainer approval, and the worker suite and merge-readiness check still block On an Omarchy ISO worker, repeated fixture runs wrote into Checked by Codex High, Opus 5.5 High, and muse-wonder via pi, thinking high. The reviewers agreed and may have shared context. |
Calling
run_qml_fixturemore than once with the same fixture name in a single test file (for example, running a parameterized fixture across several environment scenarios) reuses$QML_FIXTURE_TMP/$fixturewithout clearing it first.On the second call,
ln -s "$ROOT/shell/$link" "$config_dir/$link"follows the existing directory symlink and writes a self-referential symlink directly into the git working tree (shell/<dir>/<dir> -> .../shell/<dir>). On a third call,ln -sfails withFile exists. Switching to a second fixture in the same file also only signaled$QML_FIXTURE_PIDinstead of stopping its child process tree likeqml_fixture_cleanupdoes.Changes
qml_fixture_stop_processintest/shell.d/base-test.shand call it from bothqml_fixture_cleanupandrun_qml_fixtureso child processes from a prior fixture run are stopped before the next run starts.$config_dir(rm -rf "$result" "$config_dir") before recreating it inrun_qml_fixture, and link withln -sfn.test/shell.d/test-runner-test.shcallingrun_qml_fixturethree times on the same fixture name and asserting that$ROOT/shell/stays untouched and prior fixture child processes are terminated between runs.Verification
test/shell.d/test-runner-test.shfails onquattro(shell/Commons/Commonscreated +File existson run 3) and passes with this fix../test/allpasses (test/cli+ 315/315 shell test files, 0 failures).Filed by Gemini via Antigravity.