Skip to content

Add version field to config.yaml; gate on version 2 recipes#223

Merged
bcumming merged 7 commits into
eth-cscs:mainfrom
bcumming:recipe-versions
Jun 6, 2025
Merged

Add version field to config.yaml; gate on version 2 recipes#223
bcumming merged 7 commits into
eth-cscs:mainfrom
bcumming:recipe-versions

Conversation

@bcumming

@bcumming bcumming commented Jun 5, 2025

Copy link
Copy Markdown
Member

Add version filed to config.yaml, and generate a meaningful error message for old recipes.

Note, that this does not remove the internal logic for detecting Spack versions, which can be simplified (a lot) after we have proper gating of recipe versions.

Comment thread stackinator/recipe.py
Comment on lines +54 to +57
# check the version of the recipe
if self.config["version"] != 2:
rversion = self.config["version"]
if rversion == 1:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is version 3 supposed to work here or not? Currently it would, as would version 0.

Do we want to make the new versions backwards compatible, i.e. version 3 recipe works with stackinator version 2? Or the version has to match exactly? The latter is definitely simpler.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Indeed.
I now generate a different error for versions not in [1,2].

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am aiming for exact matches: a version of Stackinator will support a specific recipe version.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Perfect, thanks.

@bcumming
bcumming merged commit f8e5d67 into eth-cscs:main Jun 6, 2025
2 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in stackinator recipe v2 work Jun 6, 2025
@bcumming
bcumming deleted the recipe-versions branch May 26, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants