-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add debugging of repeated config issues #42085
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
Conversation
- see #41937 - do not skip `SimpleWebSiteWithWebApplicationBuilder.DefaultEnvironment_Is_Development()` - get debug view of server's configuration when that test is going to fail
|
Hi @dougbu. If this is not a tell-mode PR, please make sure to follow the instructions laid out in the servicing process document. |
|
/fyi @javiercn @HaoK @MackinnonBuck @dotnet/aspnet-build I'm going to run this until |
|
Got it in one. I think the important bit of the console log is I do see
Also see the following
Could be something expecting launchSettings.json to work (though it's not copied to the bin/ or publish/ folders), issues setting or reading environment variables, a new issue in configuration precedence (@ericstj have there been any changes in that area❔), or something I don't have enough imagination to speculate about. The relevant code on our side hasn't changed since early May but I may be missing something. The problem doesn't reproduce (at least that I've seen) when testing locally in VS and using Oddly, problems are not consistent. We were not completely on the floor before we started skipping the tests but it was close. @halter73 could this be a delayed impact of fd6ea53 or 4279611❔ @ericstj the general background is template tests and the Mvc test I'm messing w/ in this PR started failing about a week ago in both release/6.0 and main. #41937 doesn't contain much information and this PR is an attempt to root cause the problem. Common symptom in all failing tests mentioned in the issue is a |
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
|
I think the general question here is "where did the I'm going to do a few Mvc functional test runs locally to see if problems reproduce when including everything. My tests yesterday used |
|
@dougbu I think this is probably a subtle regression in hosting at this point, perhaps @halter73 or @captainsafia should investigate where the regression is, but its likely a product bug that's been uncovered here |
The template tests set it on an environment variable. The WebApplicationFactory sets it by default too via code. Something on the Helix environment seems to be overriding that, which is why I was trying to get the debug config listed out on the test. Unfortunately, the test didn't seem to capture the logs. It might be one or two things:
|
|
Confirming that the tests passed locally for me. |
We did get logs in this case. See https://dev.azure.com/dnceng/public/_build/results?buildId=1812519&view=ms.vss-test-web.build-test-results-tab&runId=48177922&resultId=118933&paneView=attachments and my comment above indicating the |
My local tests also passed consistently (ignoring #29597 rearing its ugly head when I used |
Possible but the code is just
This seems more likely to me, especially because 4279611 added another Overall, still really weird the problem doesn't repro locally and it's using the command-line setting, not (say) finding something leftover in environment variables. That said I missed fact Should that "win" even though the |
|
I've been leaving this alone since the aim was to hit the environment problem, not to get things green. Let's continue that until we have an idea of a fix to try out… |
|
There was a Helix agent change (from Windows 11 Preview to Windows 11 RTM) around the time of the first failure (in #20220527.1). However, that first failing build was a scheduled build of I don't see anything much in the recent history of 'main' but I guess something somewhere could now be leaving No, I don't know exactly how the Helix SDK orders work items on agents. Doubt we've changed how we order things in our submissions, especially not in release/6.0. |
- unset `ASPNETCORE_ENVIRONMENT`
|
/azp run aspnetcore-helix-matrix |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
|
/azp run aspnetcore-ci |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Server 2022 is the server equivalent of Windows 11, so if something interesting did happen in the client around your environment variables it could have happened there too. I still feel strongly that this is likely just some stateful change made unintentionally by a previous work item on the same machine though. |
SimpleWebSiteWithWebApplicationBuilder.DefaultEnvironment_Is_Development()