Skip to content

Commit a6cec64

Browse files
galshubeliclaude
andcommitted
fix(e2e): seed from installed graphrag-sdk 0.8.2 instead of cloning HEAD
GraphRAG-SDK released v1.0 (April 16) and force-pushed history during the release, dropping the pre-v1.0 API surface that the e2e tests were built against. Cloning HEAD now produces a graph without the merge_with/combine/import_data/add_node/add_edge/ask Function nodes the tests interact with. Switch to analyzing the installed graphrag-sdk package (pinned to 0.8.2 via uv.lock — immutable on PyPI). flask clone stays for autocomplete variety on set/lo/as substrings. ensure_calls_edges keeps acting as a safety net for the two required CALLS edges. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 1838b36 commit a6cec64

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

e2e/seed_test_data.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import os
55
import sys
66
import logging
7+
from pathlib import Path
8+
9+
import graphrag_sdk
710

811
logging.basicConfig(
912
level=logging.INFO,
@@ -14,8 +17,11 @@
1417
from falkordb import FalkorDB
1518
from api.project import Project
1619

20+
# Use the installed graphrag-sdk (pinned to 0.8.2 via uv.lock) as the e2e
21+
# fixture. Upstream HEAD has the new v1.0 API which the tests aren't built for.
22+
GRAPHRAG_SDK_PATH = Path(graphrag_sdk.__file__).parent
23+
1724
REPOS = [
18-
"https://github.com/FalkorDB/GraphRAG-SDK",
1925
"https://github.com/pallets/flask",
2026
]
2127

@@ -61,6 +67,13 @@ def ensure_calls_edges(graph_name: str) -> None:
6167

6268

6369
def main():
70+
logger.info(
71+
"Seeding graphrag-sdk %s from %s",
72+
getattr(graphrag_sdk, "__version__", "?"),
73+
GRAPHRAG_SDK_PATH,
74+
)
75+
Project(name="GraphRAG-SDK", path=GRAPHRAG_SDK_PATH, url=None).analyze_sources()
76+
6477
for url in REPOS:
6578
logger.info("Seeding %s ...", url)
6679
proj = Project.from_git_repository(url)

0 commit comments

Comments
 (0)