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
imagebuildah: if user sets --jobs=0
they expect no parallelism
#3874
imagebuildah: if user sets --jobs=0
they expect no parallelism
#3874
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Lot of users and tests set --jobs=0 they are expecting no parallelism between stages but we still end up running builds in parallel for multi-arch builds which indirectly exectues stages in parallel. [NO NEW TESTS NEEDED] No new feature is added in this commit. Signed-off-by: Aditya R <arajan@redhat.com>
54a1047
to
0c8e777
Compare
This should fix the flake as tests in CI use |
That's why that test specifies |
@nalind If I inferred it correctly |
The intent of that test is definitely maximum parallelization. |
@nalind Oh i see but then I think users have no way to serialize |
I think it's incorrect to equate serialized builds with serialized pulls, one doesn't necessarily imply the other. Though I appreciate it vastly complicates the fix. As a user doing an operation requiring a multi-arch pull, I expect that pull to happen as fast as my bandwidth allows - meaning in parallel when possible. |
That's the default, and what happens with |
@cevich Pulls are not causing the issue but i think builds are causing the issue, its easily reproduce-able when you run I'm going to close this PR since it is not doing what i expected it to do. |
Lot of users and tests set --jobs=0 they are expecting no parallelism
between stages but we still end up running builds in parallel for
multi-arch builds which indirectly executes stages in parallel since builds are parallel.
Example tests like https://github.com/containers/buildah/blob/main/tests/bud.bats#L3609 set
--jobs=0
but they still execute build for similar name but different arch in parallel.[Note:] This PR does not fix more that one race condition which is seen when multi-arch builds are performed without
--jobs=0
as documented here: #3710 (comment) but it should fix flakes in CI as reported here: #3710