From 97fa94ebed8e3742969d7263c239893e8bc08522 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Fri, 15 Sep 2023 02:52:04 -0400 Subject: [PATCH] debug benchmark cache --- .github/actions/sccache-gcloud/action.yml | 6 +++++- .github/workflows/benchmark-auto-pr.yml | 11 ++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/actions/sccache-gcloud/action.yml b/.github/actions/sccache-gcloud/action.yml index 946db27561..9afcd3adca 100644 --- a/.github/actions/sccache-gcloud/action.yml +++ b/.github/actions/sccache-gcloud/action.yml @@ -34,4 +34,8 @@ runs: - name: setup Rust sccache wrapper if: ${{ inputs.cache == 'enabled' }} shell: sh - run: echo "RUSTC_WRAPPER="sccache"" >> $GITHUB_ENV \ No newline at end of file + run: echo "RUSTC_WRAPPER="sccache"" >> $GITHUB_ENV + + - name: Run sccache stat for check + shell: bash + run: ${SCCACHE_PATH} --show-stats \ No newline at end of file diff --git a/.github/workflows/benchmark-auto-pr.yml b/.github/workflows/benchmark-auto-pr.yml index e7a23b3426..9d4854ae88 100644 --- a/.github/workflows/benchmark-auto-pr.yml +++ b/.github/workflows/benchmark-auto-pr.yml @@ -1,4 +1,4 @@ -name: Benchmark +name: Benchmark PR on: push: branches: [main] @@ -9,6 +9,7 @@ jobs: benchmark: permissions: pull-requests: write + contents: read id-token: write runs-on: ubuntu-latest-8-cores strategy: @@ -30,10 +31,10 @@ jobs: GWIP: ${{ secrets.GWIP_SCCACHE }} GSA: ${{ secrets.GSA_SCCACHE }} - - name: Checkout code - uses: actions/checkout@v3 - with: - ref: 'main' + # - name: Checkout code + # uses: actions/checkout@v3 + # with: + # ref: 'main' - name: Run Benchmark ${{ matrix.runtimes }} run: ./scripts/runtime_benchmarks.sh ${{ matrix.runtimes }}