Skip to content

Commit 12d7f53

Browse files
committed
260209.121907.CET [skip ci] revise lint_hosted.html regarding install_aomp
1 parent dd9620d commit 12d7f53

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/lint_hosted.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ jobs:
9191
run: bash .github/scripts/install_aocc
9292

9393
- name: Install AOMP
94-
run: bash .github/scripts/install_aomp 20 600 # Retry up to 20 times with a delay of 600 seconds (10 minutes) between retries, to avoid transient network issues.
94+
# Retry up to 10 times with a delay of 600 seconds (10 minutes) between retries, to avoid
95+
# transient network issues. If the installation still fails after all retries, we let it
96+
# fail silently and continue with the test. This is fine since there are many tests with
97+
# other compilers, and since the AOMP compiler is tested in test_aflang.html. If we try too
98+
# many times, there may not be enough time left for the test to run anyway!
99+
run: bash .github/scripts/install_aomp 10 600 || true
95100

96101
- name: Install gfortran
97102
uses: fortran-lang/setup-fortran@main
@@ -116,8 +121,12 @@ jobs:
116121
run: bash .github/scripts/install_llvm
117122

118123
- name: Conduct the test
124+
# Check the compilers before the test. We continue with the test even if some compilers
125+
# are not found successfully due to unsuccessful installation that were let unresolved in
126+
# the previous steps, e.g., installation of AOMP. This is fine since there are many tests
127+
# with other compilers, and since there is a dedicated workflow to test each compiler.
119128
run: |
120-
type gfortran ifx amdflang aflang g95 nvfortran sunf95 flang
129+
type gfortran ifx amdflang aflang g95 nvfortran sunf95 flang || true
121130
cd "$ROOT_DIR"/fortran/${{ matrix.solver }} && bash ./${{ matrix.linter }} --all
122131
123132
- name: Remove the test data

0 commit comments

Comments
 (0)