Skip to content

fix: stabilize debug-tool test against windows shell flake - #4524

Merged
aheritier merged 1 commit into
docker:mainfrom
dgageot:fix/windows-debug-tool-flake
Oct 6, 2026
Merged

aheritier merged 1 commit into
docker:mainfrom
dgageot:fix/windows-debug-tool-flake

Conversation

@dgageot

@dgageot dgageot commented Oct 5, 2026

Copy link
Copy Markdown
Member

Four Windows CI runs failed in TestDebugToolCommand/selected_agent_and_deferred_tool with empty-output 30s timeouts, and the same commit passed on a same-commit rerun, pointing at an intermittent hang in the native shell invocation rather than a logic bug. The exact Windows-side cause of the shell timeout was never pinned down, and native Windows wasn't run locally to confirm it, so this avoids guessing at a shell fix and instead removes the flaky dependency from this particular test case.

The deferred-tool fixture for the helper agent now uses the filesystem toolset restricted to read_multiple_files instead of shell. The test still exercises the same selected-agent/deferred-tool dispatch path it was written for, just through a different helper-only tool, and it asserts the real hello.txt content, wrong-agent rejection, and catalog ownership/schema the same way the shell version did. TestDebugToolsetsCommand_IncludesDeferredTools was tightened similarly, now asserting the deferred tool is owned by helper specifically rather than just discoverable somewhere in the output.

Shell execution itself is still covered by other tests in this file, so no coverage is lost; this just stops one specific assertion from depending on a real shell process on Windows. No production code changed, no timeout was bumped, and nothing was skipped on Windows. This is unrelated to the TUI changes in #4523.

@dgageot
dgageot requested a review from a team as a code owner October 5, 2026 15:57
@aheritier aheritier added area/cli CLI commands, flags, output formatting kind/fix PR fixes a bug (maps to fix:). Use on PRs only. labels Oct 5, 2026
@aheritier
aheritier added this pull request to the merge queue Oct 6, 2026
Merged via the queue into docker:main with commit 2856980 Oct 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli CLI commands, flags, output formatting kind/fix PR fixes a bug (maps to fix:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants