Repository navigation
feat(runner): a required check a PR's paths filter out passes as skipped (E9) - #379
Merged
Merged
Conversation
…ut as skipped A workflow whose paths / paths-ignore select no file of a PR never ran, so a branch policy that required one of its checks blocked the merge forever. The runner now reports each such required check as completed skipped (which counts as passed), with the reason, and nothing for checks the policy does not require. Pushes are never skipped this way: a push's changes are only its own commits. If the policy can't be read, every filtered check is reported. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… a failed skip Path-filtered checks are reported before any workflow runs, never when a workflow that runs reports the same name, and a report that fails twice fails the run so the next poll tries again. A refused job is reported as the failure it would be anywhere. A policy that requires every check gets every filtered one when nothing else reports on the PR, and a re-run reports just the check it asked for. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
What
A required check whose workflow a pull request's
pathsfilter leaves out no longer blocks the merge forever. forge-runner now reports it asskipped, which counts as passed, with the reason.Why
forge-runner honours
paths/paths-ignoreby not running the workflow, so it posted no check run at all. If the branch policy required one of that workflow's checks, every PR that didn't touch those paths could never meet the policy. This is GitHub's "Expected — waiting for status" trap.How
workflow::plankeeps a third list,path_filtered: the workflows that would run on this pull request but for their path filters (Facts::filtered_by_paths, which re-judgeson.pull_requestwith the changes unknown).runreads the required check names (dg repo policy show) only when that list is non-empty, before any workflow runs. For each filtered job whose check name the policy requires, it posts one completedskippedrun on the head: "Skipped: PR Publish the browse index on ordinary pushes #4 changes no file this workflow'spathsfilters select." A job the runner refuses is reported as the failure it would be anywhere, not as skipped.dg ci rerun) is judged again and reports just that check.docs/guides/self-host-runner.md.How tested
cargo fmt,clippy -D warningsandcargo test -p forge-runner, with new unit tests forfiltered_by_paths(paths, paths-ignore, unknown changes, another base, push never skipped),plan,keep_checkand the policy reader.crates/forge-runner/tests/e2e-local.shgets section 12, run locally with act and Docker:docs/gets exactly one report,paths / req (pull_request)completed/skippedon its head with the reason. The workflow's other, unrequired job gets none./Users/pasta/workspace/dash-forge-qa/evidence/p0/merge-power/e9-runner-e2e-local-2.txt(final head). The first run,e9-runner-e2e-local.txt, failed once on section 7's v4 artifact upload through Docker Desktop, which this change doesn't touch.Limits
pull_requestfor required checks.🤖 Generated with Claude Code