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

[PSM interop] Expand the support of test config validation #28978

Merged
merged 3 commits into from
Mar 2, 2022

Conversation

lidizheng
Copy link
Contributor

@lidizheng lidizheng commented Feb 26, 2022

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.)

@lidizheng lidizheng added area/test release notes: no Indicates if PR should not be in release notes labels Feb 26, 2022
@lidizheng
Copy link
Contributor Author

lidizheng commented Feb 26, 2022

@lidizheng lidizheng marked this pull request as ready for review March 1, 2022 22:57
@lidizheng lidizheng requested a review from gnossen March 1, 2022 23:47
@@ -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|') \
Copy link
Contributor

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.

Copy link
Contributor Author

@lidizheng lidizheng Mar 2, 2022

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.

@lidizheng lidizheng enabled auto-merge (squash) March 2, 2022 19:40
@lidizheng lidizheng merged commit 5df8612 into grpc:master Mar 2, 2022
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Mar 2, 2022
sergiitk added a commit that referenced this pull request Jun 7, 2022
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
sergiitk added a commit to grpc/psm-interop that referenced this pull request Nov 8, 2023
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
sergiitk pushed a commit to sergiitk/grpc that referenced this pull request Dec 8, 2023
* [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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test bloat/none imported Specifies if the PR has been imported to the internal repository perf-change/none release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants