Skip to content

fix(workflow watcher): reduce repeated reads for terminal successes - #773

Merged
GraciousGazelles merged 2 commits into
mainfrom
codex/watcher-terminal-cache-20260905
Sep 6, 2026
Merged

GraciousGazelles merged 2 commits into
mainfrom
codex/watcher-terminal-cache-20260905

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

The workflow-run watcher can observe multiple exact run-id targets in one cycle. Once one target has reached terminal success, each subsequent cycle re-fetches its full run and jobs payload even while sibling targets remain pending. This patch reuses that terminal-success observation for a bounded interval.

The cache is deliberately latest-following rather than permanent: after the bounded interval the run is re-read so a new attempt or head is visible. Nonterminal and failure observations are always refreshed. Exact head mismatches remain actionable and cannot be treated as success.

Validation

  • Added request-count coverage for a mixed completed-success plus pending target set.
  • Added bounded revalidation coverage for changed attempts and changed heads.
  • Added freshness coverage for in-progress failures.
  • Existing workflow/ref discovery coverage remains unchanged.

Hosted CI validation is required for this candidate; no local build or test was run.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@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-05T17:58:41.635635Z 45e1fa9 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.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 5, 2026
Merged via the queue into main with commit 4abfe49 Sep 6, 2026
65 checks passed
@GraciousGazelles
GraciousGazelles deleted the codex/watcher-terminal-cache-20260905 branch September 6, 2026 00:14
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