test: exclude NTO debug pods from best-effort QoS invariant - #31472
test: exclude NTO debug pods from best-effort QoS invariant#31472not-stbenjam wants to merge 1 commit into
Conversation
Signed-off-by: Stephen Benjamin <stbenjam+ai@redhat.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@not-stbenjam: This pull request references Jira Issue OCPBUGS-99916, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Hi @not-stbenjam. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: not-stbenjam The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
WalkthroughThe QoS test now uses centralized detection for ephemeral debug pods. The detection covers known debug namespaces and transient ChangesQoS debug pod filtering
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@not-stbenjam: No Jira issue is referenced in the title of this pull request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Follow-up to OCPBUGS-99916 and #31437.
Problem
The control-plane QoS invariant can race with transient
oc debugpods inopenshift-cluster-node-tuning-operator. These pods are best-effort by design, but the invariant currently recognizes equivalent pods only inopenshift-machine-config-operatorand transientopenshift-debug-*namespaces.Two OpenShift 5.0 runs show the same sequence:
In both runs, an NTO test created and started an
oc debugpod immediately before the QoS assertion. The assertion reported that pod. The NTO test then deleted it, and the QoS retry passed.Fix
This change adds
openshift-cluster-node-tuning-operatorto the explicit list of namespaces that can contain known transient debug pods.The exclusion still requires the existing
isEphemeralDebugPodpredicate. It does not exclude all NTO pods. It does not add a global-debug-name exclusion.The new table test covers:
openshift-debug-*pods.Validation
The test used workspace-local temporary and cache paths. An independent review found no blocking issue.
Generated-by: AI (analysis and patch). A human must verify this change before merge.
Summary by CodeRabbit
Bug Fixes
Tests