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

[CI] Upload build stats from a single GH runner #782

Merged
merged 1 commit into from
Aug 22, 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
3 changes: 0 additions & 3 deletions .github/workflows/base-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -500,13 +500,10 @@ jobs:
needs:
- native-tests
- get-test-matrix
strategy:
matrix: ${{ fromJson(needs.get-test-matrix.outputs.tests-matrix) }}
uses: ./.github/workflows/native-tests-stats-upload.yml
with:
artifacts-suffix: ${{ needs.get-test-matrix.outputs.artifacts-suffix }}
build-stats-tag: ${{ inputs.build-stats-tag }}
category: ${{ matrix.category }}
secrets:
UPLOAD_COLLECTOR_TOKEN: ${{ secrets.UPLOAD_COLLECTOR_TOKEN }}

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -548,13 +548,10 @@ jobs:
needs:
- native-tests
- get-test-matrix
strategy:
matrix: ${{ fromJson(needs.get-test-matrix.outputs.tests-matrix) }}
uses: ./.github/workflows/native-tests-stats-upload.yml
with:
artifacts-suffix: ${{ needs.get-test-matrix.outputs.artifacts-suffix }}
build-stats-tag: ${{ inputs.build-stats-tag }}
category: ${{ matrix.category }}
secrets:
UPLOAD_COLLECTOR_TOKEN: ${{ secrets.UPLOAD_COLLECTOR_TOKEN }}

Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/native-tests-stats-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ on:
type: string
description: 'The tag to use for build stats upload of native tests (e.g. 22.3.0-dev-jdk17-mytest-patch-before)'
default: "null"
category:
type: string
description: 'The native integration test category to upload stats for'
default: "null"
secrets:
UPLOAD_COLLECTOR_TOKEN:
description: 'A token used to report build statistics to a collector'
Expand All @@ -32,7 +28,7 @@ jobs:
path: workflow-mandrel
- uses: actions/download-artifact@v4
with:
name: build-stats-${{inputs.category}}-${{ inputs.artifacts-suffix }}
pattern: build-stats-*-${{ inputs.artifacts-suffix }}
path: .
- name: Extract and import build stats
env:
Expand All @@ -41,6 +37,12 @@ jobs:
COLLECTOR_URL: https://collector.foci.life/api/v1/image-stats
shell: bash
run: |
tar -xf build-stats.tgz
ls ./build-stats-*/
echo "Tag for stat upload is going to be: '${BUILD_STATS_TAG}'"
DIR=quarkus/ TAG="${BUILD_STATS_TAG}" TOKEN="${UPLOAD_TOKEN}" URL="${COLLECTOR_URL}" bash workflow-mandrel/.github/import_stats.sh
for directory in ./build-stats-*/; do
echo "Processing $directory"
cd "$directory"
tar -xvf build-stats.tgz
DIR=./quarkus TAG="${BUILD_STATS_TAG}" TOKEN="${UPLOAD_TOKEN}" URL="${COLLECTOR_URL}" bash workflow-mandrel/.github/import_stats.sh
cd -
done
Loading