Skip to content

fix(babysit-pr): reuse stable watcher API details - #771

Merged
GraciousGazelles merged 10 commits into
mainfrom
repair/w13762-pr-watcher-call-reuse
Sep 5, 2026
Merged

GraciousGazelles merged 10 commits into
mainfrom
repair/w13762-pr-watcher-call-reuse

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-05T14:39:52.479903Z 20f3d76 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 36cc9c9 Sep 5, 2026
70 checks passed
@GraciousGazelles
GraciousGazelles deleted the repair/w13762-pr-watcher-call-reuse branch September 5, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant