Repository navigation
Relax flaky assertion in MsbuildRestore_StaticGraphEvaluation_HandlesInvalidProjectFileException (#7555) - #7583
Merged
Conversation
…InvalidProjectFileException (#7555) The test asserted on the full MSB4025 message including the project path, which is not reliably present in the MSBuild restore output and caused intermittent failures. Relax the assertion to match the 'error MSB4025: The project file' prefix instead. Co-authored-by: Copilot <[email protected]> (cherry picked from commit 2c9dd86)
zivkan
approved these changes
Jul 21, 2026
Nigusu-Allehu
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: N/A (engineering / test-only change)
Description
Cherry-pick of #7555 onto
release/7.9.x.MsbuildRestore_StaticGraphEvaluation_HandlesInvalidProjectFileExceptionis flaky on the release branch: it asserted on the full MSB4025 message including the project path, whose exact shape varies by MSBuild version, so it fails intermittently in CI (observed on therelease/7.9.xbuild for the #7581 merge). This relaxes the assertion to the stableerror MSB4025: The project fileprefix, which still verifies the invalid-project-file error is surfaced.PR Checklist