-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
test/kokoro: Add bootstrap generator test into Go Kokoro script #6463
Conversation
test/kokoro/xds_k8s_lb.sh
Outdated
@@ -167,6 +167,7 @@ main() { | |||
"outlier_detection_test" | |||
"remove_neg_test" | |||
"round_robin_test" | |||
"bootstrap_generator_test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to figure out the logic on only including this when the branch under test is master. See an example here: https://github.com/grpc/grpc/blob/5b46c8bdbad733fa74ddf07c5b6fa3c9a600dbb9/tools/internal_ci/linux/grpc_xds_k8s_xlang.sh#L59-L62
You kinda need to do the opposite - add the bootstrap_generator_test
to the list of tests only if $TESTING_VERSION
is `master.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
test/kokoro/xds_k8s_lb.sh
Outdated
) | ||
if [ "${TESTING_VERSION}" != "master" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the opposite: only add it when the version IS master
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, sorry, missed that.
test/kokoro/xds_k8s_lb.sh
Outdated
) | ||
if [ "${TESTING_VERSION}" != "master" ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer [
over [[
: https://google.github.io/styleguide/shellguide.html#s6.3-tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, interesting, changed. Noted for future.
Test run: |
I don't know enough about this script. Since you will probably need an approver from one of the maintainers, I will approve once @sergiitk approves. Thanks. |
Hm, something didn't work with the test run. It didn't run the |
From your invocation, I see the that outlier detection test passed, and did not "not run"? Am I missing something? |
https://source.cloud.google.com/results/invocations/11ca23e1-e69c-4d16-b781-8c146ba9e88b/targets/grpc%2Fgo%2Fmaster%2Fbranch%2Fxds_k8s_lb%2Foutlier_detection_test/log logs seems ok to me (just took a while 371 seconds). |
@zasweq https://source.cloud.google.com/results/invocations/11ca23e1-e69c-4d16-b781-8c146ba9e88b/targets There's no |
New test run with debugging enabled: |
test/kokoro/xds_k8s_lb.sh
Outdated
@@ -168,6 +169,9 @@ main() { | |||
"remove_neg_test" | |||
"round_robin_test" | |||
) | |||
if [[ "${TESTING_VERSION}" == "master" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that's on me. This would've worked when merged. The reason the test wasn't running is for manual test run we set TESTING_VERSION to dev-master
, and not master
.
This should take care of it:
if [[ "${TESTING_VERSION}" == "master" ]]; then | |
if [[ "${TESTING_VERSION}" =~ "master" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Ok, now we see the test ran, and it failed BootstrapGeneratorServerTest.test_baseline_in_server_with_bootstrap_version2 ('v0.12.0', 'gcr.io/grpc-testing/td-grpc-bootstrap:8765051ef3b742bc5cd20f16de078ae7547f2ba2')
Traceback (most recent call last):
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/venv/lib/python3.10/site-packages/absl/testing/parameterized.py", line 316, in bound_param_test
return test_method(self, *testcase_params)
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/tests/bootstrap_generator_test.py", line 202, in test_baseline_in_server_with_bootstrap_version
self.test_server = self.startTestServer(
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/framework/bootstrap_generator_testcase.py", line 143, in startTestServer
test_server = server_runner.run(
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/framework/test_app/runners/k8s/k8s_xds_server_runner.py", line 212, in run
pod = self._wait_pod_started(pod_name)
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/framework/test_app/runners/k8s/k8s_base_runner.py", line 552, in _wait_pod_started
self.k8s_namespace.wait_for_pod_started(name, **kwargs)
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/framework/infrastructure/k8s.py", line 559, in wait_for_pod_started
retryer(self.get_pod, pod_name)
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 423, in __call__
do = self.iter(retry_state=retry_state)
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/venv/lib/python3.10/site-packages/tenacity/__init__.py", line 369, in iter
return self.retry_error_callback(retry_state=retry_state)
File "/tmp/tmp.6gukgbTRj6/grpc/tools/run_tests/xds_k8s_test_driver/framework/helpers/retryers.py", line 141, in error_handler
raise RetryError(
framework.helpers.retryers.RetryError: Retry error calling framework.infrastructure.k8s.KubernetesNamespace.get_pod: timeout 0:03:00 (h:mm:ss) exceeded. Check result callback returned False. |
Target log provided extra info:
Image |
And here's the reason: https://cloudlogging.app.goo.gl/KiZ7U2zjhD1anVAP8
|
It failing for server v.0.12.0 and v.0.11.0 locally (me and Richard found that error too), and also failed client v.0.14.0 (which might be a real bootstrap generator failure) 1/3 times locally with ErrorStartingTestClient, which Richard mentioned if the bootstrap generator fails than you fail that. |
The |
Failing due to that flag, test isn't cleaning up resources properly (url map) and a worrysome client failure on 14 that might be the bootstrap generator. |
Based on grpc/grpc-go#6463 <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. -->
This PR adds the bootstrap generator test into Go kokoro script.
RELEASE NOTES: N/A