Skip to content

Checkout actual spack-config ref supplied, update references to new upstream-spack-packages repository#390

Merged
CodeGat merged 1 commit into
v8from
upstream-spack-packages-fix
May 20, 2026
Merged

Checkout actual spack-config ref supplied, update references to new upstream-spack-packages repository#390
CodeGat merged 1 commit into
v8from
upstream-spack-packages-fix

Conversation

@CodeGat
Copy link
Copy Markdown
Member

@CodeGat CodeGat commented May 20, 2026

See failing workflow https://github.com/ACCESS-NRI/ACCESS-OM2/actions/runs/26136102887/job/76871574166?pr=148

Background

The above workflow actually demonstrates two bugs:

Bug 1: Using a non-existent step output

In deploy-1-setup.ymls Checkout spack-config to get builtin spack-packages ref step, we mistakenly template actions/checkouts ref with steps.config-settings-refs.outputs.spack-config (which doesn't exist - should be steps.config-settings-refs.outputs.spack-config-ref). This means that it has been using the current main of spack-config for validation of configuration, rather than the version that the spack instance is currently using.

Due to a recent change (ACCESS-NRI/spack-config#113) to spack-config, it led to us attempting to validate a ACCESS-NRI/upstream-spack-packages branch against the spack/spack-packages repository. Which leads to the second bug...

Bug 2: Not updating references to upstream-spack-packages

We have moved to ACCESS-NRI/upstream-spack-packages. But the CI is still validating against the original spack/spack-packages. Even if the first bug hadn't happened, this would show up when we updated the spack instances spack-config to the current main.

The PR

  • Checkout the actual spack-config ref, rather than main, by using the proper template variable
  • Update all references of spack/spack-packages to ACCESS-NRI/upstream-spack-packages.

…mplating, update all references from spack/spack-packages to access-nri/upstream-spack-packages
Copy link
Copy Markdown
Member

@aidanheerdegen aidanheerdegen left a comment

Choose a reason for hiding this comment

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

LGTM

@CodeGat CodeGat merged commit f3fe18b into v8 May 20, 2026
3 checks passed
@CodeGat CodeGat deleted the upstream-spack-packages-fix branch May 20, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants