Skip to content

Metadata Creation Uses spack --config-scope Scopes#357

Merged
CodeGat merged 4 commits intov8from
356-custom-scope-metadata-upload
Feb 12, 2026
Merged

Metadata Creation Uses spack --config-scope Scopes#357
CodeGat merged 4 commits intov8from
356-custom-scope-metadata-upload

Conversation

@CodeGat
Copy link
Copy Markdown
Member

@CodeGat CodeGat commented Feb 12, 2026

Closes #356

Background

Currently, if we install a package that uses a custom spack --config-scope, the metadata creation logic doesn't know about this, leading to certain models binaries that use restricted directories (like ACCESS-ESM1.6) to not be able to be md5 hashed.

The PR

  • Update the get_data_from_deployment.py script to take a --config-scopes arg, which loads the appropriate spack-config/custom/cd scopes.

Testing

Tested via the docker image: ghcr.io/access-nri/build-ci-upstream:rocky-v1.1-2026.02.000, in which I copied the script and ran:

spack env activate --create e
spack install --add access-esm1p6
./get_data_from_deployment.py \
  --environment /opt/environments/e \
  --deployment-name access-esm1p6 \
  --packages um7 \
  --config-scopes ukmo-restricted-scope

and it successfully generated md5 hashes of the um7 package binaries.

@CodeGat CodeGat added type:bug for:v8 Applies to v8 version:PATCH Bug fixes labels Feb 12, 2026
@CodeGat CodeGat self-assigned this Feb 12, 2026
Comment thread scripts/release_provenance/get_data_from_deployment.py
Comment thread scripts/release_provenance/get_data_from_deployment.py Outdated
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.

Sweet-as bro

@CodeGat CodeGat merged commit 7ec109a into v8 Feb 12, 2026
3 checks passed
@CodeGat CodeGat deleted the 356-custom-scope-metadata-upload branch February 12, 2026 05:16
CodeGat added a commit to ACCESS-NRI/ACCESS-ESM1.6 that referenced this pull request Feb 12, 2026
CodeGat added a commit to ACCESS-NRI/ACCESS-ESM1.6 that referenced this pull request Feb 24, 2026
CodeGat added a commit to ACCESS-NRI/ACCESS-ESM1.6 that referenced this pull request Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

for:v8 Applies to v8 type:bug version:PATCH Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to get metadata from restricted install directory

2 participants