Repository navigation
fix(babysit-pr): reuse stable watcher API details - #771
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Code Review
This pull request introduces caching for completed workflow run jobs and the authenticated login to optimize watcher performance, and defers workflow-run discovery until all checks are terminal. Feedback highlights a critical issue where deferring workflow-run discovery until all checks are terminal prevents diagnosing failures when require_terminal_checks is False and a check fails early. It is suggested to also fetch workflow runs if there are any failed checks.
Reduces redundant PR watcher API reads while preserving periodic terminal discovery and transition safety.\n\n- Reuses authenticated login within one watcher session.\n- Defers workflow-run/job fanout while checks are nonterminal.\n- Reuses completed-run jobs by run id and attempt; refetches in-progress/new attempts.\n- Adds request-count regression coverage.\n\nValidation is run on GitHub-hosted Actions.