-
Notifications
You must be signed in to change notification settings - Fork 1
fix(adhoc-sweep-fixes): CU-86akhf8u6 4 review findings across 4 files #80
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
base: main
Are you sure you want to change the base?
Changes from all commits
3d8ba75
0c11179
a9911ce
722f5f8
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 |
|---|---|---|
|
|
@@ -201,6 +201,7 @@ async def generate_module_documentation(self, components: Dict[str, Any], leaf_n | |
| # Process modules in dependency order | ||
| final_module_tree = module_tree | ||
| processed_modules = set() | ||
| failed_modules = [] | ||
|
|
||
| if len(module_tree) > 0: | ||
| logger.info(f"ββ Processing {len(processing_order)} modules...") | ||
|
|
@@ -284,9 +285,20 @@ async def generate_module_documentation(self, components: Dict[str, Any], leaf_n | |
| logger.error(f"β ββ [{idx}/{len(processing_order)}] β Failed: {module_key}") | ||
| logger.error(f"β β ββ Error: {str(e)}") | ||
| logger.error(f"β β ββ Traceback:\n{traceback.format_exc()}") | ||
| # Continue processing other modules (graceful degradation) | ||
| # Record the failure so the overall run can be reported/failed | ||
| # instead of silently degrading to a stale/incomplete tree. | ||
| failed_modules.append((module_key, str(e))) | ||
| continue | ||
|
|
||
| if failed_modules: | ||
| failure_summary = "; ".join(f"{key}: {err}" for key, err in failed_modules) | ||
| logger.error( | ||
| f"ββ β {len(failed_modules)}/{len(processing_order)} module(s) failed to generate: {failure_summary}" | ||
| ) | ||
| raise RuntimeError( | ||
| f"Module documentation generation failed for {len(failed_modules)} module(s): {failure_summary}" | ||
| ) | ||
|
|
||
| # Generate repo overview | ||
| logger.info(f"ββ π Generating repository overview...") | ||
| import time | ||
|
Comment on lines
285
to
304
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. 𦩠π Broad except Exception in module processing loop silently swallows failures without failing the overall run In π€ Prompt for AI agentsfix confidence: π‘ 75 medium β react π/π to teach the reviewer |
||
|
|
@@ -492,4 +504,4 @@ async def run(self) -> None: | |
| except Exception as e: | ||
| logger.error(f"Documentation generation failed: {str(e)}") | ||
| logger.error(f"Traceback: {traceback.format_exc()}") | ||
| raise | ||
| raise | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ class WebAppConfig: | |
| CACHE_EXPIRY_DAYS = 365 | ||
|
|
||
| # Job cleanup settings | ||
| JOB_CLEANUP_HOURS = 24000 | ||
|
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. 𦩠π WebAppConfig.JOB_CLEANUP_HOURS = 24000 is likely a units bug (should be minutes or a much smaller hour count) Changed π€ Prompt for AI agentsfix confidence: π‘ 80 medium β react π/π to teach the reviewer |
||
| JOB_CLEANUP_HOURS = 24 | ||
| RETRY_COOLDOWN_MINUTES = 3 | ||
|
|
||
| # Server settings | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,8 @@ def clone_repository(clone_url: str, target_dir: str, commit_id: str = None) -> | |
|
|
||
| if result.returncode != 0: | ||
| logger.error(f"Error cloning repository: {result.stderr}") | ||
| if os.path.isdir(target_dir): | ||
| shutil.rmtree(target_dir, ignore_errors=True) | ||
| return False | ||
|
|
||
| # Checkout specific commit | ||
|
|
@@ -91,6 +93,8 @@ def clone_repository(clone_url: str, target_dir: str, commit_id: str = None) -> | |
|
|
||
| if result.returncode != 0: | ||
| logger.error(f"Error cloning repository: {result.stderr}") | ||
| if os.path.isdir(target_dir): | ||
| shutil.rmtree(target_dir, ignore_errors=True) | ||
| return False | ||
|
|
||
| return True | ||
|
Comment on lines
93
to
100
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. 𦩠π clone_repository leaves a partially-cloned directory on timeout/exception during shallow clone path In GitHubRepoProcessor.clone_repository, added π€ Prompt for AI agentsfix confidence: π’ 95 high β react π/π to teach the reviewer |
||
|
|
@@ -99,3 +103,4 @@ def clone_repository(clone_url: str, target_dir: str, commit_id: str = None) -> | |
| if os.path.isdir(target_dir): | ||
| shutil.rmtree(target_dir, ignore_errors=True) | ||
| return False | ||
|
|
||
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.
𦩠π _resolve_call_relationships redundant/dead branch checking callee_name in func_lookup twice
In
_resolve_call_relationships, removed the dead innerif callee_name in func_lookup:re-check inside theelif "." in callee_name:branch (which could never be true since the outerifalready excludes that case). The branch now goes straight to computingmethod_name = callee_name.split(".")[-1]and resolving viafunc_lookup[method_name], restoring the intended fallback resolution path for dotted/qualified callee names without changing any other behavior.π€ Prompt for AI agents
fix confidence: π‘ 85 medium β react π/π to teach the reviewer