diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 48e7886f6d..50e9530e47 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,6 +17,7 @@ concurrency: jobs: ledger-tests: + timeout-minutes: 20 runs-on: ubuntu-24.04 steps: - name: Git checkout @@ -73,6 +74,7 @@ jobs: run: make test-ledger vrf-tests: + timeout-minutes: 8 runs-on: ubuntu-24.04 steps: - name: Git checkout @@ -94,6 +96,7 @@ jobs: run: make test-vrf p2p-tests: + timeout-minutes: 6 runs-on: ubuntu-24.04 steps: - name: Git checkout @@ -112,6 +115,7 @@ jobs: run: make test-p2p build: + timeout-minutes: 60 # NOTE: If you add or remove platforms from this matrix, make sure to update # the documentation at website/docs/developers/getting-started.mdx strategy: @@ -144,6 +148,7 @@ jobs: retention-days: 7 build-wasm: + timeout-minutes: 60 # NOTE: If you add or remove platforms from this matrix, make sure to update # the documentation at website/docs/developers/getting-started.mdx strategy: @@ -167,6 +172,7 @@ jobs: run: make build-wasm build-tests: + timeout-minutes: 60 # NOTE: If you add or remove platforms from this matrix, make sure to update # the documentation at website/docs/developers/getting-started.mdx strategy: @@ -205,6 +211,7 @@ jobs: retention-days: 7 build-tests-webrtc: + timeout-minutes: 60 # NOTE: If you add or remove platforms from this matrix, make sure to update # the documentation at website/docs/developers/getting-started.mdx strategy: @@ -239,6 +246,7 @@ jobs: p2p-scenario-tests: needs: [ build-tests, build-tests-webrtc ] runs-on: ubuntu-24.04 + timeout-minutes: 20 container: image: gcr.io/o1labs-192920/mina-daemon:3.2.0-beta2-939b08d-noble-devnet options: --volume debugger_data:/tmp/db @@ -298,6 +306,7 @@ jobs: if: ${{ always() }} scenario-tests: + timeout-minutes: 20 needs: - build-tests - build-tests-webrtc @@ -384,6 +393,7 @@ jobs: if: ${{ always() }} record-replay-tests: + timeout-minutes: 30 needs: - build-tests - build-tests-webrtc @@ -421,6 +431,7 @@ jobs: ./${{ matrix.test }} --test-threads=1 bootstrap-test: + timeout-minutes: 4 needs: [ build, build-tests ] runs-on: ubuntu-24.04 env: diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 3da856932b..8d949d5724 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -12,6 +12,7 @@ env: jobs: build-openmina-node-image: + timeout-minutes: 40 strategy: matrix: arch: @@ -63,6 +64,7 @@ jobs: # Frontend build-openmina-frontend-image: + timeout-minutes: 5 strategy: matrix: arch: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0706ad9436..6b695f0a47 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,6 +7,7 @@ on: jobs: lint: + timeout-minutes: 10 name: Lint - ${{ matrix.os }} - Rust ${{ matrix.toolchain }} runs-on: ${{ matrix.os }} strategy: @@ -36,6 +37,7 @@ jobs: DATABASE_URL: "sqlite:///tmp/heartbeats.db" lint-tx-fuzzing: + timeout-minutes: 5 name: Lint transaction Fuzzing - ${{ matrix.os }} - Rust ${{ matrix.toolchain }} runs-on: ${{ matrix.os }} strategy: @@ -56,6 +58,7 @@ jobs: run: make check-tx-fuzzing shellcheck: + timeout-minutes: 1 name: Shellcheck - ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -71,6 +74,7 @@ jobs: run: make lint-bash hadolint: + timeout-minutes: 1 name: Hadolint - ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: diff --git a/.github/workflows/whitespace-check.yaml b/.github/workflows/whitespace-check.yaml index 9b375cf3e1..77a588a08c 100644 --- a/.github/workflows/whitespace-check.yaml +++ b/.github/workflows/whitespace-check.yaml @@ -8,10 +8,11 @@ on: jobs: check-whitespace: + timeout-minutes: 1 runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@v5 - name: Check for trailing whitespaces - run: make check-trailing-whitespace \ No newline at end of file + run: make check-trailing-whitespace