Skip to content

fix(ci): prepare runtime artifacts before live image tests - #133092

Merged
steipete merged 1 commit into
mainfrom
codex/frv-image-source-startup
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/frv-image-source-startup

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

Full release verification timed out in native image tests before provider work completed. A cold source import of the OpenAI plugin took 128.43 seconds in isolation, following the provider-auth to provider-registry loader back-edge. That compilation work was consuming the test deadline before the image request.

Extend the existing live-shard preparation owner to build the sourcePerformance profile for shards containing image-tool provider or OpenAI plugin live tests. This supplies executable provider and agent artifacts before Vitest starts. The gateway-only diagnostic environment stays scoped to gateway-profile shards. No provider request, model, timeout, assertion, or selected test file changes.

Verification

  • Regression: both selected image-bearing shards previously resolved no build preparation; both now resolve the existing profile. The process-signal fixture uses the unrelated infrastructure shard so it continues to isolate signal forwarding.
  • 100 runner and build-profile tests passed; the sourcePerformance build and full changed-file gate passed.
  • Independent managed Codex review passed through P2 with no findings.
  • Fresh-home live proof, with isolated state and caches: OpenAI image tool passed in 13.962s, Anthropic image tool in 6.168s, and the exact OpenAI plugin image-description case in 7.842s. No provider-skip warnings; seven unrelated plugin cases were explicitly filtered in that focused proof. Existing request and test deadlines were unchanged.

Runtime production delta is zero. Tooling is +19/-8, tests +20/-13, and docs +2/-0. The small tooling increase represents the existing build owner's new prerequisite selection, not a second runtime path.

Follow-up: reduce cold source-plugin Jiti import cost across provider auth and registry loader back-edges. This preparation fix does not claim to eliminate that separate source-loader cost. The full release run is still blocked on other repairs and will be repeated on a frozen repaired commit; these focused results do not claim a green full release.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 30, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 1:25 AM ET / 05:25 UTC.

ClawSweeper review

What this changes

The PR prepares the existing sourcePerformance runtime-artifact build before the agent image-tool and OpenAI-plugin live-test shards start Vitest, while leaving gateway-only diagnostic environment settings scoped to gateway profiles.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

Keep open. This focused CI repair is correct and still necessary: current main prepares only gateway-profile shards, while this branch prepares the existing runtime build profile for the two image-bearing shard paths. It is member-authored and carries the protected maintainer label, so it should follow normal maintainer review and exact-head CI completion.

Priority: P2
Reviewed head: 47e225750243b39d7d89c29ef832a69a9804393c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, canonical CI repair with regression coverage and no correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable: this member-authored CI-tooling PR is exempt from the external-contributor proof gate; its supplied focused live-run results are consistent with the changed shard entry point.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable: this member-authored CI-tooling PR is exempt from the external-contributor proof gate; its supplied focused live-run results are consistent with the changed shard entry point.
Evidence reviewed 7 items Introduced preparation selection: The introduced condition selects the existing runtime-artifact profile when the selected files contain either affected live test, and retains diagnostic environment variables only for gateway-profile selections.
Runner execution boundary: The shard entry point resolves preparation, runs the selected build profile, verifies its runtime stamp, and only then starts Vitest.
Existing build-profile contract: The reused sourcePerformance profile builds plugin assets and compiled runtime output, runs runtime postbuild, and writes the required runtime-postbuild stamp without the Control UI build.
Findings None None.
Security None None.

How this fits together

The live-shard runner maps release CI shard names to live test files, selects required build preparation, then launches Vitest. The preparation step ensures provider and agent runtime artifacts exist before tests make their live requests.

flowchart LR
  A[Release live CI shard] --> B[Select live test files]
  B --> C[Choose build preparation]
  C --> D[Build runtime artifacts]
  D --> E[Verify runtime stamp]
  E --> F[Launch Vitest]
  F --> G[Live provider tests]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +7, Docs +2, Other +11. Total +20 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 20 13 +7
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 19 8 +11
Total 3 41 21 +20

Review metrics

Metric Value Why it matters
Production versus test delta production +0; tooling +11; tests +7; docs +2 The runtime product is unchanged; the small tooling increase reuses the existing build-profile owner and adds focused shard-selection coverage.

Technical review

Best possible solution:

Merge the existing preparation-owner extension once the normal exact-head CI gates complete, preserving the focused shard tests and gateway-only diagnostic scope.

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

Yes, source-reproducible: the pinned main implementation selects no preparation for the affected agent and OpenAI shard files, while the runner launches them through the preparation boundary before Vitest.

Is this the best way to solve the issue?

Yes. Extending the existing preparation selector is the narrowest canonical fix: it reuses the build profile and preserves the gateway diagnostic environment boundary instead of adding another runner path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against cfddfc2f700e.

Labels

Label changes:

  • add P2: This repairs a bounded release-CI reliability failure in two live provider-test shard paths.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable: this member-authored CI-tooling PR is exempt from the external-contributor proof gate; its supplied focused live-run results are consistent with the changed shard entry point.

Label justifications:

  • P2: This repairs a bounded release-CI reliability failure in two live provider-test shard paths.
  • 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: Not applicable: this member-authored CI-tooling PR is exempt from the external-contributor proof gate; its supplied focused live-run results are consistent with the changed shard entry point.

Evidence

What I checked:

  • Introduced preparation selection: The introduced condition selects the existing runtime-artifact profile when the selected files contain either affected live test, and retains diagnostic environment variables only for gateway-profile selections. (scripts/test-live-shard.mts:399, 47e225750243)
  • Runner execution boundary: The shard entry point resolves preparation, runs the selected build profile, verifies its runtime stamp, and only then starts Vitest. (scripts/test-live-shard.mts:756, 47e225750243)
  • Existing build-profile contract: The reused sourcePerformance profile builds plugin assets and compiled runtime output, runs runtime postbuild, and writes the required runtime-postbuild stamp without the Control UI build. (scripts/build-all.mts:313, 47e225750243)
  • Regression coverage: A table-driven test verifies both affected shard selections return the profile and artifact requirement, which would have returned null on the base revision; the signal fixture now uses the unrelated infrastructure shard to avoid invoking a real build. (test/scripts/test-live-shard.test.ts:257, 47e225750243)
  • Current-main comparison: The pinned main parent resolves preparation only for gateway-profile files or the QA runtime test, so neither image-bearing shard receives the required runtime preparation there. (scripts/test-live-shard.mts:399, cfddfc2f700e)
  • Release workflow caller: The release workflow invokes the named agent shard through this runner; the shard-selection change therefore reaches the live-test entry point without introducing a parallel workflow path. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml:3996, 47e225750243)

Likely related people:

  • unknown: The blamed commit carries this line unchanged from a recorded parent; no introducing author is attributed. (role: carried-forward source line; 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.

@steipete
steipete merged commit d567246 into main Aug 30, 2026
163 checks passed
@steipete
steipete deleted the codex/frv-image-source-startup branch August 30, 2026 05:31
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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