From 3e7642bc8cb1a9062ee5b7548ca5ae63e016225d Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Mon, 14 Oct 2024 09:43:08 -0500 Subject: [PATCH] fix artifact names, allow to run quick test with a given input list --- .github/workflows/kokkos-regression.yaml | 3 ++- tools/regression-tests/run_tests.py | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/kokkos-regression.yaml b/.github/workflows/kokkos-regression.yaml index 81b72cd1e4..04f64b94b2 100644 --- a/.github/workflows/kokkos-regression.yaml +++ b/.github/workflows/kokkos-regression.yaml @@ -86,6 +86,7 @@ jobs: --lmp-bin=build/lmp \ --config-file=tools/regression-tests/config_kokkos_openmp.yaml \ --list-input=input-list-pair-kk.txt \ + --quick --quick-max=100 \ --output-file=output-pair.xml \ --progress-file=progress-pair.yaml \ --log-file=run-pair.log \ @@ -97,6 +98,6 @@ jobs: uses: actions/upload-artifact@v4 with: name: kokkos-regression-test-artifact - path: kokkos-regression-test.tar + path: kokkos-regression-test*.tar diff --git a/tools/regression-tests/run_tests.py b/tools/regression-tests/run_tests.py index 9d9499efc9..4af39522ae 100755 --- a/tools/regression-tests/run_tests.py +++ b/tools/regression-tests/run_tests.py @@ -1370,6 +1370,14 @@ if __name__ == "__main__": example_inputs.append(input) num_inputscripts += 1 + # allow to select randomly some input scripts at this point if quick is set to be True + if quick: + if len(example_inputs) > quick_max: + example_inputs = random.sample(example_inputs, quick_max) + msg = "\nTesting " + str(quick_max) + " randomly selected inputs" + print(msg) + logger.info(msg) + example_subfolders = folder_list msg = f"\nThere are {num_inputscripts} input scripts listed in {list_input}." print(msg)