Skip to content

Conversation

giorio94
Copy link
Member

Generalize the performance tests initialization phase to not require Cilium to be running on the target cluster to simplify reuse, given that the measurements are not Cilium specific. Additionally, let's improve configurability of test namespace labels and annotations.

@giorio94 giorio94 added release-note/minor This PR changes functionality that users may find relevant to operating Cilium. cilium-cli This PR contains changes related with cilium-cli labels Mar 17, 2025
@giorio94
Copy link
Member Author

/test

@giorio94
Copy link
Member Author

/scale-egw

@giorio94 giorio94 marked this pull request as ready for review March 17, 2025 17:59
@giorio94 giorio94 requested review from a team as code owners March 17, 2025 17:59
@giorio94 giorio94 requested review from Artyop and asauber March 17, 2025 17:59
@giorio94 giorio94 enabled auto-merge March 18, 2025 13:01
The blamed commit extended the CLI performance tests to support
measuring the throughput with multiple parallel streams. However,
the test name is longer than the maximum length previously
considered when pretty-printing the summary of the results, hence
causing the table to not be aligned. Let's get this fixed.

Fixes: dc5ceda ("cli/perf: add throughput tests with multiple streams")
Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Move the namespace-annotations parameter to the set of common flags,
given that it is not specific to the connectivity tests only.
Additionally, let's convert it to a plain map of strings, rather
than json format, for ease of configuration. This change does not
raise backward-compatibility concerns given that the flag is hidden.

While being there, let's also mark the deployment-pod-annotations
flag hidden both for the test and perf commands, which seems to have
been lost when moving the flag to the common list.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Introduce a new namespace-labels flag which allows to configure extra
labels applied to the test namespace(s).

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Generalize the performance tests initialization phase to not require Cilium
to be running on the target cluster to simplify reuse, given that the
measurements are not Cilium specific. While being there, let's also extract
perf-specific logic into separate methods, for better separation.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
…ilium"

This reverts commit 0fedeef.

This workaround is no longer necessary now that the initialization of
the performance tests only sets up the bits that don't depend on Cilium
being running in the target cluster.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@Artyop Artyop force-pushed the pr/giorio94/main/cli-connectivity-perf branch from 6018f57 to 4886c8f Compare March 18, 2025 13:40
@Artyop
Copy link
Contributor

Artyop commented Mar 18, 2025

@giorio94 sorry Marco I missclicked the rebase

@giorio94
Copy link
Member Author

/test

@giorio94
Copy link
Member Author

@asauber Gentle ping 🙏

@giorio94 giorio94 requested a review from a team as a code owner March 21, 2025 13:12
@giorio94 giorio94 requested a review from marseel March 21, 2025 13:12
@giorio94 giorio94 force-pushed the pr/giorio94/main/cli-connectivity-perf branch from eb14604 to 4886c8f Compare March 21, 2025 13:14
@giorio94 giorio94 removed request for a team and marseel March 21, 2025 13:14
@giorio94
Copy link
Member Author

Accidentally pushed extra commits intended for a follow-up PR. Reverted to the previous state now.

@giorio94
Copy link
Member Author

/test

Copy link
Member

@pchaigno pchaigno left a comment

Choose a reason for hiding this comment

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

"While being there", this probably should have been 7 commits, but it looks good otherwise 😜

@giorio94
Copy link
Member Author

"While being there", this probably should have been 7 commits, but it looks good otherwise 😜

Yeah, makes sense. I would avoid going through CI once more for that only change though, unless anything else needs to addressed as well.

@giorio94
Copy link
Member Author

@cilium/cli Gentle ping 🙏

@pchaigno pchaigno removed the request for review from asauber March 21, 2025 17:00
@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 Mar 21, 2025
@giorio94 giorio94 added this pull request to the merge queue Mar 21, 2025
Merged via the queue into main with commit 0633f1c Mar 21, 2025
265 of 266 checks passed
@giorio94 giorio94 deleted the pr/giorio94/main/cli-connectivity-perf branch March 21, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cilium-cli This PR contains changes related with cilium-cli ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants