worktrunk icon indicating copy to clipboard operation
worktrunk copied to clipboard

`affected` failing on `main` (push)

Open worktrunk-bot opened this issue 2 weeks ago • 1 comments

affected failed on main: run 44269660924 on af889698fbce, triggered by push.

This issue tracks affected's push runs on main until one passes. Tend triages it whenever it opens or reopens: it fixes causes directly or delegates them to separate issues, links each repair issue or PR here, and closes this issue once the failures are diagnosed. The next failed run reopens it with a comment, and a failed run after a pass files a new report.

worktrunk-bot avatar Nov 18 '26 09:11 worktrunk-bot

Diagnosed run 44269660924 as a transient pwsh crash on the macOS runner, not a project defect. Nothing is filed and nothing is left unowned, so I'm closing this report. If the lane fails again, the next failed run reopens it.

Only collect affected coverage (macos) failed. Two tests failed in the same second, and in both, pwsh exited with only Stack overflow. on stderr and nothing on stdout:

  • shell_powershell::test_powershell_wrapper_no_stray_exit_code_on_stdout
  • shell_powershell::test_powershell_wrapper_passes_short_flags_through

Why I classified it as transient:

  • The code under test can't recurse. Both tests set WORKTRUNK_BIN to a mock .ps1, so the wrapper in templates/powershell.ps1 runs & $wtBin @args directly. It never calls the wt function, so it has no way to recurse into itself.
  • Same commit, same image, both passed. ci passed at the same commit, af889698 (#4840, which only changes the summary cache directory). The previous affected run, 44265497077, passed all 5514 tests on the same runner image (macos-26-arm64, 20261102.0473.1).
  • It hasn't happened anywhere else. None of the 62 most recent failed ci, affected and coverage runs contain Stack overflow except this one.
  • It doesn't reproduce locally. On Linux with pwsh 7.6.10, all 7 shell_powershell tests pass, and the two failing tests passed 15 repeated runs. macOS itself wasn't tested.

worktrunk-bot avatar Nov 18 '26 09:11 worktrunk-bot