Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions .github/ci-budgets.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
{
"limits": {
"pull request jobs": 82,
"time limit": 30,
"slowest job": 8,
"run": 11,
"matrix legs": {
"ci.yml/component-dockerfiles": 15,
"desktop-build.yml/app": 3,
"desktop-upgrade.yml/upgrade": 1,
"model-lock.yml/check": 14
}
},
"CI": {
"run": 15,
"run": 11,
"jobs": {
"changes": 2,
"format, lint, types": 3,
"API spec": 3,
"native types": 3,
"app (real browser)": 8,
"app (real browser, Chromium) (shard N of N)": 15,
"app (real browser, WebKit) (shard N of N)": 15,
"app (real browser, desktop setup window)": 12,
"app (real browser, Chromium) (shard N of N)": 8,
"app (real browser, WebKit) (shard N of N)": 8,
"app (real browser, desktop setup window)": 8,
"tests (shard N of N)": 7,
"tests": 2,
"tests (changed files)": 12,
"tests (changed files)": 8,
"startup (macos-latest)": 4,
"startup (windows-latest)": 4,
"typescript langgraph engine": 3,
Expand All @@ -32,19 +44,25 @@
"compose config": 2,
"build": 3,
"component list": 1,
"component dockerfile (*)": 10,
"component dockerfile (*)": 8,
"release note": 1,
"verify": 1
}
},
"Desktop": {
"run": 15,
"limits": {
"slowest job": 17,
"run": 18,
"time limit": 60,
"why": "Building and testing the installers takes 13 to 17 minutes on Windows and Mac, and one Windows step alone may take 30. Outside this round's targets, so held where they are today, and they cannot creep."
},
"run": 18,
"jobs": {
"changes": 2,
"core": 4,
"live (images)": 8,
"live (engines)": 8,
"app / app (*)": 15
"app / app (*)": 17
}
}
}
29 changes: 24 additions & 5 deletions .github/workflows/ci-watch.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: CI watch

# After every run of CI and Desktop: a job that failed and then passed on the same commit opens or
# updates a `flaky-test` issue naming each test that failed, and a job or a run over its budget in
# .github/ci-budgets.json opens or updates a `ci-budget` issue (scripts/ci-watch.ts). It reads runs,
# jobs and logs through the API only; nothing here checks out or runs a pull request's code, and
# runs from forks are left alone.
# updates a `flaky-test` issue naming each test that failed. After a run on main or in the merge
# queue, a job or a run whose median over its last runs there is over its budget in
# .github/ci-budgets.json opens or keeps current a `ci-budget` issue and fails this job; after a run
# on a pull request, so does starting more jobs than its workflow files allow (scripts/ci-watch.ts,
# scripts/ci-budget.ts). It reads runs, jobs and logs through the API, and a pull request's own
# .github folder as data to count its jobs; nothing here runs a pull request's code, and runs from
# forks are left alone.
on:
workflow_run:
workflows: [CI, Desktop]
Expand All @@ -31,7 +34,7 @@ jobs:
watch:
name: flakes and budgets
runs-on: ubuntu-24.04
timeout-minutes: 5
timeout-minutes: 10
permissions:
contents: read
# To read the run's jobs and logs.
Expand All @@ -42,10 +45,25 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The pull request's own workflow files and budgets, to count the jobs a push to it may start:
# read as data by main's script above, never run. Not a fork's: its runs are left alone.
- name: The pull request's workflow files
if: >-
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.head_repository.full_name == github.repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.workflow_run.head_sha }}
path: run-tree
sparse-checkout: .github
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version: 1.4.3
no-cache: true
# For GitHub's expression parser (@actions/expressions), which reads the jobs' conditions. Main's
# lockfile, and no package's install scripts.
- run: bun install --frozen-lockfile --ignore-scripts
- name: Flakes and budgets
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -56,4 +74,5 @@ jobs:
args=()
if [ -n "$RUN_ID" ]; then args+=(--run "$RUN_ID"); fi
if [ "$DRY_RUN" = true ]; then args+=(--dry-run); fi
if [ -d run-tree/.github ]; then args+=(--tree run-tree); fi
bun scripts/ci-watch.ts "${args[@]}"
2 changes: 1 addition & 1 deletion .github/workflows/desktop-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
# `legs` is skipped on a pull request, so this runs unless the run was cancelled.
if: ${{ !cancelled() && (github.event_name == 'pull_request' || (needs.legs.result == 'success' && needs.legs.outputs.releases != '[]')) }}
runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 'ubuntu-latest' || 'openbot-ubuntu-16core' }}
timeout-minutes: 60
timeout-minutes: 30 # usually about 3 minutes (.github/ci-budgets.json holds every job to 30)
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/model-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
needs: changed
if: needs.changed.outputs.harnesses != '[]'
runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 'ubuntu-latest' || 'openbot-ubuntu-16core' }}
timeout-minutes: 60
timeout-minutes: 30 # usually 1 to 7 minutes (.github/ci-budgets.json holds every job to 30)
permissions:
contents: read
strategy:
Expand Down
Loading
Loading