From 69fc8c6b70dd350ef31eb260a1137a2d6c8a3c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Wed, 1 Feb 2023 15:08:31 +0000 Subject: [PATCH] add timeouts to CI jobs (#7453) # Objective - Avoid hitting the 6 hours default timeout - Waiting for 6 hours for a job to fail is wasteful and slow down CI for other PRs ## Solution - Put shorter timeouts on all jobs --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/validation-jobs.yml | 3 +++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4e68c54ed..c83d3a27a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,7 @@ jobs: matrix: os: [windows-latest, ubuntu-latest, macos-latest] runs-on: ${{ matrix.os }} + timeout-minutes: 30 steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 @@ -41,6 +42,7 @@ jobs: ci: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 @@ -96,6 +98,7 @@ jobs: check-compiles: runs-on: ubuntu-latest + timeout-minutes: 30 needs: ci steps: - uses: actions/checkout@v3 @@ -122,6 +125,7 @@ jobs: build-wasm: runs-on: ubuntu-latest + timeout-minutes: 30 needs: build steps: - uses: actions/checkout@v3 @@ -142,6 +146,7 @@ jobs: markdownlint: runs-on: ubuntu-latest + timeout-minutes: 30 needs: check-missing-examples-in-docs if: always() steps: @@ -216,6 +221,7 @@ jobs: check-doc: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v3 - uses: actions/cache@v2 @@ -247,6 +253,7 @@ jobs: check-missing-examples-in-docs: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v3 - name: check for missing metadata @@ -279,6 +286,7 @@ jobs: check-unused-dependencies: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 @@ -302,6 +310,7 @@ jobs: msrv: runs-on: ubuntu-latest + timeout-minutes: 30 needs: build steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/validation-jobs.yml b/.github/workflows/validation-jobs.yml index 7a35bf314e..ea98a13261 100644 --- a/.github/workflows/validation-jobs.yml +++ b/.github/workflows/validation-jobs.yml @@ -13,6 +13,7 @@ env: jobs: build-and-install-on-iOS: runs-on: macos-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v3 @@ -32,6 +33,7 @@ jobs: build-android: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v3 @@ -147,6 +149,7 @@ jobs: path: .github/start-wasm-example/screenshot-*.png build-without-default-features: + timeout-minutes: 30 strategy: matrix: crate: [bevy_ecs, bevy_reflect, bevy]