-
Notifications
You must be signed in to change notification settings - Fork 472
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
Fix conformance test flags are exported to other libraries that use the conformance test suite #2843
Conversation
Welcome @hanxiaop! |
Hi @hanxiaop. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Also cc @LiorLieberman to take a look, the feature was introducted in istio/istio#48770. |
Thanks @hanxiaop! |
@LiorLieberman So basically, in that PR, you imported the test suite code into the product code: and after https://github.com/kubernetes-sigs/gateway-api/pull/2801/files#diff-3532d0dde2d46785ab138cfe0fa7bddc5c1901dde4fe4079880451c010ea8254R34, the flag package was also imported into the suite. After that, our command-line tool was filled with gateway conformance test flags alongside our own pflags, since the test flags were imported in the dependency and thus in the flag set. This PR moves the features file out of the suite, so that we can directly import the features instead of the entire suite package and avoid issues like flags being altered. |
@howardjohn PTAL again, thanks! |
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.
/lgtm
and fix test
@robscott PTAL, thanks! |
/lgtm |
Thanks @hanxiaop! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hanxiaop, howardjohn, robscott The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
@howardjohn just rebased and can you LGTM again? Thanks! |
/lgtm |
What type of PR is this?
What this PR does / why we need it:
/kind bug
/area conformance
Which issue(s) this PR fixes:
Fixes #2841.
Currently when implementing GEP-2162, the
features
need to be imported. However, in the test suite, this import results in the variation of flags within our production code. The goal is to allow the importation of features without modifying the product code.Does this PR introduce a user-facing change?: