Repository navigation
Conversation
Every pull_request workflow in this repository is path-filtered, so a full Rust PR shows 15 checks, an installer-only PR 14 and a CI-only PR 13, and agents decide "fully green" by counting. `needs:` cannot reach across workflows. all-required.yml has no path filter, so it reports on every pull request. Its one job waits for every other workflow run on the PR head (latest run per workflow, CodeQL default setup included) and every check run from another app, fails as soon as one ends failed, cancelled, timed out, stale, action_required or startup_failure, and passes once all have completed and the set is unchanged across two polls. No existing workflow changes.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reverted by the next commit.
This reverts commit cd3cf81.
From review: take the latest run per workflow and event, so a manual dispatch on the branch cannot hide the pull_request run; take check runs per check suite and job name; wait 90 s before confirming a completed set, so a late code-scanning update is seen; flatten names before printing them; and say in the header that the result is final for its run, that commit statuses are not read, and that a PR editing this file changes the gate.
From the second review: accept only a numeric workflow id for the self-exclusion lookup, since gh prints an HTTP error body to stdout; treat any completed conclusion other than success, skipped or neutral as a failure; give up after ten failed polls in a row instead of waiting for the job timeout; tolerate a null name; poll every 90 s to spare the shared GITHUB_TOKEN budget; and run with -e explicitly.
From the third review: while a workflow is running again, a failed job from its earlier attempt counts as pending, because a re-run job that waits on `needs:` gets its new check run only when it is queued; and pull_request runs that belong to another PR with the same head commit are left out.
From the fourth review: a run's pull_requests lists every open PR with that head, so the filter could not tell two such PRs apart, and a closed PR's runs list none. Say instead that PRs with the same head share runs.
From the final-head review: when a poll fails and the rate_limit endpoint reports no requests left, sleep until the reset instead of counting the poll towards the ten-error limit, so a burst of pull requests cannot turn every waiting check red.
This branch was successfully deployed
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.
Summary
.github/workflows/all-required.yml: one check,all-required, that reports on every pull request and is green only when every other workflow run and check on the PR head passed. "Fully green" becomes one status instead of a count (15 checks for a full Rust PR, 14 installer-only, 13 CI-only).Context
Why this design
All 15 workflows that run on
pull_requestare path-filtered (rust-ci, tui-tests, installer, windows-installer, marketplace, npm-install, npm-launcher, npm-packaging, published-release-smoke, release-candidate, release-marker, release-note, release-version, version-stamp, viewer). A docs-only PR triggers none of them. CodeQL default setup also runs on PR heads as a dynamic workflow.all-requiredjob inside each workflow thatneeds:its jobs:needs:stops at the workflow boundary, so it would give 15 summary checks, not one. Worse, a path-filtered workflow never reports, and a required check that never reports blocks the PR forever. Making it report would mean removing the path filters from existing workflows, which changes their triggers.workflow_run: a run started byworkflow_runis attached to the default branch, not the PR head, so its result does not appear on the PR, and it never fires on a PR where nothing else ran.pull_requestwith no path filter, so it reports on every PR. Its job polls the Actions runs API and the check-runs API forgithub.event.pull_request.head.sha:CodeQLcheck) count by latest per name. Its own workflow is excluded.failure,cancelled,timed_out,stale,action_requiredorstartup_failure.success,skippedorneutral) and the set is unchanged across two polls. When nothing else was triggered it passes after about a minute.actions: readandchecks: read, so it also works for fork PRs. It usesghandjqfrom the runner image; no action is used, so nothing new needs pinning.GITHUB_TOKENlimit of 1,000 requests per hour per repository when several PRs run at once. A failed API call is retried at the next poll rather than failing the check. The job times out after 120 minutes.Limits:
all-requiredtoo (gh run rerun <run id>, or "Re-run all jobs" on its run). It waits for the re-run to finish. A new push does this automatically.CodeQLcheck is created by GitHub after an analysis upload; the job counts it when it exists. Keep it as its own required check if it must always gate.Changes
.github/workflows/all-required.yml: new.Making it required (maintainer step)
mainhas no branch protection or ruleset today. After this merges:all-requiredwith the source GitHub Actions. It is offered once it has run on a PR, which this PR does.Because the workflow has no path filter, every PR gets the status, so requiring it cannot leave a PR waiting for a check that never runs. No per-job check needs to be required alongside it. The same ruleset with the CLI:
integration_id15368 is the GitHub Actions app. Agents can then read one status:gh api repos/OpenCoven/coven-code/commits/<head>/check-runs?check_name=all-required --jq '.check_runs[0].conclusion'.Validation
git diff --check: clean.actionlint .github/workflows/all-required.yml(with shellcheck): clean.cargo fmt --all: N/A, no Rust change.cargo check --workspace: N/A, no Rust change.cargo clippy --workspace --all-targets -- -D warnings: N/A, no Rust change.cargo test --workspace: N/A, no Rust change..github/workflows/all-required.yml, which matches no other workflow's path filter, so Rust CI and the TUI suite do not run on it.PR Readiness
Evidence
Runs on this PR are recorded here as they finish.