Skip to content

Commit

Permalink
Increase step timeout to 10h for snaps and 13h for debs build (infra) (
Browse files Browse the repository at this point in the history
…#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
  • Loading branch information
Hook25 authored Mar 13, 2024
1 parent 48cd03a commit 2202949
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/checkbox-core-snap-daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/checkbox-snap-daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deb-daily-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2202949

Please sign in to comment.