From 843269bedd050558d4d53286ac2dfcfb341a1c8a Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Mon, 9 Dec 2024 10:48:47 +0100 Subject: [PATCH 1/3] Check if sccache is setup by Prep build --- .github/workflows/sanity-checks.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index d102ab1f31..aadbe0faeb 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -35,12 +35,15 @@ jobs: # Required for integration tests evm interaction - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 + - name: Debug GitHub Environment Variables + run: | + echo "Printing all variables in GITHUB_ENV:" + cat $GITHUB_ENV || echo "GITHUB_ENV file not found or empty" - name: Runing cargo ${{ matrix.target }} run: ./ci/run-check.sh env: TARGET: ${{ matrix.target }} - RUSTC_WRAPPER: "sccache" benchmark-check: if: ${{ !github.event.pull_request.draft }} @@ -63,10 +66,13 @@ jobs: GWIP: ${{ secrets.GWIP_SCCACHE }} GSA: ${{ secrets.GSA_SCCACHE }} + - name: Debug GitHub Environment Variables + run: | + echo "Printing all variables in GITHUB_ENV:" + cat $GITHUB_ENV || echo "GITHUB_ENV file not found or empty" - name: Runing cargo ${{ matrix.target }} run: ./ci/run-check.sh env: TARGET: benchmark-check RUNTIME: ${{ matrix.runtime }} - RUSTC_WRAPPER: "sccache" From 9450af8a9a8a4d91d2e5e4b4a092e1a9c3bc1a41 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Mon, 9 Dec 2024 10:53:45 +0100 Subject: [PATCH 2/3] different debugging message --- .github/workflows/sanity-checks.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sanity-checks.yml b/.github/workflows/sanity-checks.yml index aadbe0faeb..5c76cc3f1d 100644 --- a/.github/workflows/sanity-checks.yml +++ b/.github/workflows/sanity-checks.yml @@ -35,10 +35,14 @@ jobs: # Required for integration tests evm interaction - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 + - name: Debug GitHub Environment Variables + shell: bash run: | - echo "Printing all variables in GITHUB_ENV:" - cat $GITHUB_ENV || echo "GITHUB_ENV file not found or empty" + echo "SCCACHE_GCS_BUCKET=${SCCACHE_GCS_BUCKET}" + echo "SCCACHE_GCS_RW_MODE=${SCCACHE_GCS_RW_MODE}" + echo "RUSTC_WRAPPER=${RUSTC_WRAPPER}" + echo "CARGO_INCREMENTAL=${CARGO_INCREMENTAL}" - name: Runing cargo ${{ matrix.target }} run: ./ci/run-check.sh @@ -67,9 +71,12 @@ jobs: GSA: ${{ secrets.GSA_SCCACHE }} - name: Debug GitHub Environment Variables + shell: bash run: | - echo "Printing all variables in GITHUB_ENV:" - cat $GITHUB_ENV || echo "GITHUB_ENV file not found or empty" + echo "SCCACHE_GCS_BUCKET=${SCCACHE_GCS_BUCKET}" + echo "SCCACHE_GCS_RW_MODE=${SCCACHE_GCS_RW_MODE}" + echo "RUSTC_WRAPPER=${RUSTC_WRAPPER}" + echo "CARGO_INCREMENTAL=${CARGO_INCREMENTAL}" - name: Runing cargo ${{ matrix.target }} run: ./ci/run-check.sh From 91813d5ab515226c933c8e458d4e83c07c7b3026 Mon Sep 17 00:00:00 2001 From: Guillermo Perez Date: Mon, 9 Dec 2024 10:55:10 +0100 Subject: [PATCH 3/3] bad conditional statement --- .github/actions/sccache-gcloud/action.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/actions/sccache-gcloud/action.yml b/.github/actions/sccache-gcloud/action.yml index ee611db560..2677767f74 100644 --- a/.github/actions/sccache-gcloud/action.yml +++ b/.github/actions/sccache-gcloud/action.yml @@ -31,7 +31,6 @@ runs: # echo "SCCACHE_GCS_KEY_PATH=${{ steps.gauth.credentials_file_path }}" >> $GITHUB_ENV - name: setup Rust sccache wrapper - if: ${{ inputs.cache == 'enabled' }} shell: bash run: | echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV