misc,tests: Remove zip step from Workflows (#1048)
This is not needed with upload-artifact v4 directories are archived and compressed by default. This zip step was also causing Daily/Weekly test failures due to not running `apt update` before the `apt install` for the zip utility. Ergo this patch fixes these errors.
This commit is contained in:
2
.github/workflows/ci-tests.yaml
vendored
2
.github/workflows/ci-tests.yaml
vendored
@@ -175,7 +175,7 @@ jobs:
|
||||
run: echo "sanatized-test-dir=$(echo '${{ matrix.test-dir }}' | sed 's/\//-/g')" >> $GITHUB_OUTPUT
|
||||
|
||||
# Upload the tests/testing-results directory as an artifact.
|
||||
- name: Upload test results
|
||||
- name: upload results
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
18
.github/workflows/daily-tests.yaml
vendored
18
.github/workflows/daily-tests.yaml
vendored
@@ -157,19 +157,14 @@ jobs:
|
||||
- name: long ${{ matrix.test-type }} tests
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
run: ./main.py run gem5/${{ matrix.test-type }} --length=long --skip-build -vv -t $(nproc)
|
||||
- name: create zip of results
|
||||
if: success() || failure()
|
||||
run: |
|
||||
apt-get -y install zip
|
||||
zip -r output.zip tests/testing-results
|
||||
- name: upload zip
|
||||
- name: upload results
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
env:
|
||||
MY_STEP_VAR: ${{ matrix.test-type }}_COMMIT.${{github.sha}}_RUN.${{github.run_id}}_ATTEMPT.${{github.run_attempt}}
|
||||
with:
|
||||
name: ${{ env.MY_STEP_VAR }}
|
||||
path: output.zip
|
||||
path: tests/testing-results
|
||||
retention-days: 7
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
||||
|
||||
@@ -202,19 +197,14 @@ jobs:
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
run: ./main.py run --uid SuiteUID:tests/gem5/gem5_library_example_tests/test_gem5_library_examples.py:test-${{ matrix.test-type }} --length=long
|
||||
--skip-build -vv
|
||||
- name: create zip of results
|
||||
if: success() || failure()
|
||||
run: |
|
||||
apt-get -y install zip
|
||||
zip -r output.zip tests/testing-results
|
||||
- name: upload zip
|
||||
- name: upload results
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
env:
|
||||
MY_STEP_VAR: ${{ matrix.test-type }}_COMMIT.${{github.sha}}_RUN.${{github.run_id}}_ATTEMPT.${{github.run_attempt}}
|
||||
with:
|
||||
name: ${{ env.MY_STEP_VAR }}
|
||||
path: output.zip
|
||||
path: tests/testing-results
|
||||
retention-days: 7
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
||||
|
||||
|
||||
9
.github/workflows/weekly-tests.yaml
vendored
9
.github/workflows/weekly-tests.yaml
vendored
@@ -139,19 +139,14 @@ jobs:
|
||||
- name: very-long ${{ matrix.test-type }}
|
||||
working-directory: ${{ github.workspace }}/tests
|
||||
run: ./main.py run gem5/${{ matrix.test-type }} --length very-long --skip-build -vv
|
||||
- name: create zip of results
|
||||
if: success() || failure()
|
||||
run: |
|
||||
apt-get -y install zip
|
||||
zip -r output.zip tests/testing-results
|
||||
- name: upload zip
|
||||
- name: upload results
|
||||
if: success() || failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
env:
|
||||
MY_STEP_VAR: ${{ matrix.test-type }}_COMMIT.${{github.sha}}_RUN.${{github.run_id}}_ATTEMPT.${{github.run_attempt}}
|
||||
with:
|
||||
name: ${{ env.MY_STEP_VAR }}
|
||||
path: output.zip
|
||||
path: tests/testing-results
|
||||
retention-days: 7
|
||||
- run: echo "This job's status is ${{ job.status }}."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user