-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Make Cilium CLI performance tests not depend on Cilium #38245
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 |
/scale-egw |
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>
6018f57
to
4886c8f
Compare
@giorio94 sorry Marco I missclicked the rebase |
/test |
@asauber Gentle ping 🙏 |
eb14604
to
4886c8f
Compare
Accidentally pushed extra commits intended for a follow-up PR. Reverted to the previous state now. |
/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.
"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. |
@cilium/cli Gentle ping 🙏 |
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.