[release-4.22] OCPBUGS-104615: E2E: LLC: Restore uncore cache annotation to true - #1577
Conversation
Earlier in test_id: 77724 we disaled prefer-align-cpus-by-uncorecache but never enabled it back causing further tests to always run with prefer-align-cpus-by-uncorecache disabled Add a deferCleanup so that prefer-align-cpus-by-uncorecache is reenabled Signed-off-by: Niranjan M.R <mniranja@redhat.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
@openshift-cherrypick-robot: Jira Issue OCPBUGS-100115 has been cloned as Jira Issue OCPBUGS-104615. Will retitle bug to link to clone. 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. |
|
@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-104615, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
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. |
PR Summary by QodoE2E LLC test: restore uncore-cache kubelet annotation via DeferCleanup
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Cleanup rollout wait no-op
|
| profiles.UpdateWithRetry(perfProfile) | ||
|
|
||
| By(fmt.Sprintf("Applying changes in performance profile and waiting until %s will start updating", poolName)) | ||
| profilesupdate.WaitForTuningUpdating(cleanupCtx, perfProfile) |
There was a problem hiding this comment.
1. Cleanup rollout wait no-op 🐞 Bug ☼ Reliability
The new DeferCleanup unconditionally waits for a tuning rollout (Updating then Updated) after setting the annotation back to llcPolicy, even when the test may have failed before applying the disable policy and the restore becomes a no-op. In that case, WaitForTuningUpdating can wait until its long MCP timeout, obscuring the original failure and slowing/flaking the e2e suite.
Agent Prompt
### Issue description
The new `DeferCleanup` always calls `WaitForTuningUpdating/Updated` after attempting to restore the annotation. If the spec fails before the disable policy is applied (or if the annotation is already `llcPolicy`), the restore may not trigger any MCP/nodepool rollout; in that case `WaitForTuningUpdating` can block until timeout.
### Issue Context
`DeferCleanup` is registered before the disable policy update occurs, so it runs even on early failures. `WaitForTuningUpdating` waits for the MCP Updating condition to become true, which will never happen when no rollout is triggered.
### Fix Focus Areas
- test/e2e/performanceprofile/functests/13_llc/llc.go[255-269]
### Suggested fix
In the cleanup function:
1. Fetch the current profile.
2. If `Annotations["kubeletconfig.experimental"]` is already `llcPolicy` (or the desired state), **skip** the update and rollout waits.
3. Otherwise, apply the update and then wait.
Optionally, track a boolean like `disableApplied` (set it only after the disable update + rollout succeeds) and only perform restore waits when `disableApplied == true`.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
There was a problem hiding this comment.
This is automatic backport PR and this issue needs a new PR on the main branch.
|
/retest-required |
1 similar comment
|
/retest-required |
|
/lgtm |
|
/approve |
|
Scheduling required tests: |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: openshift-cherrypick-robot, yanirq The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@openshift-cherrypick-robot: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
This is an automated cherry-pick of #1570
/assign mrniranjan