Skip to content

ci: restore timing summary artifact - #87832

Merged
RomneyDa merged 3 commits into
mainfrom
codex/restore-ci-timings-artifact
May 29, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
codex/restore-ci-timings-artifact

Conversation

@RomneyDa

@RomneyDa RomneyDa commented May 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Restore the terminal ci-timings-summary CI job.
  • Write the current run timing summary to $GITHUB_STEP_SUMMARY and upload it as a ci-timings-summary artifact.
  • Run the tokened timing helper from the trusted base revision on pull requests, add warmup-barrier metrics to the timing helper, and update docs/ci.md to describe the restored artifact.

Background

The ci-timings-summary job was added in c3853611ee (ci: add runner fallback timing telemetry) and later disappeared in 330ba1fa31 (refactor: move canvas to plugin surfaces), via #78558. That removal happened inside a broad Canvas/plugin-surface refactor; I did not find PR body or review discussion indicating a deliberate reason to drop the timing artifact.

Restoring the artifact gives maintainers a durable, compact run summary for wall time, queue time, slowest jobs, failures, and the pnpm-store-warmup fanout barrier without repeatedly scraping the full Actions payload. Keeping the same text in $GITHUB_STEP_SUMMARY also makes the data visible directly from the run page.

Verification

  • git diff --check
  • node scripts/check-workflows.mjs
  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts test/scripts/ci-run-timings.test.ts
  • node scripts/ci-run-timings.mjs 26608423875 --limit 5
  • pnpm docs:list
  • pnpm docs:check-mdx
  • pnpm exec oxfmt --check .github/workflows/ci.yml docs/ci.md test/scripts/ci-workflow-guards.test.ts scripts/ci-run-timings.mjs test/scripts/ci-run-timings.test.ts
  • .agents/skills/autoreview/scripts/autoreview --mode local

Real behavior proof

Behavior addressed: CI now publishes the run timing summary as a durable ci-timings-summary artifact again, appends the same summary to the Actions step summary, reports the pnpm-store-warmup fanout barrier, and keeps GH_TOKEN away from branch-controlled timing code on pull requests.

Real environment tested: Local Codex worktree on branch codex/restore-ci-timings-artifact, rebased from current origin/main after #87813 merged.

Exact steps or command run after this patch: Ran focused workflow/timing Vitest coverage, workflow parsing checks, docs checks, formatting check, whitespace check, a live timing-helper smoke against CI run 26608423875, and autoreview locally.

Evidence after fix: Parsed .github/workflows/ci.yml contains a terminal ci-timings-summary job with actions: read, current CI lane needs, node scripts/ci-run-timings.mjs "$GITHUB_RUN_ID" --limit 25, $GITHUB_STEP_SUMMARY output, and an actions/upload-artifact@v7 upload named ci-timings-summary. The checkout step uses github.event.pull_request.base.sha for pull request runs and needs.preflight.outputs.checkout_revision || github.sha otherwise, and the workflow guard asserts that boundary.

Observed result after fix: Workflow/docs checks passed, the focused Vitest run passed 2 files / 10 tests, the live timing-helper smoke printed the new pnpm-store-warmup barrier section, and autoreview reported no accepted/actionable findings.

What was not tested: A completed live GitHub Actions run of the terminal ci-timings-summary job on this PR after the trusted-base fix; CI restarted on head 0f5a90872e8084f535c4792ffad3a0da831da1c4 and is still in progress.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels May 29, 2026
@clawsweeper

clawsweeper Bot commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed May 28, 2026, 9:04 PM ET / 01:04 UTC.

Summary
The PR restores the terminal ci-timings-summary CI job, adds warmup-barrier timing output to the helper, updates workflow guard coverage, and documents the restored artifact.

PR surface: Tests +118, Docs +2, Config +50, Other +76. Total +246 across 5 files.

Reproducibility: not applicable. as a user-facing bug reproduction path. Source inspection confirms current main lacks the artifact job, and the PR's live Actions run proves the restored terminal job now runs and uploads the artifact on the PR head.

Review metrics: 1 noteworthy metric.

  • Tokened CI summary surface: 1 terminal CI job restored; 1 read-token helper step guarded by base checkout. The job passes GH_TOKEN to a script, so maintainers should notice the trusted-code boundary even though the latest patch guards it.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Next step before merge

  • No automated repair is needed; the remaining action is maintainer review or landing for a protected maintainer-labeled CI workflow PR.

Security
Cleared: The workflow security pass is cleared: the tokened PR path now checks out the trusted base revision before running the helper and does not change dependencies or supply-chain inputs.

Review details

Best possible solution:

Land the restored timing artifact if maintainers are comfortable with the trusted-base workflow shape, keeping the workflow guard, timing helper, and CI docs aligned.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a user-facing bug reproduction path. Source inspection confirms current main lacks the artifact job, and the PR's live Actions run proves the restored terminal job now runs and uploads the artifact on the PR head.

Is this the best way to solve the issue?

Yes. The latest approach restores the artifact while checking out trusted base code before passing GH_TOKEN on pull_request runs, which is the narrow maintainable fix for the earlier security-boundary finding.

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against 0ae1ac17eaf2.

Label changes

Label changes:

  • add P3: This is low-urgency CI observability and documentation maintenance with focused scope and successful live PR CI proof.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor proof gate is not applicable because this is a maintainer-authored PR, and separate live CI evidence shows the restored job completed and uploaded the artifact.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is low-urgency CI observability and documentation maintenance with focused scope and successful live PR CI proof.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The contributor proof gate is not applicable because this is a maintainer-authored PR, and separate live CI evidence shows the restored job completed and uploaded the artifact.
Evidence reviewed

PR surface:

Tests +118, Docs +2, Config +50, Other +76. Total +246 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 118 0 +118
Docs 1 3 1 +2
Config 1 50 0 +50
Generated 0 0 0 0
Other 1 86 10 +76
Total 5 257 11 +246

What I checked:

  • Repository policy read: Root, scripts, and docs AGENTS.md files were read fully and applied to the workflow, docs, proof, and security review. (AGENTS.md:1, 0ae1ac17eaf2)
  • Current main lacks restored artifact job: Current main has pnpm-store-warmup, build-artifacts, and other CI jobs, but no ci-timings-summary job; docs currently describe only command-based timing summaries and the startup-memory artifact. (.github/workflows/ci.yml:419, 0ae1ac17eaf2)
  • PR workflow restores terminal job with trusted PR checkout: At PR head, the added ci-timings-summary job grants actions: read, waits for the CI lane jobs, checks out github.event.pull_request.base.sha on pull_request runs, writes the helper output to $GITHUB_STEP_SUMMARY, and uploads ci-timings-summary. (.github/workflows/ci.yml:1964, 0f5a90872e80)
  • Timing helper adds warmup-barrier summary: The PR adds summarizePnpmStoreWarmupBarrier and prints a pnpm-store-warmup barrier section from the loaded run data before the existing slowest-job and queue summaries. (scripts/ci-run-timings.mjs:96, 0f5a90872e80)
  • Workflow guard covers the security boundary and artifact shape: The added guard asserts permissions, the needs list, the trusted-base checkout expression, persist-credentials: false, the GH_TOKEN timing command, step-summary append, and upload-artifact settings. (test/scripts/ci-workflow-guards.test.ts:50, 0f5a90872e80)
  • Live PR CI proof: GitHub Actions run 26611431118 for head 0f5a90872e8084f535c4792ffad3a0da831da1c4 completed successfully; its ci-timings-summary job completed successfully and artifacts include ci-timings-summary created at 2026-05-29T01:01:21Z. (0f5a90872e80)

Likely related people:

  • RomneyDa: Authored the merged CI timing docs correction on current main and is carrying the focused restoration work on the same docs/workflow surface. (role: recent CI docs contributor; confidence: high; commits: 5cccfe1c1735; files: docs/ci.md, .github/workflows/ci.yml, scripts/ci-run-timings.mjs)
  • steipete: Commit history shows the earlier timing artifact was added in c3853611ee and later removed in the broad Canvas/plugin-surface refactor associated with the related merged PR. (role: original timing artifact and refactor history owner; confidence: high; commits: c3853611eefd, 330ba1fa3194; files: .github/workflows/ci.yml, scripts/ci-run-timings.mjs)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels May 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M and removed size: S labels May 29, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels May 29, 2026
@RomneyDa
RomneyDa merged commit 93c30de into main May 29, 2026
115 of 118 checks passed
@RomneyDa
RomneyDa deleted the codex/restore-ci-timings-artifact branch May 29, 2026 01:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 29, 2026
* ci: restore timing summary artifact

* ci: report pnpm warmup fanout timing

* ci: run timing summary from trusted base
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
* ci: restore timing summary artifact

* ci: report pnpm warmup fanout timing

* ci: run timing summary from trusted base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant