Skip to content

[windows-integration] Bound Windows CLI integration output capture #71557

Done

Description

@github-actions

Overview

Static review found one remaining unbounded wait in the Windows integration workflow. The CLI process has an exit timeout, but the output readers can still keep the job waiting after that process exits.

Finding

In .github/workflows/windows-cli-integration.yml, Invoke-CliProcess calls ReadToEndAsync() for stdout and stderr, then uses unbounded GetAwaiter().GetResult() calls after WaitForExit($TimeoutMs) succeeds. If another process inherits either redirected handle, the CLI process can exit while a reader remains open, leaving the integration step hung without the TIMEOUT diagnostic.

Requested update

Bound stdout and stderr draining after process exit, report a clear timeout with the command, elapsed time, and captured output, and add a regression scenario for the parent-exited/pipe-still-open case. Keep the total wait bounded even during cleanup.

Review detail

The existing timeout branch already bounds cleanup reads after killing a timed-out process (lines 149–155). The success branch at lines 158–160 does not apply a corresponding bound to either reader task.

References: §40063671953

Generated by 🪟 Daily Windows Terminal Integration Builder · codex · gpt60 · ~1 AIC · ⌖ ~1 AIC · ⊞ 15.2K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions