mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-16 09:22:00 +00:00
* fix(ingestion): drop member edges to owners the file never emitted (#3747) The parse worker could emit HAS_METHOD/HAS_PROPERTY edges whose owner id named a node in the same file that was never materialized, so LadybugDB's COPY rejected them with "Unable to find primary key value" and the retry silently dropped the edge: - `const X = z.object({ k: f(cb) }).refine(cb)` is emitted as a Function, but its key's owner was spelled `Const:<file>:X`. - A TS `declare module 'm' {}` parses as a bare `module` node, which the shared container map labels `Trait`; no TS capture emits that node. After each file, the worker now removes member edges whose in-file owner was not emitted and re-attaches the member to its File with DEFINES (unless it already has one). Owners in other files are untouched and no node ids change. * fix(ingestion): settle the owner-edge guard when a file group throws processBatch catches a throw from processFileGroup and still returns the partial result, but the guard only settled the last open file after the loop completed. A throw after a member edge was appended (e.g. from an unguarded provider hook) let that file's dangling owner edge escape the guard and reach COPY. Per-file tracking now lives in createOwnerEdgeGuard, and processFileGroup settles it in a finally block around the per-file loop, so the partially processed file is checked on the error path too. --------- Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com> |
||
|---|---|---|
| .. | ||
| bench | ||
| spikes | ||
| arm64-prebuild.cjs | ||
| assert-native-parsers.mjs | ||
| assert-publish-fts-coverage.cjs | ||
| assert-publish-grammar-coverage.cjs | ||
| assert-web-assets.mjs | ||
| bench-scope-resolution.ts | ||
| build-tree-sitter-grammars.cjs | ||
| build-web.js | ||
| build.js | ||
| cross-platform-tests.ts | ||
| ensure-fts.ts | ||
| execution-reporter.ts | ||
| install-duckdb-extension.mjs | ||
| owner-edge-guard-scaling.ts | ||
| prepare-tree-sitter-bundle.cjs | ||
| rebuild-bundled-grammar-prebuilds.cjs | ||
| run-benchmarks.ts | ||
| run-cross-platform.ts | ||
| shard-arg.ts | ||
| shard-timings-reporter.ts | ||
| shard-timings.ts | ||
| smoke-package-managers.mjs | ||
| sync-plugin-manifests.mjs | ||
| test-completeness.ts | ||