diff --git a/.github/workflows/docker-build-test.yaml b/.github/workflows/docker-build-test.yaml index df603a423e051..10efb527cc79f 100644 --- a/.github/workflows/docker-build-test.yaml +++ b/.github/workflows/docker-build-test.yaml @@ -245,17 +245,6 @@ jobs: GIT_SHA: ${{ needs.determine-docker-build-metadata.outputs.gitSha }} SKIP_JOB: ${{ needs.file_change_determinator.outputs.only_docs_changed == 'true' }} - indexer-grpc-e2e-tests: - needs: [permission-check, rust-images, determine-docker-build-metadata] # runs with the default release docker build variant "rust-images" - if: | - github.event_name == 'workflow_dispatch' || - contains(github.event.pull_request.labels.*.name, 'CICD:run-e2e-tests') || - contains(github.event.pull_request.body, '#e2e') - uses: aptos-labs/aptos-core/.github/workflows/docker-indexer-grpc-test.yaml@main - secrets: inherit - with: - GIT_SHA: ${{ needs.determine-docker-build-metadata.outputs.gitSha }} - # This is a PR required job. forge-e2e-test: needs: diff --git a/.github/workflows/docker-indexer-grpc-test.yaml b/.github/workflows/docker-indexer-grpc-test.yaml index 8cfb8cf1b1b09..94319399ceb97 100644 --- a/.github/workflows/docker-indexer-grpc-test.yaml +++ b/.github/workflows/docker-indexer-grpc-test.yaml @@ -1,3 +1,5 @@ +# THIS WORKFLOW IS DEPRECATED. Keep it around for branches that still reference it on the main branch. +# This file should eventually be deleted. name: "Docker Indexer gRPC test" on: pull_request: diff --git a/.github/workflows/indexer-grpc-integration-tests.yaml b/.github/workflows/indexer-grpc-integration-tests.yaml deleted file mode 100644 index e9d733718312b..0000000000000 --- a/.github/workflows/indexer-grpc-integration-tests.yaml +++ /dev/null @@ -1,84 +0,0 @@ -name: "Indexer gRPC Integration Tests" -on: - pull_request_target: - types: [labeled, opened, synchronize, reopened, auto_merge_enabled] - push: - branches: - - main - -permissions: - contents: read - id-token: write # Required for GCP Workload Identity federation which we use to login into Google Artifact Registry - -# cancel redundant builds -concurrency: - # for push events we use `github.sha` in the concurrency group and don't really cancel each other out/limit concurrency - # for pull_request events newer jobs cancel earlier jobs to save on CI etc. - group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.head_ref || github.ref }} - cancel-in-progress: true - -jobs: - permission-check: - runs-on: ubuntu-latest - steps: - - name: Check repository permission for user which triggered workflow - uses: sushichop/action-repository-permission@13d208f5ae7a6a3fc0e5a7c2502c214983f0241c - with: - required-permission: write - comment-not-permitted: Sorry, you don't have permission to trigger this workflow. - - run-tests-local-testnet: - if: contains(github.event.pull_request.labels.*.name, 'CICD:non-required-tests') - needs: [permission-check] - runs-on: runs-on,cpu=64,family=c7,hdd=500,image=aptos-ubuntu-x64,run-id=${{ github.run_id }} - env: - # spin up the local testnet using the latest devnet image - VALIDATOR_IMAGE_REPO: ${{ vars.GCP_DOCKER_ARTIFACT_REPO }}/validator - FAUCET_IMAGE_REPO: ${{ vars.GCP_DOCKER_ARTIFACT_REPO }}/faucet - INDEXER_GRPC_IMAGE_REPO: ${{ vars.GCP_DOCKER_ARTIFACT_REPO }}/indexer-grpc - IMAGE_TAG: devnet - - steps: - - uses: actions/checkout@v4 - - - name: Install grpcurl - run: curl -sSL "https://github.com/fullstorydev/grpcurl/releases/download/v1.8.7/grpcurl_1.8.7_linux_x86_64.tar.gz" | sudo tar -xz -C /usr/local/bin - - - name: Set up Rust - uses: aptos-labs/aptos-core/.github/actions/rust-setup@main - with: - GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }} - - - uses: aptos-labs/aptos-core/.github/actions/docker-setup@main - with: - GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} - GCP_SERVICE_ACCOUNT_EMAIL: ${{ secrets.GCP_SERVICE_ACCOUNT_EMAIL }} - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_DOCKER_ARTIFACT_REPO: ${{ secrets.AWS_DOCKER_ARTIFACT_REPO }} - GIT_CREDENTIALS: ${{ secrets.GIT_CREDENTIALS }} - - - uses: ./.github/actions/python-setup - with: - pyproject_directory: ./testsuite - - - name: Run indexer gRPC dependencies locally (devnet) - shell: bash - working-directory: ./testsuite - run: poetry run python indexer_grpc_local.py --verbose start --no-indexer-grpc - - - name: Run indexer gRPC integration tests - shell: bash - run: cargo nextest run --features integration-tests --package aptos-indexer-grpc-integration-tests - - - name: Print docker-compose indexer-grpc deps logs on failure - if: ${{ failure() }} - working-directory: docker/compose/indexer-grpc - run: docker-compose logs - - - name: Print docker-compose validator-testnet logs on failure - if: ${{ failure() }} - working-directory: docker/compose/validator-testnet - run: docker-compose logs - -# validator-testnet-validator-1