Repository navigation
fix: all CI integration tests passing - #58
Merged
Merged
Conversation
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.
Fixed 25 failing integration tests and ESLint warnings
Root cause of the 25 test failures
All 25 failures were
Segmentation fault (core dumped)/ exit code 139 — not brokentests or CLI behavior.
better-sqlite3@13.0.3ships a prebuilt native binary compiledwith
NAPI_VERSION=10(seenode_modules/better-sqlite3/binding.gyp). The repo pinnedNode 20 in
.nvmrc, and Node 20 only provides N-API 9. Loading the addonsucceeds, but the first database open dereferences an unavailable N-API symbol and
segfaults.
Because
src/commands/session.jsconstructsTaxonomySystemat module top level, andsrc/index.jsimports that session module on startup, every CLI invocation crashed —which is why all 25 failures across functional/cli-commands/error-handling were the same
segfault. No test expectations were wrong; no test files needed changing.
Verified:
nebula status.nvmrc)Changes
.nvmrc:20→24.node-version:node(unusable placeholder) →24.github/workflows/release.yml: hardcodednode-version: '20'→node-version-file: '.nvmrc', so CI and release share one source of truth. This also fixes the failingAuto Releaseworkflow, which runsnpm testand was hitting the same segfault.package.json: addedengines.node: ">=24"to make the requirement explicit and prevent regression to a N-API 9 runtime.ESLint: 80 warnings → 0
_prefix perno-unused-vars(catch (e)→catch (_e), etc.)const pid = await ProjectID.getOrCreateUID(...)→await ProjectID.getOrCreateUID(...). Intest/chaos/memory_stress.jsthe discardedtokens.map(...)allocation was kept as a bare expression because that script exists specifically to stress the GC.StreamingExecutor.#classifyCommandexposed it as an unused private member (an ESLint error), so the now-unreachable private method was deleted.Verification
Clean-room simulation of the full CI pipeline (fresh tracked-files checkout, no local
.env, Node 24):npm ci— exit 0npm run lint— exit 0, 0 errors / 0 warnings (was 80 warnings)npm test— exit 0, 219/219 passed, 19/19 filesnpm audit --omit=dev --audit-level=high— exit 0, 0 vulnerabilities (the 13 reported vulns are all devDependencies, so the audit step passes; it had never run before because the job died at the test step)Note (pre-existing, not touched)
src/utils/project-scanner.js:121callsai.summarizeReadme(...), butAIServicehasno such method. It is caught and logged as
Readme parse failed: ai.summarizeReadme is not a function. This exists onmainindependently of this change and does not fail CI.