-
Notifications
You must be signed in to change notification settings - Fork 693
Failed while running push-all #525
Comments
Hello hanglethao, Thanks for reporting this issue. We need more information about the platform where you observed this issue. Specifically the following:-
Please also provide a test case to reproduce this issue. You could add a test case under //rules_docker/tests in a forked repo or simply a tarball of an individual bazel project that shows the issue. Also, if you have any ideas on why the issue might be happening, don't hesitate to submit a pull request with the proposed fix. The error above indicates that the process the script is being asked to wait for wasn't launched from the same shell. |
Hi @smukherj1
ubuntu:16.04
0.16.1
0.5.1
version 4.3.48(1)-release (x86_64-pc-linux-gnu) I just created 50 binaries and 50 go_images. Then I used the following
|
Thanks for providing the repro details, unfortunately we do not have tests that use a large number of images at the moment, so this might be a regression or a long standing issue (or even a flawed design that prevents this from working with a large number of images). Have you tried to do any debugging to find more about the root cause (e.g., trying out with a different number of images to see if there's a specific number at which container_bundle starts to fail, tried modifying https://github.com/bazelbuild/rules_docker/blob/master/contrib/push-all.sh.tpl#L37 to see if its indeed the wait statement that causes the issue)? I'm particularly interested in knowing with how many images the error starts to occur for you. This will help us assess what is the impact of this issue to better estimate priority to fix it. If this is only occurring with a very large number of images (lets say, 15 plus, or 40 plus), I think priority to fix for us would be relatively low (if its happening with 5 or 10 images, then we do probably need to fix it sooner). Overall, I think supporting the use case of a large number of images in container bundle is one we should support but its not a high priority for us atm (unless we start getting lots of customers chiming in on this thread and reporting this issue is also important for them) so it might take a few weeks before we can debug in detail. We would be super happy to help review PRs if you can debug and find a fix for the issue! |
Hi @hanglethao, |
I'm also hitting this today, pushing 178 images 😅 Would it be reasonable to remove the If that's reasonable I can probably send a PR for that. cc @mattmoor |
Honestly doing all in parallel at high image counts seems perilous, but sequencing them seems like it'd make things slow 😬 In ko we throttle pushes to GOMAXPROCS, so perhaps some sane upper-bound on concurrent pushes is called for? |
Hi
I am using
push_all
to push acontainer_bundle
which contains more than 50 images.And I got the error below.
I think it relates to this
wait
.https://github.com/bazelbuild/rules_docker/blob/master/contrib/push-all.sh.tpl#L37
The text was updated successfully, but these errors were encountered: