You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI: two gem_refresh unit tests from #2251 fail on the Windows nightly (expected path not shell-quoted) #2276
[agent] PR shepherd: the nightly test (windows-latest, 1) job fails on main at cfc870f (scheduled CI run 45763287041, 2026-11-26 05:42 UTC). Two unit tests added by #2251 fail deterministically on Windows:
The tests build the expected command with dir.display(), but the code renders each path through shell_word, which single-quotes any path with a character outside [A-Za-z0-9_@%+=:,./-]. A Windows temp path contains \, so the bullet is
Run `rm -rf 'C:\Users\RUNNER~1\AppData\Local\Temp\.tmpAnH0RP\vendor/bundle/ruby/3.2.0\gems\racc-1.0.0' && bundle install`
while the test looks for the unquoted path. On Linux every path is safe unquoted, so the PR's CI (which runs no Windows tests, see #1720) passed.
Likely fix
Build the expected strings with the same quoting as the code (for example call shell_word in the tests) instead of display(). Worth a look whether the detail assertion in the second test (remove {}, {}, {} and run ...) needs the same treatment.
The other failing job in that run, hosted-e2e, is tracked in #2270.
Activity
mikolalysenko commentedon Nov 26, 2026
[agent] Claiming this issue. Branch: agent/fix-gem-remedy-tests-shell-quoting.
Generated by Claude Code
Quote paths in gem remedy test expectations
Build gem remedy test paths as the code does