Skip to content

test: enforce exact containment parity and diagnose missing variable endpoints - #1762

Open
Shashankss1205 wants to merge 5 commits into
mainfrom
fix/restore-strict-contains-parity
Open

Shashankss1205 wants to merge 5 commits into
mainfrom
fix/restore-strict-contains-parity

Conversation

@Shashankss1205

@Shashankss1205 Shashankss1205 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

The parity test accepts up to 64 missing CONTAINS edges, hiding #1730’s intermittent 51-edge Ladybug deficit. Remove the allowance and compare portable endpoint identities (label, relative path, name, line, occurrence index) so equal counts with different connections also fail.

CI evidence isolates all 51 missing edges to File→Variable links in sample_project_typescript/src/utilities-helpers.ts; Kuzu, FalkorDB, and Neo4j agree on every other containment edge. Print bounded samples grouped by source file, capture every Variable node’s identity and normalized uid, and report whether missing targets exist. Upload complete statistics, edges and variable snapshots as containment-parity.json with 14-day retention. A missing dump is an explicit error.

Validation: 69 performance/parity/backend tests pass (1 skip), plus 21 native Kuzu identity/property tests. Seven parity guards pass on Python 3.12 and 3.14 and cover 1/51/64-edge deficits, equal-count identity mismatches, artifact persistence, bounded output and present/absent endpoint diagnosis. Native tests verify separate containment links for colliding symbols and no duplicate links after reindexing. Live Kuzu/Ladybug probes validate edge and variable snapshots. Ruff and git diff --check pass; published tree equals the validated local tree.

Latest-head strict CI passes: all four backends have 4,727 CONTAINS edges with identical endpoint identities: https://github.com/CodeGraphContext/CodeGraphContext/actions/runs/37967834995 . Prior failure: https://github.com/CodeGraphContext/CodeGraphContext/actions/runs/37966285832 .

This restores the guard and evidence collection. The production writer is unchanged, so one green run does not establish a repair of the intermittent defect. Keep #1730 open until its underlying write defect is repaired. Main still contains the allowance until this correction merges. Independent approval and all passing checks required.

Follow-up to #1758, whose containment tolerance change I missed during review before merging.

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
code-graph-context-pack Ready Ready Preview Oct 9, 2026 5:40pm UTC

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Hi! 👋 Join our CodeGraphContext Discord channel to collaborate: https://discord.gg/dR4QY32uYQ

@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🔍 PR Code Graph Analysis

test: enforce exact containment parity and diagnose missing variable endpoints (#1762)

📊 Interactive Visualization

View the blast radius graph: PR Reviewer Dashboard

📦 Artifacts

The graph JSON has been uploaded as a build artifact: pr-code-graph-1762


Generated by CodeGraphContext using FalkorDB Lite

@Shashankss1205 Shashankss1205 changed the title test: restore strict containment parity after #1758 test: enforce strict containment parity and report exact missing edges Oct 9, 2026
@Shashankss1205 Shashankss1205 changed the title test: enforce strict containment parity and report exact missing edges fix(indexing): bind containment edges by identity and enforce exact parity Oct 9, 2026
@Shashankss1205 Shashankss1205 changed the title fix(indexing): bind containment edges by identity and enforce exact parity test: enforce exact containment parity and diagnose missing variable endpoints Oct 9, 2026

This branch was successfully deployed

1 active deployment
Preview — 694383bc Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog tasks

Development

Successfully merging this pull request may close these issues.

1 participant