From 7abcc2451fad371f99c29fb31ff7ddf04a2aada7 Mon Sep 17 00:00:00 2001 From: Tom French Date: Fri, 14 Mar 2025 20:23:58 +0000 Subject: [PATCH] chore: add timeouts to CI --- .github/workflows/reports.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reports.yml b/.github/workflows/reports.yml index 4bd3605498f..ba3545cc26b 100644 --- a/.github/workflows/reports.yml +++ b/.github/workflows/reports.yml @@ -10,6 +10,7 @@ jobs: benchmark-projects-list: name: Load benchmark projects list runs-on: ubuntu-22.04 + timeout-minutes: 5 outputs: projects: ${{ steps.get_bench_projects.outputs.projects }} @@ -26,6 +27,7 @@ jobs: build-nargo: runs-on: ubuntu-22.04 + timeout-minutes: 15 steps: - name: Checkout Noir repo @@ -61,6 +63,7 @@ jobs: name: Circuit sizes needs: [build-nargo] runs-on: ubuntu-24.04 + timeout-minutes: 20 permissions: pull-requests: write @@ -101,6 +104,7 @@ jobs: name: Brillig bytecode sizes needs: [build-nargo] runs-on: ubuntu-22.04 + timeout-minutes: 20 permissions: pull-requests: write @@ -150,6 +154,7 @@ jobs: name: Brillig execution trace sizes needs: [build-nargo] runs-on: ubuntu-22.04 + timeout-minutes: 20 permissions: pull-requests: write @@ -199,6 +204,7 @@ jobs: name: Peak memory usage needs: [build-nargo] runs-on: ubuntu-22.04 + timeout-minutes: 20 permissions: pull-requests: write @@ -240,6 +246,7 @@ jobs: name: Compilation and execution time needs: [build-nargo] runs-on: ubuntu-22.04 + timeout-minutes: 20 permissions: pull-requests: write @@ -507,6 +514,7 @@ jobs: upload_compilation_report: name: Upload compilation report needs: [generate_compilation_and_execution_report, external_repo_compilation_and_execution_report] + timeout-minutes: 5 # We want this job to run even if one variation of the matrix in `external_repo_compilation_and_execution_report` fails if: always() runs-on: ubuntu-22.04 @@ -558,6 +566,7 @@ jobs: upload_compilation_memory_report: name: Upload compilation memory report needs: [generate_memory_report, external_repo_memory_report] + timeout-minutes: 5 # We want this job to run even if one variation of the matrix in `external_repo_memory_report` fails if: always() runs-on: ubuntu-22.04 @@ -608,6 +617,7 @@ jobs: upload_execution_memory_report: name: Upload execution memory report needs: [generate_memory_report, external_repo_memory_report] + timeout-minutes: 5 # We want this job to run even if one variation of the matrix in `external_repo_memory_report` fails if: always() runs-on: ubuntu-22.04 @@ -655,10 +665,10 @@ jobs: alert-comment-cc-users: "@TomAFrench" max-items-in-chart: 50 - upload_execution_report: name: Upload execution report needs: [generate_compilation_and_execution_report, external_repo_compilation_and_execution_report] + timeout-minutes: 5 # We want this job to run even if one variation of the matrix in `external_repo_compilation_and_execution_report` fails if: always() runs-on: ubuntu-22.04 @@ -711,6 +721,7 @@ jobs: reports-end: name: End runs-on: ubuntu-22.04 + timeout-minutes: 5 # We want this job to always run (even if the dependant jobs fail) as we want this job to fail rather than skipping. if: ${{ always() }} needs: