Skip to content

Fix template tests #27948

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

Merged
merged 2 commits into from
Nov 20, 2020
Merged

Fix template tests #27948

merged 2 commits into from
Nov 20, 2020

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Nov 18, 2020

No description provided.

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Nov 18, 2020
@HaoK HaoK requested a review from a team November 20, 2020 02:21
@HaoK HaoK marked this pull request as ready for review November 20, 2020 02:21
@HaoK
Copy link
Member Author

HaoK commented Nov 20, 2020

Looks like the magic sauce that was needed was a passing ChromeOptions --ignore-certificate-errors

@HaoK HaoK changed the title Turn on template tests for investigation Fix template tests Nov 20, 2020
@captainsafia
Copy link
Member

@HaoK What was going on here? I assume that some certificate errors caused the pages not to load which caused the "did page load" test that we have on most cases?

Copy link
Member

@SteveSandersonMS SteveSandersonMS left a comment

Choose a reason for hiding this comment

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

Great to see this!

@HaoK
Copy link
Member Author

HaoK commented Nov 20, 2020

I'm not sure what changed to cause things to break completely, it looks like there was already code that tried to handle certificate errors with only the edge driver. It finally was obvious what was going on when I ran 'dotnet dev-certs https --trust' manually on my machine as an random attempt to see if that would help, that seemed to unblock the tests, so then just disabling the warning did the trick. Maybe various chrome updates/selenium updates resulted in the behavior changing over time, it looks like these tests fail every 3 ci runs generally, so my guess is there's something external that affects the dev cert trust that only runs once in a while. Regardless, this option seems to make the tests independent of whether the dev cert is trusted now

@HaoK
Copy link
Member Author

HaoK commented Nov 20, 2020

The good news is that the localdb auth tests were failing 100% of the time without this change so this is definitely helping

@captainsafia
Copy link
Member

@HaoK I see. Nice find. Thanks for the explanation.

@@ -27,7 +27,6 @@ public BlazorServerTemplateTest(ProjectFactoryFixture projectFactory, BrowserFix
public Project Project { get; private set; }

[Fact]
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/20172")]
Copy link
Member

Choose a reason for hiding this comment

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

nit: you aren't supposed to remove this after potentially fixing a test, you should wait at least 30 days and whoever is on build ops will eventually remove it from quarantine if it's been passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
4 participants