From afe55c2d39a33e4bac4feedfeaffce4503121088 Mon Sep 17 00:00:00 2001 From: johodges Date: Sun, 6 Aug 2023 18:27:16 -0400 Subject: [PATCH 01/12] add ssh session for debugging. --- .github/workflows/github-actions-verify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 6f63a9b..509cb29 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -81,8 +81,8 @@ jobs: ls ${{ github.workspace }}/verification/tests/*/output/ NUMBER_OF_ERR_FILES=$(ls verification/tests/test_err/ -1 | wc -l) echo "NUMBER_OF_ERR_FILES=$NUMBER_OF_ERR_FILES" >> "$GITHUB_ENV" - #- name: Setup upterm session - # uses: lhotari/action-upterm@v1 + - name: Setup upterm session + uses: lhotari/action-upterm@v1 - name: Check coverage tolerance if: ${{ env.NUMBER_OF_ERR_FILES > 0.0 }} uses: actions/github-script@v3 From 46eea2932ad07bdefe6fd0a073d0d807ef7e5811 Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 06:42:53 -0400 Subject: [PATCH 02/12] actions push to release --- .github/workflows/github-actions-verify.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 509cb29..ad0a620 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -5,6 +5,7 @@ on: workflow_dispatch: jobs: Verification: + permissions: write-all runs-on: ubuntu-latest env: QT_QPA_PLATFORM: offscreen @@ -75,6 +76,13 @@ jobs: mkdir -p tests/test_err cp tests/*/output/*.png tests/test_out/ bash compare_images.sh + - name: Push results to release + run: | + cp verification/tests/*/output/*.fds verification/tests/test_out/ + cp verification/tests/*/output/*.bingeom verification/tests/test_out/ + cd verification/tests + tar -cvzf data_out.tar.gz test_out + gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz - name: List files in the repository shell: bash run: | From 4c27b590570a668425d4a7d135e26cf9cad2b9c1 Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 06:51:18 -0400 Subject: [PATCH 03/12] update release name to test-release --- .github/workflows/github-actions-verify.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index ad0a620..737919c 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -82,7 +82,8 @@ jobs: cp verification/tests/*/output/*.bingeom verification/tests/test_out/ cd verification/tests tar -cvzf data_out.tar.gz test_out - gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz + gh release create test-release data_out.tar.gz + # gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz - name: List files in the repository shell: bash run: | From 617c22d3501f77c54126d291ec6053d0771f7c98 Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 07:03:13 -0400 Subject: [PATCH 04/12] rename the release output. --- .github/workflows/github-actions-verify.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 737919c..73e3e16 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -81,8 +81,8 @@ jobs: cp verification/tests/*/output/*.fds verification/tests/test_out/ cp verification/tests/*/output/*.bingeom verification/tests/test_out/ cd verification/tests - tar -cvzf data_out.tar.gz test_out - gh release create test-release data_out.tar.gz + tar -cvzf ubuntu.tar.gz test_out + gh release create test-release ubuntu.tar.gz # gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz - name: List files in the repository shell: bash @@ -90,8 +90,8 @@ jobs: ls ${{ github.workspace }}/verification/tests/*/output/ NUMBER_OF_ERR_FILES=$(ls verification/tests/test_err/ -1 | wc -l) echo "NUMBER_OF_ERR_FILES=$NUMBER_OF_ERR_FILES" >> "$GITHUB_ENV" - - name: Setup upterm session - uses: lhotari/action-upterm@v1 + #- name: Setup upterm session + # uses: lhotari/action-upterm@v1 - name: Check coverage tolerance if: ${{ env.NUMBER_OF_ERR_FILES > 0.0 }} uses: actions/github-script@v3 From 3fb75afa311a250c118d39a3487f1b4bd8a4da18 Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 08:30:30 -0400 Subject: [PATCH 05/12] name release by branch --- .github/workflows/github-actions-verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 73e3e16..22b98c8 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -82,7 +82,7 @@ jobs: cp verification/tests/*/output/*.bingeom verification/tests/test_out/ cd verification/tests tar -cvzf ubuntu.tar.gz test_out - gh release create test-release ubuntu.tar.gz + gh release create verify-${{ github.ref_name }} ubuntu.tar.gz # gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz - name: List files in the repository shell: bash From b40f56359651f22f57eb7387fdfaca151dcd72cf Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 08:32:08 -0400 Subject: [PATCH 06/12] add notes to release --- .github/workflows/github-actions-verify.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 22b98c8..8dd43cc 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -82,7 +82,7 @@ jobs: cp verification/tests/*/output/*.bingeom verification/tests/test_out/ cd verification/tests tar -cvzf ubuntu.tar.gz test_out - gh release create verify-${{ github.ref_name }} ubuntu.tar.gz + gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }} ubuntu.tar.gz # gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz - name: List files in the repository shell: bash From 4e96bbc4c50d7b4234989c7eee42456ab9b608d7 Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 09:27:29 -0400 Subject: [PATCH 07/12] actions delete old release before push new --- .github/workflows/github-actions-verify.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 8dd43cc..7b2214e 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -82,6 +82,7 @@ jobs: cp verification/tests/*/output/*.bingeom verification/tests/test_out/ cd verification/tests tar -cvzf ubuntu.tar.gz test_out + gh release delete-asset verify-${{ github.ref_name }} ubuntu.tar.gz -y gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }} ubuntu.tar.gz # gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz - name: List files in the repository From 5e447d8762ba63aa8de31a7bde195590d003c7a9 Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 09:54:51 -0400 Subject: [PATCH 08/12] move release creation to separate job --- .github/workflows/github-actions-verify.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 7b2214e..cec19e1 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -4,6 +4,22 @@ on: push: workflow_dispatch: jobs: + DeleteRelease: + permissions: write-all + runs-on: ubuntu-latest + steps: + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "Deleting release tag verify-${{ github.ref_name }}" + - run: | + gh release delete verify-${{ github.ref_name }} -y --cleanup-tag + CreateRelease: + permissions: write-all + runs-on: ubuntu-latest + steps: + - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "Creating release tag verify-${{ github.ref_name }}" + - run: | + gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }} Verification: permissions: write-all runs-on: ubuntu-latest @@ -82,8 +98,9 @@ jobs: cp verification/tests/*/output/*.bingeom verification/tests/test_out/ cd verification/tests tar -cvzf ubuntu.tar.gz test_out - gh release delete-asset verify-${{ github.ref_name }} ubuntu.tar.gz -y - gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }} ubuntu.tar.gz + gh release upload verify-${{ github.ref_name }} ubuntu.tar.gz --clobber + # gh release delete verify-${{ github.ref_name }} -y --cleanup-tag + # gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }} ubuntu.tar.gz # gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz - name: List files in the repository shell: bash From 2f2c1ec07f4bda24a2acafaa650212bf9bbebc59 Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 09:56:59 -0400 Subject: [PATCH 09/12] add git credential to env --- .github/workflows/github-actions-verify.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index cec19e1..afa0547 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -7,6 +7,8 @@ jobs: DeleteRelease: permissions: write-all runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "Deleting release tag verify-${{ github.ref_name }}" @@ -15,6 +17,8 @@ jobs: CreateRelease: permissions: write-all runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." - run: echo "Creating release tag verify-${{ github.ref_name }}" From 8c1d9eb0bb0504984b2cbed055cf50c71af5c38b Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 09:59:37 -0400 Subject: [PATCH 10/12] add checkout of repo to delete/create --- .github/workflows/github-actions-verify.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index afa0547..a9f0040 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -11,6 +11,8 @@ jobs: GH_TOKEN: ${{ github.token }} steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - name: Check out repository code + uses: actions/checkout@v3 - run: echo "Deleting release tag verify-${{ github.ref_name }}" - run: | gh release delete verify-${{ github.ref_name }} -y --cleanup-tag @@ -21,6 +23,8 @@ jobs: GH_TOKEN: ${{ github.token }} steps: - run: echo "The job was automatically triggered by a ${{ github.event_name }} event." + - name: Check out repository code + uses: actions/checkout@v3 - run: echo "Creating release tag verify-${{ github.ref_name }}" - run: | gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }} From 34d2b941a647ada56b160be1ecb316535282360b Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 10:34:49 -0400 Subject: [PATCH 11/12] force order on jobs --- .github/workflows/github-actions-verify.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index a9f0040..78466fa 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -19,6 +19,7 @@ jobs: CreateRelease: permissions: write-all runs-on: ubuntu-latest + needs: DeleteRelease env: GH_TOKEN: ${{ github.token }} steps: @@ -31,6 +32,7 @@ jobs: Verification: permissions: write-all runs-on: ubuntu-latest + needs: CreateRelease env: QT_QPA_PLATFORM: offscreen PATH: "/home/runner/FDS/FDS6/smvbin:/home/runner/FDS/FDS6/bin/INTEL/bin:/home/runner/FDS/FDS6/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/binner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/runner/.dotnet/tools" From 4b23cb76b8a5e0b9871bc80634a715898c4e8c4c Mon Sep 17 00:00:00 2001 From: johodges Date: Mon, 7 Aug 2023 10:44:10 -0400 Subject: [PATCH 12/12] add continue-on-error --- .github/workflows/github-actions-verify.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/github-actions-verify.yml b/.github/workflows/github-actions-verify.yml index 78466fa..5740209 100644 --- a/.github/workflows/github-actions-verify.yml +++ b/.github/workflows/github-actions-verify.yml @@ -7,6 +7,7 @@ jobs: DeleteRelease: permissions: write-all runs-on: ubuntu-latest + continue-on-error: true env: GH_TOKEN: ${{ github.token }} steps: @@ -19,6 +20,7 @@ jobs: CreateRelease: permissions: write-all runs-on: ubuntu-latest + continue-on-error: true needs: DeleteRelease env: GH_TOKEN: ${{ github.token }}