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

  1. changed the title [-]Relax 'alphanum_ext_string' schema to support numeric and version-based environment names[/-] [+]Relax `alphanum_ext_string` schema to support numeric and version-based environment names[/+] on Mar 27, 2026
  2. added theissue type on Mar 27, 2026
  3. removed theissue type on Mar 27, 2026
  4. vkarak commented on Apr 1, 2026

    @vkarak
    Contributor

    Hi @MagicMyles, could you give an example of an environment name that would be more natural if it started with a digit?

  5. MagicMyles commented on Apr 2, 2026

    @MagicMyles
    Author

    Hi @vkarak, thanks for helping. Its very appreciated.

    Yes we have date based environment names such as 2026.04 which is not allowed due to the alphanum_ext_string pattern check:

    "alphanum_ext_string": {
                "type": "string",
                "pattern": "([a-zA-Z_]([a-zA-Z0-9_]|-)*)"
            }
    

    I would say its not a major blocker as we can rename our environments. However it creates inconsistencies which is not ideal.

  6. added this to the ReFrame 4.11 milestone on Jun 1, 2026
  7. added theissue type on Jun 17, 2026
  8. added a commit that references this issue on Sep 4, 2026
    315bba9
  9. self-assigned this
    on Sep 9, 2026
  10. moved this from Todo to In Progress in ReFrame Backlogon Sep 9, 2026
  11. vkarak commented on Sep 9, 2026

    @vkarak
    Contributor

    @MagicMyles Could you try out #3725 ?

  12. MagicMyles commented on Sep 10, 2026

    @MagicMyles
    Author

    @MagicMyles Could you try out #3725 ?

    Hi @vkarak ,

    Thank you very much for implementing this for us. It is much appreciated!

    It looks okay to me. The update to the schema alphanum_ext_string pattern is what we needed for the names of our environments.

  13. moved this from In Progress to Done in ReFrame Backlogon Sep 23, 2026
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