Repository navigation
ci: distribute lint and reuse native SDK declarations - #135302
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 1:44 PM ET / 17:44 UTC. ClawSweeper reviewWhat this changesThe PR distributes memory-bounded extension lint programs over six existing hosted jobs and lets them reuse a validated native Plugin SDK declaration cache. Merge readinessKeep this maintainer-owned CI PR open for normal maintainer handling. The introduced routing uses the existing lint-shard and declaration-owner boundaries, and the prior rank-up CI confirmation is recorded; no introduced correctness defect was found, but the supplied test merge is stale relative to current main. Priority: P3 Review scores
Verification
How this fits togetherGitHub Actions prepares Plugin SDK declaration artifacts before extension lint consumes them. A protected cache-warmer publishes those artifacts, while the hosted lint jobs restore them and run disjoint portions of the lint inventory. flowchart LR
Source[Repository source] --> Warmer[Protected cache warmer]
Warmer --> Cache[Validated SDK declaration cache]
Cache --> Core[Five hosted core lint jobs]
Cache --> Lint[Hosted lint job]
Core --> Results[CI gate]
Lint --> Results
Decision needed
Why: The code review found no introduced defect, but only a maintainer can accept the remaining merge-context uncertainty for an infrastructure change on a protected maintainer item. Before merge
Agent review detailsSecurityNone. PR surfaceTests +373, Docs +2, Config +86, Other +31. Total +492 across 14 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single validated declaration producer and the six-way disjoint lint partition, then land only through the repository’s current-main merge validation path. Do we have a high-confidence way to reproduce the issue? Not applicable: this is CI infrastructure work, and the relevant reproduction is workflow execution rather than an end-user failure path. The supplied discussion records exact-head CI and a hosted-reader run, but this review did not execute repository code. Is this the best way to solve the issue? Yes. The PR reuses the existing shard selector and declaration-preparation owner instead of creating a parallel lint or cache path; current main does not yet contain the central extension-stripe capability. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e2af1ca885ce. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
The current head The six-way hosted reader path is independently proven in run 33535369118: all six jobs restored the protected producer archive, reported fresh native SDK declarations, and ran all 21 Programs exactly once in 207–261 seconds per job. That run’s separate dependency-download failure and the native run’s preceding TS7056 failure remain documented in the PR; neither is counted as passing proof. The cache-schema note concerns disposable compiler cache receipts under a versioned v4 key, with mandatory freshness validation and rebuild on a miss. It does not change a runtime database, SQLite schema, or persisted user data. Backend-local seed ownership is explicit in the CI guide. The full native workflow took 12m05s, so the whole-CI five-minute goal is still open. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* ci: prepare only SDK declarations for lint * test: align lint preparation resource fixture * ci: distribute lint and publish reusable SDK cache * docs: distinguish lint and package-boundary declarations * docs(ci): clarify backend-local cache seeds
What Problem This Solves
CI rebuilt unnecessary plugin declarations before lint, then ran every memory-bounded plugin lint Program in one hosted job. Restored declaration archives also missed their own validation because machine-local pnpm metadata, a repository-local package store, and outputs from a different build owner changed the signature.
Why This Change Was Made
Lint now prepares only the SDK declarations that its package-boundary imports consume. Current non-release GitHub-profile runs distribute the existing independent plugin Programs across the five core-lint jobs and the existing lint job. Each job keeps its existing serial execution, memory limits, thread limits, and arguments; the union is exact and disjoint. Hybrid, Blacksmith, release and historical-target ownership retain their existing routing. No jobs or runner capacity are added.
The existing protected warmer becomes the native SDK cache publisher. It restores and validates a candidate, prepares the SDK, saves the v4 archive, and removes exactly the native SDK output before the full build. This keeps native and packaged declaration owners from contaminating each other's resolution topology. All ordinary CI consumers remain restore-only, and the native preparer still validates compiler/config inputs, source membership, installed topology, required outputs, and output bytes before reuse.
The shared compiler snapshot excludes only the separate root package store. Installed hardlinks, aliases, explicit inputs, consumed bytes, and new resolution candidates still invalidate it. The native SDK generator stops treating pnpm's machine-local modules manifest as compiler input; its actual package-management readers are unchanged.
User Impact
Lint reuses validated SDK declarations and spreads its existing plugin checks across existing hosted jobs. Test coverage, resource limits, and runner capacity are unchanged. The CI guide explains the separate cache seeds required by GitHub and Blacksmith.
Evidence
The integrated root run passed 261 cache and workflow cases, plus 101 lint selection, resource, process-lifecycle and ownership cases. Both script and root-test typechecks pass. Focused type-aware lint, formatting, actionlint, zizmor and the repository workflow guards pass. The standard workflow wrapper could not install its pinned pre-commit version in the local package index; its available pinned tools and repository guards were run directly with the configured arguments. Executable shell fixtures exercise GitHub, hybrid, Blacksmith, release and frozen-target routing, cache publication order, and exact cleanup while preserving sibling outputs and source.
Regression evidence fails on the prior implementation for stripe routing, package-store portability, and pnpm metadata-only reuse. Installed dependency changes and higher-priority resolution candidates still invalidate a sealed record. Independent realistic snapshot fixtures also demonstrate both directions of native/package output contamination and that removing only the foreign output restores the original signature. The actual inventory remains 21 independent Programs, divided 4/4/4/3/3/3 without changing any Program arguments.
Independent source review and managed Codex review found no actionable findings. The hosted dispatch below exercises the six-way path; an ordinary hybrid retry does not exercise it. Each completed reader printed the native preparer's fresh/skipping result after restoring its archive, so reuse is proven beyond an archive hit. Exact-head PR CI 33537152082 passed all 154 executed jobs on
ee6a443e4ea9a9ed43f1a763d8640778ce16dfd5.Timing and scope
The prior hosted run spent 483.461 seconds in the serial plugin lint bodies. In hosted reader run 33535369118, all six lint jobs passed in 207–261 seconds from job start, including checkout, dependency setup, validated SDK reuse, and lint. The 21 plugin Programs ran exactly once with the expected 4/4/4/3/3/3 partition. The 104-second preflight moved their workflow-relative finishes to 319–373 seconds, so this is not a whole-CI five-minute result.
Product runtime LOC is unchanged. CI scripts add 31 net lines for selection and correct cache inputs; workflow wiring adds 86 net lines for existing-job readers and the protected publisher. Tests add 373 net lines; documentation adds two. The test reference now distinguishes SDK-only lint from the full package-boundary compiler. The parser reuses the existing stripe validator, and obsolete full-plugin lint preparation is removed. Internal CI work does not require a product changelog entry.
Review follow-through
The declaration-consumer reference finding in ClawSweeper comment 5497213363 is corrected in
docs/reference/test.md; the narrow preparer and the full TypeScript boundary owner remain separate. The updated reference passed its own managed review. Exact-head native CI is now green. The complete run took 12m05s; its Docker tail finished 11m56s after workflow creation. The five-minute whole-workflow goal remains open.The native SDK producer successfully prepared and saved its v4 generation in run 33534280845. Blacksmith and GitHub use separate cache backends, so a second protected warmer on an isolated hosted proof branch, run 33534964035, seeded GitHub for the same source commit. The temporary runner-backend setting was restored to
hybridafter that hosted job was assigned. GitHub cache entry 7212022572 contains 4,815,906 bytes.All six completed readers in run 33535369118 restored the exact key
Linux-extension-package-boundary-v4-8bd06d8ae064dbf6945b7bfae747e2e1191093b4, extracted that archive in 0.730–1.831 seconds, and printed[plugin-sdk boundary dts] fresh; skipping. Native receipt validation and startup took about 4.5–4.9 seconds after core lint in those jobs. The CI guide now states that each runner backend needs its own protected seed; matching keys do not copy archives between providers. One separate type-check job in the proof run failed during a Matrix SDK binary download withECONNRESETbefore tests started; same-run peers downloaded the identical asset successfully. That failure is not counted as a successful type check or a successful whole workflow.The final ClawSweeper review on this exact head has no actionable source findings. Its requested CI confirmation is complete; the separate hosted reader proof covers the six-way path. The v4 compiler cache is disposable and validated before reuse; it is not an OpenClaw runtime database or user-data schema change. Prior invalid or absent entries rebuild through the existing owner. The preceding native run failed on TS7056, repaired independently on main by #135360 before the passing run.