Skip to content

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

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

shumkov merged 1 commit into
v4.3-devfrom
chore/pr-hygiene-sweep-clone-v4.3-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) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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: 7f8e12a1-e3f0-4a89-8b64-721a7e4caa6e

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 github-actions Bot added this to the v4.3.0 milestone Sep 16, 2026
@shumkov
shumkov merged commit 58cff51 into v4.3-dev Sep 16, 2026
14 checks passed
@shumkov
shumkov deleted the chore/pr-hygiene-sweep-clone-v4.3-dev branch September 16, 2026 19:43
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.

1 participant