Skip to content

test(parity): write the CALLS edge dump to a file, not stdout - #1442

Merged
Shashankss1205 merged 1 commit into
mainfrom
fix/parity-diag-log-size
Jul 26, 2026
Merged

Shashankss1205 merged 1 commit into
mainfrom
fix/parity-diag-log-size

Conversation

@Shashankss1205

Copy link
Copy Markdown
Collaborator

Fixes a problem I introduced in #1441.

#1441 printed each backend's whole CALLS edge set as a single JSON line (~650 entries, ~100 KB). GitHub truncated the step log as a result — the Actions output stopped right after the first backend's STATS_JSON, so neither the comparison table nor the new diagnostics were visible. Exactly the opposite of the intent.

$ gh run view <id> --log-failed | wc -l
29        # truncated mid-run, after the kuzudb leg

The subprocess now writes its edge list to <temp_test_dir>/<backend>_calls_edges.json and the parent reads that file, leaving only the small human-readable diff in the log.

Verified locally:

log size:            12 KB      (was ~100 KB on a single line)
longest single line: 831 chars

and the diagnostics still print in full:

================= CALLS EDGE DIAGNOSTICS =================
kuzudb       total=648    distinct=637    duplicates=11
ladybugdb    total=648    distinct=637    duplicates=11
falkordb     total=647    distinct=636    duplicates=11
neo4j        total=649    distinct=638    duplicates=11

union=638  common-to-all=636  differing=2

--- MISSING from falkordb (2) ---
    …ToughCases.java:testAnonymous@42 -> …Main.kt:process@4 [call_line=54]
    …tough_cases.ts:loadModuleDynamically@29 -> …tough_circular_b.ts:tough_circular_b.ts@None [call_line=31]

#1441 printed the whole CALLS edge set as a single JSON line per backend
(~650 entries, ~100 KB). GitHub truncated the step log as a result, so the
Actions output stopped after the first backend's STATS_JSON and neither
the comparison table nor the new diagnostics were visible — the opposite
of the intent.

The subprocess now writes its edge list to
<temp_test_dir>/<backend>_calls_edges.json and the parent reads that,
leaving only the small human-readable diff in the log.

Local run: log is 12 KB with a longest line of 831 chars (was ~100 KB on
one line), and the diagnostics print in full.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@vercel

vercel Bot commented Jul 26, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
code-graph-context-pack Ready Ready Preview, Comment Jul 26, 2026 4:12pm

@github-actions

Copy link
Copy Markdown
Contributor

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

@Shashankss1205
Shashankss1205 merged commit f5a0343 into main Jul 26, 2026
15 of 17 checks passed
@Shashankss1205
Shashankss1205 deleted the fix/parity-diag-log-size branch July 26, 2026 16:12
@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Jul 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 PR Code Graph Analysis

test(parity): write the CALLS edge dump to a file, not stdout (#1442)

📊 Interactive Visualization

View the blast radius graph: PR Reviewer Dashboard

📦 Artifacts

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


Generated by CodeGraphContext using FalkorDB Lite

This branch was successfully deployed

1 active deployment
Preview — aa39f5e3 Deployed Jul 26, 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: Done

Development

Successfully merging this pull request may close these issues.

1 participant