Repository navigation
perf(ci): instrument build artifacts phases - add timing - #87514
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 28, 2026, 1:30 AM ET / 05:30 UTC. Summary PR surface: Tests +33, Config -3, Other +47. Total +77 across 4 files. Reproducibility: not applicable. This PR is CI/build tooling instrumentation rather than a bug report. Source inspection confirms the cleanup premise: current Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the timing instrumentation and duplicate-step removal only after the current build-artifacts CI path finishes cleanly on the reviewed head. Do we have a high-confidence way to reproduce the issue? Not applicable; this PR is CI/build tooling instrumentation rather than a bug report. Source inspection confirms the cleanup premise: current Is this the best way to solve the issue? Yes, pending completed CI; timing the existing AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 44027e72d07e. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +33, Config -3, Other +47. Total +77 across 4 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
ClawSweeper PR egg: ✨ hatched 🥚 common Pearl Test Hopper. Rarity: 🥚 common. Trait: polishes edge cases. DetailsShare on X: post this hatch
About:
|
0963393 to
9cb4192
Compare
Summary
Adds lightweight phase timing instrumentation to
scripts/build-all.mjssopnpm build:ci-artifactsreports each build phase duration and a slowest-first summary in CI logs. Also removes the now-duplicateBuild Control UIworkflow step because theciArtifactsbuild profile already runsui:build.This is instrumentation only; build optimization is intentionally deferred until CI timing data identifies the actual bottleneck.
Related Work
build:ci-artifactsresponsible forui:build.dist/control-uimissing because the UI build is only documented, not enforced #85206.Verification
pnpm exec oxfmt --check scripts/build-all.mjs test/scripts/build-all.test.ts test/scripts/ci-workflow-guards.test.ts .github/workflows/ci.ymlpnpm exec oxlint scripts/build-all.mjs test/scripts/build-all.test.ts test/scripts/ci-workflow-guards.test.ts.agents/skills/autoreview/scripts/autoreview --mode localFocused Vitest note:
node scripts/run-vitest.mjs ...was attempted againsttest/scripts/build-all.test.tsandtest/scripts/ci-workflow-guards.test.ts, but the local Vitest process hung without output twice in this Codex worktree. I stopped those local processes and used the direct probe plus formatter/lint/autoreview proof above.Real behavior proof
Behavior addressed:
build-artifactsCI logs did not show whichbuild:ci-artifactsphase was slow, and CI still ran a separatepnpm ui:buildafterbuild:ci-artifactseven though the profile already includesui:build.Real environment tested: Local Codex worktree on macOS, Node via repo wrappers, branch
codex/perf-build-artifactsat commit0963393da8.Exact steps or command run after this patch: Ran the formatter, oxlint, a direct Node probe that imports
scripts/build-all.mjsand parses.github/workflows/ci.yml, and autoreview on the local diff.Evidence after fix: The direct probe verified that
ciArtifactsstill includesui:buildbeforewrite-build-info, timing summary output sorts slowest phases first, and thebuild-artifactsworkflow no longer contains the duplicateBuild Control UI/pnpm ui:buildstep.Observed result after fix:
build-allnow prints per-phase elapsed time and a compact final timing summary, while the CI workflow relies onpnpm build:ci-artifactsfor Control UI artifacts without a second UI build.What was not tested: A full GitHub Actions
build-artifactsrun was not triggered from this branch. Local focused Vitest did not complete due to the hung local runner described above.