Skip to content

improve(ci): reuse Watch cache and expose shared scan build progress - #166498

Merged
RomneyDa merged 1 commit into
mainfrom
perf/shared-periphery-watch-cache
Oct 7, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
perf/shared-periphery-watch-cache

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 7, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Shared OpenClawKit CI repeatedly rebuilds Watch Rust/WebRTC and hides native build progress inside the Periphery scan.

User Impact

No product behavior changes. Maintainers get streamed build logs and separate build/analysis timings; matching verified Watch libraries can be reused. Full consumer, architecture, and dead-code coverage remain intact.

Why This Change Was Made

  • Restore the exact Watch RTC key and paths published by trusted main CI. This workflow never saves caches. The existing build owner validates library fingerprints/checksums and runs locked Cargo builds on misses.
  • Build the iOS consumer once in fresh run-owned DerivedData using Periphery 3.8.0's original build-for-testing settings, then analyze that explicit index with --skip-build.
  • Separate the existing macOS index build from analysis too. Both builds stream timed output and retain build.log in their existing artifacts; pipefail preserves failures.
  • Keep scope selection, report filters, generated-protocol retention, and the intersection unchanged. Update docs/ci.md.

Net change: 39 workflow lines and two documentation lines; no production runtime, config, tests, or dependency changes. The additional workflow surface owns cache restoration and separately observable build execution, not another scan path.

Evidence

The reported iOS job passed in 19m16s: 16m02s in combined build/analysis, only six seconds queued. The previous same-PR scan spent 14m34s in that step. Revisions differ; this establishes recurring cost, not a controlled A/B.

Dependency source checked directly: Periphery 3.8.0 build settings and explicit index-store selection.

Local proof:

  • go run github.com/rhysd/actionlint/cmd/actionlint@011a6d15e749bb3f2d771eed9c7aa0e7e3e10ee7 .github/workflows/shared-openclawkit-periphery.yml passed.
  • node_modules/.bin/oxfmt --check .github/workflows/shared-openclawkit-periphery.yml docs/ci.md and git diff --check passed.
  • node scripts/run-vitest.mjs test/scripts/periphery-intersection.test.ts test/scripts/periphery-scope-workflows.test.ts: 19 tests passed, 2.99s wrapper wall time.
  • Parsed-workflow comparison confirmed exact Watch cache key/path equality with ci.yml; all shell blocks passed bash -n.
  • Both actual build shell blocks propagated injected exit 23 through time/tee and retained build.log. Shell-boundary proof, not a native build.
  • Fresh autoreview through P2 found no actionable defects; independent source-contract review confirmed scope/cache preservation.
  • pnpm docs:list passed.

Exact Xcode 27 execution and speedup measurement await hosted PR CI; the local host has Xcode 26.6. Main CI may cache only the host-architecture slice, while this scan retains the full generic simulator build, so other slices can still compile. Cache misses remain cold builds; no percentage speedup is claimed.

@clawsweeper

clawsweeper Bot commented Oct 7, 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.

@RomneyDa
RomneyDa marked this pull request as ready for review October 7, 2026 07:07
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS labels Oct 7, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 3:21 AM ET / 07:21 UTC (Revision 2).

ClawSweeper review

What this changes

The PR restores existing Watch build caches and separates Apple native index builds from dead-code analysis, exposing build progress, timings, and retained logs.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main lacks the improvement, and review found no actionable introduced defect. The author is a repository member, so automatic closure is also excluded. Hosted macOS validation passed; iOS validation remains in progress.

Priority: P3
Reviewed head: e69ec883ad63bc614a9d647e0bbaf1e31927e768

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified CI improvement with no actionable findings; hosted native validation is partially complete.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Hosted exact-head macOS execution exercised the separated build and scan successfully; iOS execution is still pending. Shell fault-injection evidence is supplemental, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Hosted exact-head macOS execution exercised the separated build and scan successfully; iOS execution is still pending. Shell fault-injection evidence is supplemental, and no stored-data contract changes.
Evidence reviewed 9 items Pinned introduction: The merge-base-to-head patch changes only the shared Periphery workflow and CI documentation. Cron changes in endpoint drift belong to the base branch.
Still necessary on current main: Fetched main still performs the iOS build inside Periphery with --clean-build, lacks Watch cache restoration in this workflow, and combines the macOS build and scan. The original merge-base workflow was also read fully.
Existing cache publisher and validation owner: The new restore key and paths match ci.yml. Its publisher saves only eligible trusted main push/scheduled caches. The unchanged Watch build script fingerprints source, toolchain, SDK, target and flags, validates archive checksums, and uses locked Cargo builds on misses.
Findings None None.
Security None None.

How this fits together

Shared OpenClawKit supplies Swift code to the iOS and macOS apps. CI builds both consumers, analyzes their indexes with Periphery, and flags shared declarations reported unused by both.

flowchart TD
 A[Apple consumer sources] --> C[Native index builds]
 B[Verified Watch cache] --> C
 C --> D[Periphery analysis]
 C --> E[Build logs and timings]
 D --> F[Shared findings intersection]
 F --> G[Dead-code CI result]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Docs +2, Config +39. Total +41 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 2 0 +2
Config 1 42 3 +39
Generated 0 0 0 0
Other 0 0 0 0
Total 2 44 3 +41

Review metrics

None.

Technical review

Best possible solution:

Keep one native build per consumer, analyze its explicit index, preserve cache validation and cold-build fallback, and derive performance claims from completed hosted measurements.

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

Not applicable: this is CI optimization and observability work. The captured body documents recurring build cost, and current source confirms hidden combined build/analysis execution.

Is this the best way to solve the issue?

Yes: the patch reuses the existing cache and analysis owners, matches Periphery's build contract, and preserves failure propagation and scan scope.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves maintainer build visibility and cache reuse without changing product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor-proof gate is exempt for this MEMBER-authored PR. Hosted exact-head macOS execution exercised the separated build and scan successfully; iOS execution is still pending. Shell fault-injection evidence is supplemental, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-07T07:13:50.362Z sha e69ec88 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa merged commit 66d898f into main Oct 7, 2026
149 checks passed
@RomneyDa
RomneyDa deleted the perf/shared-periphery-watch-cache branch October 7, 2026 08:25
NerQuiLes pushed a commit to Xtampa-AI/openclaw that referenced this pull request Oct 11, 2026
Audit all 253 September-only commits against da0cbcc. Port only
applicable fixes and final companions, preserving October owners and
shipped upgrade contracts. Exclude September-specific waivers, schema
rollback, dependency changes, and credential-absence pass conditions.

Adapt retained ACP archive receipts without reopening retired custody;
retain SDK1.30.1 issuer fencing and explicit re-registration; exclude
standalone worker copies from beta.2 updater compatibility bridges.
Report settled Doctor release failures before the no-config early return.

Sources below are whole backports or scoped repair selections:

fix(discord): keep health inspection from blocking Gateway connections (openclaw#166736)
Source-commit: dc26366

fix: avoid foreign-listener race in Gateway acquisition proof (openclaw#166883)
Source-commit: bd0b97d

fix(ci): admit workspace package tests in Windows replay (openclaw#166895)
Source-commit: 9bc88a6

fix(release): restore beta.2 updater inventory and Podman control (openclaw#166872)
Source-commit: e203c64

fix(copilot): plugin tool calls fail from the second turn of a session (openclaw#164598)
Source-commit: c6e5ae8

fix(test): await WhatsApp inbound drain (openclaw#165842)
Source-commit: 05170cd

fix(qa-lab): keep SUT CLI in isolated launcher
Source-commit: 6681bcd

test(qa-lab): assert resolved companion CLI cwd
Source-commit: a60b458

fix(release): accept candidate-owned child evidence (openclaw#165357)
Source-commit: 500c95a

fix(acp): migrate metadata from retained sessions
Source-commit: 16398dc

fix(release): isolate first-hop service containment (openclaw#164898)
Source-commit: 85124fe

fix(release): isolate upgrade survivor scenarios (openclaw#165007)
Source-commit: aad828f

test(release): expect isolated survivor scenarios (openclaw#165009)
Source-commit: 02e7f91

fix(release): split restart auth validation (openclaw#165048)
Source-commit: 6160d9f

test: serialize PowerShell completion process suites (openclaw#166229)
Source-commit: 320e52b

fix(update): settle only this Doctor's commands in managed custody (openclaw#164868)
Source-commit: bdb44e2

fix(claude-cli): replies hang until the run times out when a background agent runs Bash (openclaw#165596)
Source-commit: 889611b

fix(whatsapp): synchronize shutdown test with durable admission (openclaw#166531)
Source-commit: 1f576e4

fix: prevent heartbeat live replies from abbreviating markers (openclaw#166777)
Source-commit: c4ed37e

fix(ci): keep full release validation within measured budgets (openclaw#166774)
Source-commit: 471f950

improve(ci): reuse Watch cache and expose shared scan build progress (openclaw#166498)
Source-commit: 66d898f

fix(e2e): normalize registry helper image modes (openclaw#163188)
Source-commit: 1a09bec

fix: MiniMax live validation misses Code Mode file reads (openclaw#163619)
Source-commit: fc23bc8

fix(test): read canonical ACP upgrade metadata
Source-commit: 46c8dd2

fix(qa): remove unavailable Telegram emoji fixture (openclaw#164956)
Source-commit: e785c56

fix(release): reconcile full validation regressions (openclaw#166200)
Source-commit: a3e349e

fix(release): unblock stable validation evidence (openclaw#166315)
Source-commit: 5ac0f82

fix(release): unblock 2026.9.9 full qualification (openclaw#166341)
Source-commit: 8aa6d7c

test(irc): await owned monitor signals (openclaw#163180)
Source-commit: 429ea8c

fix(release): unblock 2026.9.9 full validation (round 4) (openclaw#166485)
Source-commit: ccb390b

fix(release): repair Doctor teardown and FRV evidence recovery
Source-commit: 5d7fa8e

fix(release): bound FRV job reads and normalize ghost evidence
Source-commit: 1854d41

test(release): align priority fixture with bounded job pages
Source-commit: 4fd4fcc

fix(test): keep MCP validation connected after automatic pairing approval (openclaw#166849)
Source-commit: 0979efd

fix(release): address 2026.9.9 validation failures and retain diagnostics (openclaw#166962)
Source-commit: a024875

fix(release): repair fleet and CLI validation fixtures (openclaw#166977)
Source-commit: b899f42

fix: keep 2026.9.9 upgrades on state schema 19 (openclaw#166959)
Source-commit: bcfc888

fix(ui): keep passive chat viewers following incoming turns
Source-commit: 6d9689d

fix(doctor): commit transcript archive migration progress per batch and honor interruption (openclaw#165837)
Source-commit: 3a085ea

fix(doctor): restore release repair settlement
Source-commit: fab3a66

fix(release): reconcile FRV backports
Source-commit: 0c01cc6

fix(ui): refresh end geometry during interaction (openclaw#166239)
Source-commit: 5b71763

fix(ui): preserve follow intent across content growth (openclaw#166258)
Source-commit: ffcdd4d

fix(ui): gate content follow on height changes (openclaw#166301)
Source-commit: 4964263

fix(release): preserve gateway fixture close callback (openclaw#166348)
Source-commit: 64ad20a

test(ui): await collaborator smooth follow (openclaw#166285)
Source-commit: 90abf6a

Co-authored-by: Eric Curtin <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Abdel Gomez-Perez <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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