Skip to content
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

[Backport 1.12.x] fix: Limit parallel builds on operator #4284

Conversation

christophd
Copy link
Contributor

Manual backport of #4233

@squakez
Copy link
Contributor

squakez commented Apr 28, 2023

Please, rebase as we solved the github actions issue.

@christophd christophd force-pushed the backport-1.12.x/limit-parallel-builds branch 2 times, most recently from 92bb004 to 1dabe5d Compare May 2, 2023 07:07
@christophd
Copy link
Contributor Author

@squakez rebase done, could you please trigger the workflow once again 🙏

christophd added 4 commits May 2, 2023 16:48
- Avoid many parallel integration builds
- Monitor all builds started by the operator instance and limit max number of running builds according to given setting
- By default use max running builds limit = 3 for build strategy routine
- By default use max running builds limit = 10 for build strategy pod
- Add max running builds setting to IntegrationPlatform
- Add some documentation on build strategy and build queues
- Add option to CLI install command to set max running builds setting
@christophd christophd force-pushed the backport-1.12.x/limit-parallel-builds branch from 1dabe5d to 70869cc Compare May 2, 2023 14:49
christophd added 3 commits May 3, 2023 14:11
- Wait for IntegrationPlatforms in user namespaces to become ready before starting new builds
- Avoids racing conditions on build and integration platform reconciliation loops
- Avoids 1st build to succeed before 3rd build has been scheduled (skips the max build limit)
- Wait for IntegrationPlatform to become ready after operator installation
- Avoids resources to get stuck in waiting for integration platform state
- Improve assertions on max parallel running builds
- Make sure to properly dump test namespaces on failure
@christophd christophd force-pushed the backport-1.12.x/limit-parallel-builds branch from 1acb75b to ef0e40f Compare May 8, 2023 08:13
@squakez squakez merged commit 1267b27 into apache:release-1.12.x May 8, 2023
@squakez squakez mentioned this pull request Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants