tests: verify the process that survives each launcher cleanup mutation #2214
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2222"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T05:52:23Z.
The startup launcher fixture reported success for the no-cleanup mutation on both Windows PowerShell 5.1 and PowerShell 7 even though its PID check never ran. At
b0669e06the surviving watcher kept the captured output pipe open. Each run hit the 120-second subprocess timeout, and the mutation loop accepted that unrelated failure. I found this while following the timing of the Windows check in #2217.Capture the launcher's stdout and stderr in the fixture's temporary directory so the test can inspect the watcher as soon as PowerShell exits. Run both cleanup mutations with
-Translateand require the diagnostic for the specific process that survived. The unmodified launcher still runs all seven argument, output and exit-code cases under each shell.python -B tests/startup_run_ps1_check.pypassed both shells in 35.06 seconds on local Windows.python -B tests/startup_run_ps1_check.py --text-onlyandgit diff --checkpassed.AI-assisted with Codex (GPT-6.2 Astra xhigh).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T05:56:57Z.
Review: COMMENTED
Review of head
bacd386ff5(tests/startup_run_ps1_check.py only).Findings: 0 P1, 0 P2.
run_problemswith no shell falls back to the text checks. The per-shell loop is simpler and keeps the same behavior.Commands run locally:
python3 tests/startup_run_ps1_check.py: 0 failed (text-only mode on Linux, no PowerShell).python3 tests/docs_links_check.py: pass.python3 tests/bidi_controls_check.py: pass.git diff --check origin/main...HEAD: clean.run_problemstoreturn []. The check failed with "mutant 'no capture and no exit' was not detected" (and 3 more). Reverted.CI:
Build and test on Windows= SUCCESS, which runs the executed PowerShell path. The Linux check also passes.AI-assisted; commands listed were executed locally.