From d1d8bd4074e8b20b572bad8c4c68a33cb994b563 Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 10 Sep 2026 07:58:35 +0100 Subject: [PATCH 1/5] shared git clone --- nightly_testing/generate_test_suite_cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly_testing/generate_test_suite_cron.py b/nightly_testing/generate_test_suite_cron.py index e0f61028..7986e16f 100755 --- a/nightly_testing/generate_test_suite_cron.py +++ b/nightly_testing/generate_test_suite_cron.py @@ -82,7 +82,7 @@ def create_git_clone_cron(repo): length = len(command) command = f"{length * '#'}\n{command}\n{length * '#'}\n30 23 * * * " command += f"rm -rf {clone_path} ; " - command += f"git clone {repo_mirror} {clone_path}" + command += f"git clone --shared {repo_mirror} {clone_path}" return command + "\n\n\n" From 56a6982645adf17dea5342fb8e91e1c292119046 Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 10 Sep 2026 08:00:04 +0100 Subject: [PATCH 2/5] unit tests --- nightly_testing/tests/test_generate_test_suite_cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly_testing/tests/test_generate_test_suite_cron.py b/nightly_testing/tests/test_generate_test_suite_cron.py index 6c287e9f..36e55705 100644 --- a/nightly_testing/tests/test_generate_test_suite_cron.py +++ b/nightly_testing/tests/test_generate_test_suite_cron.py @@ -83,7 +83,7 @@ def test_create_git_clone_cron(): "###################################\n" "# Clone repo - every day at 23:30 #\n" "###################################\n" - f"30 23 * * * rm -rf {CLONE_DIR}/clone_repo ; git clone {MIRROR_PATH}MetOffice/repo.git {CLONE_DIR}/clone_repo\n\n\n" + f"30 23 * * * rm -rf {CLONE_DIR}/clone_repo ; git clone --shared {MIRROR_PATH}MetOffice/repo.git {CLONE_DIR}/clone_repo\n\n\n" ) assert create_git_clone_cron("repo") == expected From 2f093b2164755dd95445442f9f9434a61d32415d Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 10 Sep 2026 08:01:30 +0100 Subject: [PATCH 3/5] contributors --- CONTRIBUTORS.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 8da40770..f3889879 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,6 +1,7 @@ # Contributors -| GitHub user | Real Name | Affiliation | Date | -| ----------- | --------------- | ----------- | ---------- | -| yaswant | Yaswant Pradhan | Met Office | 2026-07-17 | -| jfrost-mo | James Frost | Met Office | 2026-09-04 | +| GitHub user | Real Name | Affiliation | Date | +| ----------------- | --------------- | ----------- | ---------- | +| yaswant | Yaswant Pradhan | Met Office | 2026-07-17 | +| jfrost-mo | James Frost | Met Office | 2026-09-04 | +| james-bruten-mo | James Bruten | Met Office | 2026-09-10 | From ae002d5982b8651978f459bad81ee493eabd4a4f Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:16:23 +0100 Subject: [PATCH 4/5] Update nightly_testing/generate_test_suite_cron.py Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com> --- nightly_testing/generate_test_suite_cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly_testing/generate_test_suite_cron.py b/nightly_testing/generate_test_suite_cron.py index 7986e16f..25fca01c 100755 --- a/nightly_testing/generate_test_suite_cron.py +++ b/nightly_testing/generate_test_suite_cron.py @@ -82,7 +82,7 @@ def create_git_clone_cron(repo): length = len(command) command = f"{length * '#'}\n{command}\n{length * '#'}\n30 23 * * * " command += f"rm -rf {clone_path} ; " - command += f"git clone --shared {repo_mirror} {clone_path}" + command += f"GIT_TRACE=1 GIT_TRACE_PERFORMANCE=1 git clone --shared {repo_mirror} {clone_path}" return command + "\n\n\n" From 6434955997e22c71bf97d2958ea121ed7ed591ac Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:16:31 +0100 Subject: [PATCH 5/5] Update nightly_testing/tests/test_generate_test_suite_cron.py Co-authored-by: Yaswant Pradhan <2984440+yaswant@users.noreply.github.com> --- nightly_testing/tests/test_generate_test_suite_cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly_testing/tests/test_generate_test_suite_cron.py b/nightly_testing/tests/test_generate_test_suite_cron.py index 36e55705..3b839a39 100644 --- a/nightly_testing/tests/test_generate_test_suite_cron.py +++ b/nightly_testing/tests/test_generate_test_suite_cron.py @@ -83,7 +83,7 @@ def test_create_git_clone_cron(): "###################################\n" "# Clone repo - every day at 23:30 #\n" "###################################\n" - f"30 23 * * * rm -rf {CLONE_DIR}/clone_repo ; git clone --shared {MIRROR_PATH}MetOffice/repo.git {CLONE_DIR}/clone_repo\n\n\n" + f"30 23 * * * rm -rf {CLONE_DIR}/clone_repo ; GIT_TRACE=1 GIT_TRACE_PERFORMANCE=1 git clone --shared {MIRROR_PATH}MetOffice/repo.git {CLONE_DIR}/clone_repo\n\n\n" ) assert create_git_clone_cron("repo") == expected