Skip to content

Decrease windows build time caused by data-liberation-agent#4185

Merged
nightnei merged 4 commits into
trunkfrom
fixWindowsBuildTimeWithRemovingDlaDep
Jul 13, 2026
Merged

Decrease windows build time caused by data-liberation-agent#4185
nightnei merged 4 commits into
trunkfrom
fixWindowsBuildTimeWithRemovingDlaDep

Conversation

@nightnei

@nightnei nightnei commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

AI assisted with investigation and writing code

Proposed Changes

As mentioned in the issue STU-2027 - build time for Windows x64 increases by 8 minutes. Interesting results of the investigations are in comments under the Linear issue.

The sultion - we already have mcp-server.bundle.mjs so we can reuse it, additionally clone skills and otehr necessary files and remove direct dependency.
As a result:

  1. data-liberation-agent takes just a few MB
  2. Build time returned to the old numbers, see:

Example w/o data-liberations (it was taken from this test PR #4176):
Screenshot 2026-07-10 at 22 54 57

Example after changes in this PR(I did 2 tests):
Screenshot 2026-07-10 at 21 54 11
Screenshot 2026-07-13 at 14 55 55

Testing Instructions

Visual review should suffice, but you can test with:

  1. npm run cli:build && node apps/cli/dist/cli/main.mjs code
  2. /liberate https://neicss.wixsite.com/sunflower-valley-exp
  3. Assert that it works
  4. Check the buildkite build for Windows x64 on this PR and assert that you see build time for Windows x64 as ~35 mins

@nightnei nightnei self-assigned this Jul 13, 2026
@nightnei nightnei changed the title Test w/o dep Decrease windows build time caused by data-liberation-agent Jul 13, 2026
@wpmobilebot

wpmobilebot commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing 2583451 vs trunk

app-size

Metric trunk 2583451 Diff Change
App Size (Mac) 1419.48 MB 1350.13 MB 69.35 MB 🟢 -4.9%

site-editor

Metric trunk 2583451 Diff Change
load 1074 ms 1077 ms +3 ms ⚪ 0.0%

site-startup

Metric trunk 2583451 Diff Change
siteCreation 7022 ms 7001 ms 21 ms ⚪ 0.0%
siteStartup 2352 ms 2352 ms 0 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@nightnei nightnei requested a review from sejas July 13, 2026 13:56

@sejas sejas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good! I was able to run Studio Code and the liberate skill without any issues 👍

Image


async function connectClient(): Promise< Client > {
if ( ! existsSync( path.join( engineDir, 'dist', 'mcp-server.js' ) ) ) {
if ( ! existsSync( path.join( engineDir, 'dist', 'mcp-server.bundle.mjs' ) ) ) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude suggested this filename renaming too 👍

@nightnei nightnei merged commit 76ccd80 into trunk Jul 13, 2026
16 checks passed
@nightnei nightnei deleted the fixWindowsBuildTimeWithRemovingDlaDep branch July 13, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants