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

xds: Fix flaky test TestUnmarshalListener_WithUpdateValidatorFunc #7675

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

arjan-bal
Copy link
Contributor

Fixes: #7599

This change ensures that the server has started listening for requests by wrapping the listener passed to server.Serve()
Verified that the test no longer flakes in 100000 runs on forge.

RELEASE NOTES: N/A

@arjan-bal arjan-bal added Type: Testing Area: Testing Includes tests and testing utilities that we have for unit and e2e tests within our repo. labels Sep 27, 2024
@arjan-bal arjan-bal added this to the 1.68 Release milestone Sep 27, 2024
@arjan-bal arjan-bal requested a review from easwars September 27, 2024 09:27
Copy link

codecov bot commented Sep 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.95%. Comparing base (e7a8097) to head (3b1b79c).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7675      +/-   ##
==========================================
+ Coverage   81.80%   81.95%   +0.15%     
==========================================
  Files         361      361              
  Lines       27821    27822       +1     
==========================================
+ Hits        22758    22802      +44     
+ Misses       3862     3835      -27     
+ Partials     1201     1185      -16     

see 33 files with indirect coverage changes

select {
case <-readyLis.serverReady.Done():
case <-time.After(defaultTestTimeout):
t.Fatalf("Timed out while waiting for the back end server to start")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: s/back end/backend

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: s/to start/to start serving/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the error message as suggested.

@easwars easwars assigned arjan-bal and unassigned easwars Oct 1, 2024
@arjan-bal arjan-bal merged commit 67e47fc into grpc:master Oct 3, 2024
14 checks passed
@arjan-bal arjan-bal deleted the fix-flaky-test branch October 3, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Testing Includes tests and testing utilities that we have for unit and e2e tests within our repo. Type: Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky Test: xds/TestUnmarshalListener_WithUpdateValidatorFunc
2 participants