From 7a6e5cf34e361acd8330b0b1ab5976950e1d27c9 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 08:15:06 -0700 Subject: [PATCH 01/62] adding developer workflow --- .github/workflows/developer.yml | 135 ++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 .github/workflows/developer.yml diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml new file mode 100644 index 000000000..2a3c05f42 --- /dev/null +++ b/.github/workflows/developer.yml @@ -0,0 +1,135 @@ +# UFS_UTILS test workflow. +# +# This workflow tests all developer options - address santizer, +# warning check, documentation check, and test code coverage. +# +# Ed Hartnett 12/11/22 +name: developer +on: + push: + branches: + - develop + paths-ignore: + - README.md + pull_request: + branches: + - develop + paths-ignore: + - README.md + +jobs: + developer: + runs-on: ubuntu-latest + env: + FC: gfortran + CC: gcc + + steps: + + - name: install-dependencies + run: | + sudo apt-get update + sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libnetcdf-dev doxygen + python3 -m pip install gcovr + + - name: checkout-bacio + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-bacio + path: bacio + ref: develop + + - name: build-bacio + run: | + cd bacio + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/bacio + make -j2 + make install + + - name: checkout-w3emc + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-w3emc + path: w3emc + ref: develop + + - name: build-w3emc + run: | + cd w3emc + mkdir build + cd build + cmake .. -DCMAKE_PREFIX_PATH=~/bacio -DCMAKE_INSTALL_PREFIX=~/w3emc + make -j2 + make install + + - name: cache-jasper + id: cache-jasper + uses: actions/cache@v2 + with: + path: ~/Jasper + key: jasper-${{ runner.os }}-3.0.3 + + - name: checkout-jasper + if: steps.cache-jasper.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: jasper-software/jasper + path: jasper + ref: version-3.0.3 + + - name: build-jasper + if: steps.cache-jasper.outputs.cache-hit != 'true' + run: | + cd jasper + mkdir build-jasper && cd build-jasper + cmake .. -DCMAKE_INSTALL_PREFIX=~/Jasper + make -j2 + make install + + - name: checkout-g2c + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-g2c + path: g2c + ref: develop + + - name: build-g2c + run: | + cd g2c + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/g2c -DJasper_ROOT=~/Jasper + make -j2 + make install + + - name: checkout + uses: actions/checkout@v2 + with: + path: g2 + + - name: build + run: | + set -x + cd g2 + mkdir build + doxygen --version + cd build + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/Jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug + make -j2 VERBOSE=1 + + - name: test + run: | + cd $GITHUB_WORKSPACE/g2/build + ctest --verbose --output-on-failure --rerun-failed + gcovr --root .. -v --html-details --exclude ../tests --exclude CMakeFiles --print-summary -o test-coverage.html &> /dev/null + + - name: upload-test-coverage + uses: actions/upload-artifact@v2 + with: + name: g2-test-coverage + path: | + g2/build/*.html + g2/build/*.css + From e07f579e915528633c609e08dfbd211588990da4 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 08:29:28 -0700 Subject: [PATCH 02/62] working on developer workflow --- .github/workflows/developer.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 2a3c05f42..0a3addfe7 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -29,7 +29,7 @@ jobs: - name: install-dependencies run: | sudo apt-get update - sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libnetcdf-dev doxygen + sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libnetcdf-dev libnetcdff-dev doxygen python3 -m pip install gcovr - name: checkout-bacio @@ -60,7 +60,7 @@ jobs: cd w3emc mkdir build cd build - cmake .. -DCMAKE_PREFIX_PATH=~/bacio -DCMAKE_INSTALL_PREFIX=~/w3emc + cmake -DCMAKE_PREFIX_PATH=~/bacio -DCMAKE_INSTALL_PREFIX=~/w3emc .. make -j2 make install @@ -68,8 +68,8 @@ jobs: id: cache-jasper uses: actions/cache@v2 with: - path: ~/Jasper - key: jasper-${{ runner.os }}-3.0.3 + path: ~/jasper + key: jasper-${{ runner.os }}-3.0.3-1 - name: checkout-jasper if: steps.cache-jasper.outputs.cache-hit != 'true' @@ -84,7 +84,7 @@ jobs: run: | cd jasper mkdir build-jasper && cd build-jasper - cmake .. -DCMAKE_INSTALL_PREFIX=~/Jasper + cmake .. -DCMAKE_INSTALL_PREFIX=~/jasper make -j2 make install @@ -100,7 +100,7 @@ jobs: cd g2c mkdir build cd build - cmake .. -DCMAKE_INSTALL_PREFIX=~/g2c -DJasper_ROOT=~/Jasper + cmake .. -DCMAKE_INSTALL_PREFIX=~/g2c -DJasper_ROOT=~/jasper make -j2 make install @@ -116,7 +116,7 @@ jobs: mkdir build doxygen --version cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/Jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 - name: test From bbb9b96782da5d7a585545c6e4a31e581a3fee41 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 08:37:50 -0700 Subject: [PATCH 03/62] working on developer workflow --- .github/workflows/developer.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 0a3addfe7..597049e93 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -21,15 +21,15 @@ jobs: developer: runs-on: ubuntu-latest env: - FC: gfortran - CC: gcc + FC: mpifort + CC: mpicc steps: - name: install-dependencies run: | sudo apt-get update - sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libnetcdf-dev libnetcdff-dev doxygen + sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libnetcdf-dev libnetcdff-dev doxygen openmpi-bin libopenmpi-dev python3 -m pip install gcovr - name: checkout-bacio From de034d384a79fa0963a3d60051898d4f187f01da Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 08:40:16 -0700 Subject: [PATCH 04/62] working on developer workflow --- .github/workflows/debug-docs-test_coverage.yml | 13 ++++++++++++- .github/workflows/intel.yml | 13 ++++++++++++- .github/workflows/linux-mac-nceplibs-mpi.yml | 13 ++++++++++++- .github/workflows/netcdf-versions.yml | 13 ++++++++++++- 4 files changed, 48 insertions(+), 4 deletions(-) diff --git a/.github/workflows/debug-docs-test_coverage.yml b/.github/workflows/debug-docs-test_coverage.yml index 9df96f5e4..7e8782c3a 100644 --- a/.github/workflows/debug-docs-test_coverage.yml +++ b/.github/workflows/debug-docs-test_coverage.yml @@ -1,5 +1,16 @@ name: debug-docs-test_coverage -on: [push, pull_request] +name: developer +on: + push: + branches: + - develop + paths-ignore: + - README.md + pull_request: + branches: + - develop + paths-ignore: + - README.md defaults: run: diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index 0e9b88164..0dbe12490 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -1,5 +1,16 @@ name: intel -on: [push, pull_request] +name: developer +on: + push: + branches: + - develop + paths-ignore: + - README.md + pull_request: + branches: + - develop + paths-ignore: + - README.md # Use custom shell with -l so .bash_profile is sourced which loads intel/oneapi/setvars.sh # without having to do it in manually every step diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index 82d35a9d2..75056350f 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -1,5 +1,16 @@ name: linux-mac-mpi-nceplibs -on: [push, pull_request] +name: developer +on: + push: + branches: + - develop + paths-ignore: + - README.md + pull_request: + branches: + - develop + paths-ignore: + - README.md defaults: run: diff --git a/.github/workflows/netcdf-versions.yml b/.github/workflows/netcdf-versions.yml index 38940ff10..14a374d13 100644 --- a/.github/workflows/netcdf-versions.yml +++ b/.github/workflows/netcdf-versions.yml @@ -1,5 +1,16 @@ name: netcdf-versions -on: [push, pull_request] +name: developer +on: + push: + branches: + - develop + paths-ignore: + - README.md + pull_request: + branches: + - develop + paths-ignore: + - README.md defaults: run: From 5f0f0c41ef7cf1ed79f6d293ce7e13f6b4dc8e1e Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 08:46:01 -0700 Subject: [PATCH 05/62] more changes --- .github/workflows/developer.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 597049e93..a7232fa3f 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -116,20 +116,7 @@ jobs: mkdir build doxygen --version cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug - make -j2 VERBOSE=1 +# cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug +# make -j2 VERBOSE=1 - - name: test - run: | - cd $GITHUB_WORKSPACE/g2/build - ctest --verbose --output-on-failure --rerun-failed - gcovr --root .. -v --html-details --exclude ../tests --exclude CMakeFiles --print-summary -o test-coverage.html &> /dev/null - - - name: upload-test-coverage - uses: actions/upload-artifact@v2 - with: - name: g2-test-coverage - path: | - g2/build/*.html - g2/build/*.css From b9f458f831a62888896948aa2f333e7ad19ca974 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 08:55:43 -0700 Subject: [PATCH 06/62] more changes --- .github/workflows/debug-docs-test_coverage.yml | 1 - .github/workflows/intel.yml | 1 - .github/workflows/linux-mac-nceplibs-mpi.yml | 1 - .github/workflows/netcdf-versions.yml | 1 - 4 files changed, 4 deletions(-) diff --git a/.github/workflows/debug-docs-test_coverage.yml b/.github/workflows/debug-docs-test_coverage.yml index 7e8782c3a..98f984519 100644 --- a/.github/workflows/debug-docs-test_coverage.yml +++ b/.github/workflows/debug-docs-test_coverage.yml @@ -1,5 +1,4 @@ name: debug-docs-test_coverage -name: developer on: push: branches: diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index 0dbe12490..200a91f03 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -1,5 +1,4 @@ name: intel -name: developer on: push: branches: diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index 75056350f..8b7aab007 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -1,5 +1,4 @@ name: linux-mac-mpi-nceplibs -name: developer on: push: branches: diff --git a/.github/workflows/netcdf-versions.yml b/.github/workflows/netcdf-versions.yml index 14a374d13..d756c1907 100644 --- a/.github/workflows/netcdf-versions.yml +++ b/.github/workflows/netcdf-versions.yml @@ -1,5 +1,4 @@ name: netcdf-versions -name: developer on: push: branches: From 7c30a808bf31e56c647b4db21666ccb85442dba8 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 09:03:16 -0700 Subject: [PATCH 07/62] more changes --- .github/workflows/developer.yml | 75 ++++++++++++++++++++++----------- 1 file changed, 51 insertions(+), 24 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index a7232fa3f..7716fa639 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -32,6 +32,57 @@ jobs: sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libnetcdf-dev libnetcdff-dev doxygen openmpi-bin libopenmpi-dev python3 -m pip install gcovr + - name: cache-esmf + id: cache-esmf + uses: actions/cache@v2 + with: + path: ~/esmf + key: esmf-8.2.0-${{ runner.os }}3 + + - name: build-esmf + if: steps.cache-esmf.outputs.cache-hit != 'true' + run: | + pushd ~ + export ESMF_DIR=~/esmf-ESMF_8_2_0 + wget https://github.com/esmf-org/esmf/archive/ESMF_8_2_0.tar.gz &> /dev/null + tar zxf ESMF_8_2_0.tar.gz + cd esmf-ESMF_8_2_0 + export ESMF_COMM=mpich3 + export ESMF_INSTALL_BINDIR=bin + export ESMF_INSTALL_LIBDIR=lib + export ESMF_INSTALL_MODDIR=mod + export ESMF_COMPILER=gfortran + export ESMF_INSTALL_PREFIX=~/esmf + export ESMF_NETCDF=split + export ESMF_NETCDF_INCLUDE=/usr/include + export ESMF_NETCDF_LIBPATH=/usr/x86_64-linux-gnu + make -j2 + make install + + - name: cache-jasper + id: cache-jasper + uses: actions/cache@v2 + with: + path: ~/jasper + key: jasper-${{ runner.os }}-3.0.3-1 + + - name: checkout-jasper + if: steps.cache-jasper.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: jasper-software/jasper + path: jasper + ref: version-3.0.3 + + - name: build-jasper + if: steps.cache-jasper.outputs.cache-hit != 'true' + run: | + cd jasper + mkdir build-jasper && cd build-jasper + cmake .. -DCMAKE_INSTALL_PREFIX=~/jasper + make -j2 + make install + - name: checkout-bacio uses: actions/checkout@v2 with: @@ -64,30 +115,6 @@ jobs: make -j2 make install - - name: cache-jasper - id: cache-jasper - uses: actions/cache@v2 - with: - path: ~/jasper - key: jasper-${{ runner.os }}-3.0.3-1 - - - name: checkout-jasper - if: steps.cache-jasper.outputs.cache-hit != 'true' - uses: actions/checkout@v2 - with: - repository: jasper-software/jasper - path: jasper - ref: version-3.0.3 - - - name: build-jasper - if: steps.cache-jasper.outputs.cache-hit != 'true' - run: | - cd jasper - mkdir build-jasper && cd build-jasper - cmake .. -DCMAKE_INSTALL_PREFIX=~/jasper - make -j2 - make install - - name: checkout-g2c uses: actions/checkout@v2 with: From 51e7ac1f316dcbb5295643cfc7b7043346c04b6c Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 09:50:02 -0700 Subject: [PATCH 08/62] more changes --- .github/workflows/developer.yml | 45 ++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 7716fa639..3d015f0cd 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -37,7 +37,7 @@ jobs: uses: actions/cache@v2 with: path: ~/esmf - key: esmf-8.2.0-${{ runner.os }}3 + key: developer-esmf-8.2.0-${{ runner.os }}3 - name: build-esmf if: steps.cache-esmf.outputs.cache-hit != 'true' @@ -64,7 +64,7 @@ jobs: uses: actions/cache@v2 with: path: ~/jasper - key: jasper-${{ runner.os }}-3.0.3-1 + key: developer-jasper-${{ runner.os }}-3.0.3-1 - name: checkout-jasper if: steps.cache-jasper.outputs.cache-hit != 'true' @@ -83,22 +83,55 @@ jobs: make -j2 make install + - name: cache-bacio + id: cache-bacio + uses: actions/cache@v2 + with: + path: ~/bacio + key: developer-bacio-${{ runner.os }}-v2.4.1 + - name: checkout-bacio + if: steps.cache-bacio.outputs.cache-hit != 'true' uses: actions/checkout@v2 with: repository: NOAA-EMC/NCEPLIBS-bacio path: bacio - ref: develop - + ref: v2.4.1 + - name: build-bacio + if: steps.cache-bacio.outputs.cache-hit != 'true' run: | cd bacio + mkdir build && cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/bacio + make -j2 + make install + + - name: cache-sp + id: cache-sp + uses: actions/cache@v2 + with: + path: ~/sp + key: developer-sp-${{ runner.os }}-2.3.3-1 + + - name: checkout-sp + if: steps.cache-sp.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-sp + path: sp + ref: v2.3.3 + + - name: build-sp + if: steps.cache-sp.outputs.cache-hit != 'true' + run: | + cd sp mkdir build cd build - cmake .. -DCMAKE_INSTALL_PREFIX=~/bacio + cmake .. -DCMAKE_INSTALL_PREFIX=~/sp make -j2 make install - + - name: checkout-w3emc uses: actions/checkout@v2 with: From ac6aefd20042491082bdafa15725744ca27dc528 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Sun, 11 Dec 2022 09:53:13 -0700 Subject: [PATCH 09/62] more changes --- .github/workflows/debug-docs-test_coverage.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/debug-docs-test_coverage.yml b/.github/workflows/debug-docs-test_coverage.yml index 98f984519..be1371f69 100644 --- a/.github/workflows/debug-docs-test_coverage.yml +++ b/.github/workflows/debug-docs-test_coverage.yml @@ -115,12 +115,5 @@ jobs: - name: test run: | cd ufs_utils/build - export LSAN_OPTIONS=suppressions=LSanSuppress.supp +# export LSAN_OPTIONS=suppressions=LSanSuppress.supp ctest --rerun-failed --output-on-failure - export PATH="/home/runner/.local/bin:$PATH" - gcovr -r .. --html-details -o test-coverage.html - - - uses: actions/upload-artifact@v2 - with: - name: test-coverage - path: ufs_utils/build/*.html From e17188489ff0325516389a164537b6c84e59fee4 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 05:16:39 -0700 Subject: [PATCH 10/62] more --- .github/workflows/developer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 3d015f0cd..4662d48be 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -23,6 +23,7 @@ jobs: env: FC: mpifort CC: mpicc + FCFLAGS: -fallow-argument-mismatch steps: From 1cffa1a9f3b6847a1d619d6f8d43aeabe296a87c Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 05:17:17 -0700 Subject: [PATCH 11/62] more --- .github/workflows/netcdf-versions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/netcdf-versions.yml b/.github/workflows/netcdf-versions.yml index d756c1907..424bff3ca 100644 --- a/.github/workflows/netcdf-versions.yml +++ b/.github/workflows/netcdf-versions.yml @@ -166,5 +166,5 @@ jobs: - name: test run: | cd ufs_utils/build - export LSAN_OPTIONS=suppressions=LSanSuppress.supp +# export LSAN_OPTIONS=suppressions=LSanSuppress.supp ctest --rerun-failed --output-on-failure From b86a6e8401321c4cc5b62749f00412274df74838 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 05:23:01 -0700 Subject: [PATCH 12/62] addding debug2 --- .github/workflows/debug2.yml | 119 +++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 .github/workflows/debug2.yml diff --git a/.github/workflows/debug2.yml b/.github/workflows/debug2.yml new file mode 100644 index 000000000..728ddb1d0 --- /dev/null +++ b/.github/workflows/debug2.yml @@ -0,0 +1,119 @@ +name: debug2 +on: + push: + branches: + - develop + paths-ignore: + - README.md + pull_request: + branches: + - develop + paths-ignore: + - README.md + +defaults: + run: + shell: bash -exo pipefail {0} + +jobs: + debug2: + runs-on: ubuntu-latest + + steps: + + - name: install-dependencies + run: | + sudo apt-get update + sudo apt-get install libmpich-dev + sudo apt-get install doxygen + sudo apt-get install libpng-dev + sudo apt-get install libjpeg-dev + sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config + python3 -m pip install gcovr + + - name: cache-esmf + id: cache-esmf + uses: actions/cache@v2 + with: + path: ~/esmf + key: debug2-esmf-8.2.0-${{ runner.os }}3 + + - name: build-esmf + if: steps.cache-esmf.outputs.cache-hit != 'true' + run: | + pushd ~ + export ESMF_DIR=~/esmf-ESMF_8_2_0 + wget https://github.com/esmf-org/esmf/archive/ESMF_8_2_0.tar.gz &> /dev/null + tar zxf ESMF_8_2_0.tar.gz + cd esmf-ESMF_8_2_0 + export ESMF_COMM=mpich3 + export ESMF_INSTALL_BINDIR=bin + export ESMF_INSTALL_LIBDIR=lib + export ESMF_INSTALL_MODDIR=mod + export ESMF_COMPILER=gfortran + export ESMF_INSTALL_PREFIX=~/esmf + export ESMF_NETCDF=split + export ESMF_NETCDF_INCLUDE=/usr/include + export ESMF_NETCDF_LIBPATH=/usr/x86_64-linux-gnu + make -j2 + make install + + - name: cache-jasper + id: cache-jasper + uses: actions/cache@v2 + with: + path: ~/jasper + key: debug2-jasper-2.0.25-${{ runner.os }}3 + + - name: build-jasper + if: steps.cache-jasper.outputs.cache-hit != 'true' + run: | + wget https://github.com/jasper-software/jasper/archive/version-2.0.25.tar.gz &> /dev/null + tar zxf version-2.0.25.tar.gz + cd jasper-version-2.0.25 + mkdir build-jasper && cd build-jasper + cmake .. -DCMAKE_INSTALL_PREFIX=~/jasper -DJAS_ENABLE_SHARED=OFF + make -j2 + make install + + - name: cache-nceplibs + id: cache-nceplibs + uses: actions/cache@v2 + with: + path: ~/nceplibs + key: debug2-nceplibs-1.4.0-${{ runner.os }}3 + + - name: build-nceplibs + if: steps.cache-nceplibs.outputs.cache-hit != 'true' + run: | + wget https://github.com/NOAA-EMC/NCEPLIBS/archive/v1.4.0.tar.gz &> /dev/null + tar zxf v1.4.0.tar.gz + cd NCEPLIBS-1.4.0 + export ESMFMKFILE=~/esmf/lib/esmf.mk + mkdir build && cd build + cmake .. -DCMAKE_PREFIX_PATH='~;~/jasper' -DCMAKE_INSTALL_PREFIX='~/nceplibs' -DFLAT=ON + make -j2 + + - name: checkout-ufs-utils + uses: actions/checkout@v2 + with: + path: ufs_utils + submodules: recursive + + - name: build + run: | + export ESMFMKFILE=~/esmf/lib/esmf.mk + cd ufs_utils + mkdir build && cd build + export CC=mpicc + export CXX=mpicxx + export FC=mpifort + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" + cmake .. -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" + make -j2 + + - name: test + run: | + cd ufs_utils/build +# export LSAN_OPTIONS=suppressions=LSanSuppress.supp + ctest --rerun-failed --output-on-failure From b3801ad59a550622409eb851619cd0c6f4ba11dc Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 05:28:24 -0700 Subject: [PATCH 13/62] addding debug2 --- .github/workflows/debug2.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/debug2.yml b/.github/workflows/debug2.yml index 728ddb1d0..b1296a910 100644 --- a/.github/workflows/debug2.yml +++ b/.github/workflows/debug2.yml @@ -110,10 +110,9 @@ jobs: export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" cmake .. -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" - make -j2 + make -j2 VERBOSE=1 - name: test run: | cd ufs_utils/build -# export LSAN_OPTIONS=suppressions=LSanSuppress.supp ctest --rerun-failed --output-on-failure From 80891bcb455a8ddb430f34a71a73c63f311da1bf Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 05:48:04 -0700 Subject: [PATCH 14/62] addding debug2 --- .github/workflows/developer.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 4662d48be..e0a1a3638 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -17,6 +17,10 @@ on: paths-ignore: - README.md +defaults: + run: + shell: bash -exo pipefail {0} + jobs: developer: runs-on: ubuntu-latest @@ -30,7 +34,8 @@ jobs: - name: install-dependencies run: | sudo apt-get update - sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev libnetcdf-dev libnetcdff-dev doxygen openmpi-bin libopenmpi-dev + sudo apt-get install libpng-dev zlib1g-dev libjpeg-dev doxygen libmpich-dev + sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config python3 -m pip install gcovr - name: cache-esmf From 354b4f61c565839bf1f27796f439906ff051840a Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 06:18:15 -0700 Subject: [PATCH 15/62] more --- .github/workflows/developer.yml | 102 +++++++++++++++++++++++++++++++- 1 file changed, 101 insertions(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index e0a1a3638..f9b46d403 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -169,7 +169,107 @@ jobs: cmake .. -DCMAKE_INSTALL_PREFIX=~/g2c -DJasper_ROOT=~/jasper make -j2 make install - + + - name: cache-sfcio + id: cache-sfcio + uses: actions/cache@v2 + with: + path: ~/sfcio + key: developer-sfcio-${{ runner.os }}-1.4.0-1 + + - name: checkout-sfcio + if: steps.cache-sfcio.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-sfcio + path: sfcio + ref: v1.4.0 + + - name: build-sfcio + if: steps.cache-sfcio.outputs.cache-hit != 'true' + run: | + cd sfcio + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/sfcio + make -j2 + make install + + - name: cache-nemsio + id: cache-nemsio + uses: actions/cache@v2 + with: + path: ~/nemsio + key: developer-nemsio-${{ runner.os }}-2.5.0-1 + + - name: checkout-nemsio + if: steps.cache-nemsio.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-nemsio + path: nemsio + ref: v2.5.0 + + - name: build-nemsio + if: steps.cache-nemsio.outputs.cache-hit != 'true' + run: | + cd nemsio + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/nemsio + make -j2 + make install + + - name: cache-sigio + id: cache-sigio + uses: actions/cache@v2 + with: + path: ~/sigio + key: developer-sigio-${{ runner.os }}-2.3.0 + + - name: checkout-sigio + if: steps.cache-sigio.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-sigio + path: sigio + ref: v2.3.0 + + - name: build-sigio + if: steps.cache-sigio.outputs.cache-hit != 'true' + run: | + cd sigio + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/sigio + make -j2 + make install + + - name: cache-w3nco + id: cache-w3nco + uses: actions/cache@v2 + with: + path: ~/w3nco + key: developer-w3nco-${{ runner.os }}-2.4.0 + + - name: checkout-w3nco + if: steps.cache-w3nco.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-w3nco + path: w3nco + ref: v2.4.0 + + - name: build-w3nco + if: steps.cache-w3nco.outputs.cache-hit != 'true' + run: | + cd w3nco + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/w3nco + make -j2 + make install + - name: checkout uses: actions/checkout@v2 with: From ca86d6fa427ebed644aa00b126e2e3df17d58c33 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 06:22:06 -0700 Subject: [PATCH 16/62] more --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index f9b46d403..e2940f871 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -216,7 +216,7 @@ jobs: cd nemsio mkdir build cd build - cmake .. -DCMAKE_INSTALL_PREFIX=~/nemsio + cmake -DCMAKE_INSTALL_PREFIX=~/nemsio -DCMAKE_PREFIX_PATH=~/bacio .. make -j2 make install From 504f690676dffe2c91102d05a8b39a3dd0983cbf Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 06:26:48 -0700 Subject: [PATCH 17/62] more --- .github/workflows/developer.yml | 52 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index e2940f871..ac14d7758 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -195,6 +195,31 @@ jobs: make -j2 make install + - name: cache-w3nco + id: cache-w3nco + uses: actions/cache@v2 + with: + path: ~/w3nco + key: developer-w3nco-${{ runner.os }}-2.4.0 + + - name: checkout-w3nco + if: steps.cache-w3nco.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-w3nco + path: w3nco + ref: v2.4.0 + + - name: build-w3nco + if: steps.cache-w3nco.outputs.cache-hit != 'true' + run: | + cd w3nco + mkdir build + cd build + cmake .. -DCMAKE_INSTALL_PREFIX=~/w3nco + make -j2 + make install + - name: cache-nemsio id: cache-nemsio uses: actions/cache@v2 @@ -216,7 +241,7 @@ jobs: cd nemsio mkdir build cd build - cmake -DCMAKE_INSTALL_PREFIX=~/nemsio -DCMAKE_PREFIX_PATH=~/bacio .. + cmake -DCMAKE_INSTALL_PREFIX=~/nemsio -DCMAKE_PREFIX_PATH="~/bacio;~/w3nco .. make -j2 make install @@ -245,31 +270,6 @@ jobs: make -j2 make install - - name: cache-w3nco - id: cache-w3nco - uses: actions/cache@v2 - with: - path: ~/w3nco - key: developer-w3nco-${{ runner.os }}-2.4.0 - - - name: checkout-w3nco - if: steps.cache-w3nco.outputs.cache-hit != 'true' - uses: actions/checkout@v2 - with: - repository: NOAA-EMC/NCEPLIBS-w3nco - path: w3nco - ref: v2.4.0 - - - name: build-w3nco - if: steps.cache-w3nco.outputs.cache-hit != 'true' - run: | - cd w3nco - mkdir build - cd build - cmake .. -DCMAKE_INSTALL_PREFIX=~/w3nco - make -j2 - make install - - name: checkout uses: actions/checkout@v2 with: From 74b7422458939192a891b2c598428224df070019 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 06:52:12 -0700 Subject: [PATCH 18/62] more --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index ac14d7758..c3bcaaa87 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -241,7 +241,7 @@ jobs: cd nemsio mkdir build cd build - cmake -DCMAKE_INSTALL_PREFIX=~/nemsio -DCMAKE_PREFIX_PATH="~/bacio;~/w3nco .. + cmake -DCMAKE_INSTALL_PREFIX=~/nemsio -DCMAKE_PREFIX_PATH="~/bacio;~/w3nco" .. make -j2 make install From f8042cf3c0a6239916317a2ba1f00dfa64635add Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 07:02:45 -0700 Subject: [PATCH 19/62] more --- .github/workflows/developer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index c3bcaaa87..9dbb1c81b 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -282,7 +282,7 @@ jobs: mkdir build doxygen --version cd build -# cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug -# make -j2 VERBOSE=1 + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug + make -j2 VERBOSE=1 From b964da756f9bc8c8eb8e31427694fe0aa5bd225d Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 07:05:46 -0700 Subject: [PATCH 20/62] more --- .github/workflows/debug2.yml | 118 -------------------------------- .github/workflows/developer.yml | 1 + 2 files changed, 1 insertion(+), 118 deletions(-) delete mode 100644 .github/workflows/debug2.yml diff --git a/.github/workflows/debug2.yml b/.github/workflows/debug2.yml deleted file mode 100644 index b1296a910..000000000 --- a/.github/workflows/debug2.yml +++ /dev/null @@ -1,118 +0,0 @@ -name: debug2 -on: - push: - branches: - - develop - paths-ignore: - - README.md - pull_request: - branches: - - develop - paths-ignore: - - README.md - -defaults: - run: - shell: bash -exo pipefail {0} - -jobs: - debug2: - runs-on: ubuntu-latest - - steps: - - - name: install-dependencies - run: | - sudo apt-get update - sudo apt-get install libmpich-dev - sudo apt-get install doxygen - sudo apt-get install libpng-dev - sudo apt-get install libjpeg-dev - sudo apt-get install libnetcdf-dev libnetcdff-dev netcdf-bin pkg-config - python3 -m pip install gcovr - - - name: cache-esmf - id: cache-esmf - uses: actions/cache@v2 - with: - path: ~/esmf - key: debug2-esmf-8.2.0-${{ runner.os }}3 - - - name: build-esmf - if: steps.cache-esmf.outputs.cache-hit != 'true' - run: | - pushd ~ - export ESMF_DIR=~/esmf-ESMF_8_2_0 - wget https://github.com/esmf-org/esmf/archive/ESMF_8_2_0.tar.gz &> /dev/null - tar zxf ESMF_8_2_0.tar.gz - cd esmf-ESMF_8_2_0 - export ESMF_COMM=mpich3 - export ESMF_INSTALL_BINDIR=bin - export ESMF_INSTALL_LIBDIR=lib - export ESMF_INSTALL_MODDIR=mod - export ESMF_COMPILER=gfortran - export ESMF_INSTALL_PREFIX=~/esmf - export ESMF_NETCDF=split - export ESMF_NETCDF_INCLUDE=/usr/include - export ESMF_NETCDF_LIBPATH=/usr/x86_64-linux-gnu - make -j2 - make install - - - name: cache-jasper - id: cache-jasper - uses: actions/cache@v2 - with: - path: ~/jasper - key: debug2-jasper-2.0.25-${{ runner.os }}3 - - - name: build-jasper - if: steps.cache-jasper.outputs.cache-hit != 'true' - run: | - wget https://github.com/jasper-software/jasper/archive/version-2.0.25.tar.gz &> /dev/null - tar zxf version-2.0.25.tar.gz - cd jasper-version-2.0.25 - mkdir build-jasper && cd build-jasper - cmake .. -DCMAKE_INSTALL_PREFIX=~/jasper -DJAS_ENABLE_SHARED=OFF - make -j2 - make install - - - name: cache-nceplibs - id: cache-nceplibs - uses: actions/cache@v2 - with: - path: ~/nceplibs - key: debug2-nceplibs-1.4.0-${{ runner.os }}3 - - - name: build-nceplibs - if: steps.cache-nceplibs.outputs.cache-hit != 'true' - run: | - wget https://github.com/NOAA-EMC/NCEPLIBS/archive/v1.4.0.tar.gz &> /dev/null - tar zxf v1.4.0.tar.gz - cd NCEPLIBS-1.4.0 - export ESMFMKFILE=~/esmf/lib/esmf.mk - mkdir build && cd build - cmake .. -DCMAKE_PREFIX_PATH='~;~/jasper' -DCMAKE_INSTALL_PREFIX='~/nceplibs' -DFLAT=ON - make -j2 - - - name: checkout-ufs-utils - uses: actions/checkout@v2 - with: - path: ufs_utils - submodules: recursive - - - name: build - run: | - export ESMFMKFILE=~/esmf/lib/esmf.mk - cd ufs_utils - mkdir build && cd build - export CC=mpicc - export CXX=mpicxx - export FC=mpifort - export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake .. -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" - make -j2 VERBOSE=1 - - - name: test - run: | - cd ufs_utils/build - ctest --rerun-failed --output-on-failure diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 9dbb1c81b..e5b6b79e9 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -281,6 +281,7 @@ jobs: cd g2 mkdir build doxygen --version + export ESMFMKFILE=~/esmf/lib/esmf.mk cd build cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 From 08463b5d42261a4244a87190e3693b99abee50f5 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 07:14:31 -0700 Subject: [PATCH 21/62] more --- .github/workflows/developer.yml | 41 ++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index e5b6b79e9..d98844d88 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -138,21 +138,46 @@ jobs: make -j2 make install - - name: checkout-w3emc + - name: cache-ip + id: cache-ip + uses: actions/cache@v2 + with: + path: ~/ip + key: developer-ip-${{ runner.os }}-3.3.3 + + - name: checkout-ip + if: steps.cache-ip.outputs.cache-hit != 'true' uses: actions/checkout@v2 with: - repository: NOAA-EMC/NCEPLIBS-w3emc - path: w3emc - ref: develop + repository: NOAA-EMC/NCEPLIBS-ip + path: ip + ref: v3.3.3 - - name: build-w3emc + - name: build-ip + if: steps.cache-ip.outputs.cache-hit != 'true' run: | - cd w3emc + cd ip mkdir build cd build - cmake -DCMAKE_PREFIX_PATH=~/bacio -DCMAKE_INSTALL_PREFIX=~/w3emc .. + cmake -DCMAKE_INSTALL_PREFIX=~/ip -DCMAKE_PREFIX_PATH=~~/sp .. make -j2 make install + + # - name: checkout-w3emc + # uses: actions/checkout@v2 + # with: + # repository: NOAA-EMC/NCEPLIBS-w3emc + # path: w3emc + # ref: develop + + # - name: build-w3emc + # run: | + # cd w3emc + # mkdir build + # cd build + # cmake -DCMAKE_PREFIX_PATH=~/bacio -DCMAKE_INSTALL_PREFIX=~/w3emc .. + # make -j2 + # make install - name: checkout-g2c uses: actions/checkout@v2 @@ -283,7 +308,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/w3emc" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 From 59692f57dd89d192c4e6531dd3535e9effb31732 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 07:14:56 -0700 Subject: [PATCH 22/62] more --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index d98844d88..d156cad6e 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -308,7 +308,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 From 058d5157ea9975e7d8182daadf3193417ae17d9f Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 08:00:24 -0700 Subject: [PATCH 23/62] more --- .github/workflows/developer.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index d156cad6e..cc9718488 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -113,6 +113,31 @@ jobs: make -j2 make install + - name: cache-g2 + id: cache-g2 + uses: actions/cache@v2 + with: + path: ~/g2 + key: developer-g2-${{ runner.os }}-3.4.3 + + - name: checkout-g2 + if: steps.cache-g2.outputs.cache-hit != 'true' + uses: actions/checkout@v2 + with: + repository: NOAA-EMC/NCEPLIBS-g2 + path: g2 + ref: v3.4.3 + + - name: build-g2 + if: steps.cache-g2.outputs.cache-hit != 'true' + run: | + cd g2 + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=~/g2 -DCMAKE_PREFIX_PATH=~/bacio .. + make -j2 + make install + - name: cache-sp id: cache-sp uses: actions/cache@v2 From dfb675edc75d83c8c55fd2b8737294281702c551 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 08:02:56 -0700 Subject: [PATCH 24/62] more --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index cc9718488..2d202d755 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -134,7 +134,7 @@ jobs: cd g2 mkdir build cd build - cmake -DCMAKE_INSTALL_PREFIX=~/g2 -DCMAKE_PREFIX_PATH=~/bacio .. + cmake -DCMAKE_INSTALL_PREFIX=~/g2 -DCMAKE_PREFIX_PATH="~/bacio;~/jasper .. make -j2 make install From 924ae49615374e83a16185e56572ef51985fe480 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 08:04:54 -0700 Subject: [PATCH 25/62] more --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 2d202d755..8f5a4bf64 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -134,7 +134,7 @@ jobs: cd g2 mkdir build cd build - cmake -DCMAKE_INSTALL_PREFIX=~/g2 -DCMAKE_PREFIX_PATH="~/bacio;~/jasper .. + cmake -DCMAKE_INSTALL_PREFIX=~/g2 -DCMAKE_PREFIX_PATH="~/bacio;~/jasper" .. make -j2 make install From ba6bb5cd0b12bac1ef92d1afeddbf9f47f9ad84e Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 09:00:51 -0700 Subject: [PATCH 26/62] more --- .github/workflows/developer.yml | 37 +++++++++++++++++---------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 8f5a4bf64..ef2da3f85 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -204,21 +204,21 @@ jobs: # make -j2 # make install - - name: checkout-g2c - uses: actions/checkout@v2 - with: - repository: NOAA-EMC/NCEPLIBS-g2c - path: g2c - ref: develop + # - name: checkout-g2c + # uses: actions/checkout@v2 + # with: + # repository: NOAA-EMC/NCEPLIBS-g2c + # path: g2c + # ref: develop - - name: build-g2c - run: | - cd g2c - mkdir build - cd build - cmake .. -DCMAKE_INSTALL_PREFIX=~/g2c -DJasper_ROOT=~/jasper - make -j2 - make install + # - name: build-g2c + # run: | + # cd g2c + # mkdir build + # cd build + # cmake .. -DCMAKE_INSTALL_PREFIX=~/g2c -DJasper_ROOT=~/jasper + # make -j2 + # make install - name: cache-sfcio id: cache-sfcio @@ -323,17 +323,18 @@ jobs: - name: checkout uses: actions/checkout@v2 with: - path: g2 + path: ufs_utils + submodules: recursive - name: build run: | set -x - cd g2 + cd ufs_utils mkdir build doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug - make -j2 VERBOSE=1 + # cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug +# make -j2 VERBOSE=1 From a41d1953e37301640aca8763be2389d5300f8fcd Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 10:13:18 -0700 Subject: [PATCH 27/62] more --- .github/workflows/developer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index ef2da3f85..6f93cee0d 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -334,7 +334,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - # cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug -# make -j2 VERBOSE=1 + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug + make -j2 VERBOSE=1 From c9ce62b6c694836d5500decdc2e60ee725548bc0 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 10:15:42 -0700 Subject: [PATCH 28/62] more --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 6f93cee0d..e2dedff5b 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -324,7 +324,7 @@ jobs: uses: actions/checkout@v2 with: path: ufs_utils - submodules: recursive + submodules: true - name: build run: | From 943e67e58792030d6fe82aed588abd4b3fec7dd3 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 10:18:49 -0700 Subject: [PATCH 29/62] more --- .github/workflows/developer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index e2dedff5b..c32b423a5 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -70,7 +70,7 @@ jobs: uses: actions/cache@v2 with: path: ~/jasper - key: developer-jasper-${{ runner.os }}-3.0.3-1 + key: developer-jasper-${{ runner.os }}-2.0.33-1 - name: checkout-jasper if: steps.cache-jasper.outputs.cache-hit != 'true' @@ -78,7 +78,7 @@ jobs: with: repository: jasper-software/jasper path: jasper - ref: version-3.0.3 + ref: version-2.0.33 - name: build-jasper if: steps.cache-jasper.outputs.cache-hit != 'true' From ca1c23247c5109925ed6a4da23e27eb32746ba1c Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 10:41:56 -0700 Subject: [PATCH 30/62] more --- .github/workflows/developer.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index c32b423a5..0841a1bfe 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -337,4 +337,20 @@ jobs: cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 + - name: test + run: | + cd ufs_utils/build + ctest --verbose --rerun-failed --output-on-failure + gcovr --root .. -v --html-details --exclude ../tests --exclude CMakeFiles --print-summary -o test-coverage.html &> /dev/null + + - name: upload-test-coverage + uses: actions/upload-artifact@v2 + with: + name: ufs_utils-test-coverage + path: | + ufs_utils/build/*.html + ufs_utils/build/*.css + + + From d23fb3420cf1d954e9c71591d064d27318188059 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 11:16:35 -0700 Subject: [PATCH 31/62] more --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 0841a1bfe..4401171f6 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -334,7 +334,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_C_FLAGS="-g -fprofile-abs-path -fprofile-arcs -ftest-coverage -O0 -Wall -fsanitize=address" -DCMAKE_BUILD_TYPE=Debug + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 - name: test From 0da10b5ff55a308924587fbfca2d4a7c31c65313 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 11:55:58 -0700 Subject: [PATCH 32/62] more --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef9da1dde..fbc07871b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch -fallow-invalid-boz") endif() set(CMAKE_Fortran_FLAGS_RELEASE "-O3") - set(CMAKE_Fortran_FLAGS_DEBUG "-O1 -ggdb -fno-unsafe-math-optimizations -frounding-math -fsignaling-nans -ffpe-trap=invalid,zero,overflow -fbounds-check -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls") + set(CMAKE_Fortran_FLAGS_DEBUG "-O1 -ggdb -fno-unsafe-math-optimizations -frounding-math -fsignaling-nans -ffpe-trap=invalid,zero,overflow -fbounds-check -fno-omit-frame-pointer -fno-optimize-sibling-calls") endif() if(CMAKE_C_COMPILER_ID MATCHES "^(Intel)$") From 3790db2071e39efc294eb1bd633da7f911c9accb Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 12:03:07 -0700 Subject: [PATCH 33/62] more --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbc07871b..aebaa0fa9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,8 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch -fallow-invalid-boz") endif() set(CMAKE_Fortran_FLAGS_RELEASE "-O3") - set(CMAKE_Fortran_FLAGS_DEBUG "-O1 -ggdb -fno-unsafe-math-optimizations -frounding-math -fsignaling-nans -ffpe-trap=invalid,zero,overflow -fbounds-check -fno-omit-frame-pointer -fno-optimize-sibling-calls") + set(CMAKE_Fortran_FLAGS_DEBUG "-ggdb -Wall") +# set(CMAKE_Fortran_FLAGS_DEBUG "-O1 -ggdb -fno-unsafe-math-optimizations -frounding-math -fsignaling-nans -ffpe-trap=invalid,zero,overflow -fbounds-check -fno-omit-frame-pointer -fno-optimize-sibling-calls") endif() if(CMAKE_C_COMPILER_ID MATCHES "^(Intel)$") From d3280d879f323ee7e508715279bc6dc3933bf5c8 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 12:08:51 -0700 Subject: [PATCH 34/62] more --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aebaa0fa9..76e92900e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,8 +42,8 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fallow-argument-mismatch -fallow-invalid-boz") endif() set(CMAKE_Fortran_FLAGS_RELEASE "-O3") - set(CMAKE_Fortran_FLAGS_DEBUG "-ggdb -Wall") -# set(CMAKE_Fortran_FLAGS_DEBUG "-O1 -ggdb -fno-unsafe-math-optimizations -frounding-math -fsignaling-nans -ffpe-trap=invalid,zero,overflow -fbounds-check -fno-omit-frame-pointer -fno-optimize-sibling-calls") +# set(CMAKE_Fortran_FLAGS_DEBUG "-ggdb -Wall") + set(CMAKE_Fortran_FLAGS_DEBUG "-O1 -ggdb -fno-unsafe-math-optimizations -frounding-math -fsignaling-nans -ffpe-trap=invalid,zero,overflow -fbounds-check -fno-omit-frame-pointer -fno-optimize-sibling-calls") endif() if(CMAKE_C_COMPILER_ID MATCHES "^(Intel)$") From c271e785d1e1d2493d44b11b649580ed2d62102b Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 13:08:17 -0700 Subject: [PATCH 35/62] adding cmake option for local directory for test data --- CMakeLists.txt | 2 ++ tests/CMakeLists.txt | 22 ++++++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 76e92900e..f8e33a472 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") # User options. option(OPENMP "use OpenMP threading" ON) option(ENABLE_DOCS "Enable generation of doxygen-based documentation." OFF) +SET(TEST_FILE_DIR "." CACHE STRING "Check this directory for test files before using FTP.") +# Set the build type. if(NOT CMAKE_BUILD_TYPE MATCHES "^(Debug|Release|RelWithDebInfo|MinSizeRel)$") message(STATUS "Setting build type to 'Release' as none was specified.") set(CMAKE_BUILD_TYPE diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 54550d864..0f7dea933 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,19 +3,29 @@ # # Ed Hartnett 2/11/21 -# This function is used to download unit test data. -# It takes two arguments, the URL and the file to -# be downloaded. - +# Some test files are large and are kept on the NOAA EMC FTP +# site. This function is used to download such test data. It takes two +# arguments, the URL and the file to be downloaded. function(PULL_DATA THE_URL THE_FILE) + # If the TEST_FILE_DIR was specified, look for our test data files + # there before FTPing them. Developers can keep all test files on + # their machines, and save the time of downloading them every time. + if(NOT ${TEST_FILE_DIR} STREQUAL ".") + if (EXISTS ${TEST_FILE_DIR}/${THE_FILE}) + message(STATUS "Copying file ${TEST_FILE_DIR}/${THE_FILE} to test data directory.") + FILE(COPY ${TEST_FILE_DIR}/${THE_FILE} + DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/data) + endif() + endif() if(NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/data/${THE_FILE}") + message(STATUS "Downloading file ${CMAKE_CURRENT_BINARY_DIR}/data/${THE_FILE}.") file(DOWNLOAD ${THE_URL}/${THE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/data/${THE_FILE} SHOW_PROGRESS STATUS status - INACTIVITY_TIMEOUT 120 - ) + INACTIVITY_TIMEOUT 30 + ) list(GET status 0 status_num) if(NOT status_num EQUAL 0 OR NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/data/${THE_FILE}") message(FATAL_ERROR "Could not download ${THE_FILE}") From 0361760f0db234ed733e1dd5d16911c3c1d9e79e Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 13:43:55 -0700 Subject: [PATCH 36/62] adding data cache to developer CI --- .github/workflows/developer.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 4401171f6..5cc10535d 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -326,6 +326,13 @@ jobs: path: ufs_utils submodules: true + - name: cache-data + id: cache-data + uses: actions/cache@v2 + with: + path: ~/data + key: data-1 + - name: build run: | set -x @@ -343,6 +350,12 @@ jobs: ctest --verbose --rerun-failed --output-on-failure gcovr --root .. -v --html-details --exclude ../tests --exclude CMakeFiles --print-summary -o test-coverage.html &> /dev/null + - name: cache-data + if: steps.cache-data.outputs.cache-hit != 'true' + run: | + mkdir ~/data + cp $GITHUB_WORKSPACE/ufs_utils/build/tests/data/* ~/data + - name: upload-test-coverage uses: actions/upload-artifact@v2 with: From 15871c7d8fca9371abf9870ae1cbd722aae0ba3c Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 14:07:26 -0700 Subject: [PATCH 37/62] adding data cache to developer CI --- .github/workflows/developer.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 5cc10535d..9119fd90a 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -340,6 +340,7 @@ jobs: mkdir build doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk + pwd cd build cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 @@ -353,8 +354,11 @@ jobs: - name: cache-data if: steps.cache-data.outputs.cache-hit != 'true' run: | + set -x mkdir ~/data - cp $GITHUB_WORKSPACE/ufs_utils/build/tests/data/* ~/data + ls -l ~/ufs_utils/build/tests + ls -l ~/ufs_utils/build/tests/data + cp ~/ufs_utils/build/tests/data/* ~/data - name: upload-test-coverage uses: actions/upload-artifact@v2 From 79c49fd61d9a575c15e84733a31fe308a7820314 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 15:22:44 -0700 Subject: [PATCH 38/62] adding data cache to developer CI --- .github/workflows/developer.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 9119fd90a..2d3bdbb0a 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -356,9 +356,10 @@ jobs: run: | set -x mkdir ~/data - ls -l ~/ufs_utils/build/tests - ls -l ~/ufs_utils/build/tests/data - cp ~/ufs_utils/build/tests/data/* ~/data + ls -l + ls -l ufs_utils/build/tests + ls -l ufs_utils/build/tests/data + cp ufs_utils/build/tests/data/* ~/data - name: upload-test-coverage uses: actions/upload-artifact@v2 From 0f955c63b6b3269e4a98013e2b2af8ea619ab3f2 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 15:38:40 -0700 Subject: [PATCH 39/62] adding data cache to developer CI --- .github/workflows/developer.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 2d3bdbb0a..d60cf5ff5 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -356,10 +356,11 @@ jobs: run: | set -x mkdir ~/data + pwd ls -l - ls -l ufs_utils/build/tests - ls -l ufs_utils/build/tests/data - cp ufs_utils/build/tests/data/* ~/data + ls -l ufs_utils/build + ls -l ufs_utils/build/data + cp ufs_utils/build/data/* ~/data - name: upload-test-coverage uses: actions/upload-artifact@v2 From a19d64d218e0d30c4b24ba84305df6621b31748b Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 15:55:00 -0700 Subject: [PATCH 40/62] adding data cache to developer CI --- .github/workflows/developer.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index d60cf5ff5..226a9afa8 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -359,8 +359,9 @@ jobs: pwd ls -l ls -l ufs_utils/build - ls -l ufs_utils/build/data - cp ufs_utils/build/data/* ~/data + ls -l ufs_utils/build/tests + ls -l ufs_utils/build/tests/data + cp ufs_utils/build/tests/data/* ~/data - name: upload-test-coverage uses: actions/upload-artifact@v2 From 2a489c0b37ce68ea87175dc9c9e75794c88251b5 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 16:07:14 -0700 Subject: [PATCH 41/62] adding data cache to developer CI --- .github/workflows/developer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 226a9afa8..2f979c7b1 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -361,6 +361,7 @@ jobs: ls -l ufs_utils/build ls -l ufs_utils/build/tests ls -l ufs_utils/build/tests/data + find . -name data cp ufs_utils/build/tests/data/* ~/data - name: upload-test-coverage From e8b27dd885d6636747e1885c1916a5d1ade6492b Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 16:07:40 -0700 Subject: [PATCH 42/62] adding data cache to developer CI --- .github/workflows/developer.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 2f979c7b1..c8b2b752a 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -360,7 +360,6 @@ jobs: ls -l ls -l ufs_utils/build ls -l ufs_utils/build/tests - ls -l ufs_utils/build/tests/data find . -name data cp ufs_utils/build/tests/data/* ~/data From 489f0cb76cd601ac47d587a1aac3bae8154b4f6c Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 16:22:18 -0700 Subject: [PATCH 43/62] adding data cache to developer CI --- .github/workflows/developer.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index c8b2b752a..3e0e4c1fe 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -356,12 +356,13 @@ jobs: run: | set -x mkdir ~/data - pwd - ls -l - ls -l ufs_utils/build - ls -l ufs_utils/build/tests - find . -name data - cp ufs_utils/build/tests/data/* ~/data + cp ufs_utils/build/tests/chgres_cube/data/* ~/data + cp ufs_utils/build/tests/sfc_climo_gen/data/* ~/data + cp ufs_utils/build/tests/cpld_gridgen/data/* ~/data + cp ufs_utils/tests/filter_topo/data/* ~/data + cp ufs_utils/tests/emcsfc_snow2mdl/data/* ~/data + cp ufs_utils/tests/chgres_cube/data/* ~/data + ls -l ~/data - name: upload-test-coverage uses: actions/upload-artifact@v2 From 4a215097fed74044a01d1443a8bf787fa61c6b29 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 16:48:33 -0700 Subject: [PATCH 44/62] checking data cache to developer CI --- .github/workflows/developer.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 3e0e4c1fe..26c5432c7 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -335,12 +335,10 @@ jobs: - name: build run: | - set -x cd ufs_utils mkdir build doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk - pwd cd build cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 @@ -354,7 +352,6 @@ jobs: - name: cache-data if: steps.cache-data.outputs.cache-hit != 'true' run: | - set -x mkdir ~/data cp ufs_utils/build/tests/chgres_cube/data/* ~/data cp ufs_utils/build/tests/sfc_climo_gen/data/* ~/data From 4228798c6e6ecd323718c773c22bc2dee093330b Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 17:05:40 -0700 Subject: [PATCH 45/62] checking data cache to developer CI --- .github/workflows/developer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 26c5432c7..743614f3b 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -340,7 +340,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DJasper_ROOT=~/jasper -DCMAKE_PREFIX_PATH="~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug + cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 - name: test From 1f4c93b1ba03a99306239033017d9ef0e884849b Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 17:14:13 -0700 Subject: [PATCH 46/62] turning on data cache in all workflows --- .github/workflows/developer.yml | 2 +- .github/workflows/intel.yml | 22 ++++++++++++++++++- .github/workflows/linux-mac-nceplibs-mpi.yml | 22 ++++++++++++++++++- .github/workflows/netcdf-versions.yml | 23 +++++++++++++++++++- 4 files changed, 65 insertions(+), 4 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 743614f3b..8a03b8857 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -340,7 +340,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake .. -DFTP_TEST_FILES=ON -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug + cmake .. -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug make -j2 VERBOSE=1 - name: test diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index 200a91f03..d60f51040 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -166,16 +166,36 @@ jobs: path: ufs_utils submodules: recursive + - name: cache-data + id: cache-data + uses: actions/cache@v2 + with: + path: ~/data + key: data-1 + - name: build run: | export ESMFMKFILE=~/esmf/lib/esmf.mk cd ufs_utils mkdir build && cd build export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' + cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test run: | cd ufs_utils/build ctest --rerun-failed --output-on-failure + + - name: cache-data + if: steps.cache-data.outputs.cache-hit != 'true' + run: | + mkdir ~/data + cp ufs_utils/build/tests/chgres_cube/data/* ~/data + cp ufs_utils/build/tests/sfc_climo_gen/data/* ~/data + cp ufs_utils/build/tests/cpld_gridgen/data/* ~/data + cp ufs_utils/tests/filter_topo/data/* ~/data + cp ufs_utils/tests/emcsfc_snow2mdl/data/* ~/data + cp ufs_utils/tests/chgres_cube/data/* ~/data + ls -l ~/data + diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index 8b7aab007..eeb06948d 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -217,6 +217,13 @@ jobs: path: ufs_utils submodules: recursive + - name: cache-data + id: cache-data + uses: actions/cache@v2 + with: + path: ~/data + key: data-1 + - name: build run: | export ESMFMKFILE=~/esmf/lib/esmf.mk @@ -227,7 +234,7 @@ jobs: export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" export DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake .. -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' + cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test @@ -236,3 +243,16 @@ jobs: # Oversubscribe for OpenMPI to run more processes than CPUs export OMPI_MCA_rmaps_base_oversubscribe=1 ctest --rerun-failed --output-on-failure + + - name: cache-data + if: steps.cache-data.outputs.cache-hit != 'true' + run: | + mkdir ~/data + cp ufs_utils/build/tests/chgres_cube/data/* ~/data + cp ufs_utils/build/tests/sfc_climo_gen/data/* ~/data + cp ufs_utils/build/tests/cpld_gridgen/data/* ~/data + cp ufs_utils/tests/filter_topo/data/* ~/data + cp ufs_utils/tests/emcsfc_snow2mdl/data/* ~/data + cp ufs_utils/tests/chgres_cube/data/* ~/data + ls -l ~/data + diff --git a/.github/workflows/netcdf-versions.yml b/.github/workflows/netcdf-versions.yml index 424bff3ca..a2c12015a 100644 --- a/.github/workflows/netcdf-versions.yml +++ b/.github/workflows/netcdf-versions.yml @@ -151,6 +151,13 @@ jobs: path: ufs_utils submodules: recursive + - name: cache-data + id: cache-data + uses: actions/cache@v2 + with: + path: ~/data + key: data-1 + - name: build run: | export ESMFMKFILE=~/esmf/lib/esmf.mk @@ -160,7 +167,7 @@ jobs: export CXX=mpicxx export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake .. -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' -DCMAKE_BUILD_TYPE=Debug + cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' -DCMAKE_BUILD_TYPE=Debug .. make -j2 - name: test @@ -168,3 +175,17 @@ jobs: cd ufs_utils/build # export LSAN_OPTIONS=suppressions=LSanSuppress.supp ctest --rerun-failed --output-on-failure + + - name: cache-data + if: steps.cache-data.outputs.cache-hit != 'true' + run: | + mkdir ~/data + cp ufs_utils/build/tests/chgres_cube/data/* ~/data + cp ufs_utils/build/tests/sfc_climo_gen/data/* ~/data + cp ufs_utils/build/tests/cpld_gridgen/data/* ~/data + cp ufs_utils/tests/filter_topo/data/* ~/data + cp ufs_utils/tests/emcsfc_snow2mdl/data/* ~/data + cp ufs_utils/tests/chgres_cube/data/* ~/data + ls -l ~/data + + From 569d973f00f5b03ab8dc20de941ff21dcedb0697 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 17:43:09 -0700 Subject: [PATCH 47/62] turning on data cache in all workflows --- .github/workflows/developer.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 8a03b8857..2b7ad929e 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -1,7 +1,7 @@ # UFS_UTILS test workflow. # -# This workflow tests all developer options - address santizer, -# warning check, documentation check, and test code coverage. +# This workflow tests all developer options including +# documentation check, and test code coverage. # # Ed Hartnett 12/11/22 name: developer @@ -340,7 +340,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake .. -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug + cmake -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug .. make -j2 VERBOSE=1 - name: test From e01edd3a2e59c32663ff69a7638ce42d15f9bf5c Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 17:54:32 -0700 Subject: [PATCH 48/62] turning on data cache in all workflows --- .github/workflows/debug-docs-test_coverage.yml | 2 +- .github/workflows/developer.yml | 2 +- .github/workflows/intel.yml | 2 +- .github/workflows/linux-mac-nceplibs-mpi.yml | 2 +- .github/workflows/netcdf-versions.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/debug-docs-test_coverage.yml b/.github/workflows/debug-docs-test_coverage.yml index be1371f69..411b2e27c 100644 --- a/.github/workflows/debug-docs-test_coverage.yml +++ b/.github/workflows/debug-docs-test_coverage.yml @@ -109,7 +109,7 @@ jobs: export CXX=mpicxx export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake .. -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" + cmake -DTEST_FILE_DIR=~/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On .. make -j2 - name: test diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 2b7ad929e..4c87c21e1 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -340,7 +340,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug .. + cmake -DTEST_FILE_DIR=~/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug .. make -j2 VERBOSE=1 - name: test diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index d60f51040..13e85a2ed 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -179,7 +179,7 @@ jobs: cd ufs_utils mkdir build && cd build export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' .. + cmake -DTEST_FILE_DIR=~/data -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index eeb06948d..ea91df36d 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -234,7 +234,7 @@ jobs: export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" export DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' .. + cmake -DTEST_FILE_DIR=~/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test diff --git a/.github/workflows/netcdf-versions.yml b/.github/workflows/netcdf-versions.yml index a2c12015a..818447da4 100644 --- a/.github/workflows/netcdf-versions.yml +++ b/.github/workflows/netcdf-versions.yml @@ -167,7 +167,7 @@ jobs: export CXX=mpicxx export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' -DCMAKE_BUILD_TYPE=Debug .. + cmake -DTEST_FILE_DIR=~/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' -DCMAKE_BUILD_TYPE=Debug .. make -j2 - name: test From 269268854269ca7fbf11bcff3206b471aade6bd8 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 18:18:39 -0700 Subject: [PATCH 49/62] turning on data cache in all workflows --- .github/workflows/developer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 4c87c21e1..4b4c8b9fe 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -335,6 +335,7 @@ jobs: - name: build run: | + pwd cd ufs_utils mkdir build doxygen --version From 04f9f6d559f2d6c006f9604f5785a6994fadcf40 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 18:30:32 -0700 Subject: [PATCH 50/62] turning on data cache in all workflows --- .github/workflows/debug-docs-test_coverage.yml | 2 +- .github/workflows/developer.yml | 2 +- .github/workflows/intel.yml | 2 +- .github/workflows/linux-mac-nceplibs-mpi.yml | 2 +- .github/workflows/netcdf-versions.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/debug-docs-test_coverage.yml b/.github/workflows/debug-docs-test_coverage.yml index 411b2e27c..0d68fbb21 100644 --- a/.github/workflows/debug-docs-test_coverage.yml +++ b/.github/workflows/debug-docs-test_coverage.yml @@ -109,7 +109,7 @@ jobs: export CXX=mpicxx export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=~/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On .. + cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On .. make -j2 - name: test diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 4b4c8b9fe..df215c7bc 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -341,7 +341,7 @@ jobs: doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake -DTEST_FILE_DIR=~/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug .. + cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug .. make -j2 VERBOSE=1 - name: test diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index 13e85a2ed..181036208 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -179,7 +179,7 @@ jobs: cd ufs_utils mkdir build && cd build export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=~/data -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' .. + cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index ea91df36d..8b5152e3c 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -234,7 +234,7 @@ jobs: export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" export DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=~/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' .. + cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test diff --git a/.github/workflows/netcdf-versions.yml b/.github/workflows/netcdf-versions.yml index 818447da4..ca02e5e26 100644 --- a/.github/workflows/netcdf-versions.yml +++ b/.github/workflows/netcdf-versions.yml @@ -167,7 +167,7 @@ jobs: export CXX=mpicxx export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=~/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' -DCMAKE_BUILD_TYPE=Debug .. + cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' -DCMAKE_BUILD_TYPE=Debug .. make -j2 - name: test From 81285954074076073e4cbb128af89dc34449a0d6 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 18:39:23 -0700 Subject: [PATCH 51/62] turning on data cache in all workflows --- tests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0f7dea933..8ceed5e46 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,6 +10,7 @@ function(PULL_DATA THE_URL THE_FILE) # If the TEST_FILE_DIR was specified, look for our test data files # there before FTPing them. Developers can keep all test files on # their machines, and save the time of downloading them every time. + message(STATUS "TEST_FILE_DIR ${TEST_FILE_DIR} THE_FILE ${THE_FILE}") if(NOT ${TEST_FILE_DIR} STREQUAL ".") if (EXISTS ${TEST_FILE_DIR}/${THE_FILE}) message(STATUS "Copying file ${TEST_FILE_DIR}/${THE_FILE} to test data directory.") From 4f2ef1ff9aa26e594c1592de9926eef29ee66d87 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 18:53:16 -0700 Subject: [PATCH 52/62] turning on data cache in all workflows --- .github/workflows/developer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index df215c7bc..1f0d83575 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -336,6 +336,7 @@ jobs: - name: build run: | pwd + ls -l /home/runner/work/UFS_UTILS/UFS_UTILS/data cd ufs_utils mkdir build doxygen --version From 706410ea19d6a808009f762e8d571677b9c98ba6 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 18:58:15 -0700 Subject: [PATCH 53/62] turning on data cache in all workflows --- .github/workflows/developer.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 1f0d83575..915c29583 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -335,6 +335,7 @@ jobs: - name: build run: | + cd ~ pwd ls -l /home/runner/work/UFS_UTILS/UFS_UTILS/data cd ufs_utils From 79807de97a8ba7f4762da03b6902601524060d1a Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 19:05:41 -0700 Subject: [PATCH 54/62] turning on data cache in all workflows --- .github/workflows/developer.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 915c29583..3f2e719f3 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -337,13 +337,13 @@ jobs: run: | cd ~ pwd - ls -l /home/runner/work/UFS_UTILS/UFS_UTILS/data + ls -l /home/runner/data cd ufs_utils mkdir build doxygen --version export ESMFMKFILE=~/esmf/lib/esmf.mk cd build - cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug .. + cmake -DTEST_FILE_DIR=/home/runner/data -DENABLE_DOCS=On -DCMAKE_PREFIX_PATH="~/jasper;~/g2c;~/bacio;~/g2;~/w3nco;~/sfcio;~/sigio;~/nemsio;~/sp;~/ip" -DCMAKE_Fortran_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_C_FLAGS="-g -fprofile-arcs -ftest-coverage -O0" -DCMAKE_BUILD_TYPE=Debug .. make -j2 VERBOSE=1 - name: test From 1afaceb110da0775a8ccca692208898e349c2feb Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 19:13:12 -0700 Subject: [PATCH 55/62] turning on data cache in all workflows --- .github/workflows/developer.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 3f2e719f3..bbb4f7cf7 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -335,8 +335,6 @@ jobs: - name: build run: | - cd ~ - pwd ls -l /home/runner/data cd ufs_utils mkdir build From 80d054f55a945689fb283fd98e0702c4e521be34 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 19:25:53 -0700 Subject: [PATCH 56/62] turning on data cache in all workflows --- .github/workflows/debug-docs-test_coverage.yml | 2 +- .github/workflows/developer.yml | 1 - .github/workflows/intel.yml | 2 +- .github/workflows/linux-mac-nceplibs-mpi.yml | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/debug-docs-test_coverage.yml b/.github/workflows/debug-docs-test_coverage.yml index 0d68fbb21..b2cfa6884 100644 --- a/.github/workflows/debug-docs-test_coverage.yml +++ b/.github/workflows/debug-docs-test_coverage.yml @@ -109,7 +109,7 @@ jobs: export CXX=mpicxx export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On .. + cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs' -DCMAKE_BUILD_TYPE=Debug -DENABLE_DOCS=On .. make -j2 - name: test diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index bbb4f7cf7..2b7ad929e 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -335,7 +335,6 @@ jobs: - name: build run: | - ls -l /home/runner/data cd ufs_utils mkdir build doxygen --version diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index 181036208..d60f51040 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -179,7 +179,7 @@ jobs: cd ufs_utils mkdir build && cd build export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' .. + cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH='~;~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index 8b5152e3c..eeb06948d 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -234,7 +234,7 @@ jobs: export FC=mpifort export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" export DYLD_LIBRARY_PATH="${LD_LIBRARY_PATH}:~/jasper/lib;~/jasper/lib64" - cmake -DTEST_FILE_DIR=/home/runner/work/UFS_UTILS/UFS_UTILS/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' .. + cmake -DTEST_FILE_DIR=/home/runner/data -DCMAKE_PREFIX_PATH='~/jasper;~/nceplibs;~/netcdf' .. make -j2 - name: test From 1b2ba36f34c2360be3081a015c561d291e447d4d Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 19:27:41 -0700 Subject: [PATCH 57/62] turning on data cache in all workflows --- tests/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 8ceed5e46..0f7dea933 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,7 +10,6 @@ function(PULL_DATA THE_URL THE_FILE) # If the TEST_FILE_DIR was specified, look for our test data files # there before FTPing them. Developers can keep all test files on # their machines, and save the time of downloading them every time. - message(STATUS "TEST_FILE_DIR ${TEST_FILE_DIR} THE_FILE ${THE_FILE}") if(NOT ${TEST_FILE_DIR} STREQUAL ".") if (EXISTS ${TEST_FILE_DIR}/${THE_FILE}) message(STATUS "Copying file ${TEST_FILE_DIR}/${THE_FILE} to test data directory.") From cfafe1b0f0147151f2d38055aab32035ba7efd2b Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 19:54:59 -0700 Subject: [PATCH 58/62] turning on data cache in all workflows --- .github/workflows/debug-docs-test_coverage.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/debug-docs-test_coverage.yml b/.github/workflows/debug-docs-test_coverage.yml index b2cfa6884..65dc9eaed 100644 --- a/.github/workflows/debug-docs-test_coverage.yml +++ b/.github/workflows/debug-docs-test_coverage.yml @@ -100,6 +100,13 @@ jobs: path: ufs_utils submodules: recursive + - name: cache-data + id: cache-data + uses: actions/cache@v2 + with: + path: ~/data + key: data-1 + - name: build run: | export ESMFMKFILE=~/esmf/lib/esmf.mk From 0362ef2622ebb562f574819d69e7465fccd79a4b Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 19:59:18 -0700 Subject: [PATCH 59/62] turning on data cache in all workflows --- .github/workflows/intel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index d60f51040..230cc222e 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -12,7 +12,7 @@ on: - README.md # Use custom shell with -l so .bash_profile is sourced which loads intel/oneapi/setvars.sh -# without having to do it in manually every step +# without having to do it in manually every step. defaults: run: shell: bash -leo pipefail {0} From 19206452551ad99a15c2cb3fd8db9dc035a60fee Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 20:10:22 -0700 Subject: [PATCH 60/62] turning on data cache in all workflows --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0f7dea933..b76bc1477 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -10,6 +10,7 @@ function(PULL_DATA THE_URL THE_FILE) # If the TEST_FILE_DIR was specified, look for our test data files # there before FTPing them. Developers can keep all test files on # their machines, and save the time of downloading them every time. + message(STATUS "TEST_FILE_DIR ${TEST_FILE_DIR} THE_FILE ${THE_FILE}") if(NOT ${TEST_FILE_DIR} STREQUAL ".") if (EXISTS ${TEST_FILE_DIR}/${THE_FILE}) message(STATUS "Copying file ${TEST_FILE_DIR}/${THE_FILE} to test data directory.") @@ -22,7 +23,6 @@ function(PULL_DATA THE_URL THE_FILE) file(DOWNLOAD ${THE_URL}/${THE_FILE} ${CMAKE_CURRENT_BINARY_DIR}/data/${THE_FILE} - SHOW_PROGRESS STATUS status INACTIVITY_TIMEOUT 30 ) From 02ed98da8764a7e82a95433cb7f39d784eb566d5 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 20:21:26 -0700 Subject: [PATCH 61/62] turning on data cache in all workflows --- .github/workflows/intel.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index 230cc222e..e7f7c4388 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -12,7 +12,7 @@ on: - README.md # Use custom shell with -l so .bash_profile is sourced which loads intel/oneapi/setvars.sh -# without having to do it in manually every step. +# without having to do it in manually every step. defaults: run: shell: bash -leo pipefail {0} From 3f632f3cf020ef5d9edb988c8f3f897337e42119 Mon Sep 17 00:00:00 2001 From: Edward Hartnett Date: Mon, 12 Dec 2022 20:38:33 -0700 Subject: [PATCH 62/62] turning on data cache in all workflows --- .github/workflows/linux-mac-nceplibs-mpi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux-mac-nceplibs-mpi.yml b/.github/workflows/linux-mac-nceplibs-mpi.yml index eeb06948d..bb01b29ee 100644 --- a/.github/workflows/linux-mac-nceplibs-mpi.yml +++ b/.github/workflows/linux-mac-nceplibs-mpi.yml @@ -222,7 +222,7 @@ jobs: uses: actions/cache@v2 with: path: ~/data - key: data-1 + key: data-2 - name: build run: |