Skip to content

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

@MagicMyles

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_\.-])*)$

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions