GitNexus/gitnexus/test/helpers
Gergő Magyar 4cfd3e4cde
Some checks are pending
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
fix(ingestion): stabilize community and process IDs (#3855)
* fix: stabilize community and process IDs

Run-order IDs renumbered unrelated records during analysis. Derive community
IDs from their smallest member and process IDs from their endpoint pair.
Preserve opaque community IDs in web grouping and color selection.

Refresh PDG and mini-repo graph digests for stable fallback community labels;
node/edge counts and membership-normalized edge triples are unchanged.
Update singleton skill-generation expectations for the same stable IDs.

Reanalysis migrates positional IDs once. Selective database reconciliation
remains separate work.

Closes #3851

* perf: trim stable graph identity overhead

Avoid per-symbol entry tuples and reuse each community color during graph conversion.

* perf: reduce graph processing allocations

* perf: release completed pipeline context

Isolate the graph integrity lookup's closure so retained graphs cannot
keep pipeline phase results alive. Drop the completed deferred callback
before database loading. Regression tests fail on both prior paths.

* docs: clarify stable graph ID contracts

* fix: address stable ID review feedback (#3855)

Compare parser output across runtimes while keeping full-graph reuse
checks. Release deferred phases before compaction writes and document
the ID migration, tie ordering, and identity limits.

Pin breadth-first layout, palette coverage, and callback lifetime.

Refs #3855

Note: pre-existing failure in setup-skills.test.ts not addressed by this PR.

Note: pre-existing failure in setup.test.ts not addressed by this PR.

Note: pre-existing failure in worker-pool-resilience.test.ts not addressed by this PR.

* fix(bench): read packed cache sections

The #3856 cache migration replaced loose V8 shards with file-result
packs. The interning probe fails before timing on unchanged ea97d6db8.

Load every published facts and scope section through the baseline
readers. Reject incomplete or corrupt corpora and retain legacy support.
Record the format; preserve timed operations, warmups, equality checks,
and the 5% acceptance budget. Packed and legacy timings are not directly
comparable.

Validate with 95 tests, source/test typechecks, and real-cache base/base
and base/PR controls. Both controls pass the unchanged interning gate.

Refs #3856, #3855

---------

Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
2026-11-10 17:21:43 +00:00
..
analysis-http-server.mjs feat(analyze): make indexing resource-bounded and resumable (#3829) 2026-11-07 11:27:47 +00:00
analysis-process-exit.ts feat(analyze): make indexing resource-bounded and resumable (#3829) 2026-11-07 11:27:47 +00:00
cache-identity.ts feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00
cfg-harness.ts fix(taint): avoid false positives for guarded Git arguments (#3703) 2026-10-24 15:37:26 +01:00
cli-entry.ts fix(analyze): harden recovery, vector readiness, and RAM admission (#3842) 2026-11-07 20:36:12 +00:00
counting-file-set.ts fix(kotlin): resolve imports from declared packages (#2990) 2026-08-18 20:47:30 -07:00
detect-changes-diff-args.ts fix(mcp): stop scaling the detect_changes query with the diff's hunk count (#2915) (#2930) 2026-08-12 14:51:17 +01:00
detect-changes-stderr-child.ts fix(mcp): contain detect_changes git stderr (#3841) 2026-11-08 05:50:10 +00:00
detect-changes-stderr-hooks.mjs fix(mcp): contain detect_changes git stderr (#3841) 2026-11-08 05:50:10 +00:00
detect-reject-warning.ts refactor(analyze): move detected-branch sanitization off CLI config (#3325) 2026-09-18 11:03:24 +01:00
embedding-restart-runner.mjs feat(analyze): make indexing resource-bounded and resumable (#3829) 2026-11-07 11:27:47 +00:00
embedding-seed.ts fix: make large incremental writebacks commit reliably (#2409) (#2425) 2026-07-10 14:05:23 +01:00
file-result-worker.ts fix(cache): reuse unchanged files across chunk boundaries (#3856) 2026-11-10 10:52:15 +00:00
fts-availability.ts fix(lbug): ship FTS per-platform and recover in-place native aborts (#3274) 2026-09-14 08:52:24 +01:00
grammar-introspection.ts fix(rename): extend safe refactoring and flow coverage across languages (#3557) 2026-10-13 08:38:17 +03:00
ignore-set-source.ts chore: compile first-party packages with TypeScript 7 (#3311) 2026-09-17 22:16:00 +01:00
interrupted-publication-runner.mjs fix(storage): preserve published graph on rebuild failure (#3613) 2026-10-17 18:45:11 +01:00
interrupted-vector-bootstrap.mjs feat(analyze): make indexing resource-bounded and resumable (#3829) 2026-11-07 11:27:47 +00:00
java-overload-persistence-child.mjs fix(java): resolve overloads by JLS phases (#3791) 2026-11-01 11:08:00 +00:00
ladybug-native.ts fix: Use Ladybug native read-only enforcement and prepared statement execution for Cypher query paths (#1655) 2026-05-18 06:54:24 +01:00
leiden-timeout-child.ts fix(community): run Leiden in a worker so its timeout can fire (#3478) 2026-10-06 09:40:21 +03:00
literal-collectors.ts fix(rename): extend safe refactoring and flow coverage across languages (#3557) 2026-10-13 08:38:17 +03:00
mini-repo.ts feat(ingestion): add control-flow-graph layer for TS/JS (#2081) (#2099) 2026-06-10 19:26:45 +01:00
module-load-probe.ts perf(mcp): cut the analyze-only language-provider closure out of MCP server startup (#2802) (#2806) 2026-08-03 21:26:13 +01:00
optional-grammar.ts fix(zig): vendor tree-sitter-zig so npm i -g no longer warns on peers (#3180) 2026-09-05 10:35:33 +01:00
parse-cache-identity-fixture.ts feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00
parse-identity-child.mjs feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00
parse-identity-runtime.ts feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00
parse-source-safe-mock.ts fix(test): align fixtures and mocks with current types (#3471) 2026-10-05 04:47:37 +01:00
parse-typescript-source.ts fix(test): align fixtures and mocks with current types (#3471) 2026-10-05 04:47:37 +01:00
perf-sequencer.ts feat(ci): rebalance test shards from recorded timings (#3748) 2026-10-28 11:58:29 +00:00
pipeline-retention-child.mjs fix(ingestion): stabilize community and process IDs (#3855) 2026-11-10 17:21:43 +00:00
prepared-analysis-runner.mjs feat(analyze): make indexing resource-bounded and resumable (#3829) 2026-11-07 11:27:47 +00:00
publication-live-wal.mjs fix(storage): preserve published graph on rebuild failure (#3613) 2026-10-17 18:45:11 +01:00
rename-integration-cases.ts fix(rename): extend safe refactoring and flow coverage across languages (#3557) 2026-10-13 08:38:17 +03:00
rename-integration-runner.mjs fix(rename): apply the exact reviewed edit plan (#3617) 2026-10-17 19:38:01 +01:00
rename-planning-safety-runner.mjs fix(rename): apply the exact reviewed edit plan (#3617) 2026-10-17 19:38:01 +01:00
rename-preview-plan-runner.mjs fix(rename): apply the exact reviewed edit plan (#3617) 2026-10-17 19:38:01 +01:00
rename-provider-fixture.ts fix(rename): extend safe refactoring and flow coverage across languages (#3557) 2026-10-13 08:38:17 +03:00
runtime-parse-identity.ts feat(cache): derive parser and PDG cache identities automatically (#3606) 2026-10-17 07:38:45 +03:00
scope-model.ts fix(resolution): resolve Go pointer-receiver calls, and report the program boundary instead of hedging (#2766) (#2782) 2026-08-01 22:42:18 +01:00
shard-balance.ts fix(taint): report inline and factory handler flows (#3612) 2026-10-17 20:22:58 +00:00
sse-harness.ts fix(embeddings): retry unparseable 200 responses and survive partial embedding failures (#2790) (#2795) 2026-08-02 20:43:59 +00:00
taint-fixture.ts feat(taint): intra-procedural taint analysis (#2083) (#2164) 2026-06-12 07:35:09 +01:00
temp-dir-pool.ts perf(mcp): cut the analyze-only language-provider closure out of MCP server startup (#2802) (#2806) 2026-08-03 21:26:13 +01:00
temp-git-repo.ts fix(mcp): stop scaling the detect_changes query with the diff's hunk count (#2915) (#2930) 2026-08-12 14:51:17 +01:00
test-db.ts fix(test): use retry cleanup in antigravity e2e to prevent ENOTEMPTY flake (#1838) 2026-05-26 15:40:08 +01:00
test-graph.ts fix(test): align fixtures and mocks with current types (#3471) 2026-10-05 04:47:37 +01:00
test-indexed-db.ts fix: surface real FTS extension LOAD errors and self-heal broken extension files (#2374) (#2375) 2026-07-06 06:41:05 +01:00
ts-cfg-harness.ts feat(cfg): PDG/CFG visitors for all supported languages (#2195) (#2197) 2026-06-15 12:31:04 +01:00
ts7-ast.ts chore: compile first-party packages with TypeScript 7 (#3311) 2026-09-17 22:16:00 +01:00
worker-parse.ts perf(ingestion): Linux-kernel-scale analysis — worker-pool parse + finalize O(n²) + scope-resolution memory wall (#1983) (#2038) 2026-06-06 22:46:34 +01:00