From 5b513e5ab186ed4e821c0844adadcf06ff18cfe9 Mon Sep 17 00:00:00 2001 From: CarlosFelipeOR Date: Thu, 17 Sep 2026 15:13:30 -0300 Subject: [PATCH] CI: fail a stalled submodule clone instead of hanging until the 6h job timeout Signed-off-by: CarlosFelipeOR --- .github/workflows/reusable_build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/reusable_build.yml b/.github/workflows/reusable_build.yml index fd2e44fc16ca..747b907f126b 100644 --- a/.github/workflows/reusable_build.yml +++ b/.github/workflows/reusable_build.yml @@ -53,8 +53,12 @@ jobs: Build: name: Build-${{inputs.build_name}} if: ${{ contains(fromJson(inputs.data).jobs_data.jobs_to_do, inputs.build_name) || inputs.force }} + timeout-minutes: 150 env: GITHUB_JOB_OVERRIDDEN: Build-${{inputs.build_name}} + # Abort a submodule fetch stalled below 1 KB/s for 60 s, so .github/retry.sh can retry it. + GIT_HTTP_LOW_SPEED_LIMIT: 1000 + GIT_HTTP_LOW_SPEED_TIME: 60 runs-on: [self-hosted, altinity-on-demand, altinity-builder] steps: - name: Check out repository code