Package checks extremely slow with large build environments #5126
Labels
in-progress
issue is actively being worked on
locked
[bot] locked due to inactivity
source::community
catch-all for issues filed by community members
type::bug
describes erroneous operation, use severity::* to classify the type
Checklist
What happened?
When the build environment is very large, the post-packaging checks take an extremely long time. The culprit seems to be https://github.com/conda/conda-build/blob/main/conda_build/post.py#L988 (or somewhere in its call chain), where it it seems to wind up calling
stat
on every file in the build environment. This becomes a problem when building a Rust package, because the current Rust compiler toolchain installs documentation (35K files) and — aftercargo build
has completed — a copy of the cargo index (37K files). On Linux, this takes several minutes; on Windows, it takes hours. For an example of a public build that is affected, see conda-forge/deno-feedstock#79.I determined this by two things:
strace
on the conda-build while it appeared stuck, saw manystat
callsI just started noticing this recently; I don't know if it is a change in conda-build or a change in how the rust compiler is packaged in conda-forge.
Conda Info
No response
Conda Config
No response
Conda list
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: