Repository navigation
build: Update rust toolchain version - #5807
Conversation
|
@prql-bot why didn't this fire a reviewers which fixed the issues? it is under your user, not a |
Rust 1.94's clippy rejects `checked_sub(1).unwrap_or_default()` as manual saturating arithmetic. Replace with `saturating_sub(1)`. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Workflows did fire on this PR — the
I've pushed 5c3b4ba to apply If you'd like auto-fix on PR branches too, the knob would be broadening |
|
but why didn't the review spot the test failures? |
|
Timing — the review ran before any tests failed.
By the time the clippy error surfaced, the review job had already completed and wouldn't re-run. To make reviews catch CI failures, the workflow would need a |
|
but isn't the review supposed to hang around until the tests are finished? |
|
It is — the review's step 6 runs a The session log for the review run confirms this — the loop backgrounded, returned once Two ways to close this: either mark |
|
look again at the required checks: I think there's an omnibus check? |
|
You're right — I was wrong about that. The actual reason the review loop missed it: the check-run wasn't published yet. On the broken commit ( So the review loop's exit condition ( |
…hecks --required` `gh pr checks --required` only sees already-registered check-runs, so a late-starting `if: always()` omnibus (e.g. `check-ok-to-merge` that waits on a big `needs:` matrix) can race the polling loop: the early polls see only the fast required contexts green and exit while the real matrix is still running or has already failed. Incident trace in #305 (downstream: PRQL/prql#5807, PRQL/prql#5809). Switch the loop to `gh pr view --json mergeStateStatus,reviewDecision,statusCheckRollup`: - `statusCheckRollup` surfaces every check-run and status context on the commit, not just the required ones — filter own-run by URL and count IN_PROGRESS / QUEUED / PENDING / WAITING to decide whether to keep waiting. - `mergeStateStatus` accounts for required-but-unreported contexts that `gh pr checks` cannot see. If the PR is `BLOCKED` and `reviewDecision` is not `REVIEW_REQUIRED`/`CHANGES_REQUESTED`, a required context is still outstanding — keep polling. - Bump budget 10 → 15 minutes since the loop now waits on every check-run on the commit (not just required). Mirror the update in the `review` skill's Step 6 so the duplicate snippet does not drift. Co-Authored-By: Claude Opus 4.7 <[email protected]>
…hecks --required` (#308) Fixes #305. ## Summary - Replace the `gh pr checks <n> --required` polling loop with a `gh pr view --json mergeStateStatus,reviewDecision,statusCheckRollup` loop so late-registering `if: always()` omnibus checks (e.g. `check-ok-to-merge`) can't race the polling and make the bot report a broken PR green. - Mirror the change in `review` Step 6 — the snippet was duplicated, flagged in my first comment on #305. - Bump the polling budget 10 → 15 minutes now that the loop waits on every check-run on the commit, not just required ones. ## Why this shape From [issue #305](#305) + [discussion with @max-sixty](#305 (comment)): `gh pr checks --required` only reports check-runs that are **already registered** on the commit. An omnibus with `if: always()` and a long `needs:` list doesn't register its check-run until the needs start resolving — so early polls see only the fast required contexts (e.g. `pre-commit.ci - pr`), the loop exits green, and the real matrix is still running or has already failed. The new loop pairs two signals that between them don't have that blind spot: 1. **`statusCheckRollup`** — every check-run and status context on the commit, not just required ones. Filter out the current run by URL and count `IN_PROGRESS`/`QUEUED`/`PENDING`/`WAITING` items. This alone catches the PRQL incident because the test matrix jobs are in the rollup even though they're not directly required by branch protection. 2. **`mergeStateStatus` + `reviewDecision`** — backstop for the narrow window where matrix jobs are already terminal but the omnibus check-run hasn't yet registered. `mergeStateStatus = BLOCKED` with `reviewDecision` not in `{REVIEW_REQUIRED, CHANGES_REQUESTED}` means a required context is outstanding and we should keep polling; `BLOCKED` with review-required means approval is the blocker (CI-wise we're done, exit). `UNKNOWN` (`mergeStateStatus` hasn't been computed yet) also keeps us polling — GitHub computes it asynchronously after a push. ## Known limitation `BLOCKED` + `REVIEW_REQUIRED` can mean either (a) approval-only block with all checks done or (b) approval-needed **and** a required context not yet registered. These are indistinguishable from a single snapshot without reading branch protection, which most bot PATs can't do. In practice the registration window for an omnibus is seconds (between last `needs:` job completing and the job starting), so a 60-second poll cadence nearly always catches the next registered state. Documented in-comment. ## Test plan - [ ] Sanity-checked the `jq` filter against a real PR (`PRQL/prql#5807`) — returns `PENDING=0` on a merged PR as expected. - [ ] `uvx pre-commit run` passes on both files. - [ ] Change is skill-file-only (no generator/workflow changes). - [ ] Downstream verification happens when consumers next regenerate nightly; the PRQL scenario from #305 is the canonical case to watch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: tend-agent <[email protected]> Co-authored-by: Claude Opus 4.7 <[email protected]>
Automatic change by the update-rust-toolchain Github Action.
Github Actions will not run workflows on pull requests which are opened by a GitHub Action.
For examples on how to run workflows on this pr, please go to the readme.