Skip to content

Harden dotnet-trace process probe test - #5950

Merged
hoyosjs merged 1 commit into
mainfrom
juhoyosa/harden-trace-process-probe
Aug 5, 2026
Merged

Harden dotnet-trace process probe test#5950
hoyosjs merged 1 commit into
mainfrom
juhoyosa/harden-trace-process-probe

Conversation

@hoyosjs

@hoyosjs hoyosjs commented Aug 5, 2026

Copy link
Copy Markdown
Member

Make CollectLinuxCommand_Probe_ListsProcesses_WhenNoArgs tolerate the optional unprobeable-process section emitted when an enumerated .NET process exits before diagnostic-port probing.

The sanitizer continues validating the stable probe output while filtering only process rows and the exact optional section heading. There are no product behavior changes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 60755fc2-f7b0-4a1e-baa1-a9b772b7e9be
Copilot AI review requested due to automatic review settings August 5, 2026 04:42
@hoyosjs
hoyosjs requested a review from a team as a code owner August 5, 2026 04:42

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.

Pull request overview

This PR hardens the dotnet-trace Linux probe functional test by making its output sanitizer tolerant of an optional “could not be probed” section that can appear when a discovered process exits before diagnostic-port probing completes. This keeps the test validating stable, expected output while avoiding flakiness from inherently non-atomic process enumeration/probing.

Changes:

  • Updated CollectLinuxProbeSanitizer to filter the optional console heading: “.NET processes that could not be probed:”.
  • Continued filtering process rows (PID-prefixed lines) so the test compares only stable headings/structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/tests/dotnet-trace/CollectLinuxCommandFunctionalTests.cs
@hoyosjs

hoyosjs commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

/ba-g failure is #5910

@hoyosjs
hoyosjs enabled auto-merge (squash) August 5, 2026 06:05

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

fyi @mdh1418

@hoyosjs
hoyosjs merged commit 7395877 into main Aug 5, 2026
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants