Repository navigation
Conversation
…builds CI on main has failed since at least 2026-10-15: `npm run build --workspaces` builds alphabetically, so on a fresh checkout `aql` is compiled before `protocol` has a dist/ and tsc cannot resolve it. - scripts/build-workspaces.mjs builds each workspace after the workspaces it depends on (dependencies/peerDependencies hard, devDependencies soft — dropped only to get past a cycle); the root `build` script runs it. - explainer: exclude src/__tests__ and src/benchmark from the tsc build. They are already left out of the published package, and compiling them made explainer need scorer (scorer -> llm-client -> prompt-builder -> explainer). - nestjs-parser: declare laravel-parser and springboot-parser as devDependencies; its cross-framework tests import them. - lsp: keep @kidkender/archmind-analysis external. Bundling it pulled in go-parser, whose tree-sitter-go native module esbuild cannot bundle and which needs tree-sitter 0.25 while lsp runs 0.21. - go-parser: findGoFiles returns `/`-separated paths on every OS (the scanner tests failed on Windows); the mcp-server cache test looks files up the same way. Verified on a clean worktree: npm ci, build (22 workspaces), npm test all pass.
This was referenced Nov 12, 2026
…sers retrieval, nestjs-parser and mcp-server load the tree-sitter parsers, whose module-level parser fails when Jest reuses a worker process across test files. On the GitHub runner Jest has few workers, so retrieval's regression and cross-framework suites failed every run once the build itself was fixed. maxWorkers 50 gives each file its own process, as laravel-parser already does. Same change as in fix/minor-issues, so both merge cleanly.
This was referenced Nov 12, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI on
mainhas failed since at least 2026-10-15:npm run build --workspacesbuilds alphabetically, so on a clean checkoutaqlis compiled beforeprotocolhas adist/and tsc cannot resolve it. Merge this first — the other open PRs need it for a green build.Changes
scripts/build-workspaces.mjsbuilds each workspace after the workspaces it depends on (dependencies/peerDependencieshard,devDependenciessoft — dropped only to get past a cycle). The rootbuildscript runs it.explainer: excludesrc/__tests__andsrc/benchmarkfrom the tsc build. They are already left out of the published package, and compiling them made explainer need scorer (scorer → llm-client → prompt-builder → explainer).nestjs-parser: declarelaravel-parserandspringboot-parseras devDependencies; its cross-framework tests import them.lsp: keep@kidkender/archmind-analysisexternal. Bundling it pulled in go-parser, whose tree-sitter-go native module esbuild cannot bundle and which needs tree-sitter 0.25 while lsp runs 0.21.go-parser:findGoFilesreturns/-separated paths on every OS (the scanner tests failed on Windows); the mcp-server cache test looks files up the same way.retrieval,nestjs-parser,mcp-server:maxWorkers: 50(one Jest process per test file). Once the build passed on CI, retrieval's regression and cross-framework suites failed every run: their tests load the tree-sitter parsers, whose module-level parser breaks when Jest reuses a worker across files, and the GitHub runner gives Jest few workers. Same change as in fix: explainer FormRequest semantics, NestJS ir:wraps, silent Laravel pass errors, flaky test workers #13, so the two merge cleanly.Verified
npm ci,npm run build(22 workspaces),npm test— all pass on Windows.