GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Require keeping an unreviewed PR open for a period of time · Issue #541 · python/core-workflow

Require keeping an unreviewed PR open for a period of time #541

New issue
Copy link
New issue
Copy link
Open
Open
Require keeping an unreviewed PR open for a period of time#541
Copy link
Labels
CI

Description

@erlend-aasland
erlend-aasland
opened on Jun 10, 2024
Issue body actions

In order to encourage reviews, and to prevent PRs from being created and merged without reviews within a short period of time (sometimes within one hour!), it has multiple times been suggested (on Discord, informally in discussions on PyCon) to add tooling that prevents an unreviewed reviewed PR to be merged unless a predetermined period of time has passed.

I think we should add a check that for unreviewed PRs will require a certain period of time to pass before the PR can be merged. This check will reset if new commits are added. If a review is performed, the check is dismissed. If a review if performed and new commits are added, the check is reset and a new review must be performed in order to dismiss the check again.

For discussion:

  • Should this check be dismissed only when a core dev or triager has reviewed the PR, or should we allow external reviews?
  • How long should the delay be? I suggest somewhere between 1 and 2 weeks. IMO, 2 days or even 3 days is too short.
Reacted by Alex Waygood, Kirill Podoprigora and Pradyun Gedam

Activity

  1. erlend-aasland
    added
    CI
    on Jun 10, 2024
  2. hauntsaninja commented on Jun 10, 2024

    @hauntsaninja
    hauntsaninja
    on Jun 10, 2024
    Contributor
    More actions

    How long should the delay be

    Maybe you could pull statistics from recent PRs so we know what the impact would be?

    the check is reset

    I'm worried this will force roundtrips that aren't particularly valuable

    Reacted by Alex Waygood
  3. erlend-aasland commented on Jun 10, 2024

    @erlend-aasland
    erlend-aasland
    on Jun 10, 2024
    Author
    More actions

    [additional context added by me]

    If a review if performed and new commits are added, the check is reset and a new review must be performed in order to dismiss the check again.

    I'm worried this will force roundtrips that aren't particularly valuable

    It might do; it may also be valuable in some situations. If it turns out to be more of a nuisance, we can easily disable that functionality.

  4. AlexWaygood commented on Jun 10, 2024

    @AlexWaygood
    AlexWaygood
    on Jun 10, 2024
    Member
    More actions

    I like this idea overall, but I think it would be good to exclude docs-only PRs from this check.

    If a review if performed and new commits are added, the check is reset and a new review must be performed in order to dismiss the check again.

    I don't like this much, as I think it would disincentivise people from merging in main to the PR branch just before merging the PR. That's usually a good idea, as it helps prevent merge races where a outdated CI run is green on the PR but the tests end up failing on main

  5. erlend-aasland commented on Jun 10, 2024

    @erlend-aasland
    erlend-aasland
    on Jun 10, 2024
    Author
    More actions

    I like this idea overall, but I think it would be good to exclude docs-only PRs from this check.

    That makes sense.

    I don't like this much, as I think it would disincentivise people from merging in main to the PR branch just before merging the PR. That's usually a good idea, as it helps prevent merge races where a outdated CI run is green on the PR but the tests end up failing on main

    For external PRs, this is not a problem; the person merging in main will certainly be a core dev, and thus be in the position to immediately also approve the PR. For PRs created by core devs, it would of course be more irritating. I guess you are right it will quickly become a pain point.

  6. sobolevn commented on Jun 10, 2024

    @sobolevn
    sobolevn
    on Jun 10, 2024
    Member
    More actions

    We can use a comment with /recheck-review-status command or similar to use together with

    If a review if performed and new commits are added, the check is reset and a new review must be performed in order to dismiss the check again.

    Reacted by Erlend E. Aasland
  7. AA-Turner commented on Aug 12, 2025

    @AA-Turner
    AA-Turner
    on Aug 12, 2025
    Member
    More actions

    Closing, stale.

  8. AA-Turner
    closed this as completedon Aug 12, 2025
  9. erlend-aasland commented on Sep 18, 2025

    @erlend-aasland
    erlend-aasland
    on Sep 18, 2025
    Author
    More actions

    I still think we should consider this.

    Reacted by Pradyun Gedam
  10. erlend-aasland
    reopened this on Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CI

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.