From 18b005bfe7f4b0f620c72b0fbc4f17a54ecf44a8 Mon Sep 17 00:00:00 2001 From: RJO798 Date: Mon, 12 Jan 2026 13:09:45 +0100 Subject: [PATCH 1/3] add conditionals to avoid workflow errors --- .github/workflows/check_licenses.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check_licenses.yml b/.github/workflows/check_licenses.yml index f9973cb350..e6c7fd2769 100644 --- a/.github/workflows/check_licenses.yml +++ b/.github/workflows/check_licenses.yml @@ -55,6 +55,12 @@ jobs: -H "Accept: application/vnd.github+json" \ "https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls/${PR_NUMBER}/files?per_page=100" | jq -r '.[].filename | select(test("easystack"))') + + if [ -z "$file_list" ]; then + echo "No easystack files found. Skipping license check." + exit 0 + fi + echo "Files to check:" echo $file_list @@ -73,7 +79,9 @@ jobs: grep " required modules missing:" ${eb_missing_out} # > /dev/null exit_code=$? - if [[ ${exit_code} -eq 0 ]]; then echo "missing installations found for ${easystack_file}!" >&2; + if [[ ${exit_code} -eq 0 ]]; then + echo "missing installations found for ${easystack_file}!" >&2; + echo "PROCESS_LICENSES=true" >> $GITHUB_ENV else echo "no missing installations found for ${easystack_file}." exit 0 @@ -81,6 +89,7 @@ jobs: done - name: Check for software existing in licenses.yml file + if: env.PROCESS_LICENSES == 'true' run: | # double check this if [ -s licenses/licenses.yml ]; then @@ -116,6 +125,7 @@ jobs: fi - name : Search sources for missing modules + if: env.PROCESS_LICENSES == 'true' run: | if [ -s missing_modules.txt ]; then echo "Searching sources for missing modules..." @@ -126,6 +136,7 @@ jobs: fi - name : Try to fetch the license + if: env.PROCESS_LICENSES == 'true' run: | if [ -s modules_results.json ]; then echo "modules_results.json file exists, trying to fetch the license..." @@ -137,6 +148,7 @@ jobs: fi - name: Check and generate report on missing licenses + if: env.PROCESS_LICENSES == 'true' run: | echo "" # Look for missing licences in licenses_aux.yaml @@ -157,6 +169,7 @@ jobs: - name: Generate artifacts + if: env.PROCESS_LICENSES == 'true' uses: actions/upload-artifact@v4 with: name: license-results-${{ matrix.NO_SLASH_NAME }} @@ -166,6 +179,7 @@ jobs: - name: How to edit artifacts and apply patch + if: env.PROCESS_LICENSES == 'true' run: | echo "Artifacts generated. To resolve the missing licenses, please edit 'patch.txt' manually, making sure you follow the following format: " echo "" From 1485b951ea2834bde7e1e37a60e4df5f72218a6f Mon Sep 17 00:00:00 2001 From: RJO798 Date: Mon, 12 Jan 2026 13:21:46 +0100 Subject: [PATCH 2/3] add easystack file for testing purposes --- .../2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 "easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" diff --git "a/easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" "b/easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" new file mode 100644 index 0000000000..6cc61a82a4 --- /dev/null +++ "b/easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" @@ -0,0 +1,4 @@ +easyconfigs: + - AlphaFold-2.3.2-foss-2023a-CUDA-12.1.1.eb + + \ No newline at end of file From ba30cce5d0f62e6d99cf5d596634aed1e65ad72a Mon Sep 17 00:00:00 2001 From: RJO798 Date: Mon, 12 Jan 2026 13:32:48 +0100 Subject: [PATCH 3/3] add easystack file for testing purposes --- .../2023.06/eessi-2023.06-eb-4.9.0-2023a-CUDA.yml | 1 + .../2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100644 "easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" diff --git a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.0-2023a-CUDA.yml b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.0-2023a-CUDA.yml index cccbfa6808..ec85798aff 100644 --- a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.0-2023a-CUDA.yml +++ b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.0-2023a-CUDA.yml @@ -1,2 +1,3 @@ easyconfigs: - OSU-Micro-Benchmarks-7.2-gompi-2023a-CUDA-12.1.1.eb + diff --git "a/easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" "b/easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" deleted file mode 100644 index 6cc61a82a4..0000000000 --- "a/easystacks/software.eessi.io/2025.06/eessi-2025.06-eb-5.1.2-2023a.yml\342\200\216" +++ /dev/null @@ -1,4 +0,0 @@ -easyconfigs: - - AlphaFold-2.3.2-foss-2023a-CUDA-12.1.1.eb - - \ No newline at end of file