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

[Bug]: oci_python_image / py_layers unnecessarily rebuilds all layers #378

Closed
gfrankliu opened this issue Nov 29, 2024 · 1 comment
Closed
Labels
bug Something isn't working untriaged Requires traige

Comments

@gfrankliu
Copy link

What happened?

py_layers creates three tar files for layers = ["interpreter", "packages", "app"]

If you make a small change to your app, bazel build will recreate all three tar files, even though there is no change in "interpreter", "packages".

This is especially a problem if you have a large packages file (eg: pytorch and friends will be many GB), and it takes more than 5 minutes to tar/compress the packages unnecessarily when you only make a small change in your app.

To make things worse, gzip compression doesn't support multicore, so only a single cpu is being used.

Version

bazel v7.4.1

How to reproduce

No response

Any other information?

No response

@gfrankliu
Copy link
Author

The issue is fixed with this patch: #372 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged Requires traige
Projects
None yet
Development

No branches or pull requests

1 participant