Skip to content

fix(build): avoid compiler setup when copying plugin assets - #194680

Merged
vincentkoc merged 1 commit into
mainfrom
perf/ci-plugin-copy-imports-20261108
Nov 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf/ci-plugin-copy-imports-20261108

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Each plugin asset copy loads the UI compiler and plugin metadata machinery even though it only copies an already-built immutable asset directory. Recent CI job 128453130944 invokes this path ten times during its private-QA runtime build.

User Impact

Runtime builds do less repeated setup. Copied assets, manifest handling, output-root checks, and Settings build ownership stay the same.

Why This Change Was Made

Load build and Settings dependencies only in those branches. Keep copy mode limited to filesystem operations and the existing output-root guard. No test selection, runner size, cancellation, or isolation changes.

Evidence

  • The new real-command regression fails on the base because copy mode requires the absent source toolchain, then passes with identical JavaScript/CSS bytes and an unchanged authored manifest.
  • All three command tests pass, including concurrent Settings builders and immutable asset rebuilds. Scoped script/test typechecks, lint, formatting, and diff checks pass.
  • One local Node 26.13.0 comparison with the same fixture and loader: 728 loaded modules (166 source modules), 0.582142s → 3 modules (zero source modules), 0.107167s. Both commands copied identical bytes. This is focused local evidence, not measured CI or billing savings.
  • Fresh independent review: no findings. Full committed-range local ClawSweeper review: no actionable findings at b0e66c926ca2bb9ad4c5d24001018724ecd9897d against 413da25. Rebased patch-identically onto f4c6c33; affected source modules are unchanged. Local static proof used the earlier frozen dependency set. Normal Linux CI job128457566317 passed all three command tests on the current dependency set (6.525s suite; new copy case10ms). Remaining merge gates are still running.

@vincentkoc vincentkoc self-assigned this Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 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 the scripts Repository scripts label Nov 7, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 7, 2026 16:18
@vincentkoc
vincentkoc enabled auto-merge (squash) November 7, 2026 16:26
@vincentkoc
vincentkoc merged commit adb834d into main Nov 7, 2026
166 of 167 checks passed
@vincentkoc
vincentkoc deleted the perf/ci-plugin-copy-imports-20261108 branch November 7, 2026 16:26
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant