From 2202949f84441da479c6aa81112b24d1cb26fef1 Mon Sep 17 00:00:00 2001 From: Massimiliano Date: Wed, 13 Mar 2024 11:55:00 +0100 Subject: [PATCH] Increase step timeout to 10h for snaps and 13h for debs build (infra) (#1059) * Increase step timeout to 10h and 13h for debs Minor: move work to small workers as we don't need large here * Force top level timeout * Move timeout inside job --- .github/workflows/checkbox-core-snap-daily-builds.yml | 5 ++++- .github/workflows/checkbox-snap-daily-builds.yml | 5 ++++- .github/workflows/daily-builds.yml | 2 +- .github/workflows/deb-daily-builds.yml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/checkbox-core-snap-daily-builds.yml b/.github/workflows/checkbox-core-snap-daily-builds.yml index cc81fc432..92c235ece 100644 --- a/.github/workflows/checkbox-core-snap-daily-builds.yml +++ b/.github/workflows/checkbox-core-snap-daily-builds.yml @@ -10,7 +10,8 @@ jobs: matrix: releases: [16, 18, 20, 22] arch: [amd64, arm64, armhf] - runs-on: [self-hosted, linux, large] + runs-on: [self-hosted, linux, small] + timeout-minutes: 1200 #20h, this will timeout sooner due to inner timeouts env: SERIES: series${{ matrix.releases }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }} @@ -38,6 +39,7 @@ jobs: echo "Building at: https://git.launchpad.net/~ce-certification-qa/+snap/$SNAPCRAFT_BUILDER_ID" - uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 name: Build the snap + timeout-minutes: 600 # 10hours with: action: Hook25/action-build@707dce252c4f367b6c1afe61ed577f7413cf7912 attempt_delay: 600000 # 10min @@ -62,6 +64,7 @@ jobs: path: checkbox-core-snap/series${{ matrix.releases }}/*.snap - uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 name: Upload the snap to the store + timeout-minutes: 600 # 10hours with: attempt_delay: 600000 # 10min attempt_limit: 10 diff --git a/.github/workflows/checkbox-snap-daily-builds.yml b/.github/workflows/checkbox-snap-daily-builds.yml index 92ed1a9a0..fbe0220e3 100644 --- a/.github/workflows/checkbox-snap-daily-builds.yml +++ b/.github/workflows/checkbox-snap-daily-builds.yml @@ -11,7 +11,8 @@ jobs: matrix: type: [classic, uc] releases: [16, 18, 20, 22] - runs-on: [self-hosted, linux, large] + runs-on: [self-hosted, linux, small] + timeout-minutes: 1200 #20h, this will timeout sooner due to inner timeouts env: SERIES: series_${{ matrix.type }}${{ matrix.releases }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }} @@ -40,6 +41,7 @@ jobs: echo "Building at: https://git.launchpad.net/~ce-certification-qa/+snap/$SNAPCRAFT_BUILDER_ID" - uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 name: Building the snaps + timeout-minutes: 600 # 10hours with: action: Hook25/action-build@707dce252c4f367b6c1afe61ed577f7413cf7912 attempt_delay: 600000 # 10min @@ -64,6 +66,7 @@ jobs: path: checkbox-snap/series_${{ matrix.type }}${{ matrix.releases }}/*.snap - uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 name: Upload the snaps to the store + timeout-minutes: 600 # 10hours with: attempt_delay: 600000 # 10min attempt_limit: 10 diff --git a/.github/workflows/daily-builds.yml b/.github/workflows/daily-builds.yml index f754f2ed0..03cfac93c 100644 --- a/.github/workflows/daily-builds.yml +++ b/.github/workflows/daily-builds.yml @@ -7,7 +7,7 @@ on: jobs: check_for_commits: - runs-on: [self-hosted, linux, large] + runs-on: [self-hosted, linux, small] name: Check for commits outputs: new_commit_count: ${{ steps.commit_check.outputs.new_commit_count }} diff --git a/.github/workflows/deb-daily-builds.yml b/.github/workflows/deb-daily-builds.yml index 780f28dec..854eef0a4 100644 --- a/.github/workflows/deb-daily-builds.yml +++ b/.github/workflows/deb-daily-builds.yml @@ -7,7 +7,8 @@ on: jobs: ppa_update: name: Sync PPA history with monorepo - runs-on: [self-hosted, linux, large] + runs-on: [self-hosted, linux, small] + timeout-minutes: 1200 #20h, this will timeout sooner due to inner timeouts steps: - name: Install dependencies run: | @@ -65,6 +66,7 @@ jobs: tools/release/lp_update_recipe.py checkbox --recipe ${{ matrix.recipe }} --new-version $(tools/release/get_version.py --dev-suffix --output-format deb) --revision $GITHUB_SHA - uses: Wandalen/wretry.action@a163f62ae554a8f3cbe27b23db15b60c0ae2e93c # v1.3.0 name: Build and wait result + timeout-minutes: 780 # 13hours env: LP_CREDENTIALS: ${{ secrets.LP_CREDS }} PYTHONUNBUFFERED: 1