From c56dfa5f495cccaddee9a7dab040ea06cbdeb3ab Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:02:20 -0400 Subject: [PATCH 1/3] upgrade to actions/checkout@v4 --- .github/workflows/build.yaml | 12 ++++++------ .github/workflows/build_base.yaml | 2 +- .github/workflows/ph_backward_compatibility.yaml | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4dccdddd5b..45ab9e057b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -89,7 +89,7 @@ jobs: runs-on: ubuntu-latest container: ${{fromJSON(needs.platform-cache.outputs.platforms)[matrix.platform].image}} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Download builddir @@ -140,7 +140,7 @@ jobs: image: ${{fromJSON(needs.platform-cache.outputs.platforms)[matrix.cfg.base].image}} options: --security-opt seccomp=unconfined steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download builddir uses: actions/download-artifact@v3 with: @@ -168,7 +168,7 @@ jobs: - cfg: {name: 'ubuntu22repro', base: 'ubuntu22', builddir: 'reproducible'} runs-on: ["self-hosted", "enf-x86-midtier"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download builddir uses: actions/download-artifact@v3 with: @@ -201,7 +201,7 @@ jobs: - cfg: {name: 'ubuntu22repro', base: 'ubuntu22', builddir: 'reproducible'} runs-on: ["self-hosted", "enf-x86-lowtier"] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download builddir uses: actions/download-artifact@v3 with: @@ -243,7 +243,7 @@ jobs: # LEAP - if: ${{ matrix.test != 'deb-install' }} name: Clone leap - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: recursive - if: ${{ matrix.test != 'deb-install' }} @@ -296,7 +296,7 @@ jobs: # Reference Contracts - name: checkout eos-system-contracts - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: eosnetworkfoundation/eos-system-contracts path: eos-system-contracts diff --git a/.github/workflows/build_base.yaml b/.github/workflows/build_base.yaml index 5e6639f968..ec0b70f95b 100644 --- a/.github/workflows/build_base.yaml +++ b/.github/workflows/build_base.yaml @@ -30,7 +30,7 @@ jobs: runs-on: ["self-hosted", "enf-x86-beefy"] container: ${{fromJSON(inputs.platforms)[matrix.platform].image}} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: recursive - name: Build diff --git a/.github/workflows/ph_backward_compatibility.yaml b/.github/workflows/ph_backward_compatibility.yaml index 4633108821..26564792f2 100644 --- a/.github/workflows/ph_backward_compatibility.yaml +++ b/.github/workflows/ph_backward_compatibility.yaml @@ -46,7 +46,7 @@ jobs: image: ${{fromJSON(needs.platform-cache.outputs.platforms)[matrix.platform].image}} options: --security-opt seccomp=unconfined steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download builddir uses: actions/download-artifact@v3 with: From ec227851eafb9edd906253b62eb449ff95a62a4b Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:03:36 -0400 Subject: [PATCH 2/3] upgrade parallel-ctest-containers action to node20 --- .github/actions/parallel-ctest-containers/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/parallel-ctest-containers/action.yml b/.github/actions/parallel-ctest-containers/action.yml index c5e58db6eb..c4a8573e11 100644 --- a/.github/actions/parallel-ctest-containers/action.yml +++ b/.github/actions/parallel-ctest-containers/action.yml @@ -12,5 +12,5 @@ inputs: test-timeout: required: true runs: - using: 'node16' + using: 'node20' main: 'dist/index.mjs' From 72e0e0d07517c17dd76d312051cbe7cce05a3b9f Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:12:06 -0400 Subject: [PATCH 3/3] upload core files from failed tests --- .github/workflows/build.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 45ab9e057b..8c42f6dc30 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -138,7 +138,7 @@ jobs: runs-on: ["self-hosted", "enf-x86-hightier"] container: image: ${{fromJSON(needs.platform-cache.outputs.platforms)[matrix.cfg.base].image}} - options: --security-opt seccomp=unconfined + options: --security-opt seccomp=unconfined --mount type=bind,source=/var/lib/systemd/coredump,target=/cores steps: - uses: actions/checkout@v4 - name: Download builddir @@ -152,6 +152,13 @@ jobs: zstdcat build.tar.zst | tar x cd build ctest --output-on-failure -j $(nproc) -LE "(nonparallelizable_tests|long_running_tests)" --timeout 420 + - name: Upload core files from failed tests + uses: actions/upload-artifact@v3 + if: failure() + with: + name: ${{matrix.cfg.name}}-tests-logs + if-no-files-found: ignore + path: /cores - name: Check CPU Features run: awk 'BEGIN {err = 1} /bmi2/ && /adx/ {err = 0} END {exit err}' /proc/cpuinfo @@ -181,12 +188,17 @@ jobs: log-tarball-prefix: ${{matrix.cfg.name}} tests-label: nonparallelizable_tests test-timeout: 420 + - name: Export core dumps + run: docker run --mount type=bind,source=/var/lib/systemd/coredump,target=/cores alpine sh -c 'tar -C /cores/ -c .' | tar x + if: failure() - name: Upload logs from failed tests uses: actions/upload-artifact@v3 if: failure() with: name: ${{matrix.cfg.name}}-np-logs - path: '*-logs.tar.gz' + path: | + *-logs.tar.gz + core*.zst lr-tests: name: LR Tests (${{matrix.cfg.name}}) @@ -214,12 +226,17 @@ jobs: log-tarball-prefix: ${{matrix.cfg.name}} tests-label: long_running_tests test-timeout: 1800 + - name: Export core dumps + run: docker run --mount type=bind,source=/var/lib/systemd/coredump,target=/cores alpine sh -c 'tar -C /cores/ -c .' | tar x + if: failure() - name: Upload logs from failed tests uses: actions/upload-artifact@v3 if: failure() with: name: ${{matrix.cfg.name}}-lr-logs - path: '*-logs.tar.gz' + path: | + *-logs.tar.gz + core*.zst libtester-tests: name: libtester tests