From 9a3757330101dda91c133109e766c22eefcb4eaf Mon Sep 17 00:00:00 2001 From: Maksym Zub Date: Thu, 9 Jan 2025 13:49:06 +0100 Subject: [PATCH] rm tests from CI --- .../workflows/_ts-sdk-playwright-tests.yml | 237 ------------------ .github/workflows/on-pull-request-commit.yml | 9 +- .github/workflows/testnet-nightly-e2e.yml | 14 -- 3 files changed, 1 insertion(+), 259 deletions(-) delete mode 100644 .github/workflows/_ts-sdk-playwright-tests.yml diff --git a/.github/workflows/_ts-sdk-playwright-tests.yml b/.github/workflows/_ts-sdk-playwright-tests.yml deleted file mode 100644 index b62e9e4e..00000000 --- a/.github/workflows/_ts-sdk-playwright-tests.yml +++ /dev/null @@ -1,237 +0,0 @@ ---- -name: Run sharded Playwright tests for shielder-sdk - -on: - workflow_call: - workflow_dispatch: - -jobs: - build-rust-deps: - name: Build Rust dependencies - runs-on: [self-hosted, Linux, X64, large] - timeout-minutes: 20 - env: - RUSTC_WRAPPER: sccache - steps: - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Checkout source code - uses: actions/checkout@v4 - - - name: Prepare Rust env - uses: ./.github/actions/prepare-rust-env - with: - poseidon-gadget-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - zkos-circuits-private-key: ${{ secrets.ZKOS_CIRCUITS_SSH_PRIVATE_KEY }} - - - name: Build Rust-TS conversions binary - run: cargo build --manifest-path crates/test-ts-conversions/Cargo.toml - - - name: Build relayer - run: cd crates/shielder-relayer && make build - - - name: DOCKER | Build and push latest docker image - id: build-image - uses: docker/build-push-action@v3 - with: - context: . - builder: ${{ steps.buildx.outputs.name }} - file: ./crates/shielder-relayer/docker/Dockerfile.client - tags: shielder-relayer - outputs: type=docker,dest=/tmp/shielder-relayer.tar - - - name: Upload Rust-TS conversions binary to artifacts - uses: actions/upload-artifact@v4 - with: - name: test-ts-conversions-binary - path: target/debug/test-ts-conversions - retention-days: 1 - - - name: Upload docker image to artifacts - uses: actions/upload-artifact@v4 - with: - name: shielder-relayer-docker-image - path: /tmp/shielder-relayer.tar - retention-days: 1 - - ts-sdk-playwright-tests: - name: Run shielder-sdk Playwright tests - runs-on: [self-hosted, Linux, X64, large] - needs: [build-rust-deps] - timeout-minutes: 20 - strategy: - fail-fast: false - matrix: - # When increasing parallelism, make it so at least 2 tests are run per worker - # by having `shardTotal <= total_number_of_tests / 2`. - # This way repeated usage of WASM wrappers within worker is tested as a side effect. - shardIndex: [1] - shardTotal: [1] - threads: [st, mt] - steps: - - name: Checkout source code - uses: actions/checkout@v4 - - - name: Prepare Rust env - uses: ./.github/actions/prepare-rust-env - with: - poseidon-gadget-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - zkos-circuits-private-key: ${{ secrets.ZKOS_CIRCUITS_SSH_PRIVATE_KEY }} - - - name: Cache pnpm modules - uses: actions/cache@v4 - with: - path: ~/.pnpm-store - key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}- - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1.2.0 - with: - cache-key: custom-seed-coverage-${{ github.ref_name }} - cache-restore-keys: |- - contract-suite - version: nightly-31dd1f77fd9156d09836486d97963cec7f555343 - - - name: Install dependencies - shell: bash - run: make deps - - - name: Download generated contracts from artifacts - uses: actions/download-artifact@v4 - with: - name: generated-contracts - path: contracts - - - name: Download compiled contracts from artifacts - uses: actions/download-artifact@v4 - with: - name: contract-artifacts - path: artifacts - - - name: Download generated wasm from artifacts - uses: actions/download-artifact@v4 - with: - name: crates-shielder-wasm-pkg - path: crates/shielder-wasm/pkg - - - name: Download generated build cache - uses: actions/download-artifact@v4 - with: - name: generated-build-cache - path: cache - - - name: Download binary from artifacts - uses: actions/download-artifact@v4 - with: - name: test-ts-conversions-binary - path: target/debug - - - name: Download relayer image from artifacts - uses: actions/download-artifact@v4 - with: - name: shielder-relayer-docker-image - path: /tmp - - - name: Load relayer image - run: docker load --input /tmp/shielder-relayer.tar - - - name: Executable permissions - run: chmod +x target/debug/test-ts-conversions - - - uses: pnpm/action-setup@v4 - with: - version: latest - - - name: Install dependencies (shielder-sdk) - run: pnpm install --frozen-lockfile - working-directory: ts/shielder-sdk - - - name: Build shielder-sdk - run: pnpm build - working-directory: ts/shielder-sdk - - - name: Install dependencies (shielder-sdk-tests) - run: pnpm install --frozen-lockfile - working-directory: ts/shielder-sdk-tests - - - name: Install Playwright dependencies (shielder-sdk-tests) - run: pnpm postinstall - working-directory: ts/shielder-sdk-tests - - - name: Build shielder-sdk-tests - run: pnpm build - working-directory: ts/shielder-sdk-tests - - - name: Run tests (shielder-sdk-tests) - run: | - NO_FORMATTING=true \ - THREADING=${{ matrix.threads }} \ - PLAYWRIGHT_SHARDS=--shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} \ - ./tooling-e2e-tests/ts_sdk_tests.sh - - - name: Upload blob report to GitHub Actions Artifacts - if: ${{ !cancelled() }} - uses: actions/upload-artifact@v4 - with: - name: "ts-sdk-tests-shard-report\ - -${{ matrix.threads }}\ - -${{ matrix.shardIndex }}\ - -${{ matrix.shardTotal }}" - path: ts/shielder-sdk-tests/blob-report - retention-days: 1 - - merge-reports: - if: ${{ !cancelled() }} - needs: [ts-sdk-playwright-tests] - strategy: - fail-fast: false - matrix: - threads: [mt] - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 18 - - name: Install dependencies - run: npm ci - - - name: Download blob reports from GitHub Actions Artifacts - uses: actions/download-artifact@v4 - with: - path: all-blob-reports - pattern: ts-sdk-tests-shard-report-${{ matrix.threads }}-* - merge-multiple: true - - - name: Print merged report - run: npx playwright merge-reports --reporter list ./all-blob-reports - - - name: Store merged report in HTML - run: npx playwright merge-reports --reporter html ./all-blob-reports - - - name: Upload HTML report - uses: actions/upload-artifact@v4 - with: - name: ts-sdk-tests-report-${{ matrix.threads }}-attempt-${{ github.run_attempt }} - path: playwright-report - retention-days: 14 - - clean-rust-artifact: - name: Clean rust dependencies - runs-on: ubuntu-22.04 - if: ${{ always() }} - needs: [ts-sdk-playwright-tests] - steps: - - uses: geekyeggo/delete-artifact@v5 - with: - name: | - test-ts-conversions-binary - shielder-relayer-docker-image diff --git a/.github/workflows/on-pull-request-commit.yml b/.github/workflows/on-pull-request-commit.yml index cbd42bb2..69f5c465 100644 --- a/.github/workflows/on-pull-request-commit.yml +++ b/.github/workflows/on-pull-request-commit.yml @@ -10,7 +10,6 @@ concurrency: cancel-in-progress: true jobs: - check-vars-and-secrets: name: Check vars and secrets uses: ./.github/workflows/_check-vars-and-secrets.yml @@ -46,18 +45,12 @@ jobs: uses: ./.github/workflows/_ts-checks.yml secrets: inherit - ts-sdk-playwright-tests: - name: Typescript shielder-sdk Playwright tests - needs: [build-contracts, build-wasm-packages] - uses: ./.github/workflows/_ts-sdk-playwright-tests.yml - secrets: inherit - clean-wasm-artifact: name: Clean wasm artifact runs-on: ubuntu-22.04 if: ${{ always() }} # dependencies should include all jobs, which interact with wasm artifact - needs: [build-wasm-packages, ts-checks, ts-sdk-playwright-tests] + needs: [build-wasm-packages, ts-checks] steps: - uses: geekyeggo/delete-artifact@v5 with: diff --git a/.github/workflows/testnet-nightly-e2e.yml b/.github/workflows/testnet-nightly-e2e.yml index f876da96..5fb95b20 100644 --- a/.github/workflows/testnet-nightly-e2e.yml +++ b/.github/workflows/testnet-nightly-e2e.yml @@ -11,7 +11,6 @@ concurrency: cancel-in-progress: true jobs: - e2e-tests: name: Run E2E tests on testnet runs-on: ubuntu-22.04 @@ -88,18 +87,6 @@ jobs: run: pnpm build working-directory: ts/shielder-sdk - - name: Install dependencies (shielder-sdk-tests) - run: pnpm install --frozen-lockfile - working-directory: ts/shielder-sdk-tests - - - name: Install Playwright dependencies (shielder-sdk-tests) - run: pnpm postinstall - working-directory: ts/shielder-sdk-tests - - - name: Build shielder-sdk-tests - run: pnpm build - working-directory: ts/shielder-sdk-tests - - name: Run e2e tooling tests env: DEPLOYER_PRIVATE_KEY: ${{ secrets.CI_TESTNET_DEPLOYER_PRIVATE_KEY }} @@ -119,7 +106,6 @@ jobs: NO_FORMATTING=true TESTNET=true ./tooling-e2e-tests/full_scenario.sh NO_FORMATTING=true TESTNET=true ./tooling-e2e-tests/recovery_scenario.sh NO_FORMATTING=true TESTNET=true ./tooling-e2e-tests/many_actors.sh - NO_FORMATTING=true TESTNET=true ./tooling-e2e-tests/ts_sdk_tests.sh slack-notification: name: Slack notification