Expose RunLoop::RunUntilIdle to Rust [chromium/src : main]

0 views
Skip to first unread message

Daniel Cheng (Gerrit)

unread,
12:45 PM (4 hours ago) 12:45 PM
to Devon Loehr, Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Devon Loehr

Daniel Cheng added 1 comment

Commit Message
Line 14, Patchset 1 (Latest):haven't processed the messages at that point.
Daniel Cheng . unresolved

Can we just post a task to quit the run loop, or do we really need to ensure the run loop is empty and not just "all tasks before this quit closure was posted have run"?

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 satisfiedNo-Unresolved-Comments
  • 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: I236c4b4ff50c0bce790eb91af3dfc536f1059e8b
Gerrit-Change-Number: 7879890
Gerrit-PatchSet: 1
Gerrit-Owner: Devon Loehr <dlo...@google.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
Gerrit-Attention: Devon Loehr <dlo...@google.com>
Gerrit-Comment-Date: Thu, 28 May 2026 16:45:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Devon Loehr (Gerrit)

unread,
12:57 PM (4 hours ago) 12:57 PM
to Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Daniel Cheng

Devon Loehr added 1 comment

Commit Message
Line 14, Patchset 1 (Latest):haven't processed the messages at that point.
Daniel Cheng . unresolved

Can we just post a task to quit the run loop, or do we really need to ensure the run loop is empty and not just "all tasks before this quit closure was posted have run"?

Devon Loehr

The problem is that the tasks will themselves post future tasks (e.g. to handle the response).

Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I236c4b4ff50c0bce790eb91af3dfc536f1059e8b
Gerrit-Change-Number: 7879890
Gerrit-PatchSet: 1
Gerrit-Owner: Devon Loehr <dlo...@google.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Comment-Date: Thu, 28 May 2026 16:57:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniel Cheng (Gerrit)

unread,
2:22 PM (3 hours ago) 2:22 PM
to Devon Loehr, Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Devon Loehr

Daniel Cheng voted and added 1 comment

Votes added by Daniel Cheng

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Daniel Cheng . resolved

LGTM

I mean, not really, but it's not worse and it seems unavoidable so shrug :)

Open in Gerrit

Related details

Attention is currently required from:
  • Devon Loehr
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: I236c4b4ff50c0bce790eb91af3dfc536f1059e8b
Gerrit-Change-Number: 7879890
Gerrit-PatchSet: 1
Gerrit-Owner: Devon Loehr <dlo...@google.com>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
Gerrit-Attention: Devon Loehr <dlo...@google.com>
Gerrit-Comment-Date: Thu, 28 May 2026 18:22:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Devon Loehr (Gerrit)

unread,
2:40 PM (2 hours ago) 2:40 PM
to Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org

Devon Loehr added 1 comment

Commit Message
Line 14, Patchset 1 (Latest):haven't processed the messages at that point.
Daniel Cheng . resolved

Can we just post a task to quit the run loop, or do we really need to ensure the run loop is empty and not just "all tasks before this quit closure was posted have run"?

Devon Loehr

The problem is that the tasks will themselves post future tasks (e.g. to handle the response).

Devon Loehr

Done

Open in Gerrit

Related details

Attention set is empty
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: I236c4b4ff50c0bce790eb91af3dfc536f1059e8b
    Gerrit-Change-Number: 7879890
    Gerrit-PatchSet: 1
    Gerrit-Owner: Devon Loehr <dlo...@google.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
    Gerrit-Comment-Date: Thu, 28 May 2026 18:40:37 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Devon Loehr <dlo...@google.com>
    Comment-In-Reply-To: Daniel Cheng <dch...@chromium.org>
    satisfied_requirement
    open
    diffy

    Devon Loehr (Gerrit)

    unread,
    3:36 PM (1 hour ago) 3:36 PM
    to Daniel Cheng, Chromium LUCI CQ, chromium...@chromium.org

    Devon Loehr voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    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: I236c4b4ff50c0bce790eb91af3dfc536f1059e8b
    Gerrit-Change-Number: 7879890
    Gerrit-PatchSet: 1
    Gerrit-Owner: Devon Loehr <dlo...@google.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
    Gerrit-Comment-Date: Thu, 28 May 2026 19:36:37 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    3:42 PM (1 hour ago) 3:42 PM
    to Devon Loehr, Daniel Cheng, chromium...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Expose RunLoop::RunUntilIdle to Rust

    Previously we avoided exposing this because it's easy to misuse.
    However, when testing associated interfaces we really need it,
    because we need to ensure that messages _aren't_ processed while
    blocked by a pending event, and the only way we can ensure that is
    to run through all tasks until we run out, and then check that we

    haven't processed the messages at that point.
    Bug: 493274453
    Change-Id: I236c4b4ff50c0bce790eb91af3dfc536f1059e8b
    Commit-Queue: Devon Loehr <dlo...@google.com>
    Reviewed-by: Daniel Cheng <dch...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1637885}
    Files:
    • M base/run_loop.rs
    • M base/run_loop_rust_shim.cc
    • M base/run_loop_rust_shim.h
    Change size: S
    Delta: 3 files changed, 28 insertions(+), 0 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Daniel Cheng
    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: I236c4b4ff50c0bce790eb91af3dfc536f1059e8b
    Gerrit-Change-Number: 7879890
    Gerrit-PatchSet: 2
    Gerrit-Owner: Devon Loehr <dlo...@google.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Devon Loehr <dlo...@google.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages