Skip to content

Relax alphanum_ext_string schema to support numeric and version-based environment names #3645

Description

@MagicMyles

Currently, ReFrame environment names are validated against the alphanum_ext_string definition in the internal JSON schema. This regex explicitly requires names to start with a letter.
https://github.com/reframe-hpc/reframe/blob/develop/reframe/schemas/config.json#L379

This prevents users from using standard versioning or date-based strings as environment names.

Proposed Fix:
Update the alphanum_ext_string pattern in the ReFrame schema definitions to allow digits at the start of the string and include the dot character.

Current Regex:
^([a-zA-Z_]([a-zA-Z0-9_]|-)*)$

Proposed Regex:
^([a-zA-Z0-9_]([a-zA-Z0-9_\.-])*)$

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions