Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nightly build artifact tags #1296

Merged
merged 2 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/buildmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: unit_test_result_buildmgr-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/cbuildunittests-*.xml
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error
Expand Down Expand Up @@ -439,7 +439,7 @@ jobs:
if: always() && ((matrix.arch == 'amd64') || (startsWith(matrix.runs_on, 'ubuntu')))
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: integ_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: integ_test_result_buildmgr-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/cbuildintegtests-report-${{ matrix.target }}-${{ matrix.arch }}.xml
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error
Expand Down Expand Up @@ -516,7 +516,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-linux-amd64
name: unit_test_result_buildmgr-linux-amd64
path: ./build/test_reports/cbuildunittests-*.xml
retention-days: ${{ steps.var.outputs.retention_days }}
if-no-files-found: error
Expand All @@ -525,7 +525,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: integ_test_result-linux-amd64
name: integ_test_result_buildmgr-linux-amd64
path: ./build/test_reports/cbuildintegtests-*.xml
retention-days: ${{ steps.var.outputs.retention_days }}
if-no-files-found: error
Expand Down Expand Up @@ -562,7 +562,7 @@ jobs:
- name: Archive coverage report
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: coverage-report
name: coverage-report-buildmgr
path: |
./build/tools/buildmgr/coverage_buildmgr/
./build/tools/buildmgr/coverage_buildmgr.info
Expand Down Expand Up @@ -655,5 +655,5 @@ jobs:
- name: Event File
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: Event File
name: Event File buildmgr
path: ${{ github.event_path }}
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Download coverage report
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: coverage-report
pattern: coverage-report-*
path: coverage/

- name: Consolidate coverage data
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/packchk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: unit_test_result_packchk-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/packchkunittests-*.xml
if-no-files-found: error
retention-days: ${{ needs.setup.outputs.retention_days }}
Expand All @@ -145,7 +145,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: integ_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: integ_test_result_packchk-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/packchkintegtests-*.xml
if-no-files-found: error
retention-days: ${{ needs.setup.outputs.retention_days }}
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-linux-amd64
name: unit_test_result_packchk-linux-amd64
path: ./build/test_reports/packchkunittests-*.xml
if-no-files-found: error
retention-days: ${{ steps.var.outputs.retention_days }}
Expand All @@ -215,7 +215,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: integ_test_result-linux-amd64
name: integ_test_result_packchk-linux-amd64
path: ./build/test_reports/packchkintegtests-*.xml
if-no-files-found: error
retention-days: ${{ steps.var.outputs.retention_days }}
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
- name: Archive coverage report
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: coverage-report
name: coverage-report-packchk
path: |
./build/tools/packchk/coverage_packchk/
./build/tools/packchk/coverage_packchk.info
Expand All @@ -278,7 +278,7 @@ jobs:
- name: Download coverage report
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: coverage-report
name: coverage-report-packchk
path: tools/packchk/distribution/coverage/

- name: Zip distribution folder
Expand All @@ -302,5 +302,5 @@ jobs:
- name: Event File
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: Event File
name: Event File packchk
path: ${{ github.event_path }}
8 changes: 4 additions & 4 deletions .github/workflows/packgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: unit_test_result_packgen-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/packgenunittests-*.xml
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-linux-amd64
name: unit_test_result_packgen-linux-amd64
path: ./build/test_reports/packgenunittests-*.xml
retention-days: ${{ steps.var.outputs.retention_days }}
if-no-files-found: error
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:
- name: Archive coverage report
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: coverage-report
name: coverage-report-packgen
path: |
./build/tools/packgen/coverage_packgen/
./build/tools/packgen/coverage_packgen.info
Expand All @@ -279,5 +279,5 @@ jobs:
- name: Event File
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: Event File
name: Event File packgen
path: ${{ github.event_path }}
16 changes: 8 additions & 8 deletions .github/workflows/projmgr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,20 +237,20 @@ jobs:
- name: Download test report windows-amd64
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: unit_test_result-windows-amd64
name: unit_test_result_projmgr-windows-amd64
path: tools/testreport/windows-amd64/

- name: Download test report linux-amd64
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: unit_test_result-linux-amd64
name: unit_test_result_projmgr-linux-amd64
path: tools/testreport/linux-amd64/

- name: Download test report macos-amd64
if: ${{ !github.event.repository.private }}
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: unit_test_result-darwin-amd64
name: unit_test_result_projmgr-darwin-amd64
path: tools/testreport/darwin-amd64/

- name: Zip test reports
Expand All @@ -269,7 +269,7 @@ jobs:
- name: Download coverage report
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: coverage-report
name: coverage-report-projmgr
path: tools/coverage/

- name: Zip coverage reports
Expand Down Expand Up @@ -326,7 +326,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: unit_test_result_projmgr-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/projmgrunittests-*.xml
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-linux-amd64
name: unit_test_result_projmgr-linux-amd64
path: ./build/test_reports/projmgrunittests-*.xml
retention-days: ${{ steps.var.outputs.retention_days }}
if-no-files-found: error
Expand Down Expand Up @@ -414,7 +414,7 @@ jobs:
- name: Archive coverage report
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: coverage-report
name: coverage-report-projmgr
path: |
./build/tools/projmgr/coverage_projmgr/
./build/tools/projmgr/coverage_projmgr.info
Expand All @@ -429,5 +429,5 @@ jobs:
- name: Event File
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: Event File
name: Event File projmgr
path: ${{ github.event_path }}
14 changes: 7 additions & 7 deletions .github/workflows/svdconv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: unit_test_result_svdconv-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/svdconvunittests-*.xml
if-no-files-found: error
retention-days: ${{ needs.setup.outputs.retention_days }}
Expand All @@ -136,7 +136,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: integ_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: integ_test_result_svdconv-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/svdconvintegtests-*.xml
if-no-files-found: error
retention-days: ${{ needs.setup.outputs.retention_days }}
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_report-linux-amd64
name: unit_test_report_svdconv-linux-amd64
path: ./build/test_reports/svdconvunittests-*.xml
if-no-files-found: error
retention-days: ${{ steps.var.outputs.retention_days }}
Expand All @@ -206,7 +206,7 @@ jobs:
if: (github.event_name == 'push')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: integ_test_report-linux-amd64
name: integ_test_report_svdconv-linux-amd64
path: ./build/test_reports/svdconvintegtests-*.xml
if-no-files-found: error
retention-days: ${{ steps.var.outputs.retention_days }}
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
- name: Archive coverage report
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: coverage-report
name: coverage-report-svdconv
path: |
./build/tools/svdconv/coverage_svdconv/
./build/tools/svdconv/coverage_svdconv.info
Expand All @@ -276,7 +276,7 @@ jobs:
- name: Download coverage report
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: coverage-report
name: coverage-report-svdconv
path: tools/svdconv/distribution/coverage/

- name: Zip distribution folder
Expand All @@ -300,5 +300,5 @@ jobs:
- name: Event File
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: Event File
name: Event File svdconv
path: ${{ github.event_path }}
4 changes: 2 additions & 2 deletions .github/workflows/test_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
if: always() && (matrix.arch != 'arm64')
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: unit_test_result-${{ matrix.target }}-${{ matrix.arch }}
name: unit_test_result_test_libs-${{ matrix.target }}-${{ matrix.arch }}
path: ./build/test_reports/*${{ matrix.target }}-${{ matrix.arch }}.xml
retention-days: ${{ needs.setup.outputs.retention_days }}
if-no-files-found: error
Expand All @@ -97,5 +97,5 @@ jobs:
- name: Event File
uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
with:
name: Event File
name: Event File test_libs
path: ${{ github.event_path }}
3 changes: 3 additions & 0 deletions .github/workflows/unit_test_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
do
IFS=$'\t' read name url <<< "$artifact"
if [[ $name == "Event File"* ]]; then
name="Event File"
fi
gh api $url > "$name.zip"
unzip -d "$name" "$name.zip"
done
Expand Down
Loading