OCPBUGS-81476: Fix timeout in PinnedImages GC test#30962
OCPBUGS-81476: Fix timeout in PinnedImages GC test#30962isabella-janssen wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
Skipping CI for Draft Pull Request. |
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-81476, 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. |
WalkthroughTimeout increased from 5 minutes to 10 minutes in the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 8 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (8 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: isabella-janssen 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 |
|
/payload-aggregate periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive 5 |
|
@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/d7be16f0-31ca-11f1-9d47-a6fb2a91cc22-0 |
|
/jira refresh |
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-81476, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
5d7d789 to
51e6fb4
Compare
|
/payload-aggregate periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive 5 |
|
@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/874ddc00-3454-11f1-9703-469c6b3fb240-0 |
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-81476, which is valid. 3 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. |
|
/payload-aggregate periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive 5 |
|
@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/4728db40-34de-11f1-96d4-ab4c33428563-0 |
|
/payload-aggregate periodic-ci-openshift-machine-config-operator-release-4.22-periodics-e2e-gcp-mco-disruptive 5 |
|
@isabella-janssen: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/f71abeb0-3510-11f1-84e8-8eb280e2392d-0 |
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-81476, which is invalid:
Comment 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. |
|
/jira refresh |
|
@isabella-janssen: This pull request references Jira Issue OCPBUGS-81476, which is valid. 3 validation(s) were run on this bug
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.
🧹 Nitpick comments (1)
test/extended/machine_config/pinnedimages.go (1)
601-618: Update stale timeout docs and make the failure message generic.Line 601 still says “up to 5 minutes,” but Line 618 now waits 10 minutes. Also, Line 618 hardcodes
rendered-workereven though this helper is used with multiple config prefixes.Proposed patch
-// `waitTillNodeReadyWithConfig` loops for up to 5 minutes to check whether the input node reaches +// `waitTillNodeReadyWithConfig` loops for up to 10 minutes to check whether the input node reaches // the desired rendered config version. The config version is determined by checking if the config // version prefix matches the stardard format of `rendered-<desired-mcp-name>`. func waitTillNodeReadyWithConfig(kubeClient *kubernetes.Clientset, nodeName, currentConfigPrefix string) { o.Eventually(func() bool { node, err := kubeClient.CoreV1().Nodes().Get(context.TODO(), nodeName, metav1.GetOptions{}) @@ - }, 10*time.Minute, 10*time.Second).Should(o.BeTrue(), "Timed out waiting for Node '%s' to have rendered-worker config.", nodeName) + }, 10*time.Minute, 10*time.Second).Should( + o.BeTrue(), + "Timed out waiting for Node '%s' to have config prefix '%s'.", + nodeName, + currentConfigPrefix, + ) }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@test/extended/machine_config/pinnedimages.go` around lines 601 - 618, The function waitTillNodeReadyWithConfig has a stale comment stating "up to 5 minutes" and a hardcoded failure message referencing `rendered-worker`; update the comment to reflect the actual 10 minute wait used in the o.Eventually call and change the Should(...) failure message to be generic and use the `currentConfigPrefix` parameter instead of "rendered-worker" so the helper works for any config prefix (refer to function name waitTillNodeReadyWithConfig and the currentConfigPrefix variable).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@test/extended/machine_config/pinnedimages.go`:
- Around line 601-618: The function waitTillNodeReadyWithConfig has a stale
comment stating "up to 5 minutes" and a hardcoded failure message referencing
`rendered-worker`; update the comment to reflect the actual 10 minute wait used
in the o.Eventually call and change the Should(...) failure message to be
generic and use the `currentConfigPrefix` parameter instead of "rendered-worker"
so the helper works for any config prefix (refer to function name
waitTillNodeReadyWithConfig and the currentConfigPrefix variable).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 099b22e1-5b25-4fd0-af1a-863a8cb97579
📒 Files selected for processing (1)
test/extended/machine_config/pinnedimages.go
|
Scheduling required tests: |
|
@isabella-janssen: all tests passed! 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 increases the timeout for the process of a node joining an MCP to prevent MCP degrades.
Summary by CodeRabbit