forked from ufs-community/ufs-weather-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression Testing Updates: GNU/Intel into one RT. New logs/ dir in t…
…ests/ (ufs-community#1718) * move logs to logs/ folder, and move rt_gnu tests to rt.conf and delete rt_gnu.conf * Remove Intel/GNU specific calls for MACHINE_ID or in config scripts * default_vars machine name updates * ORT will continue and not exit if a test is unsupported * Logs will now contain the hashes of the UFSWM and its submodules * Adjust AutoRT with new BLDIR and no need for the compiler information * Remove compiler information from machine log files * Add -a option to opnReqTest
- Loading branch information
1 parent
f809067
commit 5d47ea8
Showing
93 changed files
with
11,918 additions
and
11,873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,20 +45,10 @@ def set_directories(job_obj): | |
|
||
def run_regression_test(job_obj, pr_repo_loc): | ||
logger = logging.getLogger('RT/RUN_REGRESSION_TEST') | ||
if job_obj.compiler == 'gnu' and job_obj.machine != 'hera': | ||
rt_command = [[f'export RT_COMPILER="{job_obj.compiler}" && cd tests ' | ||
'&& /bin/bash --login ./rt.sh -e -l rt_gnu.conf', | ||
pr_repo_loc]] | ||
elif job_obj.compiler == 'gnu' and job_obj.machine == 'hera': | ||
rt_command = [[f'export RT_COMPILER="{job_obj.compiler}" && cd tests ' | ||
'&& /bin/bash --login ./rt.sh -r -l rt_gnu.conf', | ||
pr_repo_loc]] | ||
elif job_obj.compiler == 'intel' and job_obj.machine != 'hera': | ||
rt_command = [[f'export RT_COMPILER="{job_obj.compiler}" && cd tests ' | ||
'&& /bin/bash --login ./rt.sh -e', pr_repo_loc]] | ||
elif job_obj.compiler == 'intel' and job_obj.machine == 'hera': | ||
rt_command = [[f'export RT_COMPILER="{job_obj.compiler}" && cd tests ' | ||
'&& /bin/bash --login ./rt.sh -r', pr_repo_loc]] | ||
if job_obj.machine != 'hera': | ||
rt_command = [[f'cd tests && /bin/bash --login ./rt.sh -e', pr_repo_loc]] | ||
elif job_obj.machine == 'hera': | ||
rt_command = [[f'cd tests && /bin/bash --login ./rt.sh -r', pr_repo_loc]] | ||
job_obj.run_commands(logger, rt_command) | ||
|
||
|
||
|
@@ -114,17 +104,15 @@ def clone_pr_repo(job_obj, workdir): | |
def post_process(job_obj, pr_repo_loc, repo_dir_str, branch): | ||
''' This is the callback function associated with the "RT" command ''' | ||
logger = logging.getLogger('RT/MOVE_RT_LOGS') | ||
rt_log = f'tests/RegressionTests_{job_obj.machine}'\ | ||
f'.{job_obj.compiler}.log' | ||
rt_log = f'tests/logs/RegressionTests_{job_obj.machine}.log' | ||
filepath = f'{pr_repo_loc}/{rt_log}' | ||
rt_dir, logfile_pass = process_logfile(job_obj, filepath) | ||
if logfile_pass: | ||
#if job_obj.preq_dict['preq'].maintainer_can_modify: | ||
move_rt_commands = [ | ||
[f'git pull --ff-only origin {branch}', pr_repo_loc], | ||
[f'git add {rt_log}', pr_repo_loc], | ||
[f'git commit -m "[AutoRT] {job_obj.machine}' | ||
f'.{job_obj.compiler} Job Completed.\n\n\n' | ||
[f'git commit -m "[AutoRT] {job_obj.machine} Job Completed.\n\n\n' | ||
'on-behalf-of @ufs-community <[email protected]>"', | ||
pr_repo_loc], | ||
['sleep 10', pr_repo_loc], | ||
|
@@ -154,8 +142,7 @@ def process_logfile(job_obj, logfile): | |
job_obj.job_failed(logger, f'{job_obj.preq_dict["action"]}') | ||
else: | ||
logger.critical(f'Could not find {job_obj.machine}' | ||
f'.{job_obj.compiler} ' | ||
f'{job_obj.preq_dict["action"]} log') | ||
print(f'Could not find {job_obj.machine}.{job_obj.compiler} ' | ||
print(f'Could not find {job_obj.machine}' | ||
f'{job_obj.preq_dict["action"]} log') | ||
raise FileNotFoundError |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export BL_DATE=20230525 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.