diff --git a/.github/ci-budgets.json b/.github/ci-budgets.json index 57515ac4a6..24d320ea66 100644 --- a/.github/ci-budgets.json +++ b/.github/ci-budgets.json @@ -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, @@ -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 } } } diff --git a/.github/workflows/ci-watch.yml b/.github/workflows/ci-watch.yml index da82af4a49..a8dac03a63 100644 --- a/.github/workflows/ci-watch.yml +++ b/.github/workflows/ci-watch.yml @@ -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] @@ -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. @@ -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 }} @@ -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[@]}" diff --git a/.github/workflows/desktop-upgrade.yml b/.github/workflows/desktop-upgrade.yml index 63485464e7..6c64cacbae 100644 --- a/.github/workflows/desktop-upgrade.yml +++ b/.github/workflows/desktop-upgrade.yml @@ -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: diff --git a/.github/workflows/model-lock.yml b/.github/workflows/model-lock.yml index e8bbc61c8a..f06e2ab134 100644 --- a/.github/workflows/model-lock.yml +++ b/.github/workflows/model-lock.yml @@ -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: diff --git a/scripts/ci-budget.fixtures/merge-queue-runs.json b/scripts/ci-budget.fixtures/merge-queue-runs.json new file mode 100644 index 0000000000..d50a4cd2e3 --- /dev/null +++ b/scripts/ci-budget.fixtures/merge-queue-runs.json @@ -0,0 +1,3282 @@ +[ + { + "run": { + "id": 47473208549, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "success", + "head_sha": "5ddd5296725dde89ac9376b9566ded22222a5013", + "head_branch": "gh-readonly-queue/main/pr-2983-bc2fbb9b4d1cecf88870c2ae89d92a6ca27b82a8", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47473208549", + "created_at": "2026-12-05T03:25:57Z" + }, + "jobs": [ + { + "id": 145526458746, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:00Z", + "completed_at": "2026-12-05T03:26:29Z" + }, + { + "id": 145526623458, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:37:11Z" + }, + { + "id": 145526623460, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:57Z" + }, + { + "id": 145526623482, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:32:25Z" + }, + { + "id": 145526623541, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:26:44Z" + }, + { + "id": 145526623549, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:27:28Z" + }, + { + "id": 145526623572, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:32:06Z" + }, + { + "id": 145526623574, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:28:02Z" + }, + { + "id": 145526623575, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:37:37Z" + }, + { + "id": 145526623582, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:32:16Z" + }, + { + "id": 145526623588, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:40:46Z" + }, + { + "id": 145526623597, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:31:11Z" + }, + { + "id": 145526623620, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:27:20Z" + }, + { + "id": 145526623625, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:30:17Z" + }, + { + "id": 145526623627, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:30:12Z" + }, + { + "id": 145526623632, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:27:00Z" + }, + { + "id": 145526623647, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:36:42Z" + }, + { + "id": 145526623665, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:28:27Z" + }, + { + "id": 145526623675, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:27:45Z" + }, + { + "id": 145526623676, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:28:06Z" + }, + { + "id": 145526623695, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:31Z" + }, + { + "id": 145526623699, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:16Z" + }, + { + "id": 145526623707, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:14Z" + }, + { + "id": 145526623715, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:28:43Z" + }, + { + "id": 145526623727, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:13Z" + }, + { + "id": 145526623739, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:33Z" + }, + { + "id": 145526623757, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:28:50Z" + }, + { + "id": 145526623764, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:10Z" + }, + { + "id": 145526623767, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:44Z" + }, + { + "id": 145526623769, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:32Z", + "completed_at": "2026-12-05T03:27:45Z" + }, + { + "id": 145526623848, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:33Z", + "completed_at": "2026-12-05T03:27:12Z" + }, + { + "id": 145526625266, + "name": "native types", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:26:30Z", + "completed_at": "2026-12-05T03:26:30Z" + }, + { + "id": 145526625291, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:26:30Z", + "completed_at": "2026-12-05T03:26:30Z" + }, + { + "id": 145526696484, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:48Z", + "completed_at": "2026-12-05T03:27:17Z" + }, + { + "id": 145526696515, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:48Z", + "completed_at": "2026-12-05T03:27:14Z" + }, + { + "id": 145526696516, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:48Z", + "completed_at": "2026-12-05T03:27:07Z" + }, + { + "id": 145526696530, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:04Z" + }, + { + "id": 145526696539, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:06Z" + }, + { + "id": 145526696540, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:07Z" + }, + { + "id": 145526696564, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:48Z", + "completed_at": "2026-12-05T03:27:18Z" + }, + { + "id": 145526696565, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:48Z", + "completed_at": "2026-12-05T03:27:14Z" + }, + { + "id": 145526696566, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:07Z" + }, + { + "id": 145526696568, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:48Z", + "completed_at": "2026-12-05T03:27:08Z" + }, + { + "id": 145526696570, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:04Z" + }, + { + "id": 145526696588, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:05Z" + }, + { + "id": 145526696605, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:06Z" + }, + { + "id": 145526696623, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:47Z", + "completed_at": "2026-12-05T03:27:08Z" + }, + { + "id": 145526696739, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:26:48Z", + "completed_at": "2026-12-05T03:27:04Z" + }, + { + "id": 145528378552, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:32:19Z", + "completed_at": "2026-12-05T03:32:34Z" + }, + { + "id": 145530869272, + "name": "verify", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:40:50Z", + "completed_at": "2026-12-05T03:40:53Z" + }, + { + "id": 145530870533, + "name": "release note", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:40:47Z", + "completed_at": "2026-12-05T03:40:47Z" + } + ] + }, + { + "run": { + "id": 47470797852, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "success", + "head_sha": "bc2fbb9b4d1cecf88870c2ae89d92a6ca27b82a8", + "head_branch": "gh-readonly-queue/main/pr-2980-138924fe1e85933c6ebbd66656761ec42245df94", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47470797852", + "created_at": "2026-12-05T03:00:37Z" + }, + "jobs": [ + { + "id": 145518622555, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:00:40Z", + "completed_at": "2026-12-05T03:01:29Z" + }, + { + "id": 145518910855, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:12:33Z" + }, + { + "id": 145518910877, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:57Z" + }, + { + "id": 145518910900, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:34Z", + "completed_at": "2026-12-05T03:10:08Z" + }, + { + "id": 145518910901, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:06:54Z" + }, + { + "id": 145518910905, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:14:00Z" + }, + { + "id": 145518910920, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:03Z" + }, + { + "id": 145518910921, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:07:02Z" + }, + { + "id": 145518910924, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:01:43Z" + }, + { + "id": 145518910927, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:31Z", + "completed_at": "2026-12-05T03:12:42Z" + }, + { + "id": 145518910929, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:33Z", + "completed_at": "2026-12-05T03:02:23Z" + }, + { + "id": 145518910930, + "name": "native types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:03:49Z" + }, + { + "id": 145518910940, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:18Z" + }, + { + "id": 145518910946, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:03:41Z" + }, + { + "id": 145518910955, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:33Z" + }, + { + "id": 145518910987, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:07:40Z" + }, + { + "id": 145518910994, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:05:31Z" + }, + { + "id": 145518911014, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:33Z", + "completed_at": "2026-12-05T03:05:17Z" + }, + { + "id": 145518911042, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:27Z" + }, + { + "id": 145518911072, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:11Z" + }, + { + "id": 145518911073, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:34Z", + "completed_at": "2026-12-05T03:07:04Z" + }, + { + "id": 145518911090, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:03:25Z" + }, + { + "id": 145518911095, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:09Z" + }, + { + "id": 145518911098, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:14Z" + }, + { + "id": 145518911102, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:41Z" + }, + { + "id": 145518911103, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:09Z" + }, + { + "id": 145518911114, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:33Z", + "completed_at": "2026-12-05T03:02:32Z" + }, + { + "id": 145518911120, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:46Z" + }, + { + "id": 145518911130, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:03:43Z" + }, + { + "id": 145518911139, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:02:44Z" + }, + { + "id": 145518911141, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:33Z", + "completed_at": "2026-12-05T03:02:17Z" + }, + { + "id": 145518911165, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:32Z", + "completed_at": "2026-12-05T03:03:05Z" + }, + { + "id": 145518913096, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:01:29Z", + "completed_at": "2026-12-05T03:01:29Z" + }, + { + "id": 145518987730, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:45Z", + "completed_at": "2026-12-05T03:02:03Z" + }, + { + "id": 145518987747, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:45Z", + "completed_at": "2026-12-05T03:02:02Z" + }, + { + "id": 145518987748, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:00Z", + "completed_at": "2026-12-05T03:02:15Z" + }, + { + "id": 145518987752, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:50Z", + "completed_at": "2026-12-05T03:02:13Z" + }, + { + "id": 145518987762, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:01:46Z", + "completed_at": "2026-12-05T03:02:14Z" + }, + { + "id": 145518987766, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:00Z", + "completed_at": "2026-12-05T03:02:16Z" + }, + { + "id": 145518987770, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:10Z", + "completed_at": "2026-12-05T03:02:24Z" + }, + { + "id": 145518987780, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:12Z", + "completed_at": "2026-12-05T03:02:33Z" + }, + { + "id": 145518987788, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:07Z", + "completed_at": "2026-12-05T03:02:23Z" + }, + { + "id": 145518987789, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:15Z", + "completed_at": "2026-12-05T03:02:31Z" + }, + { + "id": 145518987793, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:16Z", + "completed_at": "2026-12-05T03:02:39Z" + }, + { + "id": 145518987800, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:11Z", + "completed_at": "2026-12-05T03:02:32Z" + }, + { + "id": 145518987815, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:12Z", + "completed_at": "2026-12-05T03:02:27Z" + }, + { + "id": 145518987834, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:13Z", + "completed_at": "2026-12-05T03:02:33Z" + }, + { + "id": 145518987889, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:02:15Z", + "completed_at": "2026-12-05T03:02:32Z" + }, + { + "id": 145520832521, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:07:43Z", + "completed_at": "2026-12-05T03:07:57Z" + }, + { + "id": 145522777478, + "name": "verify", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:03Z", + "completed_at": "2026-12-05T03:14:07Z" + }, + { + "id": 145522778474, + "name": "release note", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:01Z", + "completed_at": "2026-12-05T03:14:00Z" + } + ] + }, + { + "run": { + "id": 47469233054, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "failure", + "head_sha": "2c88f7e654a88e61d3bfe23b49a46f5acb388826", + "head_branch": "gh-readonly-queue/main/pr-2980-138924fe1e85933c6ebbd66656761ec42245df94", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47469233054", + "created_at": "2026-12-05T02:43:42Z" + }, + "jobs": [ + { + "id": 145513500202, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:45Z", + "completed_at": "2026-12-05T02:44:30Z" + }, + { + "id": 145513739491, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:32Z", + "completed_at": "2026-12-05T02:55:28Z" + }, + { + "id": 145513739500, + "name": "native types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:47:07Z" + }, + { + "id": 145513739527, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "failure", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:54:46Z" + }, + { + "id": 145513739531, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:49:55Z" + }, + { + "id": 145513739576, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:56:56Z" + }, + { + "id": 145513739586, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:50Z" + }, + { + "id": 145513739599, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:44:44Z" + }, + { + "id": 145513739614, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:03Z" + }, + { + "id": 145513739621, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:19Z" + }, + { + "id": 145513739639, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:47:07Z" + }, + { + "id": 145513739655, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:50:47Z" + }, + { + "id": 145513739673, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:24Z" + }, + { + "id": 145513739687, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:50:36Z" + }, + { + "id": 145513739701, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:53:57Z" + }, + { + "id": 145513739704, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:46:08Z" + }, + { + "id": 145513739726, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:48:00Z" + }, + { + "id": 145513739731, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:50:04Z" + }, + { + "id": 145513739756, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:48:10Z" + }, + { + "id": 145513739803, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:13Z" + }, + { + "id": 145513739813, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:31Z" + }, + { + "id": 145513739825, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:11Z" + }, + { + "id": 145513739841, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:46:56Z" + }, + { + "id": 145513739844, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:35Z" + }, + { + "id": 145513739865, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:27Z" + }, + { + "id": 145513739871, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:53Z" + }, + { + "id": 145513739874, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:08Z" + }, + { + "id": 145513739881, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:12Z" + }, + { + "id": 145513739884, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:46:25Z" + }, + { + "id": 145513739888, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:46Z" + }, + { + "id": 145513739930, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:52Z" + }, + { + "id": 145513739937, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:33Z", + "completed_at": "2026-12-05T02:45:13Z" + }, + { + "id": 145513741342, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:44:30Z", + "completed_at": "2026-12-05T02:44:30Z" + }, + { + "id": 145513810944, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:09Z" + }, + { + "id": 145513810956, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:48Z", + "completed_at": "2026-12-05T02:45:09Z" + }, + { + "id": 145513810984, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:06Z" + }, + { + "id": 145513811004, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:01Z" + }, + { + "id": 145513811005, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:13Z" + }, + { + "id": 145513811007, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:48Z", + "completed_at": "2026-12-05T02:45:12Z" + }, + { + "id": 145513811054, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:07Z" + }, + { + "id": 145513811057, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:07Z" + }, + { + "id": 145513811059, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:20Z" + }, + { + "id": 145513811060, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:04Z" + }, + { + "id": 145513811063, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:48Z", + "completed_at": "2026-12-05T02:45:08Z" + }, + { + "id": 145513811066, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:12Z" + }, + { + "id": 145513811088, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:05Z" + }, + { + "id": 145513811090, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:47Z", + "completed_at": "2026-12-05T02:45:07Z" + }, + { + "id": 145513811185, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:44:48Z", + "completed_at": "2026-12-05T02:45:18Z" + }, + { + "id": 145515679877, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:50:51Z", + "completed_at": "2026-12-05T02:51:03Z" + }, + { + "id": 145517527781, + "name": "verify", + "run_attempt": 1, + "conclusion": "failure", + "started_at": "2026-12-05T02:56:58Z", + "completed_at": "2026-12-05T02:57:02Z" + }, + { + "id": 145517528930, + "name": "release note", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:56:56Z", + "completed_at": "2026-12-05T02:56:56Z" + } + ] + }, + { + "run": { + "id": 47469151907, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "success", + "head_sha": "138924fe1e85933c6ebbd66656761ec42245df94", + "head_branch": "gh-readonly-queue/main/pr-2981-db7acbe23f2cde997ba2f8149d7c59683d8d6df6", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47469151907", + "created_at": "2026-12-05T02:42:48Z" + }, + "jobs": [ + { + "id": 145513227157, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:42:51Z", + "completed_at": "2026-12-05T02:43:22Z" + }, + { + "id": 145513397931, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:54:23Z" + }, + { + "id": 145513397965, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:59:11Z" + }, + { + "id": 145513397968, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:44:29Z" + }, + { + "id": 145513397999, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:43:36Z" + }, + { + "id": 145513398003, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:53:23Z" + }, + { + "id": 145513398006, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:49:13Z" + }, + { + "id": 145513398052, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:44:27Z" + }, + { + "id": 145513398078, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:45:38Z" + }, + { + "id": 145513398093, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:48:23Z" + }, + { + "id": 145513398103, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:47:01Z" + }, + { + "id": 145513398108, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:47:34Z" + }, + { + "id": 145513398114, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:49:17Z" + }, + { + "id": 145513398146, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:45:02Z" + }, + { + "id": 145513398151, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:25Z", + "completed_at": "2026-12-05T02:49:31Z" + }, + { + "id": 145513398153, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:26Z", + "completed_at": "2026-12-05T02:54:08Z" + }, + { + "id": 145513399429, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:43:23Z", + "completed_at": "2026-12-05T02:43:22Z" + }, + { + "id": 145513399589, + "name": "python harness (${{ matrix.harness }})", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:43:23Z", + "completed_at": "2026-12-05T02:43:22Z" + }, + { + "id": 145513399704, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:43:23Z", + "completed_at": "2026-12-05T02:43:22Z" + }, + { + "id": 145513399824, + "name": "native types", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:43:23Z", + "completed_at": "2026-12-05T02:43:22Z" + }, + { + "id": 145513399976, + "name": "compose config", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:43:23Z", + "completed_at": "2026-12-05T02:43:22Z" + }, + { + "id": 145513465121, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:39Z", + "completed_at": "2026-12-05T02:43:59Z" + }, + { + "id": 145513465134, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:58Z" + }, + { + "id": 145513465146, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:55Z" + }, + { + "id": 145513465152, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:59Z" + }, + { + "id": 145513465156, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:55Z" + }, + { + "id": 145513465157, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:57Z" + }, + { + "id": 145513465162, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:39Z", + "completed_at": "2026-12-05T02:44:03Z" + }, + { + "id": 145513465165, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:56Z" + }, + { + "id": 145513465168, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:44:00Z" + }, + { + "id": 145513465175, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:54Z" + }, + { + "id": 145513465182, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:39Z", + "completed_at": "2026-12-05T02:44:00Z" + }, + { + "id": 145513465184, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:55Z" + }, + { + "id": 145513465210, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:39Z", + "completed_at": "2026-12-05T02:44:00Z" + }, + { + "id": 145513465212, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:57Z" + }, + { + "id": 145513465228, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:43:38Z", + "completed_at": "2026-12-05T02:43:55Z" + }, + { + "id": 145515289971, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:49:34Z", + "completed_at": "2026-12-05T02:49:45Z" + }, + { + "id": 145518189359, + "name": "verify", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:59:14Z", + "completed_at": "2026-12-05T02:59:16Z" + }, + { + "id": 145518190161, + "name": "release note", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:59:12Z", + "completed_at": "2026-12-05T02:59:11Z" + } + ] + }, + { + "run": { + "id": 47468798560, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "cancelled", + "head_sha": "f2408b78347b845b78fcbd6e7dc573206f1725cc", + "head_branch": "gh-readonly-queue/main/pr-2981-f21ac30cf4648223aceb3fa57fafb2a104e0a550", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47468798560", + "created_at": "2026-12-05T02:39:08Z" + }, + "jobs": [ + { + "id": 145512073595, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:11Z", + "completed_at": "2026-12-05T02:39:42Z" + }, + { + "id": 145512250773, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:47:39Z" + }, + { + "id": 145512250801, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:41:50Z" + }, + { + "id": 145512250831, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:41:23Z" + }, + { + "id": 145512250832, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:45:43Z" + }, + { + "id": 145512250838, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:47:39Z" + }, + { + "id": 145512250866, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:47:39Z" + }, + { + "id": 145512250897, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:47:39Z" + }, + { + "id": 145512250928, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:40:52Z" + }, + { + "id": 145512250945, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:40Z" + }, + { + "id": 145512250956, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:41:26Z" + }, + { + "id": 145512250986, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:45:16Z" + }, + { + "id": 145512250990, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:39:56Z" + }, + { + "id": 145512250995, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:45:43Z" + }, + { + "id": 145512251010, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:45:29Z" + }, + { + "id": 145512251058, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:20Z" + }, + { + "id": 145512251083, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:54Z" + }, + { + "id": 145512251084, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:42:28Z" + }, + { + "id": 145512251117, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:25Z" + }, + { + "id": 145512251129, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:40:48Z" + }, + { + "id": 145512251163, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:40:17Z" + }, + { + "id": 145512251170, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:43:36Z" + }, + { + "id": 145512251192, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:41:12Z" + }, + { + "id": 145512251198, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:41:09Z" + }, + { + "id": 145512251208, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:43:38Z" + }, + { + "id": 145512251210, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:36Z" + }, + { + "id": 145512251249, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:25Z" + }, + { + "id": 145512251279, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:41:52Z" + }, + { + "id": 145512251285, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:42Z" + }, + { + "id": 145512251297, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:46Z", + "completed_at": "2026-12-05T02:40:33Z" + }, + { + "id": 145512251325, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:45Z", + "completed_at": "2026-12-05T02:40:14Z" + }, + { + "id": 145512252341, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:39:43Z", + "completed_at": "2026-12-05T02:39:43Z" + }, + { + "id": 145512252584, + "name": "native types", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:39:43Z", + "completed_at": "2026-12-05T02:39:43Z" + }, + { + "id": 145512324357, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:40:00Z", + "completed_at": "2026-12-05T02:40:26Z" + }, + { + "id": 145512324377, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:19Z" + }, + { + "id": 145512324399, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:17Z" + }, + { + "id": 145512324410, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:40:00Z", + "completed_at": "2026-12-05T02:40:34Z" + }, + { + "id": 145512324413, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:19Z" + }, + { + "id": 145512324415, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:16Z" + }, + { + "id": 145512324429, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:22Z" + }, + { + "id": 145512324440, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:21Z" + }, + { + "id": 145512324458, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:19Z" + }, + { + "id": 145512324463, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:25Z" + }, + { + "id": 145512324465, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:25Z" + }, + { + "id": 145512324467, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:17Z" + }, + { + "id": 145512324487, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:15Z" + }, + { + "id": 145512324494, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:16Z" + }, + { + "id": 145512324555, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:39:59Z", + "completed_at": "2026-12-05T02:40:15Z" + }, + { + "id": 145514118165, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:45:46Z", + "completed_at": "2026-12-05T02:45:59Z" + } + ] + }, + { + "run": { + "id": 47467749923, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "failure", + "head_sha": "f21ac30cf4648223aceb3fa57fafb2a104e0a550", + "head_branch": "gh-readonly-queue/main/pr-2980-db7acbe23f2cde997ba2f8149d7c59683d8d6df6", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47467749923", + "created_at": "2026-12-05T02:28:36Z" + }, + "jobs": [ + { + "id": 145508656954, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:28:40Z", + "completed_at": "2026-12-05T02:29:24Z" + }, + { + "id": 145508913545, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:27Z", + "completed_at": "2026-12-05T02:30:53Z" + }, + { + "id": 145508913548, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:00Z", + "completed_at": "2026-12-05T02:35:48Z" + }, + { + "id": 145508913552, + "name": "native types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:31:28Z" + }, + { + "id": 145508913583, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "failure", + "started_at": "2026-12-05T02:30:06Z", + "completed_at": "2026-12-05T02:42:13Z" + }, + { + "id": 145508913602, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:29:39Z" + }, + { + "id": 145508913603, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:32:13Z" + }, + { + "id": 145508913604, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:00Z", + "completed_at": "2026-12-05T02:40:14Z" + }, + { + "id": 145508913607, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:07Z", + "completed_at": "2026-12-05T02:39:45Z" + }, + { + "id": 145508913622, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:30:07Z" + }, + { + "id": 145508913642, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:30:53Z" + }, + { + "id": 145508913657, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:31:44Z", + "completed_at": "2026-12-05T02:32:24Z" + }, + { + "id": 145508913663, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:31:44Z", + "completed_at": "2026-12-05T02:42:31Z" + }, + { + "id": 145508913670, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:07Z", + "completed_at": "2026-12-05T02:35:53Z" + }, + { + "id": 145508913695, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:07Z", + "completed_at": "2026-12-05T02:33:41Z" + }, + { + "id": 145508913697, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:43Z", + "completed_at": "2026-12-05T02:34:30Z" + }, + { + "id": 145508913700, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:07Z", + "completed_at": "2026-12-05T02:36:27Z" + }, + { + "id": 145508913710, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:06Z", + "completed_at": "2026-12-05T02:34:49Z" + }, + { + "id": 145508913810, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:29Z", + "completed_at": "2026-12-05T02:30:01Z" + }, + { + "id": 145508913880, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:31Z", + "completed_at": "2026-12-05T02:30:49Z" + }, + { + "id": 145508913882, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:32Z", + "completed_at": "2026-12-05T02:30:51Z" + }, + { + "id": 145508913886, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:30:02Z" + }, + { + "id": 145508913904, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:31:30Z" + }, + { + "id": 145508913921, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:30:23Z" + }, + { + "id": 145508913932, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:29Z", + "completed_at": "2026-12-05T02:30:41Z" + }, + { + "id": 145508913954, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:32Z", + "completed_at": "2026-12-05T02:32:22Z" + }, + { + "id": 145508913960, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:29Z", + "completed_at": "2026-12-05T02:30:10Z" + }, + { + "id": 145508913961, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:28Z", + "completed_at": "2026-12-05T02:31:06Z" + }, + { + "id": 145508913970, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:30Z", + "completed_at": "2026-12-05T02:30:17Z" + }, + { + "id": 145508913992, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:31Z", + "completed_at": "2026-12-05T02:30:05Z" + }, + { + "id": 145508914000, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:30Z", + "completed_at": "2026-12-05T02:30:17Z" + }, + { + "id": 145508914114, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:32Z", + "completed_at": "2026-12-05T02:30:06Z" + }, + { + "id": 145508915241, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:29:25Z", + "completed_at": "2026-12-05T02:29:24Z" + }, + { + "id": 145508987892, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:02Z" + }, + { + "id": 145508987927, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:03Z" + }, + { + "id": 145508987933, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:03Z" + }, + { + "id": 145508987938, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:41Z" + }, + { + "id": 145508987942, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:00Z" + }, + { + "id": 145508987953, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:03Z" + }, + { + "id": 145508987979, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:05Z" + }, + { + "id": 145508987982, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:44Z", + "completed_at": "2026-12-05T02:30:12Z" + }, + { + "id": 145508987984, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:48Z", + "completed_at": "2026-12-05T02:30:06Z" + }, + { + "id": 145508987987, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:03Z", + "completed_at": "2026-12-05T02:30:22Z" + }, + { + "id": 145508987995, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:29:59Z" + }, + { + "id": 145508988005, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:00Z" + }, + { + "id": 145508988008, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:29:43Z", + "completed_at": "2026-12-05T02:30:06Z" + }, + { + "id": 145508988061, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:01Z", + "completed_at": "2026-12-05T02:30:17Z" + }, + { + "id": 145508988069, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:30:01Z", + "completed_at": "2026-12-05T02:30:16Z" + }, + { + "id": 145511229887, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:36:30Z", + "completed_at": "2026-12-05T02:36:44Z" + }, + { + "id": 145513134232, + "name": "verify", + "run_attempt": 1, + "conclusion": "failure", + "started_at": "2026-12-05T02:42:35Z", + "completed_at": "2026-12-05T02:42:39Z" + }, + { + "id": 145513135171, + "name": "release note", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:42:32Z", + "completed_at": "2026-12-05T02:42:32Z" + } + ] + }, + { + "run": { + "id": 47463534567, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "success", + "head_sha": "db7acbe23f2cde997ba2f8149d7c59683d8d6df6", + "head_branch": "gh-readonly-queue/main/pr-2975-78f605d34c3d2ff5a45adcd4373219fddf4020a2", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47463534567", + "created_at": "2026-12-05T01:46:59Z" + }, + "jobs": [ + { + "id": 145494619225, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:18Z", + "completed_at": "2026-12-05T01:47:55Z" + }, + { + "id": 145494927830, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:49:24Z" + }, + { + "id": 145494927860, + "name": "native types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:50:03Z" + }, + { + "id": 145494928032, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:57Z", + "completed_at": "2026-12-05T01:53:52Z" + }, + { + "id": 145494928086, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T02:03:43Z" + }, + { + "id": 145494928119, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:58:36Z" + }, + { + "id": 145494928154, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:48:10Z" + }, + { + "id": 145494928163, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:58:58Z" + }, + { + "id": 145494928200, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:56:51Z" + }, + { + "id": 145494928204, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:48:52Z" + }, + { + "id": 145494928225, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:50:19Z" + }, + { + "id": 145494928264, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:48:25Z" + }, + { + "id": 145494928287, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:49:24Z" + }, + { + "id": 145494928318, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:52:06Z" + }, + { + "id": 145494928343, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:52:53Z" + }, + { + "id": 145494928348, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:51:39Z" + }, + { + "id": 145494928355, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:53:59Z" + }, + { + "id": 145494928359, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:54:12Z" + }, + { + "id": 145494928375, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:49:02Z" + }, + { + "id": 145494928408, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:50:31Z" + }, + { + "id": 145494928410, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:50:11Z" + }, + { + "id": 145494928420, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:48:27Z" + }, + { + "id": 145494928497, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:48:54Z" + }, + { + "id": 145494928500, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:48:42Z" + }, + { + "id": 145494928508, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:48:48Z" + }, + { + "id": 145494928522, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:48:33Z" + }, + { + "id": 145494928531, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:59Z", + "completed_at": "2026-12-05T01:49:22Z" + }, + { + "id": 145494928592, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:49:34Z" + }, + { + "id": 145494928594, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:49:09Z" + }, + { + "id": 145494928609, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:49:07Z" + }, + { + "id": 145494928650, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:58Z", + "completed_at": "2026-12-05T01:48:32Z" + }, + { + "id": 145494929951, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T01:47:56Z", + "completed_at": "2026-12-05T01:47:55Z" + }, + { + "id": 145494930333, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T01:47:56Z", + "completed_at": "2026-12-05T01:47:55Z" + }, + { + "id": 145495009804, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:29Z" + }, + { + "id": 145495009810, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:30Z" + }, + { + "id": 145495009823, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:27Z" + }, + { + "id": 145495009829, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:32Z" + }, + { + "id": 145495009836, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:13Z", + "completed_at": "2026-12-05T01:48:33Z" + }, + { + "id": 145495009841, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:29Z" + }, + { + "id": 145495009847, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:31Z" + }, + { + "id": 145495009850, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:25Z", + "completed_at": "2026-12-05T01:48:39Z" + }, + { + "id": 145495009856, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:13Z", + "completed_at": "2026-12-05T01:48:50Z" + }, + { + "id": 145495009860, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:13Z", + "completed_at": "2026-12-05T01:48:32Z" + }, + { + "id": 145495009880, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:17Z", + "completed_at": "2026-12-05T01:48:35Z" + }, + { + "id": 145495009881, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:31Z" + }, + { + "id": 145495009897, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:13Z", + "completed_at": "2026-12-05T01:48:35Z" + }, + { + "id": 145495009912, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:21Z", + "completed_at": "2026-12-05T01:48:38Z" + }, + { + "id": 145495009940, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:48:12Z", + "completed_at": "2026-12-05T01:48:38Z" + }, + { + "id": 145497035126, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:54:15Z", + "completed_at": "2026-12-05T01:54:29Z" + }, + { + "id": 145500241900, + "name": "verify", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:03:46Z", + "completed_at": "2026-12-05T02:03:49Z" + }, + { + "id": 145500246060, + "name": "release note", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:03:44Z", + "completed_at": "2026-12-05T02:03:44Z" + } + ] + }, + { + "run": { + "id": 47463418425, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "success", + "head_sha": "78f605d34c3d2ff5a45adcd4373219fddf4020a2", + "head_branch": "gh-readonly-queue/main/pr-2982-4a4cd28e08565e034384fdbf401ce43ac4a5d4d9", + "event": "merge_group", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47463418425", + "created_at": "2026-12-05T01:45:52Z" + }, + "jobs": [ + { + "id": 145494229631, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:45:55Z", + "completed_at": "2026-12-05T01:46:25Z" + }, + { + "id": 145494421084, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:52:12Z" + }, + { + "id": 145494421094, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:57:24Z" + }, + { + "id": 145494421152, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:59:59Z" + }, + { + "id": 145494421157, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:47:49Z" + }, + { + "id": 145494421159, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:58:11Z" + }, + { + "id": 145494421173, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:51:48Z" + }, + { + "id": 145494421196, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:52:51Z" + }, + { + "id": 145494421199, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:03Z" + }, + { + "id": 145494421203, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:48:35Z" + }, + { + "id": 145494421210, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:56:18Z" + }, + { + "id": 145494421212, + "name": "component list", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:46:39Z" + }, + { + "id": 145494421225, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:16Z" + }, + { + "id": 145494421227, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:50:12Z" + }, + { + "id": 145494421231, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:52:25Z" + }, + { + "id": 145494421256, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:50:02Z" + }, + { + "id": 145494421260, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:53Z" + }, + { + "id": 145494421334, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:28Z", + "completed_at": "2026-12-05T01:47:29Z" + }, + { + "id": 145494421476, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:22Z" + }, + { + "id": 145494421481, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:05Z" + }, + { + "id": 145494421493, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:48:23Z" + }, + { + "id": 145494421504, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:18Z" + }, + { + "id": 145494421509, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:24Z" + }, + { + "id": 145494421513, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:52Z" + }, + { + "id": 145494421545, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:41Z" + }, + { + "id": 145494421582, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:49:18Z" + }, + { + "id": 145494421600, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:28Z" + }, + { + "id": 145494421625, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:13Z" + }, + { + "id": 145494421659, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:46Z" + }, + { + "id": 145494421695, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:03Z" + }, + { + "id": 145494421742, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:46:29Z", + "completed_at": "2026-12-05T01:47:12Z" + }, + { + "id": 145494423394, + "name": "native types", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T01:46:26Z", + "completed_at": "2026-12-05T01:46:26Z" + }, + { + "id": 145494423666, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T01:46:26Z", + "completed_at": "2026-12-05T01:46:26Z" + }, + { + "id": 145494500978, + "name": "component dockerfile (agent-langgraph-ts)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:08Z", + "completed_at": "2026-12-05T01:47:33Z" + }, + { + "id": 145494501014, + "name": "component dockerfile (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:06Z", + "completed_at": "2026-12-05T01:47:29Z" + }, + { + "id": 145494501026, + "name": "component dockerfile (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:22Z", + "completed_at": "2026-12-05T01:48:02Z" + }, + { + "id": 145494501043, + "name": "component dockerfile (agent-mastra)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:08Z", + "completed_at": "2026-12-05T01:47:23Z" + }, + { + "id": 145494501050, + "name": "component dockerfile (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:15Z", + "completed_at": "2026-12-05T01:47:35Z" + }, + { + "id": 145494501067, + "name": "component dockerfile (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:15Z", + "completed_at": "2026-12-05T01:47:32Z" + }, + { + "id": 145494501078, + "name": "component dockerfile (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:17Z", + "completed_at": "2026-12-05T01:47:38Z" + }, + { + "id": 145494501083, + "name": "component dockerfile (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:15Z", + "completed_at": "2026-12-05T01:47:38Z" + }, + { + "id": 145494501085, + "name": "component dockerfile (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:25Z", + "completed_at": "2026-12-05T01:47:51Z" + }, + { + "id": 145494501089, + "name": "component dockerfile (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:17Z", + "completed_at": "2026-12-05T01:47:38Z" + }, + { + "id": 145494501147, + "name": "component dockerfile (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:21Z", + "completed_at": "2026-12-05T01:47:45Z" + }, + { + "id": 145494501161, + "name": "component dockerfile (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:24Z", + "completed_at": "2026-12-05T01:47:48Z" + }, + { + "id": 145494501235, + "name": "component dockerfile (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:25Z", + "completed_at": "2026-12-05T01:47:49Z" + }, + { + "id": 145494501295, + "name": "component dockerfile (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:27Z", + "completed_at": "2026-12-05T01:47:47Z" + }, + { + "id": 145494501402, + "name": "component dockerfile (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:47:27Z", + "completed_at": "2026-12-05T01:47:50Z" + }, + { + "id": 145496590954, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T01:52:54Z", + "completed_at": "2026-12-05T01:53:05Z" + }, + { + "id": 145498908215, + "name": "verify", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T02:00:03Z", + "completed_at": "2026-12-05T02:00:08Z" + }, + { + "id": 145498909012, + "name": "release note", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T02:00:00Z", + "completed_at": "2026-12-05T02:00:00Z" + } + ] + } +] diff --git a/scripts/ci-budget.fixtures/over-budget/budgets.json b/scripts/ci-budget.fixtures/over-budget/budgets.json new file mode 100644 index 0000000000..6399280ae4 --- /dev/null +++ b/scripts/ci-budget.fixtures/over-budget/budgets.json @@ -0,0 +1,19 @@ +{ + "limits": { + "pull request jobs": 10, + "time limit": 30, + "slowest job": 9, + "run": 14, + "matrix legs": {} + }, + "Over": { + "run": 14, + "jobs": { + "plan": 1, + "tests (shard N of N)": 7, + "slow": 12, + "*": 5, + "build / app (*)": 9 + } + } +} diff --git a/scripts/ci-budget.fixtures/over-budget/workflows/build.yml b/scripts/ci-budget.fixtures/over-budget/workflows/build.yml new file mode 100644 index 0000000000..3c3e8ae057 --- /dev/null +++ b/scripts/ci-budget.fixtures/over-budget/workflows/build.yml @@ -0,0 +1,19 @@ +name: Build + +# Called by over.yml: its two legs count as over.yml's. Read by scripts/ci-budget.test.ts only. +on: + workflow_call: + +permissions: + contents: read + +jobs: + app: + name: app (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + timeout-minutes: 20 + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: + - run: "true" diff --git a/scripts/ci-budget.fixtures/over-budget/workflows/over.yml b/scripts/ci-budget.fixtures/over-budget/workflows/over.yml new file mode 100644 index 0000000000..e24af675df --- /dev/null +++ b/scripts/ci-budget.fixtures/over-budget/workflows/over.yml @@ -0,0 +1,62 @@ +name: Over + +# A workflow over every limit in ../budgets.json: more jobs than a pull request may start, a job +# that may run longer than the time limit, and a matrix known only at run time with no cap. Read by +# scripts/ci-budget.test.ts only. +on: + pull_request: + schedule: + - cron: "0 6 * * *" + +permissions: + contents: read + +jobs: + plan: + runs-on: ubuntu-latest + timeout-minutes: 5 + outputs: + plan: ${{ steps.plan.outputs.plan }} + steps: + - id: plan + run: echo 'plan={}' >> "$GITHUB_OUTPUT" + + shards: + name: tests (shard ${{ matrix.shard }} of ${{ strategy.job-total }}) + needs: plan + runs-on: ubuntu-latest + timeout-minutes: 15 + strategy: + matrix: + shard: [1, 2, 3, 4, 5, 6, 7, 8] + steps: + - run: "true" + + slow: + runs-on: ubuntu-latest + timeout-minutes: 45 + steps: + - run: "true" + + agents: + name: ${{ matrix.name }} + needs: plan + if: fromJSON(needs.plan.outputs.plan).run.agents + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + matrix: + include: ${{ fromJSON(needs.plan.outputs.plan).include.agents }} + steps: + - run: "true" + + nightly: + if: github.event_name == 'schedule' + runs-on: ubuntu-latest + timeout-minutes: 120 + steps: + - run: "true" + + build: + needs: plan + uses: ./.github/workflows/build.yml diff --git a/scripts/ci-budget.fixtures/pull-request-runs.json b/scripts/ci-budget.fixtures/pull-request-runs.json new file mode 100644 index 0000000000..ab1f7a5646 --- /dev/null +++ b/scripts/ci-budget.fixtures/pull-request-runs.json @@ -0,0 +1,866 @@ +[ + { + "run": { + "id": 47472013102, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "success", + "head_sha": "a3e75ca83d202e95c589369b9819baeb91618f3e", + "head_branch": "claude/sign-page-three-choices-3fddfb", + "event": "pull_request", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47472013102", + "created_at": "2026-12-05T03:13:19Z" + }, + "jobs": [ + { + "id": 145522773001, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:02Z", + "completed_at": "2026-12-05T03:14:28Z" + }, + { + "id": 145522923312, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:32Z", + "completed_at": "2026-12-05T03:20:32Z" + }, + { + "id": 145522923324, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:25:48Z" + }, + { + "id": 145522923349, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:32Z", + "completed_at": "2026-12-05T03:15:55Z" + }, + { + "id": 145522923395, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:15:23Z" + }, + { + "id": 145522923400, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:16:22Z" + }, + { + "id": 145522923421, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:25:26Z" + }, + { + "id": 145522923446, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:35Z", + "completed_at": "2026-12-05T03:25:28Z" + }, + { + "id": 145522923475, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:16:29Z" + }, + { + "id": 145522923504, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:32Z", + "completed_at": "2026-12-05T03:30:13Z" + }, + { + "id": 145522923510, + "name": "startup (macos-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:14:57Z" + }, + { + "id": 145522923568, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:18:14Z" + }, + { + "id": 145522923578, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:20:21Z" + }, + { + "id": 145522923585, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:32Z", + "completed_at": "2026-12-05T03:19:57Z" + }, + { + "id": 145522923626, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:31Z", + "completed_at": "2026-12-05T03:18:19Z" + }, + { + "id": 145522923662, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:14:32Z", + "completed_at": "2026-12-05T03:20:21Z" + }, + { + "id": 145522924481, + "name": "native types", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:29Z", + "completed_at": "2026-12-05T03:14:29Z" + }, + { + "id": 145522924541, + "name": "compose config", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:29Z", + "completed_at": "2026-12-05T03:14:29Z" + }, + { + "id": 145522924781, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:29Z", + "completed_at": "2026-12-05T03:14:29Z" + }, + { + "id": 145522925020, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:29Z", + "completed_at": "2026-12-05T03:14:29Z" + }, + { + "id": 145522925120, + "name": "component list", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:29Z", + "completed_at": "2026-12-05T03:14:29Z" + }, + { + "id": 145522925475, + "name": "python harness (${{ matrix.harness }})", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:29Z", + "completed_at": "2026-12-05T03:14:29Z" + }, + { + "id": 145522925591, + "name": "component dockerfile (${{ matrix.image }})", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:14:29Z", + "completed_at": "2026-12-05T03:14:29Z" + }, + { + "id": 145524760628, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:20:24Z", + "completed_at": "2026-12-05T03:20:35Z" + }, + { + "id": 145527743084, + "name": "release note", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:30:16Z", + "completed_at": "2026-12-05T03:30:29Z" + }, + { + "id": 145527831513, + "name": "verify", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:30:32Z", + "completed_at": "2026-12-05T03:30:37Z" + } + ] + }, + { + "run": { + "id": 47471673283, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "success", + "head_sha": "67ae8ae31396fdfc1c868cfd64d6bd9f1e53d4df", + "head_branch": "parity-r4-clean-output", + "event": "pull_request", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47471673283", + "created_at": "2026-12-05T03:09:45Z" + }, + "jobs": [ + { + "id": 145521624983, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:19Z", + "completed_at": "2026-12-05T03:10:52Z" + }, + { + "id": 145521815913, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:07Z", + "completed_at": "2026-12-05T03:17:13Z" + }, + { + "id": 145521815945, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:57Z", + "completed_at": "2026-12-05T03:12:44Z" + }, + { + "id": 145521815971, + "name": "API spec", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:13:24Z" + }, + { + "id": 145521815976, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:05Z", + "completed_at": "2026-12-05T03:20:07Z" + }, + { + "id": 145521815989, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:11Z", + "completed_at": "2026-12-05T03:24:25Z" + }, + { + "id": 145521816049, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:31Z", + "completed_at": "2026-12-05T03:22:24Z" + }, + { + "id": 145521816057, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:07Z", + "completed_at": "2026-12-05T03:20:00Z" + }, + { + "id": 145521816123, + "name": "build", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:30Z", + "completed_at": "2026-12-05T03:12:24Z" + }, + { + "id": 145521816155, + "name": "compose config", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:11:28Z" + }, + { + "id": 145521816187, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:11:44Z" + }, + { + "id": 145521816245, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:35Z", + "completed_at": "2026-12-05T03:16:54Z" + }, + { + "id": 145521816264, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:35Z", + "completed_at": "2026-12-05T03:17:49Z" + }, + { + "id": 145521816269, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:31Z", + "completed_at": "2026-12-05T03:15:25Z" + }, + { + "id": 145521816274, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:59Z", + "completed_at": "2026-12-05T03:12:46Z" + }, + { + "id": 145521816276, + "name": "startup (macos-latest)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:58Z", + "completed_at": "2026-12-05T03:11:56Z" + }, + { + "id": 145521816304, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:36Z", + "completed_at": "2026-12-05T03:15:15Z" + }, + { + "id": 145521816352, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:11:37Z" + }, + { + "id": 145521816354, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:13:11Z" + }, + { + "id": 145521816383, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:57Z", + "completed_at": "2026-12-05T03:11:37Z" + }, + { + "id": 145521816392, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:11:53Z" + }, + { + "id": 145521816393, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:13:30Z" + }, + { + "id": 145521816398, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:11:32Z" + }, + { + "id": 145521816413, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:11:48Z" + }, + { + "id": 145521816431, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:11:37Z", + "completed_at": "2026-12-05T03:17:23Z" + }, + { + "id": 145521816437, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:57Z", + "completed_at": "2026-12-05T03:12:26Z" + }, + { + "id": 145521816445, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:11:39Z" + }, + { + "id": 145521816447, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:12:06Z" + }, + { + "id": 145521816452, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:12:10Z" + }, + { + "id": 145521816453, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:57Z", + "completed_at": "2026-12-05T03:11:40Z" + }, + { + "id": 145521816468, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:10:56Z", + "completed_at": "2026-12-05T03:12:29Z" + }, + { + "id": 145521817340, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:10:53Z", + "completed_at": "2026-12-05T03:10:53Z" + }, + { + "id": 145521817447, + "name": "component list", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:10:53Z", + "completed_at": "2026-12-05T03:10:53Z" + }, + { + "id": 145521817912, + "name": "native types", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:10:53Z", + "completed_at": "2026-12-05T03:10:53Z" + }, + { + "id": 145521818509, + "name": "component dockerfile (${{ matrix.image }})", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:10:53Z", + "completed_at": "2026-12-05T03:10:53Z" + }, + { + "id": 145523984469, + "name": "tests", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:17:53Z", + "completed_at": "2026-12-05T03:18:11Z" + }, + { + "id": 145525995763, + "name": "release note", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:24:28Z", + "completed_at": "2026-12-05T03:24:41Z" + }, + { + "id": 145526073086, + "name": "verify", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:24:44Z", + "completed_at": "2026-12-05T03:24:47Z" + } + ] + }, + { + "run": { + "id": 47471583514, + "name": "CI", + "workflow_id": 335849101, + "run_attempt": 1, + "conclusion": "cancelled", + "head_sha": "9c5b89e632d8aec5ff61eb2c05b62298b07d5ba6", + "head_branch": "parity-r4-clean-output", + "event": "pull_request", + "html_url": "https://github.com/CopilotKit/OpenBot/actions/runs/47471583514", + "created_at": "2026-12-05T03:08:46Z" + }, + "jobs": [ + { + "id": 145521287193, + "name": "changes", + "run_attempt": 1, + "conclusion": "success", + "started_at": "2026-12-05T03:09:13Z", + "completed_at": "2026-12-05T03:09:44Z" + }, + { + "id": 145521459933, + "name": "API spec", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521459937, + "name": "app (real browser)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521459948, + "name": "typescript langgraph engine", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521459971, + "name": "app (real browser, desktop setup window)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521459974, + "name": "format, lint, types", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460001, + "name": "app (real browser, WebKit) (shard 3 of 3)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460025, + "name": "app (real browser, WebKit) (shard 1 of 3)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460032, + "name": "compose config", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460035, + "name": "startup (windows-latest)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460050, + "name": "startup (macos-latest)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460070, + "name": "tests (shard 1 of 5)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460071, + "name": "tests (shard 3 of 5)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460072, + "name": "app (real browser, WebKit) (shard 2 of 3)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460076, + "name": "build", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460082, + "name": "tests (shard 5 of 5)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460091, + "name": "tests (shard 2 of 5)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460109, + "name": "tests (shard 4 of 5)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460200, + "name": "python harness (agent-llamaindex)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460205, + "name": "python harness (agent-langroid)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:46Z" + }, + { + "id": 145521460208, + "name": "python harness (agent-pydantic-ai)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:46Z" + }, + { + "id": 145521460214, + "name": "python harness (agent-strands)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:46Z" + }, + { + "id": 145521460219, + "name": "python harness (agent-adk)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:46Z" + }, + { + "id": 145521460228, + "name": "python harness (agent-claude-sdk)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460246, + "name": "python harness (agent-openai-agents)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460247, + "name": "python harness (agent-langgraph-agui)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460259, + "name": "python harness (agent-crewai)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460283, + "name": "python harness (agent-microsoft)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:46Z" + }, + { + "id": 145521460285, + "name": "python harness (agent-antigravity)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:46Z" + }, + { + "id": 145521460292, + "name": "python harness (agent-agno)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:45Z" + }, + { + "id": 145521460293, + "name": "python harness (agent-ag2)", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:46Z" + }, + { + "id": 145521461362, + "name": "component list", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:44Z" + }, + { + "id": 145521461390, + "name": "native types", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:44Z" + }, + { + "id": 145521461477, + "name": "tests (changed files)", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:44Z" + }, + { + "id": 145521461827, + "name": "component dockerfile (${{ matrix.image }})", + "run_attempt": 1, + "conclusion": "skipped", + "started_at": "2026-12-05T03:09:44Z", + "completed_at": "2026-12-05T03:09:44Z" + }, + { + "id": 145521469142, + "name": "tests", + "run_attempt": 1, + "conclusion": "failure", + "started_at": "2026-12-05T03:09:49Z", + "completed_at": "2026-12-05T03:10:04Z" + }, + { + "id": 145521565837, + "name": "verify", + "run_attempt": 1, + "conclusion": "failure", + "started_at": "2026-12-05T03:10:08Z", + "completed_at": "2026-12-05T03:10:15Z" + }, + { + "id": 145521566653, + "name": "release note", + "run_attempt": 1, + "conclusion": "cancelled", + "started_at": "2026-12-05T03:10:05Z", + "completed_at": "2026-12-05T03:10:05Z" + } + ] + } +] diff --git a/scripts/ci-budget.test.ts b/scripts/ci-budget.test.ts new file mode 100644 index 0000000000..3b5082d31f --- /dev/null +++ b/scripts/ci-budget.test.ts @@ -0,0 +1,197 @@ +import { describe, expect, test } from "bun:test"; +import { readFileSync } from "node:fs"; +import { join } from "node:path"; +import { + budgetFor, + check, + EXPRESSION, + evaluate, + measure, + overBudget, + parseBudgets, + pullRequestContext, + pullRequestJobs, + type Recorded, + readBudgets, + started, + total, + truth, + WINDOW, + watchedBudgets, +} from "./ci-budget"; + +/** + * CI's written budget (.github/ci-budgets.json) holds. On every pull request, from the workflow + * files: the jobs a push can start and each one's time limit. On real runs (scripts/ci-watch.ts): + * each job's median over its recent runs in the merge queue, held to its budget, so CI that creeps + * fails while one slow run does not. The runs here are real: eight of the merge queue's runs of CI + * on 5 December 2026, and three of pull requests' runs, as the Actions API gave them. + */ + +const ROOT = join(import.meta.dir, ".."); +const REPOSITORY = "CopilotKit/OpenBot"; +const FIXTURES = join(import.meta.dir, "ci-budget.fixtures"); +const runs = (file: string) => + JSON.parse(readFileSync(join(FIXTURES, file), "utf8")) as Recorded[]; +const mergeQueue = runs("merge-queue-runs.json"); +const pullRequests = runs("pull-request-runs.json"); + +describe("the budget, before a pull request merges", () => { + const file = readBudgets(ROOT); + const workflows = join(ROOT, ".github/workflows"); + + test("this repository's workflows are within it", () => { + expect(check(workflows, REPOSITORY, file)).toEqual([]); + }); + + test("a push to a pull request starts no more jobs than the budget", () => { + const count = pullRequestJobs(workflows, REPOSITORY, file); + expect(total(count)).toBeLessThanOrEqual(file.limits["pull request jobs"]); + // CI's own count is the most one of its real pull request runs started, or more. + for (const { run, jobs } of pullRequests) + expect(started(jobs)).toBeLessThanOrEqual(total(count, run.name)); + }); + + test("a workflow over every limit fails, saying what is over", () => { + const over = join(FIXTURES, "over-budget"); + const budgets = parseBudgets( + readFileSync(join(over, "budgets.json"), "utf8"), + ); + expect(check(join(over, "workflows"), REPOSITORY, budgets)).toEqual([ + "over.yml/slow: timeout-minutes 45 is over the time limit of 30.", + 'over.yml/agents: its matrix is known only once the run starts, and .github/ci-budgets.json gives it no cap under "matrix legs".', + // plan 1, eight shards, slow 1, agents 1 (uncapped), and build's two legs; not the nightly job. + "A push to a pull request can start 13 jobs, over the budget of 10.", + "Over / slow: a budget of 12, over the slowest job's 9.", + ]); + }); + + test("a matrix known only at run time counts its cap", () => { + const over = join(FIXTURES, "over-budget"); + const budgets = parseBudgets( + readFileSync(join(over, "budgets.json"), "utf8"), + ); + budgets.limits["matrix legs"]["over.yml/agents"] = 6; + const count = pullRequestJobs(join(over, "workflows"), REPOSITORY, budgets); + expect(count.problems).toEqual([ + "over.yml/slow: timeout-minutes 45 is over the time limit of 30.", + ]); + expect(total(count)).toBe(18); + }); +}); + +describe("a job's condition on a pull request", () => { + const context = pullRequestContext(REPOSITORY); + const on = (expression: string) => truth(evaluate(expression, context)); + + test("is read as GitHub reads it where the pull request decides it", () => { + // ci.yml's WebKit time limit: ours, not a fork's. + expect( + evaluate( + `${EXPRESSION} github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 60 || 30 }}`, + context, + ), + ).toBe(30); + // Desktop upgrade's leg runs on every pull request. + expect( + on( + `${EXPRESSION} !cancelled() && (github.event_name == 'pull_request' || (needs.legs.result == 'success' && needs.legs.outputs.releases != '[]')) }}`, + ), + ).toBe(true); + // Windows signing runs only by hand or for a label, never for a push. + expect( + on( + "(github.event_name == 'workflow_dispatch' && inputs.signing-mode == 'keyvault') || (github.event_name == 'pull_request' && github.event.action == 'labeled' && github.event.label.name == 'windows-signing' && github.event.pull_request.head.repo.full_name == github.repository)", + ), + ).toBe(false); + }); + + test("is unknown, and so counted, where only the run can tell", () => { + expect(on("needs.changes.outputs.app == 'true'")).toBeUndefined(); + // ci.yml's component list: on a pull request, only with the full-ci label. + expect( + on( + "(github.event_name != 'pull_request' && github.event_name != 'merge_group') || (github.event_name == 'merge_group' && needs.changes.outputs.components == 'true') || contains(github.event.pull_request.labels.*.name, 'full-ci')", + ), + ).toBeUndefined(); + }); +}); + +describe("the budget, on real runs", () => { + const budgets = { + CI: { + run: 14, + jobs: { + "app (real browser, WebKit) (shard N of N)": 9, + "app (real browser, desktop setup window)": 9, + "tests (shard N of N)": 7, + }, + }, + }; + + test("a job over its budget run after run is over, by its median", () => { + const over = overBudget(measure("CI", mergeQueue, budgets)); + const webkit = over.find( + (m) => m.job === "app (real browser, WebKit) (shard N of N)", + ); + // The slowest shard of the five newest runs: 14.2, 12.5, 12.4, 15.8 and 10.2 minutes. + expect(webkit?.samples.map((s) => Number(s.minutes.toFixed(1)))).toEqual([ + 14.2, 12.5, 12.4, 15.8, 10.2, + ]); + expect(webkit?.median).toBeCloseTo(12.5, 1); + expect(over.map((m) => m.job).sort()).toEqual([ + "(whole run in the merge queue)", + "app (real browser, WebKit) (shard N of N)", + "app (real browser, desktop setup window)", + ]); + }); + + test("one slow run is not over budget", () => { + // Under the budget it had, 15 minutes, one run's WebKit shard took 15.8 and was filed as over; + // its median over five runs is 12.5. + const lenient = { + CI: { ...budgets.CI, jobs: { ...budgets.CI.jobs } }, + }; + lenient.CI.jobs["app (real browser, WebKit) (shard N of N)"] = 15; + const measured = measure("CI", mergeQueue, lenient); + const webkit = measured.find( + (m) => m.job === "app (real browser, WebKit) (shard N of N)", + ); + expect((webkit?.samples ?? []).filter((s) => s.minutes > 15)).toHaveLength( + 1, + ); + expect(overBudget(measured).map((m) => m.job)).not.toContain( + "app (real browser, WebKit) (shard N of N)", + ); + // The unit test shards, every one well under 7 minutes, are never over. + expect(overBudget(measured).map((m) => m.job)).not.toContain( + "tests (shard N of N)", + ); + }); + + test("a pull request's runs are never held to it: their times are not steady", () => { + expect(measure("CI", pullRequests, budgets)).toEqual([]); + }); + + test("a job needs three runs before its median counts", () => { + expect(measure("CI", mergeQueue.slice(0, 2), budgets)).toEqual([]); + expect( + measure("CI", mergeQueue, budgets).every( + (m) => m.samples.length <= WINDOW, + ), + ).toBe(true); + }); + + test("every shard shares one budget, and a matrix read at run time shares its wildcard", () => { + const jobs = { "tests (shard N of N)": 7, "component dockerfile (*)": 9 }; + expect(budgetFor(jobs, "tests (shard 3 of 5)")).toBe(7); + expect(budgetFor(jobs, "component dockerfile (agent-adk)")).toBe(9); + }); + + test("every workflow CI watch holds to budget is one in the file", () => { + expect(Object.keys(watchedBudgets(readBudgets(ROOT))).sort()).toEqual([ + "CI", + "Desktop", + ]); + }); +}); diff --git a/scripts/ci-budget.ts b/scripts/ci-budget.ts new file mode 100644 index 0000000000..68a160794a --- /dev/null +++ b/scripts/ci-budget.ts @@ -0,0 +1,744 @@ +/** + * CI's written budget, .github/ci-budgets.json, and the rules that hold CI to it, so CI cannot grow + * slow again without a red check and an issue saying so. + * + * The file's `limits` are the repository's budget: + * - `pull request jobs`: the most jobs one push to a pull request can start, every workflow counted. + * - `time limit`: the most `timeout-minutes` any of those jobs may have, so none can run longer. + * - `slowest job`: the most any one job's budget may be. + * - `run`: the most any workflow's whole-run budget may be. + * - `matrix legs`: for a matrix known only once the run starts (`fromJSON(...)`), the most legs it + * may start on a pull request, by `/`. + * Each workflow's entry holds its whole-run budget and each job's (scripts/ci-watch.ts). A workflow + * that cannot meet the repository's limits yet names its own in `limits`, with `why`. + * + * Two checks hold CI to it: + * - On every pull request, from the workflow files alone (scripts/ci-budget.test.ts): the jobs a + * push can start, counted as GitHub would start them on a pull request from this repository, and + * each one's time limit. + * - After each run on main or in the merge queue (scripts/ci-watch.ts): each job's median time over + * its recent runs on main and in the merge queue, where timings are steady, against its budget. + * One slow run moves a median of five by nothing. And after each run on a pull request, the jobs + * it started against the count above, which a matrix known only at run time could outgrow. + */ +import { readdirSync, readFileSync } from "node:fs"; +import { join } from "node:path"; +import { data, type Expr, Lexer, Parser } from "@actions/expressions"; + +export type Limits = { + "pull request jobs": number; + "time limit": number; + "slowest job": number; + run: number; + "matrix legs": Record; +}; + +/** A workflow's own limits, where it cannot meet the repository's yet, and why. */ +export type Override = { + "time limit"?: number; + "slowest job"?: number; + run?: number; + why: string; +}; + +export type WorkflowBudget = { + run: number; + jobs: Record; + limits?: Override; +}; + +/** The workflows CI watch holds to a budget, by name. */ +export type Budgets = Record; + +export type BudgetFile = { + limits: Limits; + /** Every workflow entry: the watched ones with budgets, and any that only name their own limits. */ + workflows: Record>; +}; + +export function readBudgets(root: string): BudgetFile { + return parseBudgets( + readFileSync(join(root, ".github/ci-budgets.json"), "utf8"), + ); +} + +export function parseBudgets(text: string): BudgetFile { + const { limits, ...workflows } = JSON.parse(text) as Record; + return { + limits: limits as Limits, + workflows: workflows as Record>, + }; +} + +/** The workflows with a budget for each job: the ones CI watch holds to it. */ +export function watchedBudgets(file: BudgetFile): Budgets { + return Object.fromEntries( + Object.entries(file.workflows).filter( + (entry): entry is [string, WorkflowBudget] => + entry[1].jobs !== undefined && entry[1].run !== undefined, + ), + ); +} + +/** A limit for one workflow: its own where it names one, else the repository's. */ +export function limitFor( + file: BudgetFile, + workflow: string, + key: "time limit" | "slowest job" | "run", +): number { + return file.workflows[workflow]?.limits?.[key] ?? file.limits[key]; +} + +// --------------------------------------------------------------------------------------------- +// Job names and their budgets. + +/** How a GitHub Actions expression opens, written so the linter does not read it as a template. */ +export const EXPRESSION = ["$", "{{"].join(""); + +/** A job's name with its shard numbers taken out, so every shard shares one budget and one issue. */ +export function jobKey(name: string): string { + return name.replace(/shard \d+ of \d+/, "shard N of N"); +} + +/** + * The budget a job of a matrix shares with every other leg, when the legs are known only once the + * run starts: its name up to the bracket, then `(*)`, or `*` for a name that is all matrix. + */ +export function wildcard(name: string): string { + if (name.startsWith(EXPRESSION)) return "*"; + const bracket = name.indexOf(" ("); + return bracket > 0 ? `${name.slice(0, bracket)} (*)` : "*"; +} + +/** A job's budget: under its own name (shards as `shard N of N`), else under its wildcard. */ +export function budgetFor( + jobs: Record, + name: string, +): number | undefined { + return jobs[jobKey(name)] ?? jobs[wildcard(name)] ?? jobs["*"]; +} + +// --------------------------------------------------------------------------------------------- +// GitHub's expressions, as they come out on a pull request. + +/** A value the workflow file alone cannot tell: a job's outputs, a variable, a label. */ +const UNKNOWN = Symbol("unknown"); +/** A value known to be truthy, whatever it is. */ +const TRUTHY = Symbol("truthy"); +type Value = unknown; + +/** Objects whose every property is known: a property they lack is null, not unknown. */ +const complete = new WeakSet(); +const whole = (value: T): T => { + complete.add(value); + return value; +}; + +/** Whether a value is truthy as GitHub reads it, or undefined when that cannot be known. */ +export function truth(value: Value): boolean | undefined { + if (value === UNKNOWN) return undefined; + if (value === TRUTHY) return true; + if (value === null || value === undefined || value === false) return false; + if (typeof value === "number") return value !== 0 && !Number.isNaN(value); + if (typeof value === "string") return value !== ""; + return true; +} + +function equal(a: Value, b: Value): Value { + if (a === UNKNOWN || b === UNKNOWN || a === TRUTHY || b === TRUTHY) + return UNKNOWN; + if (typeof a === "string" && typeof b === "string") + return a.toLowerCase() === b.toLowerCase(); + if (typeof a === typeof b || a === null || b === null) { + if (a === null || b === null) return a === b; + return a === b; + } + const number = (v: Value) => + v === null ? 0 : typeof v === "boolean" ? Number(v) : Number(v); + return number(a) === number(b); +} + +const STATUS_FUNCTIONS = ["always", "success", "failure", "cancelled"].map( + (name) => ({ name, minArgs: 0, maxArgs: 0 }), +); +const CONTEXTS = [ + "github", + "inputs", + "vars", + "needs", + "matrix", + "strategy", + "secrets", + "env", + "runner", + "steps", + "job", + "jobs", +]; + +function parse(expression: string): Expr { + const body = expression.trim().replace(/^\$\{\{([\s\S]*)\}\}$/, "$1"); + return new Parser( + new Lexer(body).lex().tokens, + CONTEXTS, + STATUS_FUNCTIONS, + ).parse(); +} + +function literal(value: data.ExpressionData): Value { + switch (value.kind) { + case data.Kind.String: + return value.coerceString(); + case data.Kind.Number: + return value.number(); + case data.Kind.Boolean: + return (value as data.BooleanData).value; + case data.Kind.Null: + return null; + default: + return UNKNOWN; + } +} + +/** + * Evaluates an expression as far as the context allows: a property the context does not hold is + * unknown, and so is anything that depends on it, unless the rest decides it (`false && x` is false + * whatever `x` is). Status functions read as on a run where everything so far passed. + */ +export function evaluate( + expression: string, + context: Record, +): Value { + const visit = (node: Expr): Value => node.accept(visitor); + // biome-ignore lint/suspicious/noExplicitAny: the visitor's node types are not all exported. + const visitor: any = { + visitLiteral: (node: { literal: data.ExpressionData }) => + literal(node.literal), + visitGrouping: (node: { group: Expr }) => visit(node.group), + visitUnary: (node: { expr: Expr }) => { + const t = truth(visit(node.expr)); + return t === undefined ? UNKNOWN : !t; + }, + visitBinary: (node: { + left: Expr; + right: Expr; + operator: { lexeme: string }; + }) => { + const a = visit(node.left); + const b = visit(node.right); + const op = node.operator.lexeme; + if (op === "==") return equal(a, b); + if (op === "!=") { + const same = equal(a, b); + return same === UNKNOWN ? UNKNOWN : !same; + } + if (typeof a !== "number" || typeof b !== "number") return UNKNOWN; + if (op === "<") return a < b; + if (op === "<=") return a <= b; + if (op === ">") return a > b; + if (op === ">=") return a >= b; + return UNKNOWN; + }, + visitLogical: (node: { operator: { lexeme: string }; args: Expr[] }) => { + const and = node.operator.lexeme === "&&"; + let unknown = false; + let last: Value = null; + for (const arg of node.args) { + last = visit(arg); + const t = truth(last); + if (t === undefined) unknown = true; + else if (and && !t) return unknown ? false : last; + else if (!and && t) return unknown ? TRUTHY : last; + } + return unknown ? UNKNOWN : last; + }, + visitContextAccess: (node: { name: { lexeme: string } }) => + node.name.lexeme in context ? context[node.name.lexeme] : UNKNOWN, + visitIndexAccess: (node: { expr: Expr; index: Expr }) => { + const from = visit(node.expr); + if (from === UNKNOWN || from === TRUTHY) return UNKNOWN; + if (from === null || typeof from !== "object") return null; + const key = visit(node.index); + if (typeof key !== "string" && typeof key !== "number") return UNKNOWN; + const found = Object.keys(from).find( + (k) => k.toLowerCase() === String(key).toLowerCase(), + ); + if (found !== undefined) return (from as Record)[found]; + return complete.has(from) ? null : UNKNOWN; + }, + visitFunctionCall: (node: { + functionName: { lexeme: string }; + args: Expr[]; + }) => { + const name = node.functionName.lexeme.toLowerCase(); + if (name === "always" || name === "success") return true; + if (name === "failure" || name === "cancelled") return false; + const args = node.args.map(visit); + if (args.some((a) => a === UNKNOWN || a === TRUTHY)) return UNKNOWN; + const text = (v: Value) => String(v ?? "").toLowerCase(); + if (name === "contains") { + if (Array.isArray(args[0])) + return args[0].some((item) => equal(item, args[1]) === true); + return text(args[0]).includes(text(args[1])); + } + if (name === "startswith") return text(args[0]).startsWith(text(args[1])); + if (name === "endswith") return text(args[0]).endsWith(text(args[1])); + if (name === "fromjson") return JSON.parse(String(args[0])); + return UNKNOWN; + }, + visitStar: () => UNKNOWN, + }; + return visit(parse(expression)); +} + +/** + * The `github` context of a push to a pull request from a branch of this repository. A push, not a + * label: a job that only a label starts (`windows-signing`) is somebody asking for it by hand. Its + * labels are unknown, so a job that a label lets run on a push (`full-ci`) is counted. + */ +export function pullRequestContext(repository: string): Record { + return { + github: { + event_name: "pull_request", + repository, + ref: "refs/pull/1/merge", + base_ref: "main", + event: { + action: "synchronize", + pull_request: { + head: { repo: whole({ full_name: repository }) }, + base: { ref: "main", repo: whole({ full_name: repository }) }, + }, + }, + }, + }; +} + +// --------------------------------------------------------------------------------------------- +// The jobs a push to a pull request can start. + +export type WorkflowJob = { + name?: string; + "runs-on"?: unknown; + uses?: string; + if?: string | boolean; + needs?: string | string[]; + "timeout-minutes"?: number | string; + strategy?: { matrix?: unknown }; +}; +export type Workflow = { + name?: string; + on?: unknown; + jobs?: Record; +}; + +type Leg = Record; + +/** + * A matrix's legs as GitHub builds them: every combination of its arrays, less the `exclude` + * entries, then each `include` entry added to every leg whose values it keeps, or as a leg of its + * own when it keeps none. `include` and `exclude` are lists of legs, not axes. + */ +export function legs(matrix: Record | undefined): Leg[] { + const axes = Object.entries(matrix ?? {}).filter( + (entry): entry is [string, unknown[]] => + entry[0] !== "include" && + entry[0] !== "exclude" && + Array.isArray(entry[1]), + ); + const keys = new Set(axes.map(([key]) => key)); + let built: Leg[] = + axes.length === 0 + ? [] + : axes.reduce( + (legsSoFar, [key, values]) => + legsSoFar.flatMap((leg) => + values.map((value) => ({ ...leg, [key]: value })), + ), + [{}], + ); + const matches = (leg: Leg, entry: Leg) => + Object.entries(entry).every(([key, value]) => leg[key] === value); + const excluded = Array.isArray(matrix?.exclude) + ? (matrix.exclude as Leg[]) + : []; + built = built.filter((leg) => !excluded.some((entry) => matches(leg, entry))); + for (const entry of Array.isArray(matrix?.include) + ? (matrix.include as Leg[]) + : []) { + const kept = built.filter((leg) => + Object.entries(entry).every( + ([key, value]) => !keys.has(key) || leg[key] === value, + ), + ); + if (kept.length > 0) for (const leg of kept) Object.assign(leg, entry); + else built.push({ ...entry }); + } + return built.length > 0 ? built : [{}]; +} + +/** + * Whether a matrix's legs are known only once the run starts: the whole matrix, an axis or its + * `include` is an expression. An `exclude` that is one only takes legs away, so the legs written + * out are still the most it can start. + */ +function runTimeMatrix(matrix: unknown): boolean { + if (matrix === undefined) return false; + if (typeof matrix !== "object" || matrix === null) return true; + return Object.entries(matrix).some( + ([key, value]) => key !== "exclude" && !Array.isArray(value), + ); +} + +export function triggers(workflow: Workflow): string[] { + const on = workflow.on; + if (typeof on === "string") return [on]; + if (Array.isArray(on)) return on.map(String); + return Object.keys((on as Record) ?? {}); +} + +/** One job a push to a pull request can start, with how many legs and its time limit. */ +export type StartedJob = { + /** The top-level workflow's name, which the budgets and the Actions API go by. */ + workflow: string; + /** `/`, the file the job is written in. */ + where: string; + legs: number; + /** Its `timeout-minutes` on a pull request, or undefined for a call of another workflow. */ + limit?: number; + /** Whether it starts on every pull request, or only on some (its condition reads its run). */ + always: boolean; +}; + +export type Count = { jobs: StartedJob[]; problems: string[] }; + +const STATUS = /\b(always|cancelled|failure)\s*\(/i; + +/** + * The jobs one push to a pull request from this repository can start, from the workflow files: a + * job whose condition is false on every pull request is left out, a job whose condition reads + * something only the run knows (a changes job's outputs, a label) is counted, and each counts its + * matrix's legs. A call of another workflow in this repository counts that workflow's jobs. + */ +export function pullRequestJobs( + directory: string, + repository: string, + file: BudgetFile, +): Count { + const workflows = new Map( + readdirSync(directory) + .filter((name) => /\.ya?ml$/.test(name)) + .map((name) => [ + name, + Bun.YAML.parse(readFileSync(join(directory, name), "utf8")) as Workflow, + ]), + ); + const count: Count = { jobs: [], problems: [] }; + const walk = ( + name: string, + workflow: string, + times: number, + called: boolean, + sure: boolean, + ) => { + const jobs = workflows.get(name)?.jobs ?? {}; + const state = new Map(); + const result = (id: string): Value => { + if (state.has(id)) return state.get(id); + state.set(id, UNKNOWN); + const job = jobs[id] ?? {}; + const needs = [job.needs ?? []].flat(); + const needed = needs.map((need) => [need, result(need)] as const); + const condition = typeof job.if === "string" ? job.if : ""; + let value: Value; + if (needed.some(([, r]) => r === "skipped") && !STATUS.test(condition)) + value = "skipped"; + else { + const context: Record = { + ...pullRequestContext(repository), + needs: whole( + Object.fromEntries( + needed.map(([need, r]) => [need, { result: r }]), + ), + ), + ...(called ? {} : { inputs: whole({}) }), + }; + const t = + job.if === undefined + ? true + : typeof job.if === "boolean" + ? job.if + : truth(evaluate(job.if, context)); + const unsure = needed.some(([, r]) => r === UNKNOWN); + value = + t === false + ? "skipped" + : t === undefined || unsure + ? UNKNOWN + : "success"; + } + state.set(id, value); + return value; + }; + for (const [id, job] of Object.entries(jobs)) { + const ran = result(id); + if (ran === "skipped") continue; + const where = `${name}/${id}`; + let legCount = 1; + const matrix = job.strategy?.matrix; + if (runTimeMatrix(matrix)) { + const cap = file.limits["matrix legs"][where]; + if (cap === undefined) { + count.problems.push( + `${where}: its matrix is known only once the run starts, and .github/ci-budgets.json gives it no cap under "matrix legs".`, + ); + } else legCount = cap; + } else if (matrix !== undefined) { + legCount = legs(matrix as Record).length; + } + // A workflow of this repository: `./.github/workflows/x.yml`, or `$/...`, the same by name. + const local = /^[.$]\/\.github\/workflows\/(.+)$/.exec(job.uses ?? ""); + if (local?.[1]) { + walk( + local[1], + workflow, + times * legCount, + true, + sure && ran === "success", + ); + continue; + } + const started: StartedJob = { + workflow, + where, + legs: times * legCount, + always: sure && ran === "success", + }; + if (!job.uses) { + const raw = job["timeout-minutes"]; + const limit = + typeof raw === "number" + ? raw + : raw === undefined + ? undefined + : /^\d+$/.test(raw.trim()) + ? Number(raw) + : evaluate(raw, pullRequestContext(repository)); + if (typeof limit !== "number") { + count.problems.push( + `${where}: no time limit a pull request can read (timeout-minutes: ${raw ?? "none"}).`, + ); + } else { + started.limit = limit; + const allowed = limitFor(file, workflow, "time limit"); + if (limit > allowed) + count.problems.push( + `${where}: timeout-minutes ${limit} is over the time limit of ${allowed}.`, + ); + } + } + count.jobs.push(started); + } + }; + for (const [name, workflow] of workflows) { + const on = triggers(workflow); + if (!on.includes("pull_request") && !on.includes("pull_request_target")) + continue; + walk(name, workflow.name ?? `.github/workflows/${name}`, 1, false, true); + } + return count; +} + +/** The most jobs one push to a pull request can start, in one workflow or in all of them. */ +export function total(count: Count, workflow?: string): number { + return count.jobs + .filter((job) => workflow === undefined || job.workflow === workflow) + .reduce((sum, job) => sum + job.legs, 0); +} + +/** + * Everything over the limits, from the workflow files and the budgets alone: the jobs a push to a + * pull request can start, any one's time limit, any job's or run's budget, and a workflow's own + * limits that do not say why. + */ +export function check( + directory: string, + repository: string, + file: BudgetFile, +): string[] { + const count = pullRequestJobs(directory, repository, file); + const problems = [...count.problems]; + const jobs = total(count); + if (jobs > file.limits["pull request jobs"]) + problems.push( + `A push to a pull request can start ${jobs} jobs, over the budget of ${file.limits["pull request jobs"]}.`, + ); + for (const [workflow, entry] of Object.entries(file.workflows)) { + if (entry.limits && !entry.limits.why?.trim()) + problems.push(`${workflow}: its own limits do not say why.`); + const slowest = limitFor(file, workflow, "slowest job"); + for (const [job, budget] of Object.entries(entry.jobs ?? {})) + if (budget > slowest) + problems.push( + `${workflow} / ${job}: a budget of ${budget}, over the slowest job's ${slowest}.`, + ); + const run = limitFor(file, workflow, "run"); + if (entry.run !== undefined && entry.run > run) + problems.push( + `${workflow}: a run budget of ${entry.run}, over the limit of ${run}.`, + ); + } + return problems; +} + +// --------------------------------------------------------------------------------------------- +// Real runs: each job's median time across recent runs, and a pull request run's job count. + +export type Job = { + id: number; + name: string; + run_attempt: number; + conclusion: string | null; + started_at: string | null; + completed_at: string | null; +}; + +export type Run = { + id: number; + name: string; + workflow_id: number; + run_attempt: number; + conclusion: string | null; + head_sha: string; + head_branch: string | null; + event: string; + html_url: string; + created_at: string; + head_repository?: { full_name: string } | null; +}; + +export type Recorded = { run: Run; jobs: Job[] }; + +/** How many of a job's recent runs its median is taken over, and how few it needs. */ +export const WINDOW = 5; +export const FEWEST = 3; + +/** + * A run whose times are steady: main's own runs and the merge queue's, on the runners and caches + * main uses. A pull request's runs are not: a cold cache, a fork's runner, a partial plan. + */ +export function steady(run: Run): boolean { + if (run.event === "merge_group") return true; + return ( + (run.event === "push" || run.event === "schedule") && + run.head_branch === "main" + ); +} + +function minutes(from: string | null, to: string | null): number | undefined { + if (!from || !to) return undefined; + return (Date.parse(to) - Date.parse(from)) / 60_000; +} + +export function median(values: number[]): number { + const sorted = [...values].sort((a, b) => a - b); + const middle = Math.floor(sorted.length / 2); + return sorted.length % 2 + ? (sorted[middle] as number) + : ((sorted[middle - 1] as number) + (sorted[middle] as number)) / 2; +} + +export type Sample = { run: Run; minutes: number }; + +export type Measured = { + /** + * The job's name with shards as `shard N of N`, or the whole run: `(whole run in the merge + * queue)` or `(whole run on main)`. + */ + job: string; + budget: number; + median: number; + samples: Sample[]; +}; + +/** + * Each budgeted job's time across the most recent steady runs, newest first: in each run, its + * slowest shard, the one the run waited for, from the attempt that passed; and the whole run, from + * a first attempt that passed (a re-run's span counts the wait between attempts). Only budgets with + * at least FEWEST runs are measured. + */ +export function measure( + workflow: string, + recorded: Recorded[], + budgets: Budgets, +): Measured[] { + const budget = budgets[workflow]; + if (!budget) return []; + const runs = recorded + .filter(({ run }) => run.name === workflow && steady(run)) + .sort((a, b) => b.run.created_at.localeCompare(a.run.created_at)); + const samples = new Map(); + const add = (key: string, sample: Sample) => { + const list = samples.get(key) ?? []; + if (list.length < WINDOW) list.push(sample); + samples.set(key, list); + }; + for (const { run, jobs } of runs) { + const slowest = new Map(); + for (const job of jobs) { + if (job.conclusion !== "success") continue; + const took = minutes(job.started_at, job.completed_at); + if (took === undefined) continue; + const key = jobKey(job.name); + slowest.set(key, Math.max(slowest.get(key) ?? 0, took)); + } + for (const [key, took] of slowest) add(key, { run, minutes: took }); + if (run.conclusion === "success" && run.run_attempt === 1) { + const ran = jobs.filter( + (j) => j.run_attempt === 1 && j.conclusion !== "skipped", + ); + const starts = ran.map((j) => j.started_at).filter(Boolean) as string[]; + const ends = ran.map((j) => j.completed_at).filter(Boolean) as string[]; + if (starts.length && ends.length) { + const took = minutes( + starts.reduce((a, b) => (a < b ? a : b)), + ends.reduce((a, b) => (a > b ? a : b)), + ); + // Main's runs and the merge queue's run different jobs (main's only build what the queue + // did not), so each is a run of its own shape, with its own median. + if (took !== undefined) + add( + run.event === "merge_group" + ? "(whole run in the merge queue)" + : "(whole run on main)", + { run, minutes: took }, + ); + } + } + } + const measured: Measured[] = []; + for (const [job, list] of samples) { + const allowed = job.startsWith("(whole run") + ? budget.run + : budgetFor(budget.jobs, job); + if (allowed === undefined || list.length < FEWEST) continue; + measured.push({ + job, + budget: allowed, + median: median(list.map((s) => s.minutes)), + samples: list, + }); + } + return measured; +} + +/** The jobs whose median over their recent steady runs is over budget. */ +export function overBudget(measured: Measured[]): Measured[] { + return measured.filter((m) => m.median > m.budget); +} + +/** How many jobs a run's first attempt started: every leg that was not skipped. */ +export function started(jobs: Job[]): number { + return jobs.filter((j) => j.run_attempt === 1 && j.conclusion !== "skipped") + .length; +} diff --git a/scripts/ci-budgets.test.ts b/scripts/ci-budgets.test.ts index 82def9dbff..cfa2f28b09 100644 --- a/scripts/ci-budgets.test.ts +++ b/scripts/ci-budgets.test.ts @@ -1,6 +1,7 @@ import { describe, expect, test } from "bun:test"; import { readdirSync, readFileSync } from "node:fs"; import { join } from "node:path"; +import { legs, readBudgets, watchedBudgets } from "./ci-budget"; import { type Budgets, EXPRESSION, jobKey, wildcard } from "./ci-watch"; /** @@ -44,54 +45,11 @@ function limitOf(timeout: Job["timeout-minutes"]): number { } const files = readdirSync(WORKFLOWS).filter((file) => /\.ya?ml$/.test(file)); -const budgets = JSON.parse( - readFileSync(join(ROOT, ".github/ci-budgets.json"), "utf8"), -) as Budgets; +const budgets: Budgets = watchedBudgets(readBudgets(ROOT)); const watch = Bun.YAML.parse( readFileSync(join(WORKFLOWS, "ci-watch.yml"), "utf8"), ) as { on: { workflow_run: { workflows: string[] } } }; -type Leg = Record; - -/** - * A matrix's legs as GitHub builds them: every combination of its arrays, less the `exclude` - * entries, then each `include` entry added to every leg whose values it keeps, or as a leg of its - * own when it keeps none. `include` and `exclude` are lists of legs, not axes. - */ -function legs(matrix: Record | undefined): Leg[] { - const axes = Object.entries(matrix ?? {}).filter( - (entry): entry is [string, unknown[]] => - entry[0] !== "include" && - entry[0] !== "exclude" && - Array.isArray(entry[1]), - ); - const keys = new Set(axes.map(([key]) => key)); - let built: Leg[] = - axes.length === 0 - ? [] - : axes.reduce( - (legsSoFar, [key, values]) => - legsSoFar.flatMap((leg) => - values.map((value) => ({ ...leg, [key]: value })), - ), - [{}], - ); - const matches = (leg: Leg, entry: Leg) => - Object.entries(entry).every(([key, value]) => leg[key] === value); - const excluded = (matrix?.exclude ?? []) as Leg[]; - built = built.filter((leg) => !excluded.some((entry) => matches(leg, entry))); - for (const entry of (matrix?.include ?? []) as Leg[]) { - const kept = built.filter((leg) => - Object.entries(entry).every( - ([key, value]) => !keys.has(key) || leg[key] === value, - ), - ); - if (kept.length > 0) for (const leg of kept) Object.assign(leg, entry); - else built.push({ ...entry }); - } - return built.length > 0 ? built : [{}]; -} - /** * The budget names a job reports under: its matrix expanded where the name uses it, and where a * part of the name is known only once the run starts, the wildcard every leg shares. diff --git a/scripts/ci-watch.test.ts b/scripts/ci-watch.test.ts index 38461c751e..599095bbac 100644 --- a/scripts/ci-watch.test.ts +++ b/scripts/ci-watch.test.ts @@ -2,15 +2,12 @@ import { describe, expect, test } from "bun:test"; import { readFileSync } from "node:fs"; import { join } from "node:path"; import { - type Budgets, - budgetFor, failingTests, flakyAcrossRuns, flakyInRun, type Issue, type Job, keeperOf, - overBudget, quiet, } from "./ci-watch"; @@ -76,44 +73,6 @@ describe("the tests a failed job's log names", () => { }); }); -describe("budgets", () => { - const budgets: Budgets = { - CI: { - run: 15, - jobs: { - "app (real browser, WebKit)": 6, - "tests (shard N of N)": 7, - "component dockerfile (*)": 10, - }, - }, - }; - - test("a job over its budget is named with how long it took", () => { - const over = overBudget("CI", rerun, 2, budgets); - expect(over.map((o) => o.job)).toEqual(["app (real browser, WebKit)"]); - expect(over[0]?.minutes).toBeCloseTo(7.88, 1); - }); - - test("the whole run is held to its budget on a first attempt only", () => { - const firstAttempt = rerun.filter((job) => job.run_attempt === 1); - expect( - overBudget("CI", firstAttempt, 1, { - CI: { run: 5, jobs: {} }, - }).map((o) => o.job), - ).toEqual(["(whole run)"]); - expect(overBudget("CI", rerun, 2, { CI: { run: 5, jobs: {} } })).toEqual( - [], - ); - }); - - test("every shard shares one budget, and a matrix read at run time shares its wildcard", () => { - expect(budgetFor(budgets.CI?.jobs ?? {}, "tests (shard 3 of 5)")).toBe(7); - expect( - budgetFor(budgets.CI?.jobs ?? {}, "component dockerfile (agent-adk)"), - ).toBe(10); - }); -}); - test("text from a log pings nobody and closes no code span", () => { expect(quiet("@octocat said `hi`")).toBe("@​octocat said 'hi'"); }); diff --git a/scripts/ci-watch.ts b/scripts/ci-watch.ts index d88acd4827..c6df4b5b65 100644 --- a/scripts/ci-watch.ts +++ b/scripts/ci-watch.ts @@ -10,63 +10,54 @@ * mirror or a service that did not answer) gets one issue for the job, with the log's errors. The * fix is the test's; nothing here retries anything. * - * BUDGETS. Every job of a watched workflow has a budget in .github/ci-budgets.json, well under its - * `timeout-minutes` (which fails the job), and every workflow has one for the whole run. A job or - * a run over its budget opens or updates a `ci-budget` issue, and says so in this run's summary. - * scripts/ci-budgets.test.ts holds every job to having both. + * BUDGETS (scripts/ci-budget.ts). Every job of a watched workflow has a budget in + * .github/ci-budgets.json, well under its `timeout-minutes` (which fails the job), and every + * workflow has one for the whole run. After a run on main or in the merge queue, where timings are + * steady, each job's median over its last five such runs is held to its budget: one slow run moves + * that median by nothing, a job that has crept moves it over. A job or a run over budget opens a + * `ci-budget` issue (or keeps the open one current) and fails this job, until it is back under, + * when its issue is closed. After a run on a pull request, the jobs it started are held to the most + * its workflow files say a pull request can start, which a matrix known only at run time could + * outgrow. scripts/ci-budgets.test.ts holds every job to having a budget. * * Runs from forks are left alone: their logs are not ours to turn into issue titles. * * Env: GITHUB_REPOSITORY, GITHUB_EVENT_PATH (a workflow_run event) and GH_TOKEN (actions: read, * issues: write). `--dry-run` says what it would file and files nothing. `--run ` reads that - * run instead of the event's. + * run instead of the event's. `--tree ` reads the run's own workflow files and budgets from + * there, for the job count of a pull request's run. */ -import { appendFileSync, readFileSync } from "node:fs"; +import { appendFileSync, existsSync, readFileSync } from "node:fs"; import { join } from "node:path"; - -export type Job = { - id: number; - name: string; - run_attempt: number; - conclusion: string | null; - started_at: string | null; - completed_at: string | null; -}; - -export type Run = { - id: number; - name: string; - workflow_id: number; - run_attempt: number; - conclusion: string | null; - head_sha: string; - head_branch: string | null; - event: string; - html_url: string; - created_at: string; - head_repository?: { full_name: string } | null; -}; - -export type Budgets = Record< - string, - { run: number; jobs: Record } ->; +import { + type Job, + jobKey, + type Measured, + measure, + overBudget, + pullRequestJobs, + type Recorded, + type Run, + readBudgets, + started, + steady, + total, + WINDOW, + watchedBudgets, +} from "./ci-budget"; + +export { + type Budgets, + budgetFor, + EXPRESSION, + type Job, + jobKey, + type Run, + wildcard, +} from "./ci-budget"; const ROOT = join(import.meta.dir, ".."); -/** How a GitHub Actions expression opens, written so the linter does not read it as a template. */ -export const EXPRESSION = ["$", "{{"].join(""); - -/** A job's name with its shard numbers taken out, so every shard shares one budget and one issue. */ -export function jobKey(name: string): string { - return name.replace(/shard \d+ of \d+/, "shard N of N"); -} - -function minutes(from: string | null, to: string | null): number | undefined { - if (!from || !to) return undefined; - return (Date.parse(to) - Date.parse(from)) / 60_000; -} - /** * The jobs that only add up the others (`verify`, and `tests` over the shards): they fail because a * job they wait on failed, and that job is the one to name. @@ -167,67 +158,6 @@ export function errorLines(log: string, limit = 8): string[] { return lines; } -export type OverBudget = { job: string; minutes: number; budget: number }; - -/** - * The budget a job of a matrix shares with every other leg, when the legs are known only once the - * run starts: its name up to the bracket, then `(*)`, or `*` for a name that is all matrix. - */ -export function wildcard(name: string): string { - if (name.startsWith(EXPRESSION)) return "*"; - const bracket = name.indexOf(" ("); - return bracket > 0 ? `${name.slice(0, bracket)} (*)` : "*"; -} - -/** A job's budget: under its own name (shards as `shard N of N`), else under its wildcard. */ -export function budgetFor( - jobs: Record, - name: string, -): number | undefined { - return jobs[jobKey(name)] ?? jobs[wildcard(name)] ?? jobs["*"]; -} - -/** The latest attempt's jobs that ran past their budget, and the run itself when it did. */ -export function overBudget( - workflow: string, - jobs: Job[], - latestAttempt: number, - budgets: Budgets, -): OverBudget[] { - const budget = budgets[workflow]; - if (!budget) return []; - const latest = jobs.filter( - (j) => j.run_attempt === latestAttempt && j.conclusion !== "skipped", - ); - const over: OverBudget[] = []; - for (const job of latest) { - const took = minutes(job.started_at, job.completed_at); - const allowed = budgetFor(budget.jobs, job.name); - if (took !== undefined && allowed !== undefined && took > allowed) { - over.push({ job: jobKey(job.name), minutes: took, budget: allowed }); - } - } - // The whole run only on a first attempt: a re-run's attempt carries the jobs that passed before - // with their old times, so its span counts the wait between the attempts. - const ran = latest.filter((j) => j.conclusion !== null); - const starts = ran.map((j) => j.started_at).filter(Boolean) as string[]; - const ends = ran.map((j) => j.completed_at).filter(Boolean) as string[]; - if (latestAttempt === 1 && starts.length && ends.length) { - const first = starts.reduce((a, b) => (a < b ? a : b)); - const last = ends.reduce((a, b) => (a > b ? a : b)); - const took = minutes(first, last) ?? 0; - if (took > budget.run) - over.push({ job: "(whole run)", minutes: took, budget: budget.run }); - } - // One entry per budget: the slowest shard speaks for the others. - const slowest = new Map(); - for (const entry of over) { - const seen = slowest.get(entry.job); - if (!seen || seen.minutes < entry.minutes) slowest.set(entry.job, entry); - } - return [...slowest.values()]; -} - /** Text from a log, safe in an issue: no mention pings anybody, and no backtick ends a code span. */ export function quiet(text: string, max = 200): string { return text.replaceAll("@", "@​").replaceAll("`", "'").slice(0, max); @@ -386,7 +316,70 @@ const FLAKY_BODY = const FLAKY_JOB_BODY = "A job that failed and then passed on the same commit, with no change to the code, and whose log names no failing test: a runner, a download or a service the job waits on. Each comment below is one time it happened, with the errors from its log."; const BUDGET_BODY = - "A CI job, or a whole run, took longer than its budget in .github/ci-budgets.json. Each comment below is one run that did. Make it fast again, or raise the budget in a pull request that says why."; + "A CI job, or a whole run, is over its budget in .github/ci-budgets.json: its median over its last runs on main and in the merge queue, where timings are steady, is longer than the budget. One slow run does not do that; a job that has grown slower does. CI watch fails on every such run until it is back under, and then closes this. Make it fast again, or raise the budget in a pull request that says why."; +const COUNT_BODY = + "A push to a pull request started more jobs than its workflow files allow (.github/ci-budgets.json, `pull request jobs` and `matrix legs`): a matrix known only once the run starts gave it more legs than its cap. Each comment below is one run that did. Start fewer, or raise the cap in a pull request that says why."; + +/** A measured job's median and the runs it was taken over, newest first. */ +export function measuredText(m: Measured): string { + const rows = m.samples.map( + (s) => + `- [run ${s.run.id}](${s.run.html_url}), ${s.run.event === "merge_group" ? "merge queue" : s.run.head_branch}, ${s.run.created_at.slice(0, 16).replace("T", " ")}: ${s.minutes.toFixed(1)} minutes`, + ); + return `Median **${m.median.toFixed(1)} minutes** over its last ${m.samples.length} runs, against a budget of ${m.budget}:\n\n${rows.join("\n")}`; +} + +/** + * Over budget: an open issue has its body kept current, so a job over budget for days does not + * comment on every run; one that is closed or missing is reopened or opened, with the comment. + */ +function budgetIssue( + repository: string, + issues: Issue[], + title: string, + body: string, + comment: string, + dryRun: boolean, +): string { + const found = keeperOf(issues, title); + if (found?.state !== "open") + return upsertIssue(repository, "ci-budget", title, body, comment, dryRun); + if (dryRun) return `would update #${found.number}: ${title}`; + gh([ + `repos/${repository}/issues/${found.number}`, + "--method", + "PATCH", + "-f", + `body=${body}`, + ]); + return `updated #${found.number}: ${title}`; +} + +function closeIssue( + repository: string, + issue: Issue, + comment: string, + dryRun: boolean, +): string { + if (dryRun) return `would close #${issue.number}: ${issue.title}`; + gh([ + `repos/${repository}/issues/${issue.number}/comments`, + "--method", + "POST", + "-f", + `body=${comment}`, + ]); + gh([ + `repos/${repository}/issues/${issue.number}`, + "--method", + "PATCH", + "-f", + "state=closed", + "-f", + "state_reason=completed", + ]); + return `closed #${issue.number}: ${issue.title}`; +} if (import.meta.main) { const dryRun = process.argv.includes("--dry-run"); @@ -413,15 +406,13 @@ if (import.meta.main) { console.log(line); summary.push(`- ${line}`); }; + let failed = false; if (run.head_repository && run.head_repository.full_name !== repository) { say("A run from a fork: left alone."); } else { const jobs = jobsOf(repository, run.id); const latest = run.run_attempt; - const budgets = JSON.parse( - readFileSync(join(ROOT, ".github/ci-budgets.json"), "utf8"), - ) as Budgets; const where = `[run ${run.id}, attempt ${latest}](${run.html_url}/attempts/${latest}) on ${run.event === "pull_request" ? "a pull request" : run.head_branch}, commit ${run.head_sha.slice(0, 10)}`; // Flakes count only on a run that ended green: the commit passes, so what failed before was @@ -474,20 +465,110 @@ if (import.meta.main) { if (!flaky.length) say("No job failed and then passed on this commit."); } - for (const over of overBudget(run.name, jobs, latest, budgets)) { - say( - upsertIssue( + const file = readBudgets(ROOT); + const budgets = watchedBudgets(file); + + // Times, on a run whose times are steady: each job's median over its recent steady runs. + if (steady(run) && budgets[run.name]) { + const listed = json<{ workflow_runs: Run[] }>([ + `repos/${repository}/actions/workflows/${run.workflow_id}/runs?status=completed&per_page=50`, + ]).workflow_runs.filter((r) => steady(r) && r.id !== run.id); + // Enough runs for every job to have its window, when not every steady run runs every job: + // main's own runs build images; the merge queue's run the rest. + const recorded: Recorded[] = [{ run, jobs }]; + for (const r of listed.slice(0, WINDOW * 3)) + recorded.push({ run: r, jobs: jobsOf(repository, r.id) }); + const measured = measure(run.name, recorded, budgets); + const over = overBudget(measured); + const issues = labelled(repository, "ci-budget"); + const prefix = `CI over budget: ${run.name} / `; + for (const m of over) { + const filed = budgetIssue( repository, - "ci-budget", - `CI over budget: ${run.name} / ${over.job}`, - BUDGET_BODY, - `${over.minutes.toFixed(1)} minutes against a budget of ${over.budget}: ${where}.`, + issues, + `${prefix}${m.job}`, + `${BUDGET_BODY}\n\n${measuredText(m)}`, + `Over budget: median ${m.median.toFixed(1)} minutes over its last ${m.samples.length} runs, against ${m.budget}. Latest: ${where}.`, dryRun, - ), + ); + say( + `${filed} (median ${m.median.toFixed(1)} minutes over ${m.samples.length} runs, budget ${m.budget})`, + ); + failed = true; + } + // Every other open issue of this workflow's: its job is back under budget, or does not run + // where times are held to budget any more. + const overTitles = new Set(over.map((m) => `${prefix}${m.job}`)); + const measuredUnder = new Map( + measured + .filter((m) => !overTitles.has(`${prefix}${m.job}`)) + .map((m) => [`${prefix}${m.job}`, m]), + ); + for (const issue of issues) { + if ( + issue.state !== "open" || + !issue.title.startsWith(prefix) || + overTitles.has(issue.title) + ) + continue; + const under = measuredUnder.get(issue.title); + say( + closeIssue( + repository, + issue, + under + ? `Back under budget: median ${under.median.toFixed(1)} minutes over its last ${under.samples.length} runs, against ${under.budget}. Latest: ${where}.` + : `Not over budget on main or in the merge queue: budgets are held to the median of a job's last ${WINDOW} runs there, not to one run. Latest: ${where}.`, + dryRun, + ), + ); + } + if (!over.length) + say( + `Every job and the whole run within budget, over their last ${WINDOW} runs on main and in the merge queue.`, + ); + } + + // The job count, on a pull request's run: no more than its workflow files allow a push. + if (run.event === "pull_request") { + const treeArgument = process.argv.indexOf("--tree"); + const tree = + treeArgument > 0 && existsSync(process.argv[treeArgument + 1] ?? "") + ? (process.argv[treeArgument + 1] as string) + : ROOT; + const count = pullRequestJobs( + join(tree, ".github/workflows"), + repository, + readBudgets(tree), ); + const most = total(count, run.name); + const ran = started(jobs); + if (most > 0 && ran > most) { + say( + upsertIssue( + repository, + "ci-budget", + `CI job count over budget: ${run.name}`, + COUNT_BODY, + `${ran} jobs started, against the ${most} its workflow files allow one push to a pull request: ${where}.`, + dryRun, + ), + ); + failed = true; + } else { + say( + `${ran} jobs started, within the ${most} a push to a pull request may start.`, + ); + } } } if (process.env.GITHUB_STEP_SUMMARY) { appendFileSync(process.env.GITHUB_STEP_SUMMARY, `${summary.join("\n")}\n`); } + if (failed) { + console.error( + "Over budget: see the ci-budget issues above, and .github/ci-budgets.json.", + ); + process.exit(1); + } }