diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 666c005c..e2570ce7 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -63,50 +63,13 @@ jobs: # Apply the job to GKE kubectl apply -f kubernetes/circuit-test-job-processed.yml - - # - name: Stream Logs from GKE - # run: | - # kubectl logs -f job/circuits-job - - # circuits: - # name: circuits - # runs-on: self-hosted - # steps: - # - uses: actions/checkout@v3 - - # - name: Setup Node.js - # uses: actions/setup-node@v3 - # with: - # node-version: 18 - - # - name: Setup Rust - # uses: actions-rs/toolchain@v1 - # with: - # toolchain: stable - # override: true - # components: rustfmt, clippy - - # - name: Create bin directory - # run: mkdir -p $HOME/bin - - # - name: Download circom v2.1.9 (Linux) - # run: | - # wget https://github.com/iden3/circom/releases/download/v2.1.9/circom-linux-amd64 -O $HOME/bin/circom - # chmod +x $HOME/bin/circom - # echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV - - # - name: Print circom version - # run: circom --version - - # - name: Install yarn - # run: npm install -g yarn - - # - name: Install dependencies - # run: yarn install --frozen-lockfile + - name: Wait for Job to Complete + run: | + kubectl wait --for=condition=complete --timeout=1800s job/circuits-job - # - name: Run tests - # working-directory: packages/circuits - # run: yarn test --maxWorkers=75% --no-cache + - name: Stream Logs from GKE + run: | + kubectl logs job/circuits-job contracts: name: contracts diff --git a/kubernetes/circuit-test-job.yml b/kubernetes/circuit-test-job.yml index a0133cf2..35522ec2 100644 --- a/kubernetes/circuit-test-job.yml +++ b/kubernetes/circuit-test-job.yml @@ -4,6 +4,7 @@ metadata: name: circuits-job spec: ttlSecondsAfterFinished: 300 # Delete automatically 5 minutes after completion + backoffLimit: 0 # Set retry attempts to 0 template: spec: containers: diff --git a/packages/circuits/package.json b/packages/circuits/package.json index 26394bde..5f79a603 100644 --- a/packages/circuits/package.json +++ b/packages/circuits/package.json @@ -8,7 +8,7 @@ "build-recipient": "mkdir -p build && circom src/email_auth_with_recipient.circom --r1cs --wasm --sym --c -l ../../node_modules -o ./build", "dev-setup": "NODE_OPTIONS=--max_old_space_size=16384 npx ts-node scripts/dev-setup.ts --output ./build", "gen-input": "NODE_OPTIONS=--max_old_space_size=8192 npx ts-node scripts/gen_input.ts", - "test": "jest", + "test": "NODE_OPTIONS=--max_old_space_size=8192 jest", "test-large": "NODE_OPTIONS=--max_old_space_size=32768 jest" }, "dependencies": {