-
Notifications
You must be signed in to change notification settings - Fork 1
fix(CODEWIKI-009-2): CU-86akbhhru 4 review findings across 4 files #53
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
f3d38dc
0cd39b3
5b07e46
b8d0616
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,7 @@ | |
| 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" | ||
|
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. 𦩠π test_clustering_real.py hardcodes a developer's local absolute filesystem path Changed π€ Prompt for AI agentsfix confidence: π‘ 85 medium β react π/π to teach the reviewer |
||
| test_repo = os.getenv("TEST_REPO_PATH", os.path.dirname(os.path.abspath(__file__))) | ||
|
|
||
| config = Config( | ||
| repo_path=test_repo, output_dir="/tmp/test", dependency_graph_dir="/tmp/test/deps", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ | |
| from codewiki.src.config import Config | ||
|
|
||
| # Test repo | ||
| test_repo = "/Users/michaelassraf/Documents/GitHub/openframe-oss-tenant" | ||
|
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. 𦩠π test_clustering_simple.py hardcodes a developer's local absolute filesystem path Changed the π€ Prompt for AI agentsfix confidence: π‘ 85 medium β react π/π to teach the reviewer |
||
| test_repo = os.getenv("TEST_REPO_PATH", os.path.join(os.path.dirname(os.path.abspath(__file__)), "openframe-oss-tenant")) | ||
|
|
||
| # Create simple config with all required fields | ||
| config = Config( | ||
|
|
@@ -106,3 +106,4 @@ | |
| comp_count = len(module_info.get("components", [])) | ||
| print(f" - {module_name}: {comp_count} components") | ||
| sys.exit(0) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,10 @@ | |
|
|
||
| import json | ||
| import logging | ||
| import sys | ||
| from pathlib import Path | ||
|
|
||
| sys.path.insert(0, str(Path(__file__).parent)) | ||
|
|
||
| # Setup logging | ||
| logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') | ||
|
Comment on lines
6
to
15
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. 𦩠π test_clustering_validation.py does not add repo root to sys.path before codewiki imports Added π€ Prompt for AI agentsfix confidence: π΄ 40 low β review closely β react π/π to teach the reviewer |
||
|
|
@@ -175,3 +179,4 @@ def run_tests(): | |
| if __name__ == "__main__": | ||
| success = run_tests() | ||
| exit(0 if success else 1) | ||
|
|
||
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_proof.py hardcodes a developer's local absolute filesystem path
Replaced the hardcoded absolute path
/Users/michaelassraf/Documents/GitHub/openframe-oss-tenanton thetest_repoassignment withos.getenv("TEST_REPO_PATH", os.path.dirname(os.path.abspath(__file__))), mirroring the file's existing dynamic-path convention used forsys.path.insert(0, ...). This makes the script portable across machines by default (falling back to the script's own directory) while still allowing an explicit override via theTEST_REPO_PATHenvironment variable. Sincetest_repois only used to build synthetic, non-existent file paths forNodeobjects (not read from disk), this substitution does not change runtime behavior on any machine.π€ Prompt for AI agents
fix confidence: π‘ 85 medium β react π/π to teach the reviewer