Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitlab: Add shared PR mirror to places pipelines look for binaries. #33746

Merged

Conversation

scottwittenburg
Copy link
Contributor

While binaries built for PRs that get merged must still be rebuilt in develop pipelines, they can be used by other PRs that find they would otherwise need to rebuild them. Now that spackbot is managing copying PR binaries from merged PRs into a shared location, keeping it pruned to a reasonable size, and making sure the indices are up to date, spack can use these mirrors as a potential source of binaries (for PR pipelines only).

@spackbot-app spackbot-app bot added commands core PR affects Spack core functionality tests General test capability(ies) labels Nov 7, 2022
@@ -472,6 +472,9 @@ def ci_rebuild(args):
spack.mirror.add("mirror_override", remote_mirror_override, cfg.default_modify_scope())
pipeline_mirrors.append(remote_mirror_override)

if spack_pipeline_type == "spack_pull_request":
pipeline_mirrors.append(spack_ci.SHARED_PR_MIRROR_URL)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this add them per-stack?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, yeah, thanks. Will fix.

While binaries built for PRs that get merged must still be rebuilt
in develop pipelines, they can be used by other PRs that find they
would otherwise need to rebuild them.  Now that spackbot is
managing copying PR binaries from merged PRs into a shared location,
keeping it pruned to a reasonable size, and making sure the indices
are up to date, spack can use these mirrors as a potential source
of binaries.
@scottwittenburg
Copy link
Contributor Author

@spackbot run pipeline

@spackbot-app
Copy link

spackbot-app bot commented Nov 11, 2022

I've started that pipeline for you!

@scottwittenburg scottwittenburg merged commit 5c4137b into spack:develop Nov 15, 2022
@scottwittenburg scottwittenburg deleted the add-shared-pr-binary-mirror branch November 15, 2022 02:39
haampie added a commit that referenced this pull request Nov 23, 2022
tgamblin pushed a commit that referenced this pull request Nov 23, 2022
haampie added a commit to adamjstewart/spack that referenced this pull request Nov 28, 2022
haampie added a commit that referenced this pull request Nov 28, 2022
alalazo pushed a commit that referenced this pull request Nov 28, 2022
kwryankrattiger added a commit that referenced this pull request Dec 2, 2022
amd-toolchain-support pushed a commit to amd-toolchain-support/spack that referenced this pull request Feb 16, 2023
…pack#33746)

While binaries built for PRs that get merged must still be rebuilt
in develop pipelines, they can be used by other PRs that find they
would otherwise need to rebuild them.  Now that spackbot is
managing copying PR binaries from merged PRs into a shared location,
keeping it pruned to a reasonable size, and making sure the indices
are up to date, spack can use these mirrors as a potential source
of binaries.
amd-toolchain-support pushed a commit to amd-toolchain-support/spack that referenced this pull request Feb 16, 2023
amd-toolchain-support pushed a commit to amd-toolchain-support/spack that referenced this pull request Feb 16, 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 tests General test capability(ies)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants