fix(ci): unblock workflow-only PRs stuck on required Postgres check - #837
Merged
Conversation
'Postgres integration tests' is a required status check on main, but its workflow is path-filtered to src/tests/dependency paths. A PR touching none of those (workflow-only or docs-only changes) never gets the check reported and stays BLOCKED forever — this deadlocked #836 and #832 despite every triggered check passing. Add GitHub's documented mirror pattern: an identically named job that succeeds instantly, triggered by the exact inverse filter (paths-ignore mirroring the real workflow's paths). Code PRs run the real tests; non-code PRs get the green check from the mirror. This PR unblocks itself the same way. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Postgres integration testsis a required status check on main, butpostgres-integration.ymlis path-filtered tosrc/**,tests/**,pyproject.toml,uv.lock. A PR that touches none of those — like #836 (workflow-only) and #832 (workflows + config + docs) — never gets the check reported, so GitHub shows it as waiting forever and the PR is BLOCKED even with every triggered check green.Solution
GitHub's documented pattern for required-but-path-filtered checks: a mirror workflow with an identically named job that succeeds instantly, triggered by the exact inverse filter (
paths-ignorewith the same list the real workflow uses inpaths).Verification
This PR is its own end-to-end test: it's workflow-only, so it deadlocks under the current setup — the mirror workflow it adds is what reports
Postgres integration testson it and flips it mergeable.Notes
🤖 Generated with Claude Code