Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] update MSBuild performance tests #9231

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

jonathanpeppers
Copy link
Member

It's been a while, since I went through and refactored these tests. After seeing a couple build-time regressions in .NET 9, I think it's overdue.

Removing test cases that likely won't catch an issue:

  • Build_Designer_Change (less concerned about designer now)
  • Build_CSProj_Change

Build_From_Clean_DontIncludeRestore would likely catch similar issues as these two, anyway.

Build_XAML_Change_RefAssembly now uses a net8.0 class library where $(ProduceReferenceAssembly) defaults to true.

Removed a 500ms addition, that only made sense when we supported both "classic" Xamarin.Android and .NET 6+ projects.

Update the time thresholds to be a bit shorter, in general.

It's been a while, since I went through and refactored these tests.
After seeing a couple build-time regressions in .NET 9, I think it's
overdue.

Removing test cases that likely won't catch an issue:

* `Build_Designer_Change` (less concerned about designer now)
* `Build_CSProj_Change`

`Build_From_Clean_DontIncludeRestore` would likely catch similar
issues as these two, anyway.

`Build_XAML_Change_RefAssembly` now uses a `net8.0` class library
where `$(ProduceReferenceAssembly)` defaults to `true`.

Removed a 500ms addition, that only made sense when we supported both
"classic" Xamarin.Android and .NET 6+ projects.

Update the time thresholds to be a bit shorter, in general.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review August 21, 2024 19:48
@jonathanpeppers jonathanpeppers merged commit 284e38a into main Sep 3, 2024
56 of 58 checks passed
@jonathanpeppers jonathanpeppers deleted the MSBuildPerf branch September 3, 2024 13:47
@github-actions github-actions bot locked and limited conversation to collaborators Oct 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants