Skip to content

Add back variants after Prerelease Root Spec modifications #261

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

Merged
merged 3 commits into from
Apr 2, 2025

Conversation

CodeGat
Copy link
Member

@CodeGat CodeGat commented Apr 1, 2025

Closes #260

Background

When we are doing our prerelease modifications, we replace the root spec with only the root spec name (removing any @git.VERSION as required), but we don't add back any variants that may have been in the original root spec definition. More details are in the linked issue.

In this PR, we do our replacements a bit more carefully - so if the original spec was access-om2@git.2025.03.0 +debug, the replaced spec would be access-om2 +debug rather than access-om2.

The PR

  • Export optional variants from get-spack-root-spec action
  • Instead of just replacing the entire root spec with the root spec name, include the variants as well

Testing

@CodeGat CodeGat force-pushed the 260-prerelease-root-spec-variants branch from c761b82 to f041850 Compare April 1, 2025 03:51
Copy link
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 39cab19 into v4 Apr 2, 2025
@github-project-automation github-project-automation bot moved this from New Issues 🌅 to Done ✅ in Model Release Apr 2, 2025
@CodeGat CodeGat deleted the 260-prerelease-root-spec-variants branch April 2, 2025 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for:v4 Applies to `v4` priority:high type:bug version:MINOR Doesn't require update to Model Deployment Repositories
Projects
Status: Done ✅
Development

Successfully merging this pull request may close these issues.

Variants are stripped from root spec due to prerelease modifications
2 participants