Skip to content

ci: publish scheduled SDK build cache - #185369

Merged
steipete merged 3 commits into
mainfrom
solid2/w-test-ci-sdk-cache-publication
Oct 27, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-test-ci-sdk-cache-publication

Conversation

@steipete

@steipete steipete commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The shared build-cache warmer publishes full declarations, while the UI CI producer needs the distinct SDK-only declaration record. The observed producer restored the archive successfully but still spent 137.8 seconds generating its missing SDK record.

After a successful scheduled-main build, publish the existing build-all cache tree using the existing key. This preserves full-profile records alongside the SDK-only record. It adds no compiler invocation or runner and does not change the full warmer, declaration ownership, cache identities or PR write permissions. Publication is restricted to trusted current main, with frozen, compatibility and release targets excluded. A dist-cache hit skips publication because no new build ran.

Archive compression/upload cost and compatible consumer hit rate are not yet measured. The 137.8-second phase is an opportunity bound, not a claimed saving.

Evidence

Check Result
Focused workflow cases 3 passed
Tooling types Passed
Actionlint / format / whitespace Passed
Scoped lint Passed
Independent review Original cache change and subsequent test correction both scoped-clean through P2
Actual publication and consumer cost Requires real scheduled main / downstream CI observation

No UI renderer or application startup code changes; screenshots and startup-size proof do not apply. The guard reuses existing workflow authority and tests its positive/denied contexts; no new production seam or cache owner.

Measured before

Current-main run 40434422133, head 8d50df8c2698cad92ed46ca967f68118ddb1a124, has a 977-second / 16.2833-minute producer job. The build-all archive restored in 0.642 seconds (68,268,686 bytes). The SDK writer used 137.8 seconds, including 133.3 seconds in its compiler. These nested times are not additive to the complete job. The table retains failed work and distinguishes API job spans from billing.

Job Checkout Env/deps Build/restore Browser Setup only Callback only Cleanup only Queue only Mixed Test unclassified Upload Other/env Post-job teardown Total
build-artifacts 0.5167 0.3667 5.6000 0.0500 0.7603 0.0359 0.0341 0.0000 0.0000 8.0531 0.1333 0.6500 0.0833 16.2833
checks-ui-e2e-real-gateway (2/2) 0.1667 0.3333 2.1333 0.0500 2.7394 3.7374 0.1884 0.0000 1.2070 3.5112 0.0667 0.0500 0.0500 14.2333
checks-ui-e2e (4/7) 0.5167 0.4000 0.0000 0.0667 0.2133 9.8251 0.0280 0.0000 0.7436 1.5068 0.0000 0.0500 0.0833 13.4333
checks-ui-e2e-real-gateway (1/2) 0.1833 0.3333 2.0667 0.0333 2.0081 2.9503 0.2146 0.0000 1.2155 3.3281 0.0500 0.0333 0.0500 12.4667
checks-ui-e2e (3/7) 0.5333 0.4000 0.0000 0.0667 0.0908 9.5803 0.0556 0.0000 0.6849 0.7717 0.0000 0.0333 0.0833 12.3000
checks-ui-e2e (2/7) 0.1833 0.4000 0.0000 0.0500 0.1156 8.9809 0.0208 0.0000 0.4824 0.6003 0.0333 0.0500 0.0667 10.9833
checks-ui-e2e (1/7) 0.2000 0.3667 0.0000 0.0333 0.0572 8.2874 0.0234 0.0000 0.9621 0.8366 0.0000 0.0333 0.0833 10.8833
checks-ui-e2e (6/7) 0.5333 0.3167 0.0000 0.0500 0.1333 7.8369 0.0558 0.0000 0.5631 1.0442 0.0667 0.0333 0.0500 10.6833
checks-ui-e2e (5/7) 0.5167 0.4167 0.0000 0.0667 0.1273 7.8378 0.0269 0.0000 0.5025 0.5222 0.0500 0.0500 0.0500 10.1667
checks-ui (2/3) 0.6000 0.4000 0.0000 0.0500 unobserved unobserved unobserved unobserved unobserved 6.1167 0.0000 0.0833 0.0667 7.3167
checks-ui (1/3) 0.1667 0.3667 0.0000 0.0500 unobserved unobserved unobserved unobserved unobserved 5.3500 0.0000 0.2333 0.0667 6.2333
checks-ui (3/3) 0.1667 0.4167 0.0000 0.0500 unobserved unobserved unobserved unobserved unobserved 5.2833 0.0000 0.1000 0.0833 6.1000
control-ui-performance 0.1833 0.5000 0.0000 0.0000 unobserved unobserved unobserved unobserved unobserved 1.8167 0.0000 0.0167 0.0167 2.5333
Total 4.4667 5.0167 9.8000 0.6167 6.2453 59.0719 0.6476 0.0000 6.3610 38.7409 0.4000 1.4167 0.8333 133.6167

The accepted checkpoint remains 88.33 comparable / 91.50 full minutes and 593 seconds; the original baseline is 106.00 comparable. The target is 74.20 comparable and ≤593 seconds. The exact-head measurement is below; it does not exercise scheduled publication or establish a causal cache saving. Independent cuts are not added together.

Current reviewed head b6e22b23664d0ae2a5b1b54b5b7eeb5abf685a7f. It includes the four-file cache publication change and a focused CI follow-up in two existing test files.

CI follow-up and remaining uncertainty

Run 40452534921, head 0c7b17fdd30b3d1791f422f07b83a47abc7aa405, failed three UI cases. The Claude catalog-header case also fails in completed scheduled-main run 40450656502. The plugin callout geometry and Cron catalog-publication cases passed that main run and passed one local reproduction on the PR run's exact main parent 96da011f80404ed03beafeacb0f8a1b3de0c6636. Neither is classified as inherited. The newer completed scheduled-main run 40456097192 passed all 13 UI jobs, so there is no current inherited UI attribution. Exact-head PR run 40457965281 completed successfully with all 13 selected UI jobs passing. The replacement PR-context check 40459438528 also passed after using the required problem/evidence headings.

The plugin test now waits for the same complete geometry contract after a viewport change: at least 14 px top/bottom padding, at least 16 px spacing, and contained content. It waits for the rendered alert to satisfy the contract instead of relying on a one-shot computed-style reading; thresholds and behavior are unchanged.

The Cron cause remains unresolved. Its original failure occurred while checking that the last successful catalog remains available after an injected failed read. The retained artifact showed a connected, ready page without browser errors but omitted picker state. The test now records a bounded trace of catalog request/reply/publication labels, pending counts, fixture option presence, and retained-draft booleans on failure, then rethrows the original assertion. This diagnostic addition is not a Cron fix. The exact-head CI run passed the unchanged model assertions. That passing run does not diagnose or repair the intermittent Cron cause.

Follow-up proof Result
Exact CI-base reproduction, unchanged tests 2 passed / 9 skipped; Cron 23.126 s, plugin 1.269 s; Vitest 195.97 s
Updated test source UI typecheck, targeted lint, format and whitespace passed
Fresh isolated review of follow-up Scoped-clean through P2
Updated test runtime Exact-head CI passed all 13 selected UI jobs, including plugin and Cron; no second local E2E invocation
Original public build preparation Passed in 21m 51.3s; avoidable local preparation, not a CI timing or savings claim

The local test wrapper additionally prepared its owned private QA runtime and matching UI assets. These setup costs are retained separately from test results. No task-owned remote lease was used.

Size

Six files, 18,083 → 18,233 LOC (net +150); no application runtime changes. The original cache publication adds 77 lines, and the two test follow-ups add 73 net lines for readiness and failure-only diagnostics.

Latest main cost receipt

Run 40456097192, head 1299676aacb6230a0960bd4f2178fb7ddd103849. 13/13 exact-job raw logs retained. All 13 UI rows are terminal; the whole workflow is completed/failure. Outer totals: 90.30 full /87.33 comparable minutes, 686 seconds completion path, with 13 UI passes and 0 failures. No savings claim.

The acceptance target remains 74.20 comparable minutes and a completion path ≤593 seconds. This is a current-main observation, not a measured effect of this SDK publication PR. The historical SDK compile observation above remains pinned to its own run.

Additive job and owner phases

All cells are runner minutes. Env/deps and browser are refined in the next table. Setup/callback/cleanup/queue/mixed/unclassified replace the original inclusive test cell and sum to it. Unclassified on a missing-log row means the entire test window is unresolved, not test execution.

Job Checkout Env/deps Build/restore Browser E2E selection Requirements WebKit Gateway prep Setup only Callback only Cleanup only Queue only Mixed Test unclassified Upload Other/env Post-job teardown Total
build-artifacts 0.6167 0.2667 3.2833 0.0500 0.0000 0.0000 0.0000 0.0000 0.5128 0.0235 0.0164 0.0000 0.0000 5.0473 0.2167 1.2833 0.0667 11.3833
checks-ui-e2e-real-gateway (1/2) 0.7000 0.2500 1.4333 0.0333 0.0000 0.0000 0.0000 0.0000 1.3787 2.0115 0.1063 0.0000 1.0390 2.1811 0.0333 0.0333 0.0667 9.2667
checks-ui-e2e-real-gateway (2/2) 0.5500 0.2333 1.4333 0.0500 0.0000 0.0000 0.0000 0.0000 1.5176 2.0019 0.0921 0.0000 1.0375 1.9509 0.0333 0.0333 0.0667 9.0000
checks-ui-e2e (4/7) 0.6000 0.2833 0.0000 0.0333 0.0000 0.0167 0.2000 0.0000 0.1356 5.6084 0.0122 0.0000 0.3967 0.9638 0.0000 0.0333 0.0833 8.3667
checks-ui-e2e (5/7) 0.6000 0.3000 0.0000 0.0333 0.0000 0.0167 0.0000 0.0000 0.1243 5.6971 0.0119 0.0000 0.3859 0.3809 0.0000 0.0333 0.0833 7.6667
checks-ui-e2e (1/7) 0.1500 0.3000 0.0000 0.0333 0.0000 0.0167 0.2000 0.0000 0.0338 5.5864 0.0078 0.0000 0.7420 0.3799 0.0000 0.0333 0.0500 7.5333
checks-ui-e2e (2/7) 0.1500 0.2667 0.0000 0.0333 0.0000 0.0167 0.0000 0.0000 0.1141 5.7548 0.0115 0.0000 0.3379 0.4483 0.0000 0.0333 0.0833 7.2500
checks-ui-e2e (3/7) 0.1500 0.2833 0.0000 0.0333 0.0000 0.0167 0.0000 0.0000 0.0573 5.7495 0.0287 0.0000 0.3600 0.3545 0.0000 0.0333 0.0667 7.1333
checks-ui-e2e (6/7) 0.1500 0.2833 0.0000 0.0333 0.0000 0.0167 0.0000 0.0000 0.0647 5.3135 0.0218 0.0000 0.3435 0.6731 0.0333 0.0333 0.0500 7.0167
checks-ui (3/3) 0.1667 0.3000 0.0000 0.0500 0.0000 0.0000 0.0000 0.0000 unobserved unobserved unobserved unobserved unobserved 3.6333 0.0000 0.0667 0.0667 4.2833
checks-ui (1/3) 0.1500 0.3333 0.0000 0.0333 0.0000 0.0000 0.0000 0.0000 unobserved unobserved unobserved unobserved unobserved 3.4500 0.0000 0.1833 0.0667 4.2167
checks-ui (2/3) 0.4167 0.3167 0.0000 0.0333 0.0000 0.0000 0.0000 0.0000 unobserved unobserved unobserved unobserved unobserved 3.3333 0.0000 0.0667 0.0500 4.2167
control-ui-performance 0.6333 0.4833 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 unobserved unobserved unobserved unobserved unobserved 1.8000 0.0000 0.0167 0.0333 2.9667
Total 5.0333 3.9000 6.1500 0.4500 0.0000 0.1000 0.4000 0.0000 3.9388 37.7467 0.3088 0.0000 4.6425 24.5966 0.3167 1.8833 0.8333 90.3000

Completed nested intervals are clipped to API job windows. Missing owner markers remain unclassified; callback-only can include fixture work or waits and is not pure CPU. Failed work and post-job teardown remain charged. The whole-workflow failure is distinct from the 13 passing UI jobs; the observer owns non-UI attribution.

Exact-head CI result

Run 40457965281 completed successfully at b6e22b23664d0ae2a5b1b54b5b7eeb5abf685a7f: 13 UI jobs passed, 86.77 comparable / 89.75 full runner-minutes, 557-second completion path. The producer took 436 seconds. The locale row was skipped. These API spans are not billing-invoice measurements.

The scheduled-main cache save does not run for PR events, so this successful run proves the changed workflow and tests, not publication savings. Actual upload cost and downstream SDK hits still need the first landed scheduled producer/consumer pair. The observed 557-second path is within the 593-second campaign checkpoint; no independent savings are added.

Env/deps is composite. Fixture/Gateway startup and cleanup remain inside inclusive tests unless separately named. Other preserves the prior reducer policy; see all step names/categories in JSON. These are whole-second GitHub timestamps, not billed-invoice measurements.

Job Result Checkout Env Install Env/deps Download Restore Build Browser Selection Requirements E2E WebKit E2E runtime Tests incl. Upload Other Teardown Total
checks-ui-e2e-real-gateway (1/2) success 0.60 0.00 0.00 0.23 0.00 0.00 1.47 0.03 0.00 0.00 0.00 0.00 6.78 0.03 0.03 0.07 9.25
checks-ui-e2e-real-gateway (2/2) success 0.60 0.00 0.00 0.23 0.00 0.00 1.45 0.03 0.00 0.00 0.00 0.00 6.60 0.03 0.03 0.05 9.03
checks-ui-e2e (4/7) success 0.53 0.00 0.00 0.28 0.00 0.00 0.00 0.03 0.00 0.02 0.20 0.00 7.15 0.00 0.03 0.07 8.32
checks-ui-e2e (2/7) success 0.58 0.00 0.00 0.30 0.00 0.00 0.00 0.03 0.00 0.02 0.00 0.00 6.85 0.02 0.03 0.07 7.90
checks-ui-e2e (1/7) success 0.62 0.00 0.00 0.28 0.00 0.00 0.00 0.03 0.00 0.00 0.20 0.00 6.50 0.00 0.03 0.05 7.72
checks-ui-e2e (6/7) success 0.60 0.00 0.00 0.28 0.00 0.00 0.00 0.03 0.02 0.00 0.00 0.00 6.57 0.03 0.03 0.05 7.62
checks-ui-e2e (5/7) success 0.60 0.00 0.00 0.30 0.00 0.00 0.00 0.03 0.00 0.00 0.00 0.00 6.47 0.00 0.03 0.08 7.52
checks-ui-e2e (3/7) success 0.60 0.00 0.00 0.28 0.00 0.00 0.00 0.03 0.00 0.00 0.00 0.00 6.35 0.00 0.03 0.07 7.37
build-artifacts success 0.62 0.00 0.00 0.27 0.00 0.00 2.73 0.03 0.00 0.00 0.00 0.00 3.48 0.03 0.03 0.07 7.27
checks-ui (1/3) success 0.53 0.03 0.00 0.33 0.00 0.00 0.00 0.03 0.00 0.00 0.00 0.00 4.28 0.00 0.18 0.05 5.45
checks-ui (2/3) success 0.58 0.02 0.00 0.32 0.00 0.00 0.00 0.05 0.00 0.00 0.00 0.00 3.70 0.00 0.05 0.07 4.78
checks-ui (3/3) success 0.58 0.02 0.00 0.30 0.00 0.00 0.00 0.03 0.00 0.00 0.00 0.00 3.48 0.00 0.05 0.08 4.55
control-ui-performance success 0.67 0.00 0.00 0.50 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1.77 0.00 0.02 0.03 2.98
Completed total 7.72 0.07 0.00 3.92 0.00 0.00 5.65 0.42 0.02 0.03 0.40 0.00 69.98 0.15 0.60 0.80 89.75

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 27, 2026
@clawsweeper

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

@steipete
steipete marked this pull request as ready for review October 27, 2026 03:07
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Oct 27, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-27T05:54:28.235007Z b6e22b2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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:feature Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR publishes existing SDK build-cache records after successful scheduled-main compilation.

Example: A scheduled main build generates the SDK declaration record that the full warmer does not produce.

  • Before: The record remains local, so a later compatible build generates it again.
  • After: The completed cache tree is published for later compatible builds to restore.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and source-consistent, with useful guard coverage but no demonstrated after-fix cache benefit.
Proof confidence 🦐 gold shrimp (3/6) The ordinary proof gate is exempt for this maintainer-authored PR; supplied evidence covers workflow conditions and prior costs, while actual publication, consumer reuse, and net upload cost remain unmeasured.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: CI regenerates an SDK declaration record despite restoring the shared build-cache archive.
Reason: The maintainer-directed change targets observed repeated work with a small addition and explicitly avoids claiming unmeasured savings.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed PR adds useful cache publication missing from current main, with no concrete introduced defect identified; its failed CI gate still needs attribution.

Priority: P2
Reviewed head: 479e0b85307de9f1f4fc895ca4cbc42b8dc56fe7

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No after-fix scheduled publication and compatible downstream reuse is supplied, and base-red/head-green execution of the added guard is not shown.
Agent review details

How this fits together

The CI artifact producer compiles runtime, UI, and SDK outputs; the shared setup action restores immutable cache generations, and individual build owners validate records before reuse.

flowchart LR
  A[Scheduled main] --> B[Preflight trust classification]
  B --> C[Restore build cache]
  C --> D[Compile CI artifacts]
  D --> E[Guarded cache publication]
  E --> F[Compatible later builds]
Loading

Technical review

Best possible solution:

Retain the focused publication step and existing record validation, then assess its net benefit from scheduled publication and compatible consumer observations.

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

This is a CI optimization rather than a broken runtime contract; source confirms the distinct SDK record and missing publication path.

Is this the best way to solve the issue?

The patch is the smallest complete change: publish already-produced records through the existing cache action without adding compilation, cache identity, or another validity owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Tests +57, Docs +11, Config +9. Total +77 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 57 0 +57
Docs 2 11 0 +11
Config 1 9 0 +9
Generated 0 0 0 0
Other 0 0 0 0
Total 4 77 0 +77

Review metrics

Metric Value Why it matters
Production versus test growth Workflow +9 lines; tests +57 lines The small publication step reuses existing owners; the guard protects distinct allowed and denied publication contexts.

Labels

Label changes:

  • add P2: This is a bounded CI efficiency improvement with an observed repeated declaration phase and no application-runtime change.
  • 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: This is a bounded CI efficiency improvement with an observed repeated declaration phase and no application-runtime change.
  • 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.

  • Observe scheduled publication and compatible downstream reuse, including archive upload cost.

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 October 26, 2026, 11:24 PM ET / October 27, 2026, 03:24 UTC.

Keep the existing callout geometry contract while waiting for the rendered node after viewport changes. Capture bounded synthetic catalog and picker facts only when the existing Cron model assertion fails; the intermittent catalog failure remains unresolved.
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 27, 2026
@steipete
steipete merged commit 928b4a2 into main Oct 27, 2026
152 of 158 checks passed
@steipete
steipete deleted the solid2/w-test-ci-sdk-cache-publication branch October 27, 2026 06:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
* ci: publish scheduled SDK build cache

* test(ui): await callout geometry and diagnose catalog refreshes

Keep the existing callout geometry contract while waiting for the rendered node after viewport changes. Capture bounded synthetic catalog and picker facts only when the existing Cron model assertion fails; the intermittent catalog failure remains unresolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. docs Improvements or additions to documentation 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