From d470e57c3aaee547aa07b2e8dbce917ab45a2953 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Fri, 29 Mar 2024 12:40:49 +0200 Subject: [PATCH] Upload native build statistics Since Quarkus CI already runs the native tests quite often with a fixed Mandrel version, we can gather these data and increase our insight regarding Quarkus changes that affects image build time statistics. --- .github/workflows/ci-actions-incremental.yml | 70 ++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/.github/workflows/ci-actions-incremental.yml b/.github/workflows/ci-actions-incremental.yml index 9ceec26f92325..5ce9f73749934 100644 --- a/.github/workflows/ci-actions-incremental.yml +++ b/.github/workflows/ci-actions-incremental.yml @@ -1137,7 +1137,77 @@ jobs: path: | build-reports.zip retention-days: 7 + - name: Collect build JSON stats + shell: bash + run: find . -name '*runner*.json' | tar czvf build-stats.tgz -T - + - name: Upload build JSON stats + uses: actions/upload-artifact@v4 + with: + name: build-stats-${{matrix.category}} + path: 'build-stats.tgz' + retention-days: 7 + native-tests-stats-upload: + name: Upload build stats to collector + if: ${{ always() && github.repository == 'quarkusio/quarkus' && endsWith(github.ref, '/main') && github.event_name != 'pull_request' && needs.native-tests.result != 'skipped' && needs.native-tests.result != 'cancelled' }} + needs: + - native-tests + - calculate-test-jobs + strategy: + fail-fast: false + matrix: ${{ fromJson(needs.calculate-test-jobs.outputs.native_matrix) }} + runs-on: ${{matrix.os-name}} + steps: + - uses: actions/checkout@v4 + with: + repository: graalvm/mandrel + fetch-depth: 1 + path: workflow-quarkus + - uses: actions/download-artifact@v4 + with: + name: build-stats-${{matrix.category}} + path: . + - name: Extract and import build stats + env: + UPLOAD_TOKEN: ${{ secrets.UPLOAD_COLLECTOR_TOKEN }} + COLLECTOR_URL: https://collector.foci.life/api/v1/image-stats + TAG: quarkus-main-ci + shell: bash + run: | + cat > ./runner-info.json <