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

[ASP.NET] Remove versions from baselines #29093

Merged
merged 1 commit into from
Nov 18, 2022

Conversation

javiercn
Copy link
Member

This PR changes how we perform baseline comparisons by removing the artifacts from the generated baselines and comparing the templates against each other instead of applying certain values to the templates

@dotnet-issue-labeler dotnet-issue-labeler bot added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Nov 16, 2022
Comment on lines +76 to +84
switch (comparisonMode)
{
case GroupComparisonMode.Exact:
break;
case GroupComparisonMode.AllowAdditionalAssets:
break;
default:
break;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: we plan to allow tests to pass even if the baselines do not exactly match in some circumstances (like if there are additional dlls and so on).

For that, we will compare the list of assets by groups of assets instead of as a flat list and apply different validation rules to each group.

@javiercn javiercn marked this pull request as ready for review November 17, 2022 21:17
@javiercn javiercn requested a review from a team as a code owner November 17, 2022 21:17
@javiercn javiercn requested a review from TanayParikh November 17, 2022 21:17
@javiercn javiercn force-pushed the javiercn/remove-versions-from-baselines branch from 9c9ddcb to 676ef5f Compare November 17, 2022 21:21
Copy link
Contributor

@TanayParikh TanayParikh left a comment

Choose a reason for hiding this comment

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

🏆

@javiercn
Copy link
Member Author

There seem to be a set of unrelated tests that are consistently failing.

image

Going to merge as these changes should not affect those tests.

@javiercn javiercn enabled auto-merge (squash) November 18, 2022 10:33
@javiercn javiercn disabled auto-merge November 18, 2022 10:38
* Updates the way the baselines are compared to generate
  a template of the baselines from the current manifest
  and compare it against the existing template instead of
  applying the current versions to the baseline and comparing
  it against the generated manifest.
* Removes all the versions and hashes from all the files Wed
  generate.
* Splits the code for generating and comparing the baselines
  into their own classes for better maintenance.
* Updates the baselines to reflect the new format.
@javiercn javiercn force-pushed the javiercn/remove-versions-from-baselines branch from 676ef5f to 45d4a57 Compare November 18, 2022 10:41
javiercn added a commit that referenced this pull request Nov 18, 2022
* Updates the way the baselines are compared to generate
  a template of the baselines from the current manifest
  and compare it against the existing template instead of
  applying the current versions to the baseline and comparing
  it against the generated manifest.
* Removes all the versions and hashes from all the files Wed
  generate.
* Splits the code for generating and comparing the baselines
  into their own classes for better maintenance.
* Updates the baselines to reflect the new format.
javiercn added a commit that referenced this pull request Nov 18, 2022
* Updates the way the baselines are compared to generate
  a template of the baselines from the current manifest
  and compare it against the existing template instead of
  applying the current versions to the baseline and comparing
  it against the generated manifest.
* Removes all the versions and hashes from all the files Wed
  generate.
* Splits the code for generating and comparing the baselines
  into their own classes for better maintenance.
* Updates the baselines to reflect the new format.
javiercn added a commit that referenced this pull request Nov 18, 2022
* Updates the way the baselines are compared to generate
  a template of the baselines from the current manifest
  and compare it against the existing template instead of
  applying the current versions to the baseline and comparing
  it against the generated manifest.
* Removes all the versions and hashes from all the files Wed
  generate.
* Splits the code for generating and comparing the baselines
  into their own classes for better maintenance.
* Updates the baselines to reflect the new format.
@nagilson
Copy link
Member

Thanks for this PR, the watch tests are unrelated and being tracked here: #29099

@javiercn
Copy link
Member Author

@nagilson unfortunately this is blocking me from merging.

@mkArtakMSFT
Copy link
Member

@marcpopMSFT can you force-merge this given that the cause for failures is known and is being tracked separately?

javiercn added a commit that referenced this pull request Nov 18, 2022
* Updates the way the baselines are compared to generate
  a template of the baselines from the current manifest
  and compare it against the existing template instead of
  applying the current versions to the baseline and comparing
  it against the generated manifest.
* Removes all the versions and hashes from all the files Wed
  generate.
* Splits the code for generating and comparing the baselines
  into their own classes for better maintenance.
* Updates the baselines to reflect the new format.
@marcpopMSFT marcpopMSFT merged commit ac8b0e8 into main Nov 18, 2022
@marcpopMSFT marcpopMSFT deleted the javiercn/remove-versions-from-baselines branch November 18, 2022 21:48
@marcpopMSFT
Copy link
Member

I have used the force

marcpopMSFT added a commit that referenced this pull request Nov 18, 2022
…aselines-7200

[ASP.NET] Remove versions from baselines (#29093)
marcpopMSFT added a commit that referenced this pull request Nov 29, 2022
…aselines-6100

[ASP.NET] Remove versions from baselines (#29093)
marcpopMSFT added a commit that referenced this pull request Nov 29, 2022
…aselines-7100

[ASP.NET] Remove versions from baselines (#29093)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants