CL 8899166: Revert "Allow pausing a Rust Mojo MessagePipeWatcher" [chromium/src : main]

0 views
Skip to first unread message

Roshan Singh (Gerrit)

unread,
Dec 4, 2026, 1:44:50 PM (2 days ago) Dec 4
to Devon Loehr, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Devon Loehr

Roshan Singh has uploaded change 8899166 for review

Roshan Singh <ros...@chromium.org> would like Devon Loehr and Chromium LUCI CQ to review this change.

Commit message

Revert "Allow pausing a Rust Mojo MessagePipeWatcher"

This reverts commit cc9ab7a51da98cf51297921c6171fad4cf4c5cc5.

Reason for revert: The follow-up that needed pause support
(https://crrev.com/c/8854149) was abandoned. Only the tests added by
this CL pause the watcher. FlushForTesting only needs an ordered reply.

Failure Link: N/A (voluntary revert)

Original change's description:
> Allow pausing a Rust Mojo MessagePipeWatcher
>
> Previously, once a MessagePipeWatcher started processing messages
> there was no way to stop it. The router needs to pause reads while
> it handles a flush control message (https://crrev.com/c/8854149).
>
> This CL adds `pause_processing`, which is undone by calling
> `begin_processing` again. While paused, the watcher leaves incoming
> messages and the disconnect notification in the pipe, and delivers
> them in order afterwards. It works by having the task that we post
> for each message check whether we're paused before it reads anything.
>
> Some existing behaviors change:
> - The disconnect handler now runs from a task that makes the same
> check, so `is_connected` changes when that task runs instead of
> when the trap fires.
> - The disconnect handler no longer runs if the watcher is dropped
> before that task runs.
> - If a message is already waiting when we arm the trap, its task is
> posted to the watcher's runner instead of the current default one,
> so that `begin_processing` works from any sequence.
>
> Bug: 573683206
> Change-Id: I8b845aaa1dd11faae7d804bff8ed5b66c7558b40
> Reviewed-on: https://crrev.com/c/8854109
> Reviewed-by: Devon Loehr <dlo...@google.com>
> Commit-Queue: Roshan Singh <ros...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1758910}
Bug: 573683206
Change-Id: Id61a2f7ccee3eecb9c92c65d31db58a4d090e361

Change diff


Change information

Files:
  • M mojo/public/rust/bindings/message_pipe_watcher.rs
  • M mojo/public/rust/bindings/test/tests.rs
Change size: L
Delta: 2 files changed, 39 insertions(+), 304 deletions(-)
Open in Gerrit

Related details

Attention is currently required from:
  • Devon Loehr
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id61a2f7ccee3eecb9c92c65d31db58a4d090e361
Gerrit-Change-Number: 8899166
Gerrit-PatchSet: 1
Gerrit-Owner: Roshan Singh <ros...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
Gerrit-Attention: Devon Loehr <dlo...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

rubber-stamper@appspot.gserviceaccount.com (Gerrit)

unread,
Dec 4, 2026, 1:46:46 PM (2 days ago) Dec 4
to Roshan Singh, Devon Loehr, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Devon Loehr

rubber-...@appspot.gserviceaccount.com voted Pure-Revert+1 on change 8899166

Pure-Revert+1
Open in Gerrit

Related details

Attention is currently required from:
  • Devon Loehr
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Id61a2f7ccee3eecb9c92c65d31db58a4d090e361
    Gerrit-Change-Number: 8899166
    Gerrit-PatchSet: 1
    Gerrit-Owner: Roshan Singh <ros...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
    Gerrit-Attention: Devon Loehr <dlo...@google.com>
    Gerrit-Comment-Date: Fri, 04 Dec 2026 18:46:30 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    rubber-stamper@appspot.gserviceaccount.com (Gerrit)

    unread,
    5:18 AM (9 hours ago) 5:18 AM
    to Roshan Singh, Devon Loehr, Chromium LUCI CQ, chromium...@chromium.org
    Attention needed from Devon Loehr and Roshan Singh

    Message from rubber-...@appspot.gserviceaccount.com on change 8899166

    The change contains code changes after the initial patchset. Learn more: go/rubber-stamper-user-guide.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Devon Loehr
    • Roshan Singh
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Id61a2f7ccee3eecb9c92c65d31db58a4d090e361
      Gerrit-Change-Number: 8899166
      Gerrit-PatchSet: 2
      Gerrit-Owner: Roshan Singh <ros...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
      Gerrit-Reviewer: Roshan Singh <ros...@chromium.org>
      Gerrit-Attention: Roshan Singh <ros...@chromium.org>
      Gerrit-Attention: Devon Loehr <dlo...@google.com>
      Gerrit-Comment-Date: Sun, 06 Dec 2026 10:18:11 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Devon Loehr (Gerrit)

      unread,
      1:52 PM (1 hour ago) 1:52 PM
      to Roshan Singh, Chromium LUCI CQ, chromium...@chromium.org
      Attention needed from Roshan Singh

      Devon Loehr voted Code-Review+1 on change 8899166

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Roshan Singh
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Id61a2f7ccee3eecb9c92c65d31db58a4d090e361
      Gerrit-Change-Number: 8899166
      Gerrit-PatchSet: 2
      Gerrit-Owner: Roshan Singh <ros...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
      Gerrit-Reviewer: Roshan Singh <ros...@chromium.org>
      Gerrit-Attention: Roshan Singh <ros...@chromium.org>
      Gerrit-Comment-Date: Sun, 06 Dec 2026 18:52:47 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Devon Loehr (Gerrit)

      unread,
      1:53 PM (1 hour ago) 1:53 PM
      to Roshan Singh, Chromium LUCI CQ, chromium...@chromium.org
      Attention needed from Roshan Singh

      Devon Loehr voted Commit-Queue+2 on change 8899166

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Roshan Singh
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Id61a2f7ccee3eecb9c92c65d31db58a4d090e361
      Gerrit-Change-Number: 8899166
      Gerrit-PatchSet: 2
      Gerrit-Owner: Roshan Singh <ros...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
      Gerrit-Reviewer: Roshan Singh <ros...@chromium.org>
      Gerrit-Attention: Roshan Singh <ros...@chromium.org>
      Gerrit-Comment-Date: Sun, 06 Dec 2026 18:52:54 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      2:05 PM (28 minutes ago) 2:05 PM
      to Roshan Singh, Devon Loehr, chromium...@chromium.org

      Chromium LUCI CQ submitted change 8899166

      Change information

      Reviewed-by: Devon Loehr <dlo...@google.com>
      Commit-Queue: Devon Loehr <dlo...@google.com>
      Cr-Commit-Position: refs/heads/main@{#1763913}
      Files:
      • M mojo/public/rust/bindings/message_pipe_watcher.rs
      • M mojo/public/rust/bindings/test/tests.rs
      Change size: L
      Delta: 2 files changed, 40 insertions(+), 304 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Devon Loehr
      • requirement satisfiedReview-Enforcement: Code-Review+1 by Devon Loehr
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Id61a2f7ccee3eecb9c92c65d31db58a4d090e361
      Gerrit-Change-Number: 8899166
      Gerrit-PatchSet: 3
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages