mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-29 23:37:41 +00:00
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: rebuild changed graphs in fresh databases Populated-table writes inflate LadybugDB storage (#3852). Bulk-load fresh graphs while retaining parse caches, no-ops and logical counts. Read prior graphs without writes so staging failures preserve their bytes. Restore compatible vectors and rebuild derived layers and FTS under the existing checkpoint and publication guards. Keep the write policy, preservation guards and regressions together so the replacement has one coherent publication contract. Closes #3852 * perf: skip FTS builds for empty tables * fix: align CI with compact graph writes Validate populated-table FTS coverage and cached full writes while keeping the performance budget unchanged. Compare database bytes without enumerating Buffer keys, and retain native checkpoint failure details. * perf: use bounded hybrid graph writes Keep small edits selective and scale the mutation budget with graph size. Compact accumulated native storage growth without copying every graph on every edit. Preserve physical receipts across shared-store publication and native resource limits during recovery. Align CI assertions with selective writes and populated FTS tables. Refs #3852 * fix: close hybrid compaction gaps Count removed rows before selective writes and preserve the shared graph's compaction receipt when publishing completed vectors. * test: serialize compaction native suites * test: declare capped count determinism * test: mock persisted rows in FTS fixtures * fix: address hybrid write review (#3854) Retain unreadable graph bytes before recovery and stop destructive writes when the real embedding cache probe fails. Keep small deletions and renames selective, preserve healthy private graphs through edit/revert cycles, and bound FTS presence probes. Cover durability, footprint boundaries and vector restoration. Align mock graph fixtures and fix the pre-existing WAL test's UUID false positive found by full-suite validation; its nine-test suite now passes. * test: clarify selective restore fixture (#3854) * test: isolate recovery CI fixtures (#3854) Cap embedding generation in the missing-graph recovery fixture so it does not require optional model packages. Allow cold PowerShell startup in the OS identity smoke test; retain the five-second production probe limit. * test: finish review cleanup (#3854) * test: strengthen graph integrity checks Hash persisted node and edge properties; clean failed fixtures and gate FTS setup through the test lifecycle. Refs #3854 --------- Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com>
19 lines
910 B
TypeScript
19 lines
910 B
TypeScript
import { expect, it } from 'vitest';
|
|
import { readAnalysisWriterBirth } from '../../src/core/analysis-writer-identity.js';
|
|
|
|
it.skipIf(!['linux', 'darwin', 'win32'].includes(process.platform))(
|
|
'reads a stable birth identity from a real live process',
|
|
async () => {
|
|
// This checks the OS identity format and stability. Cold PowerShell on
|
|
// Windows CI can exceed even a 15-second wait under load;
|
|
// timeout/unknown behavior and the production limit have separate unit tests.
|
|
const probeBudget = process.platform === 'win32' ? 60_000 : undefined;
|
|
const birth = await readAnalysisWriterBirth(process.pid, probeBudget);
|
|
expect(birth).toBeDefined();
|
|
expect(birth?.kind).toBe(
|
|
{ linux: 'linux-proc', darwin: 'darwin-lstart', win32: 'win32-ticks' }[process.platform],
|
|
);
|
|
expect(await readAnalysisWriterBirth(process.pid, probeBudget)).toEqual(birth);
|
|
},
|
|
125_000,
|
|
);
|