Skip to content

Commit

Permalink
240422.000738.HKT update test_flang.yml to investigate the error "Git…
Browse files Browse the repository at this point in the history
…Hub Actions xx lost communication with the server"
  • Loading branch information
zaikunzhang committed Apr 21, 2024
1 parent 47d8bce commit e559913
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test_flang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest] # As of 20221217, the flang installed by ../scripts/install_flang may only work with ubuntu-22.04
ikind: [i2, i8]
os: [ubuntu-latest] # As of 20240421, the flang installed by ../scripts/install_flang may only work with ubuntu-22.04
ikind: [i2, i4, i8]
solver: [newuoa, cobyla, lincoa, bobyqa, uobyqa]
fflags: [-O1, -O2, -O3, -g, -fast]
testdim: [small, big]
Expand All @@ -54,6 +54,16 @@ jobs:
- name: Miscellaneous setup
run: bash .github/scripts/misc_setup

- name: Revise maxtr
# This is to see whether "GitHub Actions xx lost communication with the server" was caused
# by maxtr = huge(maxtr) - 1_IK. We suspect this because the error occurs with ikind = i8
# but not ikind = i2.
if: ${{ matrix.ikind == 'i8' }}
run: |
cd fortran/${{ matrix.solver }}
$SEDI 's|maxtr = huge(maxtr) - 1_IK|maxtr = 60000|' *.f90
grep 'maxtr = ' *.f90
- name: Conduct the test
run: |
cd "$ROOT_DIR"/fortran/${{ matrix.solver }} && bash ./flint --all && bash ./mlint --all
Expand Down

0 comments on commit e559913

Please sign in to comment.