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

Fix flaky parser tests #19571

Merged
merged 1 commit into from
Aug 9, 2021
Merged

Fix flaky parser tests #19571

merged 1 commit into from
Aug 9, 2021

Conversation

sfoslund
Copy link
Member

@sfoslund sfoslund commented Aug 6, 2021

Some parser tests that check what arguments are being passed to MSBuild are failing because an extra parameter along the lines of -distributedlogger:Microsoft.DotNet.... is being added occasionally. This argument comes from telemetry logic and can be removed by setting the current session id to null in tests: https://github.com/dotnet/sdk/blob/main/src/Cli/dotnet/commands/dotnet-msbuild/MSBuildForwardingApp.cs#L26

Fixes #19544

@joeloff
Copy link
Member

joeloff commented Aug 6, 2021

We saw this yaml file failure earlier today and then it magically worked when we reran another SDK build

@sfoslund sfoslund merged commit c8332c3 into dotnet:main Aug 9, 2021
@sfoslund sfoslund deleted the FlakyTestFix branch August 9, 2021 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More tests flaky due to same issue with distributed logger on the end of the command
2 participants