Skip to content

"spack mirror create -a" (mirror all) in parallel (continuation of #48411)#50901

Merged
scheibelp merged 74 commits intospack:developfrom
alstar555:mirror-parallel-clean
Oct 2, 2025
Merged

"spack mirror create -a" (mirror all) in parallel (continuation of #48411)#50901
scheibelp merged 74 commits intospack:developfrom
alstar555:mirror-parallel-clean

Conversation

@alstar555
Copy link
Copy Markdown
Contributor

This PR continues the work started by @aquan9 in PR #48411 to improve the spack mirror create -a performance through parallelization. Uses the -j/--jobs flag to specify the number of workers used when creating a full mirror.

I rebased the changes into the current develop branch and resolved merge conflicts.

@spackbot-app spackbot-app bot added commands core PR affects Spack core functionality documentation Improvements or additions to documentation shell-support tests General test capability(ies) labels Jun 17, 2025
@alstar555 alstar555 force-pushed the mirror-parallel-clean branch 3 times, most recently from 9b50502 to e67d936 Compare June 25, 2025 19:46
@alstar555 alstar555 force-pushed the mirror-parallel-clean branch 2 times, most recently from 0a8e17b to bf914fb Compare July 8, 2025 20:07
@tgamblin tgamblin added this to the v1.1.0 milestone Jul 11, 2025
@tgamblin tgamblin requested review from becker33 and scheibelp July 11, 2025 18:09
@scheibelp scheibelp self-assigned this Jul 11, 2025
Copy link
Copy Markdown
Member

@scheibelp scheibelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few requests. Let me know if any seem off-base.

@alstar555 alstar555 force-pushed the mirror-parallel-clean branch 3 times, most recently from 91ef6f3 to 6ccd67d Compare July 18, 2025 22:32
@alstar555 alstar555 requested a review from scheibelp July 21, 2025 15:40
Copy link
Copy Markdown
Member

@scheibelp scheibelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. After looking at the updates, I have a few more ideas for refactoring (a couple aspects of this are not purely refactoring though - e.g. I think there may be an issue with MirrorStats calculations, but I make a few suggestions for updating the tests which should catch that).

@alstar555 alstar555 force-pushed the mirror-parallel-clean branch 2 times, most recently from 5c5b034 to ed1311a Compare August 12, 2025 17:36
@alstar555 alstar555 requested a review from scheibelp August 12, 2025 21:19
Copy link
Copy Markdown
Member

@scheibelp scheibelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes so far! I have more requests. Let me know if any seem off-base.

@alstar555 alstar555 force-pushed the mirror-parallel-clean branch 2 times, most recently from f6b5e67 to cf51b2f Compare August 28, 2025 14:52
@alstar555 alstar555 force-pushed the mirror-parallel-clean branch from fab97c0 to c4e2af6 Compare September 5, 2025 19:30
@alstar555 alstar555 requested a review from scheibelp September 5, 2025 20:55
Copy link
Copy Markdown
Member

@scheibelp scheibelp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks nearly there. I also ran this myself on a small dag and the output looks good. I have a request for extending one of the tests, and a couple of other minor requests/questions.

@alstar555 alstar555 force-pushed the mirror-parallel-clean branch from bfbdc0f to e38c0a0 Compare September 17, 2025 16:58
Signed-off-by: Angelica Loshak <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
Signed-off-by: Angelica Loshak <[email protected]>
@alstar555 alstar555 force-pushed the mirror-parallel-clean branch from 866ab63 to 4885817 Compare September 25, 2025 22:52
@alstar555 alstar555 requested a review from scheibelp September 30, 2025 21:36
@scheibelp scheibelp enabled auto-merge (squash) October 2, 2025 22:13
@scheibelp scheibelp merged commit 8bdc124 into spack:develop Oct 2, 2025
31 checks passed
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 documentation Improvements or additions to documentation shell-support tests General test capability(ies)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants