NO-JIRA: Fix flaky CI unit tests: reduce parallelism - #645
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe pull request increases the machine set sync test timeout from 2 to 5 seconds. OpenShift CI uses four Ginkgo processes for e2e tests and two for other test suites. ChangesTest execution settings
Estimated code review effort: 1 (Trivial) | ~2 minutes Mergeability Score: ⚪ Minimal · up to This PR reduces CI test contention and adjusts a flaky test timeout; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test unit |
1 similar comment
|
/test unit |
37bf04a to
b2ecf50
Compare
b2ecf50 to
e133f5f
Compare
|
/lgtm Looks like a suitable fix without much more time cost |
|
Scheduling tests matching the |
|
/override ci/prow/e2e-aws-capi-disconnected-techpreview ci/prow/e2e-aws-capi-techpreview ci/prow/e2e-aws-capi-techpreview-post-install ci/prow/e2e-aws-ovn-techpreview ci/prow/e2e-aws-ovn-techpreview-upgrade ci/prow/e2e-azure-ovn-techpreview ci/prow/e2e-azure-ovn-techpreview-upgrade ci/prow/e2e-gcp-capi-techpreview ci/prow/e2e-gcp-ovn-techpreview ci/prow/e2e-metal3-capi-techpreview ci/prow/e2e-openstack-capi-techpreview ci/prow/regression-clusterinfra-aws-ipi-techpreview-capi |
|
/skip |
|
@damdo: Overrode contexts on behalf of damdo: ci/prow/e2e-aws-capi-disconnected-techpreview, ci/prow/e2e-aws-capi-techpreview, ci/prow/e2e-aws-capi-techpreview-post-install, ci/prow/e2e-aws-ovn-techpreview, ci/prow/e2e-aws-ovn-techpreview-upgrade, ci/prow/e2e-azure-ovn-techpreview, ci/prow/e2e-azure-ovn-techpreview-upgrade, ci/prow/e2e-gcp-capi-techpreview, ci/prow/e2e-gcp-ovn-techpreview, ci/prow/e2e-metal3-capi-techpreview, ci/prow/e2e-openstack-capi-techpreview, ci/prow/regression-clusterinfra-aws-ipi-techpreview-capi 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 kubernetes-sigs/prow repository. |
e133f5f to
d67e0da
Compare
…esetsync timeout Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d67e0da to
7133b07
Compare
|
Scheduling tests matching the |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: damdo 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 |
|
/skip |
|
@stefanonardo: 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. |
|
/retest |
|
@stefanonardo: 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. |
|
/verified by @stefanonardo |
|
@stefanonardo: This PR has been marked as verified by 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. |
Summary
Unit tests have been frequently failing in CI due to envtest resource contention. Analysis of 19 recent failed builds (across PRs #577, #591, #622, #627, #634, #635, #636, #637, #638, #640, #642) shows the root cause:
--procs=4runs 4 test suites simultaneously, each starting its own etcd + kube-apiserver (8 heavy processes total), causing widespread timeouts on resource-constrained CI nodes.This PR:
--procs=4to--procs=2, halving resource contentionEventuallytimeout from 2s to 5s (the most frequently failing suite: 22 of 57 failures)Why not just increase timeouts?
We tested both approaches on CI:
procs=2+ machinesetsync 5sprocs=4+ all timeout increasesprocs=4(no changes)We chose
procs=2because it addresses the root cause (resource contention) rather than masking symptoms with larger timeouts, and is more robust against future test additions. The wall-clock cost (~3-5 min) is small compared to the cost of frequent CI retries.🤖 Generated with Claude Code
Summary by CodeRabbit