Skip to content

Commit d8697d5

Browse files
committed
chore(ci): drop the disabled timing-summary job and unread build outputs
Two pieces of dead workflow surface, found auditing where CI time goes: - ci-timings-summary was hard-disabled (`if: ${{ false && ... }}`) with a TODO to re-enable or delete it after the next timing-optimization review. That review happened; the local `pnpm ci:timings` helper is what we actually use, and docs already pointed there. The job carried a 25-entry needs list that had to be kept in sync to stay lintable. - build-artifacts exported four `*-result` outputs that no job or workflow reads. Removing the job lets the gate guard assert the stronger invariant it wanted all along: ci-gate needs *every* job in the file, so a new lane cannot slip in ungated (28 jobs, 27 gated, zero exceptions). No runtime behavior changes: the job could never run and the outputs had no consumers. Also audited every `pnpm <script>` and `node scripts/...` reference in ci.yml for rot -- all resolve.
1 parent 18d130f commit d8697d5

3 files changed

Lines changed: 3 additions & 64 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,11 +1237,6 @@ jobs:
12371237
# cores for roughly the same billed core-minutes.
12381238
runs-on: ${{ vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' && 'ubuntu-24.04' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && github.run_attempt > 1) && 'ubuntu-24.04' || github.event_name == 'workflow_dispatch' && 'ubuntu-24.04' || (github.repository == 'openclaw/openclaw' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'openclaw/openclaw') && 'blacksmith-32vcpu-ubuntu-2404' || 'ubuntu-24.04') }}
12391239
timeout-minutes: ${{ (vars.OPENCLAW_CI_RUNNER_BACKEND == 'github' || (vars.OPENCLAW_CI_RUNNER_BACKEND == 'hybrid' && github.run_attempt > 1) || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)) && 35 || 20 }}
1240-
outputs:
1241-
channels-result: ${{ steps.built_artifact_checks.outputs['channels-result'] }}
1242-
core-support-boundary-result: ${{ steps.built_artifact_checks.outputs['core-support-boundary-result'] }}
1243-
gateway-watch-result: ${{ steps.built_artifact_checks.outputs['gateway-watch-result'] }}
1244-
tui-pty-result: ${{ steps.built_artifact_checks.outputs['tui-pty-result'] }}
12451240
steps:
12461241
- *linux_node_checkout_step
12471242
- name: Ensure secrets base commit (PR fast path)
@@ -4172,60 +4167,3 @@ jobs:
41724167
done <<< "$SELECTED_RESULTS"
41734168
41744169
exit "$failures"
4175-
4176-
ci-timings-summary:
4177-
permissions:
4178-
actions: read
4179-
contents: read
4180-
name: ci-timings-summary
4181-
needs:
4182-
- preflight
4183-
- security-fast
4184-
- pnpm-store-warmup
4185-
- build-artifacts
4186-
- checks-ui
4187-
- checks-ui-e2e
4188-
- checks-ui-e2e-real-gateway
4189-
- control-ui-i18n
4190-
- checks-fast-core
4191-
- checks-fast-plugin-contracts-shard
4192-
- checks-fast-channel-contracts-shard
4193-
- checks-node-compat
4194-
- checks-node-core-test-nondist-shard
4195-
- check-shard
4196-
- check-lint-hosted-core-shard
4197-
- check-additional-shard
4198-
- check-docs
4199-
- skills-python
4200-
- checks-windows
4201-
- macos-node
4202-
- macos-swift
4203-
- ios-build
4204-
- android
4205-
# TODO(2026-10-01): Re-enable or delete the CI timing-summary job after the next timing-optimization review.
4206-
if: ${{ false && !cancelled() && always() && github.event_name != 'push' && (github.event_name != 'pull_request' || !github.event.pull_request.draft) }}
4207-
runs-on: ubuntu-24.04
4208-
timeout-minutes: 5
4209-
steps:
4210-
- name: Checkout timing summary helper
4211-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
4212-
with:
4213-
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || needs.preflight.outputs.checkout_revision || github.sha }}
4214-
fetch-depth: 1
4215-
fetch-tags: false
4216-
persist-credentials: false
4217-
submodules: false
4218-
4219-
- name: Write CI timing summary
4220-
env:
4221-
GH_TOKEN: ${{ github.token }}
4222-
run: |
4223-
node scripts/ci-run-timings.mjs "$GITHUB_RUN_ID" --limit 25 > ci-timings-summary.txt
4224-
cat ci-timings-summary.txt >> "$GITHUB_STEP_SUMMARY"
4225-
4226-
- name: Upload CI timing summary
4227-
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
4228-
with:
4229-
name: ci-timings-summary
4230-
path: ci-timings-summary.txt
4231-
retention-days: 14

‎docs/ci.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ GitHub may mark superseded pull-request jobs as `cancelled` when a newer head la
8080

8181
Use `pnpm ci:timings`, `pnpm ci:timings:recent`, or `node scripts/ci-run-timings.mjs <run-id>` to summarize wall time, start delay, slowest jobs, failures, and the `pnpm-store-warmup` fanout barrier from GitHub Actions. Use `pnpm ci:timings:trend` for a 72-hour baseline and a latest-12-hours versus prior-12-hours comparison. Trend mode includes every main push outcome, cancellation/pass rates, and successful-run wall time, then loads a balanced latest/prior sample of at most 100 successful runs by default. Its detailed sample separates workflow admission, job dependency/gate delay (`job.created_at` minus the first job's creation), runner queue/start latency (`job.started_at` minus `job.created_at`), and execution; it also reports critical-path ownership and the actual GitHub API request count. Reruns use attempt-specific jobs and are excluded from run-level wall/admission distributions because GitHub retains the original workflow creation time. Raise or lower the detailed-run selection cap with `--detail-runs` (a run with more than 100 jobs requires multiple requests), emit JSON to stdout with `--json`, or save the same report with `--output .artifacts/ci-timings/trend.json`; missing output directories are created automatically. The baseline must cover at least two comparison windows.
8282

83-
The in-workflow `ci-timings-summary` job exists in `ci.yml` but is currently disabled (`if: false`); run the timing helper locally instead. For build timing, check the `build-artifacts` job's `Build dist` step: `pnpm build:ci-artifacts` prints `[build-all] phase timings:` and includes `ui:build`; the job also uploads the `startup-memory` artifact.
83+
Run the timing helper locally; there is no in-workflow timing-summary job (a permanently disabled one was removed once the local helper became the tool everyone actually used). For build timing, check the `build-artifacts` job's `Build dist` step: `pnpm build:ci-artifacts` prints `[build-all] phase timings:` and includes `ui:build`; the job also uploads the `startup-memory` artifact.
8484

8585
## PR context and evidence
8686

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7054,9 +7054,10 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
70547054
expect(workflow.on.pull_request).not.toHaveProperty("paths-ignore");
70557055
expect(gate.name).toBe("openclaw/ci-gate");
70567056
expect(gate.needs).toEqual([...requiredJobs, ...selectedJobs]);
7057+
// Every job in the file is gated; a new lane cannot slip in ungated.
70577058
expect(gate.needs.toSorted()).toEqual(
70587059
Object.keys(workflow.jobs)
7059-
.filter((job) => job !== "ci-gate" && job !== "ci-timings-summary")
7060+
.filter((job) => job !== "ci-gate")
70607061
.toSorted(),
70617062
);
70627063
expect(gate.if).toBe(

0 commit comments

Comments
 (0)