Skip to content

Commit bf16ddf

Browse files
Minor test suite modifications (#124)
* minor modifications from pkg branch * remove rose_orig_host from table * set all as main * wrong branch name
1 parent 8d9fe9a commit bf16ddf

File tree

4 files changed

+4
-41
lines changed

4 files changed

+4
-41
lines changed

github_scripts/suite_data.py

Lines changed: 1 addition & 4 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()

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:

script_copyright_checker/bin/copyright_checker.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
import re
1414
from textwrap import wrap
1515

16-
from fcm_bdiff import (
17-
get_branch_diff_filenames,
18-
get_branch_info,
19-
get_url,
20-
is_trunk,
21-
use_mirror,
22-
)
23-
2416
# Desired maximum column width for output - we make an exception
2517
# for filenames, which are always printed on a single line to aid
2618
# ease of selection by the user
@@ -220,12 +212,6 @@ def parse_options():
220212
"run on use the full file list when trunk, " "else run on fcm branch-diff"
221213
),
222214
)
223-
excl_group.add_argument(
224-
"--bdiff",
225-
action="store_true",
226-
default=False,
227-
help="run on an fcm branch-diff",
228-
)
229215
excl_group.add_argument(
230216
"files",
231217
nargs="*",
@@ -234,26 +220,6 @@ def parse_options():
234220
)
235221
args = parser.parse_args()
236222

237-
if args.full_trunk:
238-
branch, retries = use_mirror("./")
239-
240-
# Get information about the branch
241-
info = get_branch_info(branch, retries=retries)
242-
243-
branch_url = get_url(info)
244-
245-
if is_trunk(branch_url):
246-
args.bdiff = False
247-
else:
248-
args.bdiff = True
249-
250-
if args.bdiff:
251-
# Filter the files returned by fcm bdiff to just the *.py ones
252-
args.files = [
253-
code_file
254-
for code_file in get_branch_diff_filenames("./", args.base_path)
255-
if _FILENAME_FILTER.match(code_file)
256-
]
257223
return args
258224

259225

umdp3_fixer/rosestem_branch_checker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ def diff_cwd_working(model_source, path, saved_umask, tmpdir):
8484
# we select only <x>
8585
print("[FAIL] " + diff_filesname.split()[1])
8686
print(
87-
"Please run rose-stem/bin/umdp3_fixer.py on each of the "
87+
"Please run umdp3_fixer.py on each of the "
8888
"failed files in your working copy and check the changes. "
8989
"Then commit the changes to your branch and then re-run all "
90-
"rose-stem testing."
90+
"rose-stem testing.\n\nThe umdp3_fixer.py script can be found in "
91+
"https://github.com/MetOffice/SimSys_Scripts.git"
9192
)
9293
os.umask(saved_umask)
9394
shutil.rmtree(tmpdir)

0 commit comments

Comments
 (0)