-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add reusable test config workflow #40935
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
Conversation
/test |
e71b7ca
to
d5d9729
Compare
/test |
d5d9729
to
855fe9b
Compare
/test |
855fe9b
to
58f83d3
Compare
/test |
58f83d3
to
bb22d6e
Compare
/test |
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 Joe! I left a comment regarding ipv6-flag handling. Approving anyway since my suggestion is specific to one workflow only - which shouldn't block the overall goal of this PR.
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.
Readability 100
This test configuration reusable action will allow us to centralize many of the common flags passed to the Cilium CLI as part of running tests via 'cilium connectivity test ...'. Signed-off-by: Joe Stringer <joe@cilium.io>
While we're at it, consolidate the external CIDR usage onto the default defined in the cli-test-config rather than specifically using CloudFlare IPs for external targets in these tests. Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
This test didn't seem to declare or use any default parameters. Switch it to use the same style as the recent commits so that we can deduplicate the common configuration between cli-test-config and conn-disrupt-check. Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Joe Stringer <joe@cilium.io>
IPsec upgrade test didn't seem to declare or use any default parameters. Switch it to use the same style as the recent commits so that we can deduplicate the common configuration between cli-test-config and conn-disrupt-test-check. While we're at it, ensure the other conn-disrupt-test-check invocations also consistently use the flags. Signed-off-by: Joe Stringer <joe@cilium.io>
This test runs in kind in Microsoft GitHub infrastructure, so it should be more reliable pinging to other Microsoft properties (ie use the default settings in the cli-test-config reusable workflow). Signed-off-by: Joe Stringer <joe@cilium.io>
The users of conn-disrupt-test-check all use cli-test-config which already specifies these parameters. Remove the duplicate parameters here. Technically test-concurrency is also one of these duplicated flags, but it's optional for the cli-test-config and if unspecified it will defer to the CLI binary default. Since the workflows that invoke conn-disrupt-test-check often choose concurrency or not in the test selection parameters, leave that parameter alone. Signed-off-by: Joe Stringer <joe@cilium.io>
bb22d6e
to
d6049f8
Compare
/test |
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 on AWS part
Add 'cli-test-config', a reusable workflow for defining the flags to pass to
Cilium connectivity tests which should allow the tests to more consistently
pass the common flags (like parameters for code owners, sysdumps, timeouts).
This enables much easier extension of testing flags to apply CI-wide, like in #40957 .
The goal for this PR is just to centralize the configuration, but I could
imagine future PRs taking this further to centralize all of the CLI test runs
across both conn-disrupt-test and regular test runs. I've left that out of
scope for this PR as the main goal I want to achieve is #40957.