Skip to content

Commit c5d4480

Browse files
Merge branch 'main' into add_kgo_default_opts
2 parents fc0797f + 7a4d798 commit c5d4480

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

suite_report.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
"ncas": "fcm",
8989
"psc": "fcm",
9090
"uoleeds": "fcm",
91+
"azngarch": "fcm",
9192
"Unknown": "true",
9293
}
9394
RESOURCE_MONITORING_JOBS = {
@@ -107,6 +108,7 @@
107108
"ncas": [],
108109
"psc": [],
109110
"uoleeds": [],
111+
"azngarch": [],
110112
"Unknown": [],
111113
}
112114
CYLC_REVIEW_URL = {
@@ -124,6 +126,7 @@
124126
"ncas": "http://puma.nerc.ac.uk/cylc-review",
125127
"psc": "Unavailable",
126128
"uoleeds": "Unavailable",
129+
"azngarch": "Unavailable",
127130
"Unknown": "Unavailable",
128131
}
129132
HIGHLIGHT_ROSE_ANA_FAILS = [
@@ -166,6 +169,7 @@
166169
"mss": [],
167170
"ncas": [],
168171
"psc": [],
172+
"azngarch": [],
169173
"Unknown": [],
170174
}
171175

@@ -754,13 +758,9 @@ def check_versions_files(self):
754758
ending = ""
755759
project = vcs_data["url"]
756760

757-
prefix = "https://code.metoffice.gov.uk/svn/"
758-
prefix_svn = "svn://fcm1/"
759-
if project.startswith(prefix):
760-
project = project[len(prefix) :]
761-
if project.startswith(prefix_svn):
762-
project = project[len(prefix_svn) :]
763-
project = re.split("[/.]", project)[0].upper()
761+
match = re.match(r"(?:https://.*?/svn/|svn://[^/]+/)([^/\./]+)", project)
762+
if match:
763+
project = match.group(1).upper()
764764
projects[project] = {}
765765

766766
# Use the version control url as the project source

0 commit comments

Comments
 (0)