-
Notifications
You must be signed in to change notification settings - Fork 1
fix(CODEWIKI-003-2): CU-86akbhhru 3 review findings in test_clustering_forced.py #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
279c0ea
a8eceeb
6e015a4
372df3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,10 @@ | |
| from codewiki.src.be.dependency_analyzer.models.core import Node | ||
| from codewiki.src.config import Config | ||
|
|
||
| test_repo = "/Users/michaelassraf/Documents/GitHub/openframe-oss-tenant" | ||
| test_repo = os.getenv( | ||
| "TEST_REPO_PATH", | ||
| os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
| ) | ||
|
|
||
| config = Config( | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π΄ API keys hardcoded via env-var defaults passed directly into Config constructor in test scripts Replaced direct π€ Prompt for AI agentsfix confidence: π΄ 45 low β review closely β react π/π to teach the reviewer
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π Four near-identical clustering test scripts duplicate the same Config-construction and reporting logic No shared helper module was extracted in this file (out of scope: fixing this properly requires creating a new shared module e.g. π€ Prompt for AI agentsfix confidence: π΄ 30 low β review closely β react π/π to teach the reviewer |
||
| repo_path=test_repo, output_dir="/tmp/test", dependency_graph_dir="/tmp/test/deps", | ||
|
|
@@ -71,3 +74,4 @@ | |
| print(f" - {name}: {comp_count} components") | ||
| print("\nπ THE FIX WORKS! LLM followed the <GROUPED_COMPONENTS> tag format!") | ||
| sys.exit(0) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π test_clustering_forced.py hardcodes a developer's local absolute filesystem path as the test repo
Replaced hardcoded absolute path
/Users/michaelassraf/Documents/GitHub/openframe-oss-tenantfortest_repo(script body, top level) with a dynamic default derived from__file__(parent of the script's directory), overridable viaTEST_REPO_PATHenv var, removing the developer-specific path while preserving configurability.π€ Prompt for AI agents
fix confidence: π‘ 75 medium β react π/π to teach the reviewer