From 315bba94aef88fdf6a2d07041befc6d7ed8f8999 Mon Sep 17 00:00:00 2001 From: RiMillo Date: Fri, 4 Sep 2026 09:43:29 +0200 Subject: [PATCH] [feat] Support version-like environment names This relaxes the validation schema for environment names to allow, for instance, `foo-1.0.0`, `2026.09.0`. Fixes #3645 Signed-off-by: RiMillo --- reframe/schemas/config.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reframe/schemas/config.json b/reframe/schemas/config.json index 73c6970e4..63931fc62 100644 --- a/reframe/schemas/config.json +++ b/reframe/schemas/config.json @@ -11,6 +11,10 @@ "type": "string", "pattern": "^[a-zA-Z_](?:[a-zA-Z0-9_-])*$" }, + "alphanum_ext_vers_string": { + "type": "string", + "pattern": "^[a-zA-Z0-9_](?:[a-zA-Z0-9_.-])*$" + }, "system_ref": { "type": "array", "items": {"type": "string"} @@ -389,7 +393,7 @@ "items": { "type": "object", "properties": { - "name": {"$ref": "#/defs/alphanum_ext_string"}, + "name": {"$ref": "#/defs/alphanum_ext_vers_string"}, "modules": {"$ref": "#/defs/modules_list"}, "env_vars": {"$ref": "#/defs/envvar_list"}, "variables": {"$ref": "#/defs/envvar_list"},