Repository navigation
perf(ci): use runtime-only builds for Node test prerequisites - #134294
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 1:17 PM ET / 17:17 UTC. ClawSweeper reviewWhat this changesThe PR changes Node-test CI setup to use the existing runtime-only Merge readinessThe prior build-info blocker is disproved: Priority: P2 Review scores
Verification
How this fits togetherNode-test CI shards prepare compiled CLI artifacts before Vitest workers start. The chosen profile must supply runtime JavaScript, plugin assets, provenance, and freshness artifacts, while the dedicated artifact job retains UI and SDK declaration validation. flowchart LR
Matrix[Node test matrix] --> Prebuild[Pretest build step]
Prebuild --> Profile[qaRuntime profile]
Profile --> Runtime[CLI runtime and plugin assets]
Runtime --> Metadata[Build provenance and freshness stamps]
Metadata --> Shards[Vitest test shards]
ArtifactJob[Artifact validation job] --> Validation[Control UI and SDK declarations]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0, Docs 0, Config -1. Total -1 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the runtime-only profile after exact-head native CI/Testbox confirms the selected Node shards retain their runtime artifacts and freshness checks; no additional provenance writer is needed. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a CI optimization, not an end-user bug report. The relevant contract is source-reproducible through the build-profile, consumer-planner, and workflow-guard evidence. Is this the best way to solve the issue? Yes. Reusing the existing runtime-focused profile preserves one canonical build path for runtime consumers while leaving UI and SDK declaration validation with its dedicated job. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c62251f552c6. LabelsLabel changes:
Label 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 (1 earlier review cycle)
|
|
The provenance finding is disproved by the existing postbuild owner and a clean exact-head reproduction. At head The requested workflow/build-profile guards also pass (76 cases), as do the full changed-file and canonical workflow gates. I am retaining |
|
Merged via squash.
|
Node test shards currently rebuild plugin SDK declarations and Control UI before running tests that consume only the compiled CLI runtime. In the retained native run, SDK declarations alone consumed 149.4 seconds of a 236.1-second pretest build.
Use the existing
qaRuntimebuild profile for these prerequisites. It keeps runtime JavaScript, plugin assets, private QA entry selection, build provenance, freshness stamps, and the build-before-workers ordering. The separatebuild-artifactsjob continues to own SDK declaration and Control UI validation. Release/package builds are unchanged. No jobs, runners, configuration options, concurrency caps, timeouts, or tests are removed.Validation: all 75 existing build-profile tests plus the changed workflow guard pass; the guard was observed failing before the command change. The full changed-file gate, canonical workflow checks, and scoped Codex review pass. Parsed-workflow comparison changes only the pretest command. Two cold local exact-head builds completed in 53.46 seconds (ordinary) and 47.41 seconds (private QA), starting with no dist trees. All five registered consumer files / 12 cases passed through their normal configs without a runtime rebuild. Both builds retained exact-head build-info and freshness stamps; runtime-postbuild owns provenance publication. Native CI/Testbox results remain required before landing; these local times are not directly comparable to the retained hosted baseline.
Runtime production LOC: 0. Workflow: 4 added / 5 removed. Documentation: 5 / 5. Existing test assertion: 1 / 1.