Skip to content

fix(ci): reuse verified Bun for docs and boundary parity - #195154

Closed
vincentkoc wants to merge 1 commit into
mainfrom
perf/ci-parity-bun-reuse-20261108
Closed

vincentkoc wants to merge 1 commit into
mainfrom
perf/ci-parity-bun-reuse-20261108

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Superseded

The complete reviewed docs/boundary patch is included in #195155, alongside the remaining lint consumers. Close this duplicate draft; follow that PR for qualification and landing.

What Problem This Solves

Docs formatting and supplemental boundary checks still stage pinned Bun through their local parity resolver without reading the shared verified runtime cache.

User Impact

These two consumers reuse the existing pinned Bun cache and prepared executable. Both engines and every check remain enabled; independent docs checks still run when Bun preparation fails.

Why This Change Was Made

Build on the landed cache and release-download recovery in #195139. Preparation runs only for selected formatting or the boundaries group, with the existing restore-only cache policy. No new job, publisher, or runner-size change.

Evidence

  • Rebased onto the cache merge f89b123d7fee; the patch is identical to the previously reviewed 115c1d22feae (stable patch ID 67ec5915080b90c6578155445798feb8a12cbda7). Dependency inputs and the affected workflow sources on the base are unchanged.
  • At 7baf6f0f0036, both focused workflow guards pass: 2 passed / 199 unselected, 1.47s Vitest / 2.53s wrapper. Failure propagation, independent docs checks, and nonconsumer exclusion remain covered.
  • Earlier complete owning-file proof: 193 passed / 8 skipped (201), 236.87s Vitest / 237.91s wrapper. This is prior-head evidence, not a fresh full run.
  • Typecheck, scoped lint, formatting, and exact-base test-line ratchet pass; 33 added test lines have an explicit allocation.
  • The identical patch received independent and full committed-range ClawSweeper reviews with no findings.

The previous 149.46s failed docs staging measurement predates the now-landed download recovery and is not a savings estimate for this change. Current parent CI successfully stages Bun for both consumers, but neither uses the shared asset-cache reader. Incremental warm-cache runtime and billing benefit must be verified; no dollar saving is claimed yet.

@vincentkoc vincentkoc self-assigned this Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR prepares the existing verified Bun runtime for docs formatting and supplemental boundary checks.

Example: CI selects check-docs with run_format_check=true and a verified Bun cache available.

  • Before: Formatting independently stages Bun instead of consuming the shared prepared executable.
  • After: The setup action restores and verifies Bun, then formatting consumes its exported executable path.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, source-consistent implementation with useful workflow guards; execution evidence for the new readers is limited.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the contributor proof gate; supplied workflow regressions cover selection and failure conditions, while production warm-cache behavior remains unmeasured.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Contributors encounter repeated Bun staging and release-download failures in docs and boundary CI.
Reason: The maintainer-authored direction removes redundant preparation through an existing owner while retaining both engines and existing checks.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused, useful CI improvement, with no introduced correctness or security defect found.

Priority: P2
Reviewed head: 115c1d22feaece48d28fd90a0fd1bc4c8ee17e80

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supplied evidence does not exercise these two new CI readers consuming a warm verified cache and completing their parity checks.
Agent review details

How this fits together

GitHub Actions selects docs and boundary checks; the existing Bun setup action supplies a verified executable to their parity tooling.

flowchart TD
  A[Preflight selection] --> B[Docs formatting job]
  A --> C[Boundary check job]
  B --> D[Existing Bun setup action]
  C --> D
  D --> E[Verified release assets]
  E --> F[Prepared executable]
  F --> G[Existing parity tooling]
Loading

Technical review

Best possible solution:

Land the existing cache prerequisite before these conditional readers while preserving parity checks and independent docs validation.

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

Source shows formatting clears CI for Bun resolution and stages independently without OPENCLAW_BUN_PATH; the supplied earlier CI run records failures in formatting and boundary checks.

Is this the best way to solve the issue?

Reusing the existing setup action is the smallest complete fix: it supplies the prepared runtime without duplicating verification, cache policy, or parity logic.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3a25991e37c4.

Provenance checked

  • Formatting parity keeps the original intent (806ea58: Compare oxfmt and pinned Bun results on identical formatting inputs without allowing overrides to bypass parity.)
  • Docs content selection keeps the original intent (ed4268c: Keep formatting for root prose changes while avoiding unrelated generated-documentation checks.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit ed4268c adds .github/workflows/ci.yml:4543 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ed4268ca17f0; files: .github/workflows/ci.yml)

PR surface

Tests +33, Config +14, Other +2. Total +49 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 42 9 +33
Docs 0 0 0 0
Config 1 15 1 +14
Generated 0 0 0 0
Other 1 2 0 +2
Total 3 59 10 +49

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A focused CI reliability and efficiency improvement with limited impact outside contributor checks.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A focused CI reliability and efficiency improvement with limited impact outside contributor checks.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Capture a CI run showing the new docs and boundary readers reuse verified Bun and complete parity checks.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 8, 2026, 4:54 AM ET / 09:54 UTC.

Base automatically changed from perf/ci-pinned-bun-cache-20261108 to main November 8, 2026 10:11
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M and removed size: S labels Nov 8, 2026
@vincentkoc
vincentkoc force-pushed the perf/ci-parity-bun-reuse-20261108 branch from 115c1d2 to 7baf6f0 Compare November 8, 2026 10:14
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed docs Improvements or additions to documentation scripts Repository scripts size: M labels Nov 8, 2026
@vincentkoc vincentkoc closed this Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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