features: Add install failure tracking removal through spack clean#15314
features: Add install failure tracking removal through spack clean#15314becker33 merged 13 commits intospack:developfrom
spack clean#15314Conversation
f9895b0 to
fca96a5
Compare
15f0302 to
b4d0773
Compare
spack cleanspack clean
spack cleanspack clean
0ea06a8 to
0f5d4ae
Compare
| """ | ||
| Remove all failure tracking markers for the Spack instance. | ||
| """ | ||
| spack.store.db.clear_all_failures() |
There was a problem hiding this comment.
not opposed to this function but it does seem to indicate that the failure file management should get its own class.
There was a problem hiding this comment.
True. Where does the refactor fit within the priorities?
08ca9cb to
8e7c70a
Compare
|
FWIW. Merged |
|
Note project and patch coverage diffs show two uncovered lines that were unchanged in by this PR. |
|
Interesting about the foreground/background test failing on MacOS (see below). I've seen this on other PRs as well. |
|
Oops. That was supposed to be a comment, not closing the PR. |
|
@becker33 The coverage "issue" is with untouched code near the changes. |
All requests from this review have been satisfied
Note this PR addresses a feature a user asked about when #13100 was under testing.
The distributed build process automatically removes failure tracking information for relevant packages when
spack installis executed. This has been shown to cause problems with environment installations fromspack.yamlfiles -- see #15415 -- that led to the need to optionally retain failure tracking.This PR adds the ability to explicitly remove install failure tracking data for a Spack instance through the
spack cleancommand using either the-for-aoptions.TODO
Follow-On Work
packaging_guide.rst's discussion of--keep-failuresshould be changed to reference thespack clean -foption