-
Notifications
You must be signed in to change notification settings - Fork 41.1k
ci: integration test speedup with IO related perf flakeness bypass #132904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ci: integration test speedup with IO related perf flakeness bypass #132904
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
Hi @ylink-lfs. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ylink-lfs The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR aims to improve integration test performance by removing hardcoded concurrency limits and implementing a GOMAXPROCS coordination mechanism. The changes address slow integration tests that were taking over an hour instead of the expected 30 minutes.
- Removes hardcoded KUBE_INTEGRATION_TEST_MAX_CONCURRENCY=4 from CI scripts to allow better parallelization
- Adds GOMAXPROCS coordination using sync.WaitGroup to manage goroutine execution limits
- Refactors the main integration test function to support the new concurrency management
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
test/integration/scheduler_perf/scheduler_perf.go | Implements GOMAXPROCS coordination mechanism and refactors test execution function |
hack/jenkins/test-integration-dockerized.sh | Removes hardcoded concurrency limit export |
hack/jenkins/test-dockerized.sh | Removes hardcoded concurrency limit export |
Comments suppressed due to low confidence (1)
test/integration/scheduler_perf/scheduler_perf.go:32
- [nitpick] The import alias 'rt' for 'runtime' is unnecessarily cryptic. Consider using a more descriptive alias like 'runtime' or importing without an alias since there are no naming conflicts.
rt "runtime"
/assign BenTheElder |
Still there are some implementation ideas for discussion:
|
@ylink-lfs: Cannot trigger testing until a trusted user reviews the PR and leaves an In 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. |
@@ -121,6 +122,8 @@ const DefaultLoggingVerbosity = 2 | |||
|
|||
var LoggingFeatureGate FeatureGateFlag | |||
var LoggingConfig *logsapi.LoggingConfiguration | |||
var wgGOMAXPROCS *sync.WaitGroup |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to comment what the intention is behind this mechanism
I don't think we want to do that, it seems like an easy way to have subtle flakes, also I have concerns about the underlying systems not being robust. It looks like this took 40m |
So, to clarify: you think this is a good optimization, and I should move forward with lowering GOMAXPROCS for the flaky performance tests? |
What type of PR is this?
/kind cleanup
/sig testing
/sig scheduling
/priority important-longterm
What this PR does / why we need it:
Integration test is often taking well over an hour even with 8 cores and 20Gi assigned in prow. It used to be more like 30m or less.
Which issue(s) this PR is related to:
integration tests are painfully slow #126202
Tracking Issue: Presubmit Performance #130762
#130758 (comment)
Special notes for your reviewer:
NONE
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
NONE