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 WhenSpecificDataSourceIsIgnoredViaIgnoreMessageProperty #4553

Merged
merged 5 commits into from
Jan 8, 2025

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Jan 8, 2025

So far this fixes part of the flakiness #4544. It's still flaky though.

@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.34%. Comparing base (e8edc35) to head (b05ffaa).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4553      +/-   ##
==========================================
+ Coverage   65.31%   65.34%   +0.02%     
==========================================
  Files         591      591              
  Lines       35570    35570              
==========================================
+ Hits        23233    23242       +9     
+ Misses      12337    12328       -9     
Flag Coverage Δ
Debug 65.34% <ø> (+0.02%) ⬆️
integration 62.07% <ø> (+0.02%) ⬆️
production 65.34% <ø> (+0.02%) ⬆️
unit 65.34% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 4 files with indirect coverage changes

Evangelink
Evangelink previously approved these changes Jan 8, 2025
@Youssef1313
Copy link
Member Author

All green. @Evangelink I'll do another run to be more sure. And we will monitor the runs after merge and look if the test failed again.

@Youssef1313
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

if (!lockTaken)
{
// Can this happen? :/
throw new InvalidOperationException();
Copy link
Member

Choose a reason for hiding this comment

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

Rarely but I think yes
cc @MarcoRossignoli

Copy link
Member

Choose a reason for hiding this comment

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

I am fine with throwing the Unreachable here.

Comment on lines +77 to +78
// SystemConsole.ConsoleOut is set only once in static ctor.
// So we are sure we will be doing Monitor.Exit on the same instance.
Copy link
Member Author

Choose a reason for hiding this comment

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

I think I need to doc this more, and mention that it's to avoid interleaving with user's calls to Console.WriteLine, which will internally lock on Console.Out.

Copy link
Member

Choose a reason for hiding this comment

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

I'll merge this as-is for now to unblock main CI that is currently blocked so we unblock DotNet sdk

Copy link
Member Author

Choose a reason for hiding this comment

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

I already extended the comment so this comment wasn't valid anymore actually :)

@Youssef1313
Copy link
Member Author

@Evangelink It's passing again. The only failure in this run is unrelated to terminal (TestCleanup_WhenTimeoutExpires_TestCleanupIsCanceled_AttributeTakesPrecedence) and is known to fail from time to time.

@Youssef1313
Copy link
Member Author

Pushed a commit for more explanation, and triggering a third run :)

@Evangelink Evangelink merged commit 9682c1d into main Jan 8, 2025
10 checks passed
@Evangelink Evangelink deleted the dev/ygerges/flaky-fix branch January 8, 2025 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants