diff --git a/.github/workflows/module-verify.yaml b/.github/workflows/module-verify.yaml index 17b99be413f9d..75bd825f97ee6 100644 --- a/.github/workflows/module-verify.yaml +++ b/.github/workflows/module-verify.yaml @@ -38,8 +38,7 @@ jobs: BUCKET: aptos-testnet-backup-2223d95b SUB_DIR: e1 BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.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: 20 verify-modules-mainnet: @@ -51,8 +50,7 @@ jobs: BUCKET: aptos-mainnet-backup-backup-831a69a8 SUB_DIR: e1 BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.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: 20 test-verify-modules: @@ -64,6 +62,5 @@ jobs: BUCKET: aptos-testnet-backup-2223d95b SUB_DIR: e1 BACKUP_CONFIG_TEMPLATE_PATH: terraform/helm/fullnode/files/backup/s3-public.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: 20 diff --git a/.github/workflows/replay-verify.yaml b/.github/workflows/replay-verify.yaml index ac498ad123fc4..e1a62c5ff1146 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) @@ -70,8 +73,7 @@ jobs: # 1195000000-122000000: https://github.com/aptos-labs/aptos-core/pull/13832 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 @@ -94,8 +96,7 @@ jobs: # 1197378568-1198492648: https://github.com/aptos-labs/aptos-core/pull/13832 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 @@ -115,7 +116,6 @@ jobs: # 1195000000-1220000000: https://github.com/aptos-labs/aptos-core/pull/13832 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-module-verify.yaml b/.github/workflows/workflow-run-module-verify.yaml index de16bbade2ffe..5dc0356323b7a 100644 --- a/.github/workflows/workflow-run-module-verify.yaml +++ b/.github/workflows/workflow-run-module-verify.yaml @@ -20,12 +20,11 @@ on: description: "The path to the backup config template to use." type: string required: true - # GHA job config RUNS_ON: description: "The runner to use for the job." type: string required: true - default: "high-perf-docker-with-local-ssd" + default: runs-on,cpu=96,family=c5d+c5ad,image=aptos-ubuntu-x64,spot=false TIMEOUT_MINUTES: description: "Github job timeout in minutes" type: number @@ -42,10 +41,6 @@ jobs: with: ref: ${{ inputs.GIT_SHA }} - - uses: aptos-labs/aptos-core/.github/actions/rust-setup@main - with: - GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }} - - name: Install AWS CLI shell: bash run: | diff --git a/.github/workflows/workflow-run-replay-verify.yaml b/.github/workflows/workflow-run-replay-verify.yaml index 40788a9fa0e28..cd0989896a4e2 100644 --- a/.github/workflows/workflow-run-replay-verify.yaml +++ b/.github/workflows/workflow-run-replay-verify.yaml @@ -33,12 +33,11 @@ on: description: "The path to the backup config template to use." type: string required: true - # GHA job config RUNS_ON: description: "The runner to use for the job." type: string required: true - default: "high-perf-docker-with-local-ssd" + default: runs-on,cpu=96,family=c5d+c5ad,image=aptos-ubuntu-x64,spot=false TIMEOUT_MINUTES: description: "Github job timeout in minutes" type: number @@ -81,12 +80,6 @@ on: description: "The path to the backup config template to use." type: string required: true - # GHA job config - RUNS_ON: - description: "The runner to use for the job." - type: string - required: true - default: "high-perf-docker-with-local-ssd" MAX_VERSIONS_PER_RANGE: description: "The maximum number of versions to process in a single job." type: number @@ -126,11 +119,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 @@ -208,11 +201,11 @@ jobs: key: backup-config-${{ inputs.BUCKET }}/${{ inputs.SUB_DIR }}-${{ github.run_id }} fail-on-cache-miss: true - - 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: Run replay-verify in parallel env: