Skip to content

Add --fail-fast option for generating build caches#38496

Merged
alalazo merged 6 commits intospack:developfrom
climbfuji:feature/buildcache_fail_fast
Aug 23, 2023
Merged

Add --fail-fast option for generating build caches#38496
alalazo merged 6 commits intospack:developfrom
climbfuji:feature/buildcache_fail_fast

Conversation

@climbfuji
Copy link
Copy Markdown
Contributor

@climbfuji climbfuji commented Jun 20, 2023

Description

Add --fail-fast option for generating build caches to lib/spack/spack/cmd/buildcache.py. This implementation follows a suggestion made by @haampie in #35601 (comments #35601 (comment) and #35601 (comment)).

The default behavior is the same as for spack install, which means spack buildcache create will make best efforts and ignore build cache creation failures (but report them at the end).

@spackbot-app spackbot-app bot added commands core PR affects Spack core functionality labels Jun 20, 2023
@climbfuji climbfuji marked this pull request as ready for review June 21, 2023 13:45
@climbfuji climbfuji requested review from haampie and tgamblin June 21, 2023 13:45
@climbfuji climbfuji requested a review from alalazo June 23, 2023 17:28
@climbfuji
Copy link
Copy Markdown
Contributor Author

@haampie Gentle reminder for this PR ... we need this for our macOS CI systems. Thanks very much!

@climbfuji
Copy link
Copy Markdown
Contributor Author

@haampie @scheibelp Another gentle reminder for this PR (now a few months old) ... I updated the code this morning and the unit tests pass except for an odd codecov/patch failure. Thanks!

@haampie haampie force-pushed the feature/buildcache_fail_fast branch from 6b2f42e to ebadf6a Compare August 18, 2023 11:38
@haampie haampie force-pushed the feature/buildcache_fail_fast branch from bb78e6c to 1005ab5 Compare August 18, 2023 11:43
@haampie
Copy link
Copy Markdown
Member

haampie commented Aug 18, 2023

I pushed a commit that makes an exception for some exceptions and actually reraises an exception s.t. the exit code is correct.

@climbfuji
Copy link
Copy Markdown
Contributor Author

I pushed a commit that makes an exception for some exceptions and actually reraises an exception s.t. the exit code is correct.

Thanks @haampie your changes look good!

@alalazo alalazo merged commit 31d5f56 into spack:develop Aug 23, 2023
@climbfuji
Copy link
Copy Markdown
Contributor Author

Thank you @haampie and @alalazo!

@climbfuji climbfuji deleted the feature/buildcache_fail_fast branch August 23, 2023 12:20
mpokorny pushed a commit to mpokorny/spack that referenced this pull request Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands core PR affects Spack core functionality shell-support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants