Initialize debugger. Args: run_id: GitHub run ID or URL max_errors: Maximum number of errors to collect before stopping context_lines: Lines of context before/after errors
(self, run_id: str, max_errors: int = 10, context_lines: int = 5)
| 64 | ] |
| 65 | |
| 66 | def __init__(self, run_id: str, max_errors: int = 10, context_lines: int = 5): |
| 67 | """Initialize debugger. |
| 68 | |
| 69 | Args: |
| 70 | run_id: GitHub run ID or URL |
| 71 | max_errors: Maximum number of errors to collect before stopping |
| 72 | context_lines: Lines of context before/after errors |
| 73 | """ |
| 74 | self.run_id = self._extract_run_id(run_id) |
| 75 | self.max_errors = max_errors |
| 76 | self.context_lines = context_lines |
| 77 | self.repo = self._get_repo() |
| 78 | self.critical_errors: list[dict[str, str]] = [] |
| 79 | self.warnings: list[dict[str, str]] = [] |
| 80 | self.log_file: Optional[Path] = None |
| 81 | |
| 82 | def _extract_run_id(self, run_input: str) -> str: |
| 83 | """Extract run ID from URL or return as-is if already an ID.""" |
nothing calls this directly
no test coverage detected