Skip to content

Commit 587626d

Browse files
committed
fix(ci): bound the e2e build wait and the suite separately
1 parent 8d8606e commit 587626d

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,14 @@ jobs:
208208
# All groups reuse the production build; compiling routes is not part of HTTP acceptance.
209209
# Starts beside build (e2e) rather than after it: checkout, install, services and migrations
210210
# (about a minute on a hosted runner) overlap the build, and the job then waits for the build's
211-
# artifact. The bound adds the four minutes that wait can take at the build's p95, so the suite's
212-
# own share of it is unchanged.
211+
# artifact. The wait and the suite each carry their own bound, so a slow build never shortens
212+
# the suite's: the job's bound is their sum plus setup.
213213
e2e:
214214
name: e2e (${{ matrix.group }})
215215
needs: changes
216216
if: needs.changes.outputs.http == 'true'
217217
runs-on: ubuntu-24.04
218-
timeout-minutes: 24
218+
timeout-minutes: 48
219219
permissions:
220220
contents: read
221221
actions: read
@@ -272,7 +272,9 @@ jobs:
272272
run: bun run db:migrate
273273

274274
# A failed or cancelled build fails this job here instead of leaving it waiting.
275+
# build (e2e)'s own bound.
275276
- name: Wait for the production build
277+
timeout-minutes: 25
276278
env:
277279
GH_TOKEN: ${{ github.token }}
278280
run: bash .github/scripts/wait-for-e2e-build.sh
@@ -310,9 +312,10 @@ jobs:
310312
if: matrix.group == 'scim'
311313
run: printf '127.0.0.1 scim-e2e.sim.ai\n' | sudo tee -a /etc/hosts
312314

313-
# No step timeout: the job's bound covers a hang without cutting a slow but healthy suite
314-
# short of writing its report.
315+
# The former 20-minute job bound less its setup; its slowest passing run took 18.3 minutes.
316+
# Cut short, it fails the step, so the report and server-log uploads below still run.
315317
- name: Run end-to-end suites
318+
timeout-minutes: 19
316319
working-directory: apps/sim
317320
run: bash ../../.github/scripts/http-e2e.sh "${{ matrix.group }}"
318321

0 commit comments

Comments
 (0)