From bb59bfa2efc868e4a240e35e510c0991026f1745 Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Tue, 12 Nov 2024 11:32:04 -0700 Subject: [PATCH 1/2] add timing files to git repo, update cprnc external --- CIME/case/case_setup.py | 2 +- CIME/get_timing.py | 9 +++++++++ CIME/non_py/cprnc | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CIME/case/case_setup.py b/CIME/case/case_setup.py index 6ca33d6cabc..671b9ca3757 100644 --- a/CIME/case/case_setup.py +++ b/CIME/case/case_setup.py @@ -565,7 +565,7 @@ def case_setup(self, clean=False, test_mode=False, reset=False, keep=None): caseroot=caseroot, is_batch=is_batch, ) - self._create_case_repo(caseroot) + self._create_case_repo(caseroot) def _create_case_repo(self, caseroot): diff --git a/CIME/get_timing.py b/CIME/get_timing.py index 88657d926d2..15b89f18ce9 100644 --- a/CIME/get_timing.py +++ b/CIME/get_timing.py @@ -7,6 +7,7 @@ from CIME.XML.standard_module_setup import * from CIME.utils import safe_copy +from CIME.status import append_case_status import datetime, re @@ -928,3 +929,11 @@ def _getTiming(self, inst=0): def get_timing(case, lid): parser = _TimingParser(case, lid) parser.getTiming() + if case._gitinterface: + case._gitinterface._git_command("add", "*." + lid) + append_case_status( + "", + "", + msg="Timing files created for run at {}".format(lid), + gitinterface=case._gitinterface, + ) diff --git a/CIME/non_py/cprnc b/CIME/non_py/cprnc index e3eaa5346ec..909d6a8d90f 160000 --- a/CIME/non_py/cprnc +++ b/CIME/non_py/cprnc @@ -1 +1 @@ -Subproject commit e3eaa5346ecd50aef8b60fdf54b98cb1c13a24b1 +Subproject commit 909d6a8d90fccb3131041becb87beb73b34101b4 From ba999e9c2201762112e81891f71785b8c755431b Mon Sep 17 00:00:00 2001 From: Jim Edwards Date: Tue, 12 Nov 2024 12:33:45 -0700 Subject: [PATCH 2/2] improve message text --- CIME/case/case_setup.py | 2 +- CIME/get_timing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CIME/case/case_setup.py b/CIME/case/case_setup.py index 671b9ca3757..6ca33d6cabc 100644 --- a/CIME/case/case_setup.py +++ b/CIME/case/case_setup.py @@ -565,7 +565,7 @@ def case_setup(self, clean=False, test_mode=False, reset=False, keep=None): caseroot=caseroot, is_batch=is_batch, ) - self._create_case_repo(caseroot) + self._create_case_repo(caseroot) def _create_case_repo(self, caseroot): diff --git a/CIME/get_timing.py b/CIME/get_timing.py index 15b89f18ce9..a5526ccec8b 100644 --- a/CIME/get_timing.py +++ b/CIME/get_timing.py @@ -934,6 +934,6 @@ def get_timing(case, lid): append_case_status( "", "", - msg="Timing files created for run at {}".format(lid), + msg="Timing files created for run {}".format(lid), gitinterface=case._gitinterface, )