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

clusterresolver/e2e_test: Avoid making real DNS requests in TestAggregateCluster_BadEDS_BadDNS #7669

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

arjan-bal
Copy link
Contributor

@arjan-bal arjan-bal commented Sep 24, 2024

Fixes: #7354

The test is presently making a real DNS request for a non existing domain bad.ip.v4.address. This makes the test non-hermitic and could be the cause of the test flaking. This change makes the test use a fake resolver to avoid making real DNS requests.

A similar fix was made for TestAggregateCluster_BadDNS_GoodEDS in #7561 after which there were no more failures reported.

RELEASE NOTES: None

@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 24, 2024
@arjan-bal arjan-bal added this to the 1.68 Release milestone Sep 24, 2024
@arjan-bal arjan-bal requested a review from easwars September 24, 2024 18:52
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.78%. Comparing base (e7a8097) to head (05a60b6).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7669      +/-   ##
==========================================
- Coverage   81.80%   81.78%   -0.02%     
==========================================
  Files         361      361              
  Lines       27821    27821              
==========================================
- Hits        22758    22753       -5     
- Misses       3862     3863       +1     
- Partials     1201     1205       +4     

see 16 files with indirect coverage changes

@easwars easwars assigned arjan-bal and unassigned easwars Sep 25, 2024
@arjan-bal arjan-bal merged commit a9ff62d into grpc:master Sep 25, 2024
14 checks passed
@arjan-bal arjan-bal deleted the fix-flaky-test branch September 25, 2024 06:26
janardhanvissa pushed a commit to janardhanvissa/grpc-go that referenced this pull request Oct 1, 2024
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: Test/AggregateCluster_BadDNS_GoodEDS
2 participants