Skip to content

Add retries to VerifySourcelinks test and log exit code and elapsed time#5479

Merged
akoeplinger merged 2 commits intomainfrom
verifysourcelink
Mar 16, 2026
Merged

Add retries to VerifySourcelinks test and log exit code and elapsed time#5479
akoeplinger merged 2 commits intomainfrom
verifysourcelink

Conversation

@akoeplinger
Copy link
Copy Markdown
Member

Contributes to #5259

@akoeplinger akoeplinger requested a review from steveisok March 15, 2026 16:02
@akoeplinger akoeplinger requested review from a team as code owners March 15, 2026 16:02
Copilot AI review requested due to automatic review settings March 15, 2026 16:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 addresses flakiness in VerifySourcelinks by retrying failed sourcelink validations and improving failure diagnostics (exit code and elapsed time), aligning with dotnet/dotnet #5259.

Changes:

  • Add per-PDB retries in ValidateSymbols to reduce intermittent sourcelink verification failures.
  • Extend failure reporting to include the sourcelink tool exit code and per-file elapsed time.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment thread test/Microsoft.DotNet.SourceBuild.Tests/SourcelinkTests.cs
Comment thread test/Microsoft.DotNet.SourceBuild.Tests/SourcelinkTests.cs
Comment thread test/Microsoft.DotNet.SourceBuild.Tests/SourcelinkTests.cs
@akoeplinger akoeplinger enabled auto-merge (squash) March 15, 2026 16:44
Use ?. operator for Process access with -1 default exit code,
and ?? operator for StdOut/StdErr to fix CS8602 and CS8620.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@akoeplinger akoeplinger merged commit 3ccdcc4 into main Mar 16, 2026
11 checks passed
@akoeplinger akoeplinger deleted the verifysourcelink branch March 16, 2026 17:37
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