Skip to content

Contributor's push did not invalidate previous review #196417

Closed

Description

@gaaclarke

description

In flutter/packages#13595 the sequence of events that happened allowed it to be merged with one valid approval for a PR from an external contributor.

expected result

When the contributor pushed from a3d2a70 to 16c7e6d, it should have dismissed Dan's review.

observed result

That force push did not invalidate Dan's approval. Autosubmit was happy with my approval and dan's stale approval.

Activity

  1. added
    team-infra
    on Nov 12, 2026
  2. changed the title [-]contributors push did not invalidate previous review[/-] [+]Contributor's push did not invalidate previous review[/+] on Nov 12, 2026
  3. stuartmorgan commented on Nov 12, 2026

    @stuartmorgan
    Contributor

    expected result

    When the contributor pushed from a3d2a70 to 16c7e6d, it should have dismissed Dan's review.

    That behavior was never turned on for flutter/packages; pushes have never invalidated approvals there, we have always just relied on the final reviewer to determine whether an earlier approval should be re-requested based on the changes.

  4. eyebrowsoffire commented on Nov 16, 2026

    @eyebrowsoffire
    Contributor

    We do have this turned on in flutter/flutter. We might want to consider making these consistent between the repos.

  5. added
    P2
    on Nov 16, 2026
  6. eyebrowsoffire commented on Nov 16, 2026

    @eyebrowsoffire
    Contributor

    @Piinks I'd love your input on this when you get a chance.

  7. Piinks commented on Nov 16, 2026

    @Piinks
    Contributor

    Yeahhhh let's turn that on. One sec. I will check flutter/core-packages as well

  8. added
    triaged-infra
    on Nov 16, 2026
  9. Piinks commented on Nov 16, 2026

    @Piinks
    Contributor

    Thanks for flagging. Review dismissal is enabled now for pushes on flutter/packages and flutter/core-packages. Closing as fixed.

  10. Mairramer commented on Nov 19, 2026

    @Mairramer
    Contributor

    I understand the safety benefits of dismissing stale approvals, but I think this can add quite a bit of friction for larger or federated plugin PRs in flutter/packages, especially changes involving multiple platforms, like camera.

    Contributors often start with a larger PR to validate the overall approach across the platform interface, native implementations, and app-facing package before splitting it up or getting everything reviewed together.

    These PRs naturally take longer to review, and conflicts in CHANGELOG.md or pubspec.yaml are pretty common while waiting for reviews. The issue is that even a trivial conflict resolution or version bump dismisses all existing approvals and starts the review process over, even when none of the actual implementation code has changed.

    Could we consider a more targeted approach in Cocoon instead of GitHub's blanket dismissal? For example, only invalidating approvals when changes after a review touch files other than CHANGELOG.md or the version: field in pubspec.yaml, or otherwise rethinking how multi-package/federated plugin changes are submitted and reviewed.

  11. stuartmorgan commented on Nov 19, 2026

    @stuartmorgan
    Contributor

    These PRs naturally take longer to review, and conflicts in CHANGELOG.md or pubspec.yaml are pretty common while waiting for reviews.

    The approval bit on the combo PR doesn't actually matter, because it's not submitted in that form. What matters is just that all the stakeholders have reviewed it and LGTM'd it so the submittable PRs can be started.

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

    P2team-infratriaged-infra

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions