Skip to content

Commit a240c5d

Browse files
Merge remote-tracking branch 'upstream/main' into git_migration_pkg_branch
2 parents 8354c6a + 5f82839 commit a240c5d

4 files changed

Lines changed: 10 additions & 16 deletions

File tree

git-migration/config.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@
223223
{ "um13.6": 1642 },
224224
{ "um13.7": 1673 },
225225
{ "um13.8": 1741 },
226-
{ "um13.9": 1831 }
226+
{ "um13.9": 1831 },
227+
{ "git_migration": 1951 }
227228
]
228229
},
229230
{
@@ -559,7 +560,8 @@
559560
{ "um13.6": 1613 },
560561
{ "um13.7": 1613 },
561562
{ "um13.8": 1736 },
562-
{ "um13.9": 1829 }
563+
{ "um13.9": 1829 },
564+
{ "git_migration": 1829 }
563565
]
564566
}
565567
]

github_scripts/suite_data.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,7 @@ def populate_gitbdiff(self) -> None:
176176

177177
for dependency, data in self.dependencies.items():
178178
if not data["gitinfo"].is_main():
179-
if dependency.lower() == "simsys_scripts":
180-
parent = "main"
181-
else:
182-
parent = "trunk"
179+
parent = "main"
183180
self.dependencies[dependency]["gitbdiff"] = GitBDiff(
184181
repo=self.temp_directory / dependency, parent=parent
185182
).files()
@@ -309,7 +306,7 @@ def get_workflow_id(self) -> str:
309306

310307
with open(self.suite_path / "log" / "scheduler" / "log", "r") as f:
311308
for line in f:
312-
match = re.search(r"INFO - Workflow: (\w+\/\w+)", line)
309+
match = re.search(r"INFO - Workflow: (\S+\/\w+)", line)
313310
try:
314311
workflow_id = match.group(1)
315312
return workflow_id
@@ -339,7 +336,7 @@ def read_groups_run(self) -> str:
339336
for row in self.query_suite_database(
340337
self.suite_path / "log" / "db", ["key", "value"], "workflow_template_vars"
341338
):
342-
if row[0] in ("g", "groups"):
339+
if row[0] in ("g", "group"):
343340
groups = row[1].strip("[]'\"").split(",")
344341
break
345342
return groups

github_scripts/suite_report_git.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def create_suite_info_table(self) -> None:
123123
("Suite User", self.suite_user),
124124
("Workflow Start", self.suite_starttime),
125125
("Groups Run", ",".join(g for g in self.groups)),
126-
("ROSE_ORIG_HOST", self.rose_data["ROSE_ORIG_HOST"]),
127126
)
128127

129128
for row in rows:

nightly_testing/generate_test_suite_cron.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def generate_clean_commands(cylc_version, name, log_file):
176176
return (
177177
f"{PROFILE} ; "
178178
f"export CYLC_VERSION={cylc_version} ; "
179-
f"cylc stop '{name}' >/dev/null 2>&1 ; sleep 10 ; "
179+
f"cylc stop --kill '{name}' >/dev/null 2>&1 ; sleep 10 ; "
180180
f"cylc clean --timeout=7200 -y -q {name} "
181181
f">> {log_file} 2>&1\n"
182182
)
@@ -214,7 +214,7 @@ def generate_cylc_command(suite, wc_path, cylc_version, name):
214214
)
215215
if "revisions" in suite and suite["revisions"] == "heads":
216216
command += "-S USE_HEADS=true "
217-
command += f"{os.path.join(wc_path, "rose-stem")} "
217+
command += f"{os.path.join(wc_path, 'rose-stem')} "
218218
return command
219219

220220

@@ -244,10 +244,6 @@ def generate_main_job(name, suite, log_file, wc_path, cylc_version):
244244

245245
job_command = f"{PROFILE} ; "
246246

247-
# LFRic Apps heads uses a different working copy
248-
if suite["repo"] == "lfric_apps" and suite["revisions"] == "heads":
249-
wc_path = wc_path + "_heads"
250-
251247
# Begin rose-stem command
252248
job_command += generate_cylc_command(suite, wc_path, cylc_version, name)
253249

@@ -282,7 +278,7 @@ def generate_cron_job(suite_name, suite, log_file):
282278

283279
date_str = f"_$({DATE_BASE})"
284280
name = suite_name + date_str
285-
wc_path = os.path.join(CLONE_DIR, "wc_" + suite["repo"])
281+
wc_path = os.path.join(CLONE_DIR, "clone_" + suite["repo"])
286282

287283
header = generate_header(suite_name, suite)
288284
cron_job = generate_main_job(name, suite, log_file, wc_path, cylc_version)

0 commit comments

Comments
 (0)