NO-ISSUE: fixes flaky config drift monitor E2E tests - #6373
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughRecovery helpers now accept configurable timeouts for node and MachineConfigPool checks. Config drift tests use a longer timeout when recovery requires a node reboot, while standard recovery retains the five-minute default. ChangesConfig Drift Recovery
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 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 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheesesashimi 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 |
|
/test e2e-gcp-op-part1 e2e-gcp-op-single-node |
|
@cheesesashimi: This pull request explicitly references no jira issue. 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. |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/e2e-shared-tests/mcd_config_drift.go`:
- Around line 421-422: Update assertNodeReachesStateWithTimeout and
assertPoolReachesStateWithTimeout to accept or receive the polling callback
context from pollForResourceState, and pass that context to Nodes().Get and
MachineConfigPools().Get instead of context.TODO(), so both requests are
cancelled when the polling deadline expires.
- Around line 421-422: Update assertNodeReachesStateWithTimeout and the
corresponding MachineConfigPool callback to check the Get API error before
dereferencing the returned resource or invoking stateFunc. Pass the error first
to pollForResourceState so nil resources during outages trigger retries rather
than panics.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: ba3623fe-2540-49ad-83f4-eac553b9fddc
📒 Files selected for processing (2)
test/e2e-shared-tests/helpers.gotest/e2e-shared-tests/mcd_config_drift.go
Assisted-By: Claude Sonnet 4.6 This raises the timeout for all config drift monitor test cases which expect the node to reboot as part of the test process. Setting this to 15 minutes makes this more consistent with the rest of the MCO E2E test suite.
d090bd8 to
8a53c85
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
|
/test e2e-gcp-op-part1 e2e-gcp-op-single-node |
|
@cheesesashimi: 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. |
- What I did
This raises the timeout for all config drift monitor E2E test cases which expect the node to reboot as part of the test process. Setting this to 15 minutes makes this more consistent with the rest of the MCO E2E test suite.
- How to verify it
Run any of the test jobs which run the config drift monitor E2E tests. They should pass.
- Description for the changelog
Fixes flaky config drift monitor E2E tests
Summary by CodeRabbit