diff options
author | Jordan Galby <67924449+Jordan474@users.noreply.github.com> | 2022-10-05 14:01:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 06:01:59 -0600 |
commit | 6c12630e956129343b075ca538d4059c03634ef2 (patch) | |
tree | db3f1e6b9c96bdfc74edfa32f22537ec7beadfe1 /.codecov.yml | |
parent | 53cea629b774f7d255e37b2c75ad4f25f06764db (diff) | |
download | spack-6c12630e956129343b075ca538d4059c03634ef2.tar.gz spack-6c12630e956129343b075ca538d4059c03634ef2.tar.bz2 spack-6c12630e956129343b075ca538d4059c03634ef2.tar.xz spack-6c12630e956129343b075ca538d4059c03634ef2.zip |
Optimize concurrent misc_cache provider index rebuild (#32874)
When concurrent misc_cache provider index rebuilds happen, try to
rebuild it only once, so we don't exceed misc_cache lock timeout.
For example, when using `spack env depfile`, with no previous
misc_cache, running `make -f depfile -j8` could run at most 8 concurrent
`spack install` locking on misc_cache to rebuild the provider index. If
one rebuild takes 30s, before this fix, the "worst" lock could wait up
to 30s * 7, easily exceeding misc_cache lock timeout. Now, the "worst"
lock would take 30s * 1 + ~1s * 6.
Diffstat (limited to '.codecov.yml')
0 files changed, 0 insertions, 0 deletions