Skip to content

Conversation

smagnani96
Copy link
Contributor

As of today, we identify privileged tests with the "TestPrivileged" prefix in their name. However, that doesn't hold true for benchmarks requiring privileges, which are always skipped given their prefix doesn't match "TestPrivileged".
This PR patches our current logic to introduce a new "BenchmarkPrivileged" prefix to identify such benchmarks requiring privileged access. In addition, it adjusts the prefix of all benchmarks requiring privileged with the new prefix.

As of today, we identify privileged tests with the "TestPrivileged" prefix
in their name. However, that doesn't hold true for benchmarks requiring
privileges, which are always skipped given their prefix doesn't match
"TestPrivileged".

This commit patches our current logic to introduce a new "BenchmarkPrivileged"
prefix to identify such benchmarks requiring privileged access.

Signed-off-by: Simone Magnani <simone.magnani@isovalent.com>
This commits adjusts the prefix of all benchmarks requiring privileged
access with the new "BenchmarkPrivileged" prefix.

Signed-off-by: Simone Magnani <simone.magnani@isovalent.com>
@smagnani96 smagnani96 self-assigned this Aug 7, 2025
@smagnani96 smagnani96 added kind/bug This is a bug in the Cilium logic. area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Aug 7, 2025
@smagnani96
Copy link
Contributor Author

/test

@smagnani96 smagnani96 marked this pull request as ready for review August 7, 2025 18:53
@smagnani96 smagnani96 requested review from a team as code owners August 7, 2025 18:53
Copy link
Contributor

@derailed derailed left a comment

Choose a reason for hiding this comment

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

@smagnani96 Nice work!

@smagnani96 smagnani96 added the needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch label Aug 8, 2025
@smagnani96 smagnani96 added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Aug 11, 2025
@smagnani96
Copy link
Contributor Author

@cilium/committers I believe this can be merged. PTAL at labels 🙏🏼

@aanm aanm added this pull request to the merge queue Aug 12, 2025
Merged via the queue into main with commit 7275a86 Aug 12, 2025
363 of 364 checks passed
@aanm aanm deleted the pr/smagnani96/privileged-bench branch August 12, 2025 12:33
@joamaki joamaki mentioned this pull request Aug 19, 2025
19 tasks
@joamaki joamaki added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Aug 19, 2025
@github-actions github-actions bot added backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. and removed backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. labels Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. kind/bug This is a bug in the Cilium logic. 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