-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix HttpHandlerDiagnosticListenerTests.TestW3CHeadersTraceStateAndCorrelationContext #112753
base: main
Are you sure you want to change the base?
Fix HttpHandlerDiagnosticListenerTests.TestW3CHeadersTraceStateAndCorrelationContext #112753
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
@antonfirsov the issue #112426 is opened against .NET 8.0. This PR will force closing the issue which will make the failure still show in .NET 8 builds. Will you port this fix to 8.0 and possibly 9.0? CC @noahfalk |
Sure, thanks for the heads-up! |
@@ -145,6 +145,7 @@ public async Task TestBasicReceiveAndResponseEvents() | |||
} | |||
} | |||
|
|||
[ActiveIssue("https://github.com/dotnet/runtime/issues/112792")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost missed that this test is also failing. It seems to be a product bug, disabling for now. cc @tarekgh in case you have concerns.
/azp run runtime-libraries-coreclr outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
It's unclear to me how did this test pass before, but given it's testing W3C tracestate format behavior on .NET Framework,
ActivityIdFormat.W3C
should be explicitly set asDefaultIdFormat
in the test. This will ensure that theRequest-Id
header (that is specific to the Hierarchical format) will be absent, making the last Assert pass.Fixes #112426