Skip to content

ci: re-pin PR Hygiene to clone this repository only on its sweep - #1482

Merged
shumkov merged 1 commit into
v1.8-devfrom
chore/pr-hygiene-sweep-clone-v1.8-dev
Sep 16, 2026
Merged

shumkov merged 1 commit into
v1.8-devfrom
chore/pr-hygiene-sweep-clone-v1.8-dev

Conversation

@shumkov

@shumkov shumkov commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Re-pins the shared review workflow onto dashpay/stale_prs_are_bad#31.

Every run cloned this repository's default branch. Measured across four consecutive platform runs it was 8–10 seconds of a 20–26 second run — the slowest step by some way, against 4–5 seconds for the reconciliation it supports.

It exists to answer one question: do the directories the policy names still exist? That can only change when a pull request merges. The policies are already checked against a fresh clone of every governed repository whenever one is proposed, and the sweep asks again every hour — so the clone now happens on the scheduled sweep, a manual dispatch, or a push to the default branch, and not on ordinary pull request events.

Two things worth knowing:

  • A policy pointing at a directory a merge deleted is noticed by the next sweep rather than the next event.
  • While a policy really is broken, the sweep marks every open head an error, and a later event on one pull request — which no longer revalidates — republishes its ordinary status. So one pull request can read green while the policy is broken, until the next sweep reaches it.

The advisory "policy paths and CODEOWNERS" summary was always generated from the default branch, never from the pull request's head, so a pull request editing CODEOWNERS always got the same answer the sweep gives. That feedback loses latency, not information.

No change to who may approve, when a pull request is ready, or what blocks it.

🤖 Generated with Claude Code

The clone of this repository was the slowest step in every run, nine of its
twenty seconds, and it answers one question: do the policy area directories
still exist. That can only change when a pull request merges, and the sweep
asks every hour.

dashpay/stale_prs_are_bad#31 landed as 6d57d4c22eeeeaff88554f6e78466be2aec7aed7.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@shumkov
shumkov requested a review from lklimek as a code owner September 16, 2026 19:43
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 776f9b3f-4ea0-4f8d-8dea-3f3b364adb0c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

PR Hygiene

State: waiting-bots · commit 9eedbd9b1ee566bc9b658708b2f415af544e00e8

  • thepastaclaw has not reported for the current head

Self-review is an author attestation that you have read the diff:
/self-reviewed — covers everything pushed so far; post it again after a new push.
Post it after this report appears for commit 9eedbd9b1ee566bc9b658708b2f415af544e00e8, or name the commit explicitly with /self-reviewed 9eedbd9b1ee566bc9b658708b2f415af544e00e8.

This report does not bypass CI or repository protection rules.

@thepastaclaw

thepastaclaw commented Sep 16, 2026 •

Copy link
Copy Markdown

🕓 Queued for automated review — 13th in line, estimated start in ~4 h (commit 9eedbd9)
Estimated review time once started: ~40 min (two-phase automated review; median of recent runs).

  • Request priority review — click to move this review to the front of the queue.

@shumkov
shumkov merged commit 372255c into v1.8-dev Sep 16, 2026
23 checks passed
@shumkov
shumkov deleted the chore/pr-hygiene-sweep-clone-v1.8-dev branch September 16, 2026 19:53
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.

2 participants