potiuk commented on code in PR #63319:
URL: https://github.com/apache/airflow/pull/63319#discussion_r2918181090
##########
dev/breeze/src/airflow_breeze/commands/pr_commands.py:
##########
@@ -1253,122 +1257,889 @@ def _resolve_unknown_mergeable(token: str,
github_repository: str, prs: list[PRD
return resolved
-def _fetch_pr_diff(token: str, github_repository: str, pr_number: int) -> str
| None:
- """Fetch the diff for a PR via GitHub REST API. Returns the diff text or
None on failure."""
- import requests
+def _llm_progress_status(completed: int, total: int, flagged: int, errors:
int) -> str:
+ """Build a one-line LLM assessment progress string for display between
prompts."""
+ if total == 0:
+ return ""
+ remaining = total - completed
+ parts = [f"{completed}/{total} done"]
+ if flagged:
+ parts.append(f"{flagged} flagged")
+ if errors:
+ parts.append(f"{errors} errors")
+ if remaining:
+ parts.append(f"{remaining} in progress")
+ return f"[dim]LLM assessment: {', '.join(parts)}[/]"
+
+
+def _collect_llm_results(
+ future_to_pr: dict,
+ llm_assessments: dict,
+ llm_completed: list[int],
Review Comment:
There will be a few of those usually - that's premature optimization, I
think :) - and list keeps sequence.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]