Context
#18815 (Dependabot, webpack 5.110.3 → 5.111.0) merged green, and npm run build-all was red the next morning (#18833, fixed by #18834). The operator's constraint for a CI observer: up to about 5 minutes per run is fine; more is a problem.
The Problem
No CI job runs neo's own build. The only job that runs webpack in production mode, consumer-runtime-build.yml's guard, ran on #18815 and passed, because it compiles only the Data-worker and Main configs of a consumer fixture. Build breaks that the existing suites cannot see include:
- a dependency bump (#18815 → #18833);
- a source or test file pulled into a lazy webpack context (#12298: unit specs under
apps/ matched src/worker/Data.mjs's include and bundled @playwright/test);
- a build-script change.
The second class comes from src/ and test/, not from dependency files, so a path filter on package*.json alone would miss it.
The Architectural Reality
npm run build-all (buildScripts/build/all.mjs -f -n) runs npm i (skippable with -l no), the browser-dependency bundles (parse5, marked, mermaid, monaco, highlight.js, which clones a repo), themes, buildThreads in dev and prod, esm, generate-docs-json, the docs copies, and SEO. Local timing at 7b19aa730c on Apple Silicon: npm ci 2 s with a warm cache, build-all 40 s, of which buildThreads is 22.6 s.
- GitHub runners are much slower. Calibration from PR #18834's own checks:
unit 148 s, e2e-engine 287 s, components 500 s. The new job runs in parallel with these, so what it adds is its own duration, not wall time.
- House conventions:
consumer-runtime-build.yml for the shape (actions/checkout@v7, actions/setup-node@v7, node 24, cache: 'npm', npm ci --ignore-scripts, a concurrency group keyed on run_attempt).
The Fix
Add .github/workflows/build.yml, triggered on pull_request to dev with no path filter. The PR's own runs decide the final shape:
- The first run times two candidate jobs on
ubuntu-latest. build-all runs npm ci --ignore-scripts then npm run build-all -- -l no. threads-prod runs npm ci --ignore-scripts, npm run bundle-parse5 && npm run bundle-marked, then npm run build-threads -- -n -e prod -t all.
- A deliberate red control: one commit reverts
minimizer-webpack-plugin to 5.8.0 in the lock, the kept job must go red with the #18833 error, and a revert commit follows. No force-push.
- Keep
build-all if its job takes ≤ 5 min on the runner. Otherwise keep threads-prod. The other job is removed before merge.
Acceptance Criteria
Out of Scope
- Stale npm
overrides detection. Dependabot does not manage overrides; that is a separate cross-repo check.
- Caching build outputs between runs.
- Running the build on push to
dev: by then the break has already merged.
Avoided Traps
- Path filter on
package.json / package-lock.json: misses the #12298 class, which comes from src/ and test/.
npm run build-all without -l no: runs a second npm i on top of npm ci, which is slower and can drift from the lock.
- Extending
consumer-runtime-build.yml: its contract is the installed-consumer case ("builds this package from OUTSIDE itself"). Neo's own apps are a different contract.
Related
Live latest-open sweep: checked the latest 20 open issues at 2026-09-18T09:42:22Z, and no equivalent was found. A2A in-flight sweep: no claim on CI or the build since 09:13Z. Memory Core sweep: no prior decision on a neo build job. Own-assigned sweep: no same-surface issue.
Retrieval Hint: "CI build-all job runner duration dependency bump merged red"
Origin Session ID: 6ed6621f-e2e4-4b9d-9a95-744679cb3c59
Context
#18815 (Dependabot, webpack 5.110.3 → 5.111.0) merged green, and
npm run build-allwas red the next morning (#18833, fixed by #18834). The operator's constraint for a CI observer: up to about 5 minutes per run is fine; more is a problem.The Problem
No CI job runs neo's own build. The only job that runs webpack in production mode,
consumer-runtime-build.yml'sguard, ran on #18815 and passed, because it compiles only the Data-worker and Main configs of a consumer fixture. Build breaks that the existing suites cannot see include:apps/matchedsrc/worker/Data.mjs's include and bundled@playwright/test);The second class comes from
src/andtest/, not from dependency files, so a path filter onpackage*.jsonalone would miss it.The Architectural Reality
npm run build-all(buildScripts/build/all.mjs -f -n) runsnpm i(skippable with-l no), the browser-dependency bundles (parse5, marked, mermaid, monaco, highlight.js, which clones a repo), themes,buildThreadsin dev and prod, esm,generate-docs-json, the docs copies, and SEO. Local timing at7b19aa730con Apple Silicon:npm ci2 s with a warm cache,build-all40 s, of whichbuildThreadsis 22.6 s.unit148 s,e2e-engine287 s,components500 s. The new job runs in parallel with these, so what it adds is its own duration, not wall time.consumer-runtime-build.ymlfor the shape (actions/checkout@v7,actions/setup-node@v7, node24,cache: 'npm',npm ci --ignore-scripts, aconcurrencygroup keyed onrun_attempt).The Fix
Add
.github/workflows/build.yml, triggered onpull_requesttodevwith no path filter. The PR's own runs decide the final shape:ubuntu-latest.build-allrunsnpm ci --ignore-scriptsthennpm run build-all -- -l no.threads-prodrunsnpm ci --ignore-scripts,npm run bundle-parse5 && npm run bundle-marked, thennpm run build-threads -- -n -e prod -t all.minimizer-webpack-pluginto 5.8.0 in the lock, the kept job must go red with the #18833 error, and a revert commit follows. No force-push.build-allif its job takes ≤ 5 min on the runner. Otherwise keepthreads-prod. The other job is removed before merge.Acceptance Criteria
Buildworkflow runs on every PR todevand fails when the build exits non-zero.Out of Scope
overridesdetection. Dependabot does not manageoverrides; that is a separate cross-repo check.dev: by then the break has already merged.Avoided Traps
package.json/package-lock.json: misses the #12298 class, which comes fromsrc/andtest/.npm run build-allwithout-l no: runs a secondnpm ion top ofnpm ci, which is slower and can drift from the lock.consumer-runtime-build.yml: its contract is the installed-consumer case ("builds this package from OUTSIDE itself"). Neo's own apps are a different contract.Related
Live latest-open sweep: checked the latest 20 open issues at 2026-09-18T09:42:22Z, and no equivalent was found. A2A in-flight sweep: no claim on CI or the build since 09:13Z. Memory Core sweep: no prior decision on a neo build job. Own-assigned sweep: no same-surface issue.
Retrieval Hint: "CI build-all job runner duration dependency bump merged red"
Origin Session ID: 6ed6621f-e2e4-4b9d-9a95-744679cb3c59