Skip to content

Conversation

joestringer
Copy link
Member

@joestringer joestringer commented Aug 4, 2025

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.

@joestringer joestringer added the release-note/ci This PR makes changes to the CI. label Aug 4, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. and removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Aug 4, 2025
@joestringer
Copy link
Member Author

/test

@joestringer joestringer force-pushed the pr/joe/reusable-test-cfg branch 3 times, most recently from e71b7ca to d5d9729 Compare August 5, 2025 01:32
@joestringer
Copy link
Member Author

/test

@joestringer joestringer force-pushed the pr/joe/reusable-test-cfg branch from d5d9729 to 855fe9b Compare August 5, 2025 02:26
@joestringer
Copy link
Member Author

/test

@joestringer joestringer force-pushed the pr/joe/reusable-test-cfg branch from 855fe9b to 58f83d3 Compare August 5, 2025 06:31
@joestringer
Copy link
Member Author

/test

@joestringer joestringer marked this pull request as ready for review August 5, 2025 16:15
@joestringer joestringer requested review from a team as code owners August 5, 2025 16:15
@joestringer joestringer force-pushed the pr/joe/reusable-test-cfg branch from 58f83d3 to bb22d6e Compare August 5, 2025 17:48
@joestringer
Copy link
Member Author

/test

Copy link
Member

@mhofstetter mhofstetter left a 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.

Copy link
Contributor

@thorn3r thorn3r left a 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>
@joestringer joestringer force-pushed the pr/joe/reusable-test-cfg branch from bb22d6e to d6049f8 Compare August 11, 2025 22:16
@joestringer
Copy link
Member Author

/test

Copy link
Contributor

@liyihuang liyihuang left a 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

@joestringer joestringer enabled auto-merge August 12, 2025 19:07
@joestringer joestringer added this pull request to the merge queue Aug 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 13, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Aug 13, 2025
@ldelossa ldelossa added this pull request to the merge queue Aug 13, 2025
Merged via the queue into main with commit ab8ddf7 Aug 13, 2025
400 of 405 checks passed
@ldelossa ldelossa deleted the pr/joe/reusable-test-cfg branch August 13, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants