From b6e1c3ea849db1c345e673fd33792df7274b49f7 Mon Sep 17 00:00:00 2001 From: Alan Luong Date: Wed, 2 Oct 2024 12:58:15 -0400 Subject: [PATCH] use runs-on for replay-verify workflows --- .github/workflows/replay-verify.yaml | 9 ++++++--- .github/workflows/workflow-run-replay-verify.yaml | 8 ++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/replay-verify.yaml b/.github/workflows/replay-verify.yaml index ac498ad123fc49..4208c1bcc126a0 100644 --- a/.github/workflows/replay-verify.yaml +++ b/.github/workflows/replay-verify.yaml @@ -35,6 +35,9 @@ on: schedule: - cron: "0 22 * * 0,2,4" # The main branch cadence. This runs every Sun,Tues,Thurs +permissions: + id-token: write + # cancel redundant builds concurrency: # cancel redundant builds on PRs (only on PR, not on branches) @@ -71,7 +74,7 @@ jobs: RANGES_TO_SKIP: "1195000000-1220000000" BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml # workflow config - RUNS_ON: "high-perf-docker-with-local-ssd" + RUNS_ON: "runs-on,cpu=96,family=c5d+c5ad,image=aptos-ubuntu-x64,run-id=${{ github.run_id }},spot=false" TIMEOUT_MINUTES: 180 MAX_VERSIONS_PER_RANGE: 2000000 @@ -95,7 +98,7 @@ jobs: RANGES_TO_SKIP: "1197378568-1198492648" BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml # workflow config - RUNS_ON: "high-perf-docker-with-local-ssd" + RUNS_ON: "runs-on,cpu=96,family=c5d+c5ad,image=aptos-ubuntu-x64,run-id=${{ github.run_id }},spot=false" TIMEOUT_MINUTES: 180 MAX_VERSIONS_PER_RANGE: 800000 @@ -116,6 +119,6 @@ jobs: RANGES_TO_SKIP: "1195000000-1220000000" BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/gcs.yaml # workflow config - RUNS_ON: "high-perf-docker-with-local-ssd" + RUNS_ON: "runs-on,cpu=96,family=c5d+c5ad,image=aptos-ubuntu-x64,run-id=${{ github.run_id }},spot=false" TIMEOUT_MINUTES: 120 # increase test replay timeout to capture more flaky errors MAX_VERSIONS_PER_RANGE: 2000000 diff --git a/.github/workflows/workflow-run-replay-verify.yaml b/.github/workflows/workflow-run-replay-verify.yaml index 40788a9fa0e281..fc678288c3ef42 100644 --- a/.github/workflows/workflow-run-replay-verify.yaml +++ b/.github/workflows/workflow-run-replay-verify.yaml @@ -126,11 +126,11 @@ jobs: strip -s target/release/aptos-debugger cp target/release/aptos-debugger . - - name: Install GCloud SDK - uses: "google-github-actions/setup-gcloud@v2" + - name: Authenticate with Google Cloud + uses: "google-github-actions/auth@v2" with: - version: ">= 418.0.0" - install_components: "kubectl,gke-gcloud-auth-plugin" + workload_identity_provider: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} + service_account: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }} - name: get timestamp to use in cache key id: get-timestamp