Skip to content

Deduplicate check runs to prevent stuck polling#31

Open
arferreira wants to merge 1 commit intomainfrom
dedup-check-runs
Open

Deduplicate check runs to prevent stuck polling#31
arferreira wants to merge 1 commit intomainfrom
dedup-check-runs

Conversation

@arferreira
Copy link
Contributor

GitHub Actions can produce duplicate check runs for the same job name when workflows are re-triggered or race. The older run stays in_progress forever while the newer one completes. Fila's poll_checks waits for all check runs to complete, so a single orphaned run blocks the entire batch until timeout.

This deduplicates check runs by name, keeping only the latest (highest ID) per name before evaluating completion status. Also adds the id field to GhCheckRun.

Found this in production on the Table-Connect monorepo where path-filtered workflows combined with discord-notify re-triggers consistently produced duplicate runs.

@arferreira arferreira requested a review from ShiraiEd March 9, 2026 12:18
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