From d5a0b2b9416098dd31ec6fa3ee5670fe131835ec Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Tue, 21 Jul 2026 15:42:58 +0000 Subject: [PATCH] test: update hardcoded schema-version expectations for v11 (#2604) call-summary-schema-version.test.ts pins INCREMENTAL_SCHEMA_VERSION as a literal per bump, documenting the reuse-gate boundary for each version. Update the "current" expectation to 11 and add the v10 pre-current case, matching the v7/v8/v9/v10 precedent already in the file. --- gitnexus/test/unit/call-summary-schema-version.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gitnexus/test/unit/call-summary-schema-version.test.ts b/gitnexus/test/unit/call-summary-schema-version.test.ts index a8240fa0f..2047754c4 100644 --- a/gitnexus/test/unit/call-summary-schema-version.test.ts +++ b/gitnexus/test/unit/call-summary-schema-version.test.ts @@ -73,8 +73,8 @@ describe('CALL_SUMMARY relation-type exclusion (U-C1)', () => { }); describe('CALL_SUMMARY incremental reuse gate (U-C5)', () => { - it('INCREMENTAL_SCHEMA_VERSION is bumped to 10 (Java record container-node re-index window)', () => { - expect(INCREMENTAL_SCHEMA_VERSION).toBe(10); + it('INCREMENTAL_SCHEMA_VERSION is bumped to 11 (Rust dyn-trait-object dispatch re-index window, #2604)', () => { + expect(INCREMENTAL_SCHEMA_VERSION).toBe(11); }); it('a pre-current stamp fails the `=== INCREMENTAL_SCHEMA_VERSION` reuse gate → forces full re-analyze', () => { @@ -112,7 +112,11 @@ describe('CALL_SUMMARY incremental reuse gate (U-C5)', () => { // (#2564) — a record's methods would keep being ownerless Method nodes // with no HAS_METHOD edge on unchanged files → must NOT reuse. expect(passesReuseGate(9)).toBe(false); + // A pre-v11 (v10) index predates the Rust dyn-trait-object dispatch fix + // (#2604) — abstract trait methods would keep being uncaptured (no + // ownerId/CALLS resolution) on unchanged Rust trait files → must NOT reuse. + expect(passesReuseGate(10)).toBe(false); // A current-version stamp passes the gate (incremental top-up eligible). - expect(passesReuseGate(10)).toBe(true); + expect(passesReuseGate(11)).toBe(true); }); });