Skip to content

Use RemoteExecutor for fake CLI process. - #7875

Merged
Mitch Denny (mitchdenny) merged 2 commits into
mainfrom
mitchdenny/fix-windows-stubprocess
Mar 4, 2025
Merged

Mitch Denny (mitchdenny) merged 2 commits into
mainfrom
mitchdenny/fix-windows-stubprocess

Conversation

@mitchdenny

@mitchdenny Mitch Denny (mitchdenny) commented Mar 4, 2025 •

Copy link
Copy Markdown
Member

Removes StubProcess and uses RemoteExecutor instead to improve test reliability/simplicity.

Copilot AI review requested due to automatic review settings March 4, 2025 05:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This pull request updates the Windows StubProcess implementation to use a long-running ping command instead of a cmd.exe trick.

  • Replaces the ProcessStartInfo FileName from cmd.exe to ping.exe
  • Updates the Arguments from "/c set /p discard=WaitingUntilDeath" to "-t 127.0.0.1"

Reviewed Changes

File Description
tests/Aspire.Cli.Tests/Helpers/StubProcess.cs Replaces outdated Windows StubProcess implementation with a long-running ping command

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread tests/Aspire.Cli.Tests/Helpers/StubProcess.cs Outdated

@davidfowl David Fowler (davidfowl) left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont trust it, but approving it 😄

@mitchdenny Mitch Denny (mitchdenny) changed the title Fix Windows StubProcess implementation. Use RemoteExecutor for fake CLI process. Mar 4, 2025
@mitchdenny
Mitch Denny (mitchdenny) enabled auto-merge (squash) March 4, 2025 06:06
@mitchdenny
Mitch Denny (mitchdenny) merged commit 3211e52 into main Mar 4, 2025
@mitchdenny
Mitch Denny (mitchdenny) deleted the mitchdenny/fix-windows-stubprocess branch March 4, 2025 06:21
@github-actions github-actions Bot added the area-integrations Issues pertaining to Aspire Integrations packages label Mar 10, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-integrations Issues pertaining to Aspire Integrations packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants