Skip to content

Commit

Permalink
Merge pull request #4557 from ESMCI/jgfouca/fix_clone_test_cases
Browse files Browse the repository at this point in the history
It's removal in #4546 seems to have broken a number of less-common test types (ERR, MCC, IRT, PRE).

MCC_P1.f19_g16_rx1.A
ERROR: ERROR: must invoke case.setup script before calling build script
ERR_Ln9.f45_g37_rx1.A
Exception from case_test: [Errno 2] No such file or directory: '/scratch/jenkins-slave/workspace/CIME_DEVELOPER_TESTS_MASTER/archive/ERR_Ln9.f45_g37_rx1.A.anlgce_gnu.20240102_114925_1cza5r/rest'
Exception from case_test: [Errno 20] Not a directory: '/scratch/jenkins-slave/workspace/CIME_DEVELOPER_TESTS_MASTER/ERR_Ln9.f45_g37_rx1.A.anlgce_gnu.20240102_114925_1cza5r/run/case2run/timing'
IRT_N2_Vmct_Ln9.f19_g16_rx1.A
Exception from case_test: [Errno 20] Not a directory: '/scratch/jenkins-slave/workspace/CIME_DEVELOPER_TESTS_MASTER/IRT_N2_Vmct_Ln9.f19_g16_rx1.A.anlgce_gnu.20240102_114925_1cza5r/run/case2run/timing'
PRE.f19_f19.ADESP
Exception from case_test: ERROR: Do not know about batch job case.test
Test suite: the test cases above, by hand
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes [CIME Github issue #]

User interface changes?:

Update gh-pages html (Y/N)?:
  • Loading branch information
jgfouca authored Jan 3, 2024
2 parents 7e9df5f + 58b7cab commit 14fd58b
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 13 deletions.
4 changes: 0 additions & 4 deletions CIME/SystemTests/erp.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ def _case_two_setup(self):
self._case.set_value("ROOTPE_{}".format(comp), int(rootpe / 2))

RestartTest._case_two_setup(self)
self._case.case_setup(test_mode=True, reset=True)
# Note, some components, like CESM-CICE, have
# decomposition information in env_build.xml that
# needs to be regenerated for the above new tasks and thread counts

def _case_one_custom_postrun_action(self):
self.copy_case1_restarts_to_case2()
1 change: 0 additions & 1 deletion CIME/SystemTests/nck.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ def _case_two_setup(self):
if rootpe > 1:
self._case.set_value("ROOTPE_{}".format(comp), int(rootpe - ntasks))
self._case.set_value("NTASKS_{}".format(comp), ntasks * 2)
self._case.case_setup(test_mode=True, reset=True)
1 change: 0 additions & 1 deletion CIME/SystemTests/pea.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ def _case_two_setup(self):

if os.path.isfile("Macros"):
os.remove("Macros")
self._case.case_setup(test_mode=True, reset=True)
1 change: 0 additions & 1 deletion CIME/SystemTests/pem.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ def _case_two_setup(self):
if ntasks > 1:
self._case.set_value("NTASKS_{}".format(comp), int(ntasks / 2))
self._case.set_value("ROOTPE_{}".format(comp), int(rootpe / 2))
self._case.case_setup(test_mode=True, reset=True)
5 changes: 0 additions & 5 deletions CIME/SystemTests/pet.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ def _case_one_setup(self):
if self._case.get_value("NTHRDS_{}".format(comp)) <= 1:
self._case.set_value("NTHRDS_{}".format(comp), 2)

# Need to redo case_setup because we may have changed the number of threads

def _case_two_setup(self):
# Do a run with all threads set to 1
for comp in self._case.get_values("COMP_CLASSES"):
self._case.set_value("NTHRDS_{}".format(comp), 1)

# Need to redo case_setup because we may have changed the number of threads
self._case.case_setup(reset=True, test_mode=True)
1 change: 0 additions & 1 deletion CIME/SystemTests/seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ def _case_two_setup(self):
rootpe += newntasks

self._case.flush()
self._case.case_setup(test_mode=True, reset=True)
4 changes: 4 additions & 0 deletions CIME/SystemTests/system_tests_compare_two.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
(2) _case_two_setup
This method will be called to set up case 2, the "test" case
Note that the base class will always call case_setup(reset=True) on
both case1 and case2 during setup.
In addition, they MAY require the following methods:
(1) _common_setup
Expand Down Expand Up @@ -559,6 +562,7 @@ def _setup_cases(self):
self._activate_case2()
self._common_setup()
self._case_two_setup()
self._case2.case_setup(test_mode=True, reset=True)

fix_single_exe_case(self._case2)

Expand Down

0 comments on commit 14fd58b

Please sign in to comment.