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
gateway-api: Fix flaky conformance tests #24317
Conversation
This is to update test fixture for HTTRRoute header matching from the upstream. The main point is to split header matching condition to diff sets (i.e. OR condition). Signed-off-by: Tam Mach <tam.mach@cilium.io>
cd7923a
to
a497fc1
Compare
This commit is to make sure that header matching rules are sorted in a deterministic way, so that the behavior is predictable in envoy. The main changes are as per below: - Process http routes based on order from spec instead of random order from map. - Use sort.Stable to reverse the original order of equal elements. - Make sure that less(i, j) and less(j, i) return false if i-th and j-th elements are equal. Kindly note that envoy will just iteratively check rule one by one, if a match is found, subsequent rule will not be considered. Fixes: cilium#23999 Signed-off-by: Tam Mach <tam.mach@cilium.io>
This commit is to make sure that the virtual hosts are created in the same order of appearance of HTTP Route spec. The changes are to split nested map into two separate maps, and handle uniqueness. Fixes: cilium#24217 Signed-off-by: Tam Mach <tam.mach@cilium.io>
Signed-off-by: Tam Mach <tam.mach@cilium.io>
Signed-off-by: Tam Mach <tam.mach@cilium.io>
Signed-off-by: Tam Mach <tam.mach@cilium.io>
…n test Signed-off-by: Tam Mach <tam.mach@cilium.io>
…n test Signed-off-by: Tam Mach <tam.mach@cilium.io>
Signed-off-by: Tam Mach <tam.mach@cilium.io>
a497fc1
to
56e09a7
Compare
…test Signed-off-by: Tam Mach <tam.mach@cilium.io>
Also, taking this chance to replace depecrated Append attribute with AppendAction. Signed-off-by: Tam Mach <tam.mach@cilium.io>
This is to match with names used in upstream Conformance. The benefit is to have faster lookup: - If a particular test is failed - If a particular test is missing Signed-off-by: Tam Mach <tam.mach@cilium.io>
This was overlooked in previous commits. Signed-off-by: Tam Mach <tam.mach@cilium.io>
This is a new tests introduced as part of v0.6.0. Signed-off-by: Tam Mach <tam.mach@cilium.io>
This is a new tests introduced as part of v0.6.0. Signed-off-by: Tam Mach <tam.mach@cilium.io>
f1e2acc
to
e01d37e
Compare
This is a new tests introduced as part of v0.6.0. GHA action setting for this test is enabled. Signed-off-by: Tam Mach <tam.mach@cilium.io>
e01d37e
to
201fc94
Compare
Full CI is not required, as the code changes are related to Gateway API/Ingress/Unit tests, which are verified as part of GHA. |
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.
👍 for workflow changes
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
/test Job 'Cilium-PR-K8s-1.16-kernel-4.19' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
/test-1.16-4.19 Job 'Cilium-PR-K8s-1.16-kernel-4.19' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
/mlh new-flake Cilium-PR-K8s-1.16-kernel-4.19 👍 created #24379 |
Above failure is fixed in #24336, which is just merged. Re-run is not required. |
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, nice work @sayboras
Description
The goal is to have unit tests for Conformance test cases for faster feedback and stability. As part of this PR, two flaky tests are fixed 🤞.
Testing
Testing was done in https://github.com/cilium/cilium/actions/runs/4402111837, which are having 20+ consecutive successful runs.