-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
[PSM interop] Expand the support of test config validation #28978
Conversation
Re-triggered on March 1st: |
58e9420
to
704b3e3
Compare
@@ -101,6 +101,7 @@ run_test() { | |||
--secondary_kube_context="${SECONDARY_KUBE_CONTEXT}" \ | |||
--server_image="${SERVER_IMAGE_NAME}:${GIT_COMMIT}" \ | |||
--client_image="${CLIENT_IMAGE_NAME}:${GIT_COMMIT}" \ | |||
--testing_version=$(echo "$KOKORO_JOB_NAME" | sed -E 's|^grpc/core/([^/]+)/.*|\1|') \ |
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.
Please add a comment explaining what's going on here.
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.
Thanks for the quick reivew!
Comment added to all 7 Kokoro script. It explains how the version is fetched, and why we need it.
1. Fixes the issue with Java PSM security tests accidentally skipped because Java was missing from the list of languages, ref #28978 2. Invert the logic of `is_supported` methods, making them normally open 3. Make languages an `enum.Flag` to avoid accidental typos when listing the languages 4. Rename `XdsKubernetesTestCase.isSupported` to `XdsKubernetesTestCase.is_supported` to be consistent with `XdsUrlMapTestCase.is_supported` 5. Add extra logging
1. Fixes the issue with Java PSM security tests accidentally skipped because Java was missing from the list of languages, ref grpc/grpc#28978 2. Invert the logic of `is_supported` methods, making them normally open 3. Make languages an `enum.Flag` to avoid accidental typos when listing the languages 4. Rename `XdsKubernetesTestCase.isSupported` to `XdsKubernetesTestCase.is_supported` to be consistent with `XdsUrlMapTestCase.is_supported` 5. Add extra logging
* [PSM interop] Expand the support of test config validation * Comment the usage and source of testing_version * Also include the comment for url-map tests
For non-url-map PSM GKE tests, we didn't have a mechanism to skip a test case, if a specific gRPC release don't support the testing test case. This wasn't an issue because we hard coded the skip logic in both production and staging. This PR unifies the skip implementation in production/staging (with its google3 counterpart, this PR needs to go in first), all flavors of GKE tests.
This PR also updates the supported gRPC versions for each test case (based on https://github.com/grpc/grpc/blob/master/doc/grpc_xds_features.md).
(This PR unblocks adding older branches to the GKE tests family.)