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

xdsclient: deflake TestADS_ResourcesAreRequestedAfterStreamRestart #7720

Conversation

easwars
Copy link
Contributor

@easwars easwars commented Oct 9, 2024

Reasons for the flake:

  • The resource names requested from the management server were written on to a channel in a non-blocking fashion. This meant that the most recently requested names were not always available.
  • A goroutine leak was also happening in some cases because the test was not reading the updates delivered to the resource watcher.

The fix addresses both of the above issues. It also improves the error message when the test times out waiting for a response that matches expectation.

Fixes #7714

#a71-xds-fallback
#xdsclient-refactor

RELEASE NOTES: none

@easwars easwars requested review from zasweq and purnesh42H October 9, 2024 22:02
@easwars easwars added this to the 1.68 Release milestone Oct 9, 2024
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.96%. Comparing base (4115c21) to head (7df46ec).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7720      +/-   ##
==========================================
+ Coverage   81.78%   81.96%   +0.17%     
==========================================
  Files         361      361              
  Lines       27825    27825              
==========================================
+ Hits        22758    22807      +49     
+ Misses       3864     3829      -35     
+ Partials     1203     1189      -14     

see 22 files with indirect coverage changes

@zasweq zasweq assigned easwars and unassigned zasweq Oct 9, 2024
@easwars easwars merged commit fdc2ec2 into grpc:master Oct 9, 2024
14 checks passed
@easwars easwars deleted the flaky_Test_ADS_ResourcesAreRequestedAfterStreamRestart branch October 9, 2024 23:57
janardhanvissa pushed a commit to janardhanvissa/grpc-go that referenced this pull request Oct 15, 2024
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.

Flaky Test: ADS_ResourcesAreRequestedAfterStreamRestart
3 participants