GitNexus/gitnexus/scripts
Soumyadeep Biswas 796cb4c4ba
fix(ci): run the test-completeness audit when started through a symlink (#4292)
* fix(ci): run the test-completeness audit when started through a symlink

Node resolves the main module through symlinks, so comparing import.meta.url
with the unresolved argv[1] was false for a symlinked invocation: the audit was
skipped and the gate exited 0. Compare against realpath(argv[1]), falling back
to the resolved path when realpath fails. Adds a test that starts the script
through a symlinked scripts directory.

Fixes #4291

* fix(ci): canonicalize the module path in the test-completeness entry guard

Under --preserve-symlinks-main, import.meta.url keeps the symlink spelling
while argv[1] was canonicalized, so the guard still mismatched and the
script exited 0 without auditing. Canonicalize both sides, derive the
package root from the canonical module path, and exercise the real
missing-receipts subprocess in both Node modes.

---------

Co-authored-by: Abhigyan Patwari <126312502+abhigyanpatwari@users.noreply.github.com>
2026-11-29 19:29:31 +00:00
..
bench fix(mcp): bound query previews and advertise repo defaults (#3728) 2026-10-26 08:53:47 +00:00
spikes feat(ingestion): M0 — taint/PDG substrate (schema + seams + spikes) (#2080) (#2092) 2026-06-08 18:56:10 +01:00
arm64-prebuild.cjs fix(install): restore Linux ARM64 npm installation (#3601) 2026-10-16 15:28:35 +01:00
assert-native-parsers.mjs feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
assert-publish-fts-coverage.cjs fix(lbug): ship FTS per-platform and recover in-place native aborts (#3274) 2026-09-14 08:52:24 +01:00
assert-publish-grammar-coverage.cjs fix(embeddings): keep ONNX off the install and analyze critical path (#3287) 2026-09-15 12:11:47 +01:00
assert-web-assets.mjs fix(build): build the web UI from prepack, not from every npm ci (#3166) 2026-09-04 13:28:11 +01:00
bench-scope-resolution.ts refactor(ingestion): delete legacy call-resolution DAG + heritage processor (RING4-1, #942) (#2023) 2026-06-04 11:07:37 +01:00
build-tree-sitter-grammars.cjs feat(indexing): add Objective-C semantic indexing support (#3179) 2026-09-09 09:40:21 +00:00
build-web.js fix(build): build the web UI from prepack, not from every npm ci (#3166) 2026-09-04 13:28:11 +01:00
build.js refactor(hooks): use one package entrypoint for Claude hooks (#3879) 2026-11-12 09:54:58 +00:00
cross-platform-tests.ts fix(analyze): remove stale routes after a router mount is dropped (#4228) 2026-11-29 19:25:06 +00:00
ensure-fts.ts fix(lbug): ship FTS per-platform and recover in-place native aborts (#3274) 2026-09-14 08:52:24 +01:00
execution-reporter.ts chore(deps): consolidate open dependabot updates (#3496) 2026-10-06 07:23:35 +00:00
install-duckdb-extension.mjs fix(docker): verify bundled FTS artifacts (#3669) 2026-10-21 17:27:30 +00:00
owner-edge-guard-scaling.ts fix(ingestion): drop member edges to owners the file never emitted (#3767) 2026-10-31 00:36:19 +00:00
prepare-tree-sitter-bundle.cjs feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
rebuild-bundled-grammar-prebuilds.cjs fix(install): restore Linux ARM64 npm installation (#3601) 2026-10-16 15:28:35 +01:00
repro-3527.mjs fix(lbug): upgrade core and bundled extensions to 0.22.0 (#3578) 2026-10-31 15:29:45 +00:00
run-benchmarks.ts fix(java): match javac resolution and move fixtures into conformance (#4056) 2026-11-25 18:03:32 +00:00
run-cross-platform.ts fix(python): link field readers and qualify incomplete results (#3795) 2026-11-01 14:01:35 +00:00
shard-arg.ts fix(ci): shard platform-sensitive matrix + spawn built CLI to fix Windows cross-platform timeout (#2394) 2026-07-08 09:09:11 +01:00
shard-timings-reporter.ts feat(ci): rebalance test shards from recorded timings (#3748) 2026-10-28 11:58:29 +00:00
shard-timings.ts feat(ci): rebalance test shards from recorded timings (#3748) 2026-10-28 11:58:29 +00:00
smoke-package-managers.mjs fix: compact incremental graphs adaptively (#3854) 2026-11-09 20:57:07 +00:00
sync-plugin-manifests.mjs feat: add Factory AI (Droid) integration (#2543) 2026-09-24 19:12:40 +01:00
test-completeness.ts fix(ci): run the test-completeness audit when started through a symlink (#4292) 2026-11-29 19:29:31 +00:00