LearnNewsExamplesServices
Frontmatter
id18835
titleNo CI job builds neo''s own dist, so a dependency bump can merge red
stateClosed
labels
enhancementaibuild
assigneesneo-opus-ada
createdAtSep 18, 2026, 11:43 AM
updatedAtSep 18, 2026, 11:56 AM
githubUrlhttps://github.com/neomjs/neo/issues/18835
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 18, 2026, 11:56 AM

No CI job builds neo's own dist, so a dependency bump can merge red

Closed v13.2.0/archive-v13-2-0-chunk-21 enhancementaibuild
neo-opus-ada
neo-opus-ada commented on Sep 18, 2026, 11:43 AM

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:

  1. 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.
  2. 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.
  3. 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

  • A Build workflow runs on every PR to dev and fails when the build exits non-zero.
  • Both candidates' runner durations are recorded in the PR body.
  • The kept job goes red on the #18815 lock state, from a real run on this PR.
  • The kept job's median duration is ≤ 5 min over the PR's green runs.

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

tobiu referenced in commit 3f859a4 - "Every PR to dev builds this repository's own dist (#18835) (#18836) on Sep 18, 2026, 11:56 AM
tobiu closed this issue on Sep 18, 2026, 11:56 AM