From 14c4639c36bec19f2e7b5017439ae21c0614156a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 10 May 2026 16:15:23 +0000 Subject: [PATCH] fix: update registry-primary-flag test and add C legacy parity expected failures Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/ddcbc075-2999-492c-a0ac-47cddd401a4b Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com> --- gitnexus/test/integration/resolvers/helpers.ts | 7 +++++++ gitnexus/test/unit/registry-primary-flag.test.ts | 1 + 2 files changed, 8 insertions(+) diff --git a/gitnexus/test/integration/resolvers/helpers.ts b/gitnexus/test/integration/resolvers/helpers.ts index e92526b19..2fe9de251 100644 --- a/gitnexus/test/integration/resolvers/helpers.ts +++ b/gitnexus/test/integration/resolvers/helpers.ts @@ -9,6 +9,13 @@ import type { PipelineResult } from '../../../src/types/pipeline.js'; import type { GraphRelationship } from 'gitnexus-shared'; const LEGACY_RESOLVER_PARITY_EXPECTED_FAILURES: Readonly>> = { + c: new Set([ + // The legacy DAG path does not resolve the main → create_service call + // because the function prototype in the .h file and the definition in + // the .c file create a dedup ambiguity. The registry-primary path + // resolves it via scope-based wildcard import binding. + 'emits CALLS edges for cross-file function calls', + ]), csharp: new Set([ 'emits the using-import edge App/Program.cs -> Models/User.cs through the scope-resolution path', // Generic type-argument USES edges are emitted by the registry-primary diff --git a/gitnexus/test/unit/registry-primary-flag.test.ts b/gitnexus/test/unit/registry-primary-flag.test.ts index 5f688c732..9e8be3455 100644 --- a/gitnexus/test/unit/registry-primary-flag.test.ts +++ b/gitnexus/test/unit/registry-primary-flag.test.ts @@ -153,6 +153,7 @@ describe('primaryLanguages', () => { process.env['REGISTRY_PRIMARY_CSHARP'] = 'false'; process.env['REGISTRY_PRIMARY_TYPESCRIPT'] = 'false'; process.env['REGISTRY_PRIMARY_GO'] = 'false'; + process.env['REGISTRY_PRIMARY_C'] = 'false'; process.env['REGISTRY_PRIMARY_JAVA'] = '1'; const enabled = primaryLanguages(); expect(enabled.has(SupportedLanguages.Python)).toBe(false);