Skip to content

Fix the metadata flags test flake#22860

Merged
lidizheng merged 2 commits intogrpc:masterfrom
lidizheng:fix-metadata-flags-test-flake
May 5, 2020
Merged

Fix the metadata flags test flake#22860
lidizheng merged 2 commits intogrpc:masterfrom
lidizheng:fix-metadata-flags-test-flake

Conversation

@lidizheng
Copy link
Copy Markdown
Contributor

@lidizheng lidizheng commented May 5, 2020

Explicitly close the socket in the test case to ensure the connectivity state transition from CONNECTING into TRANSIENT FAILURE.

The root cause might originated from a behavior change in Core. A bisect might be able to find it, but probably not worth it (the change could be legit for other cases). This PR should fix it within Python wrapper.

Fixes #22760

@lidizheng lidizheng added kind/bug lang/Python release notes: no Indicates if PR should not be in release notes labels May 5, 2020
@lidizheng lidizheng marked this pull request as ready for review May 5, 2020 18:10
@lidizheng lidizheng requested a review from gnossen May 5, 2020 18:10
@lidizheng
Copy link
Copy Markdown
Contributor Author

INFO: Elapsed time: 5980.388s, Critical Path: 68.72s
INFO: 40006 processes: 40006 linux-sandbox.
INFO: Build completed, 2 tests FAILED, 20007 total actions
//src/python/grpcio_tests/tests/unit:_metadata_flags_test.python2       TIMEOUT in 6 out of 10000 in 60.1s
//src/python/grpcio_tests/tests/unit:_metadata_flags_test.python3       TIMEOUT in 3 out of 10000 in 60.1s
  Stats over 10000 runs: max = 60.1s, min = 3.0s, avg = 3.5s, dev = 1.0s

Flake rate is around 0.045% (9/20000). @gnossen PTALA.

@lidizheng
Copy link
Copy Markdown
Contributor Author

Known failures: #22875 #22691

@lidizheng lidizheng merged commit 9993d2b into grpc:master May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug lang/Python release notes: no Indicates if PR should not be in release notes

Projects

None yet

2 participants