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

Update spack_cpu_build.yaml to not checkout in base image build step #186

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

cameronrutherford
Copy link
Collaborator

@cameronrutherford cameronrutherford commented Sep 19, 2024

In debugging LLNL/hiop#695, I realised that the clone happens at multiple steps in the pipelines, and doesn't need to.

By not cloning when building the base image, we speed up the initial builds a little. We could also kick off the base image pipeline in a separate workflow, and it would surely complete in time for a full spack build (the spack job only needs it to upload to the remote registry.

There's a potential race condition with that if the spack pipeline fails quickly... so I don't see a need to do that.

Copy link
Collaborator

@pelesh pelesh left a comment

Choose a reason for hiding this comment

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

Everything seems to work fine.

@cameronrutherford, could you please explain why this change? Just to document it for posterity ;).

@pelesh pelesh added the testing label Sep 19, 2024
@cameronrutherford
Copy link
Collaborator Author

cameronrutherford commented Sep 20, 2024

We already clone the repo in the matrix of jobs in line 83 of the updated file, and so this clone step I remove is unecessary.

@pelesh
Copy link
Collaborator

pelesh commented Sep 20, 2024

CC @stonecoldhughes

@pelesh pelesh merged commit cc8e57a into develop Sep 20, 2024
4 checks passed
@pelesh pelesh deleted the spack-pipeline-fixup branch October 15, 2024 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants