Skip to content

Conversation

@gauravkghildiyal
Copy link
Member

@gauravkghildiyal gauravkghildiyal commented May 1, 2023

/kind test
/area conformance

What type of PR is this?

What this PR does / why we need it:
Add conformance test for combination of extended match types with core types

Which issue(s) this PR fixes:

Fixes #1962

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added kind/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 1, 2023
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 1, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @gauravkghildiyal. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@gauravkghildiyal
Copy link
Member Author

/area conformance

@k8s-ci-robot k8s-ci-robot added the area/conformance-test Issues or PRs related to Conformance tests. label May 1, 2023
@shaneutt shaneutt added this to the v0.8.0 milestone May 1, 2023
@gauravkghildiyal gauravkghildiyal force-pushed the httproute-match-combinations branch from 796f443 to e2dcaee Compare May 1, 2023 15:09
Copy link
Member

@sunjayBhatia sunjayBhatia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test passes w/ Contour main 👍🏽

@sunjayBhatia
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 1, 2023
@gauravkghildiyal gauravkghildiyal force-pushed the httproute-match-combinations branch from e2dcaee to 656efc4 Compare May 1, 2023 15:30
@shaneutt
Copy link
Member

shaneutt commented May 1, 2023

/cc @shaneutt @mlavacca @arkodg

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@gauravkghildiyal gauravkghildiyal force-pushed the httproute-match-combinations branch 2 times, most recently from c539210 to 62dd0f1 Compare May 2, 2023 17:59
Copy link
Member

@robscott robscott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gauravkghildiyal! I've got a couple non-blocking comments that don't need to block this PR, but could make for good follow ups here or in a future PR.

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 2, 2023
@gauravkghildiyal gauravkghildiyal force-pushed the httproute-match-combinations branch from 62dd0f1 to fda8a67 Compare May 3, 2023 04:20
Copy link
Member Author

@gauravkghildiyal gauravkghildiyal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review Rob!

@gauravkghildiyal gauravkghildiyal force-pushed the httproute-match-combinations branch from fda8a67 to 1abb730 Compare May 3, 2023 04:26
@gauravkghildiyal gauravkghildiyal changed the title Add conformance tests for checking combinations of multiple HTTPRoute… Add conformance test for combination of extended match types with core types May 3, 2023
@gauravkghildiyal gauravkghildiyal force-pushed the httproute-match-combinations branch from 1abb730 to 9d470b4 Compare May 3, 2023 04:41
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: arkodg, gauravkghildiyal, robscott, sunjayBhatia

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gauravkghildiyal gauravkghildiyal requested a review from robscott May 17, 2023 01:48
@robscott
Copy link
Member

Thanks @gauravkghildiyal!

/lgtm
/cherry-pick release-0.7

@k8s-infra-cherrypick-robot
Copy link
Contributor

@robscott: once the present PR merges, I will cherry-pick it on top of release-0.7 in a new PR and assign it to you.

In response to this:

Thanks @gauravkghildiyal!

/lgtm
/cherry-pick release-0.7

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.

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 17, 2023
@robscott robscott modified the milestones: v0.8.0, v0.7.1 May 17, 2023
@k8s-ci-robot k8s-ci-robot merged commit 8913da1 into kubernetes-sigs:main May 18, 2023
@k8s-infra-cherrypick-robot
Copy link
Contributor

@robscott: new pull request created: #2032

In response to this:

Thanks @gauravkghildiyal!

/lgtm
/cherry-pick release-0.7

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.

@gauravkghildiyal gauravkghildiyal deleted the httproute-match-combinations branch May 18, 2023 05:43
Namespace: ns,
},
{
Request: http.Request{Headers: map[string]string{"version": "four"}, Path: "/?animal=hydra"},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this test case added after my review doesn't work with Contour

this assumes header matching gets precedence over method matching, but I'm not sure that is expressed anywhere explicitly in the spec, see #1993

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that was how I interpreted it -- given method matching is not in the list (and the only thing not in the list), it must have the least priority.

I'm sorry for causing any issues. I've sent #2052 as a temporary solution to help unblock (if this is the path we wish to take)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! yeah not a super strong opinion on where it lands in terms of priority, but should probably be something explicitly debated/documented 👍🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/conformance-test Issues or PRs related to Conformance tests. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/test lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Conformance Test: Combinations of Extended HTTPRoute Matches

8 participants