Skip to content

Commit

Permalink
chore: add wait
Browse files Browse the repository at this point in the history
  • Loading branch information
wshino committed Feb 4, 2025
1 parent 65f638f commit db7b68c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 44 deletions.
49 changes: 6 additions & 43 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions kubernetes/circuit-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/circuits/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit db7b68c

Please sign in to comment.