From afd40068267f55329d23cd37a032cd03f855bd5b Mon Sep 17 00:00:00 2001 From: Erik LaBianca Date: Sun, 8 Nov 2026 21:26:26 -0500 Subject: [PATCH] ci: slim PR checks, move heavy suites to release/ci:full, add evidence gate Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/cloudflare-release.yml | 1 + .github/workflows/test.yml | 28 +++++++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cloudflare-release.yml b/.github/workflows/cloudflare-release.yml index f1a8026..816dc27 100644 --- a/.github/workflows/cloudflare-release.yml +++ b/.github/workflows/cloudflare-release.yml @@ -10,6 +10,7 @@ permissions: contents: read jobs: prepare: + timeout-minutes: 20 runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c0ffed..2f32c89 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,16 +1,29 @@ name: Concourse checks +# PR tier: tofu checks + `bun run check` + workerd tests (one runner each, fast). +# Playwright browser suite is heavy: runs on tags, dispatch, weekly, or a PR +# labelled `ci:full`. Release job on tags still needs the full suite. on: push: - branches: [main] tags: ['v*'] pull_request: + types: [opened, synchronize, reopened, labeled] + paths-ignore: + - '**.md' + - 'LICENSE*' + schedule: + - cron: '23 5 * * 1' + workflow_dispatch: concurrency: - group: concourse-${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} +env: + FULL: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci:full') }} permissions: contents: read jobs: infrastructure: + if: github.event.action != 'labeled' || github.event.label.name == 'ci:full' + timeout-minutes: 10 runs-on: ubuntu-24.04 defaults: run: @@ -26,6 +39,8 @@ jobs: - run: python3 ../../scripts/check-publication-order.py - run: tofu test verify: + if: github.event.action != 'labeled' || github.event.label.name == 'ci:full' + timeout-minutes: 25 runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -38,8 +53,10 @@ jobs: - run: bun install --frozen-lockfile - run: bun run check - run: bun run test:workerd - - run: bunx playwright install --with-deps chromium - - run: bun run test:browser + - if: env.FULL == 'true' + run: bunx playwright install --with-deps chromium + - if: env.FULL == 'true' + run: bun run test:browser - uses: actions/upload-artifact@v4 if: always() with: @@ -53,6 +70,7 @@ jobs: if-no-files-found: error release: if: startsWith(github.ref, 'refs/tags/') + timeout-minutes: 10 needs: [infrastructure, verify] runs-on: ubuntu-24.04 permissions: