Skip to content

Conversation

@douglasjacobsen
Copy link
Collaborator

This merge adds support for variants and two new directives.

Variants can be defined within object definitions to give them default values and allow experiments to define them.

The two new directives that are added are when and default_args. These were backported from Spack's implementation, and allow default definitions for shared arguments to be passed through with blocks.

@douglasjacobsen douglasjacobsen added enhancement New feature or request testing Modifications to testing objects Modifications to objects (applications or modifiers) labels Apr 7, 2025
This commit ports Spack's when and default_args functions (which can be
used as directives) into Ramble's language definitions.
This commit adds support to each object type for variant definitions.
Famiies are also added to workflow managers and package manager to
enable variant checks to be easier to define.
@douglasjacobsen douglasjacobsen changed the title When clause Add support for variants, a when clause, and the default_args clause Apr 7, 2025
This commit propagates the changes for the `software_spec` and
`required_package` directories, as then `package_manager` argument is
deprecated now.

Families are also added for the package manager and workflow manager
definitions.
Copy link
Member

@linsword13 linsword13 left a comment

Choose a reason for hiding this comment

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

Exciting stuff! A couple nit comments for now ;)

@douglasjacobsen douglasjacobsen force-pushed the when-clause branch 2 times, most recently from cc290f5 to c4850b0 Compare April 10, 2025 14:25
linsword13
linsword13 previously approved these changes Apr 10, 2025
rfbgo
rfbgo previously approved these changes Apr 14, 2025
@douglasjacobsen douglasjacobsen dismissed stale reviews from rfbgo and linsword13 via d7e0930 April 14, 2025 20:20
@rfbgo rfbgo merged commit a4aebf9 into GoogleCloudPlatform:develop Apr 15, 2025
12 checks passed
@douglasjacobsen douglasjacobsen deleted the when-clause branch July 21, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request objects Modifications to objects (applications or modifiers) testing Modifications to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants