Add check_bazel_deps.py tool to monitor and update Bzlmod dependencies [v8/v8 : main]

0 views
Skip to first unread message

Victor Gomes (Gerrit)

unread,
Jun 8, 2026, 5:55:18 AM (3 days ago) Jun 8
to Michael Achenbach, v8-re...@googlegroups.com
Attention needed from Michael Achenbach

Victor Gomes voted and added 1 comment

Votes added by Victor Gomes

Auto-Submit+1
Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Victor Gomes . resolved

PTAL!

Open in Gerrit

Related details

Attention is currently required from:
  • Michael Achenbach
Submit Requirements:
  • requirement 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: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I76d13e2f381288566bd70e3692b4c663a8a5bf96
Gerrit-Change-Number: 7900685
Gerrit-PatchSet: 3
Gerrit-Owner: Victor Gomes <victo...@chromium.org>
Gerrit-Reviewer: Michael Achenbach <mache...@chromium.org>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-Attention: Michael Achenbach <mache...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Jun 2026 09:55:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Michael Achenbach (Gerrit)

unread,
Jun 8, 2026, 11:27:27 AM (3 days ago) Jun 8
to Victor Gomes, v8-s...@luci-project-accounts.iam.gserviceaccount.com, v8-re...@googlegroups.com
Attention needed from Victor Gomes

Michael Achenbach voted and added 3 comments

Votes added by Michael Achenbach

Code-Review+1

3 comments

Patchset-level comments
Michael Achenbach . resolved

Thanks! I only did a very light review. I assume the AI is going to maintain this script in the future. Furthermore I assume that we'll review the CLs produced by this script and that also the bazel bot needs to pass on them. Hence the bar for any mischief is high...

File tools/check_bazel_deps.py
Line 107, Patchset 3 (Latest): "--file", "-f", default="MODULE.bazel", help="Path to MODULE.bazel file")
Michael Achenbach . unresolved

Can we default this to the file in the V8 base dir relative to this script? In the current version it would only work if the CWD is the V8 base dir, which is not granted when executing scripts on bots.

Line 198, Patchset 3 (Latest): print("Please run `bazel mod tidy` to regenerate MODULE.bazel.lock.")
Michael Achenbach . unresolved

Is that needed? I don't see such a file in our repo.

Open in Gerrit

Related details

Attention is currently required from:
  • Victor Gomes
Submit Requirements:
  • 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: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: I76d13e2f381288566bd70e3692b4c663a8a5bf96
Gerrit-Change-Number: 7900685
Gerrit-PatchSet: 3
Gerrit-Owner: Victor Gomes <victo...@chromium.org>
Gerrit-Reviewer: Michael Achenbach <mache...@chromium.org>
Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
Gerrit-Attention: Victor Gomes <victo...@chromium.org>
Gerrit-Comment-Date: Mon, 08 Jun 2026 15:27:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Victor Gomes (Gerrit)

unread,
Jun 9, 2026, 9:14:46 AM (2 days ago) Jun 9
to Michael Achenbach, v8-s...@luci-project-accounts.iam.gserviceaccount.com, v8-re...@googlegroups.com

Victor Gomes voted and added 4 comments

Votes added by Victor Gomes

Auto-Submit+1
Commit-Queue+2

4 comments

Patchset-level comments
Michael Achenbach . resolved

Thanks! I only did a very light review. I assume the AI is going to maintain this script in the future. Furthermore I assume that we'll review the CLs produced by this script and that also the bazel bot needs to pass on them. Hence the bar for any mischief is high...

Victor Gomes

Yeah, I also think so.

File-level comment, Patchset 4 (Latest):
Victor Gomes . resolved

Thanks!

File tools/check_bazel_deps.py
Line 107, Patchset 3: "--file", "-f", default="MODULE.bazel", help="Path to MODULE.bazel file")
Michael Achenbach . resolved

Can we default this to the file in the V8 base dir relative to this script? In the current version it would only work if the CWD is the V8 base dir, which is not granted when executing scripts on bots.

Victor Gomes

Done

Line 198, Patchset 3: print("Please run `bazel mod tidy` to regenerate MODULE.bazel.lock.")
Michael Achenbach . resolved

Is that needed? I don't see such a file in our repo.

Victor Gomes

We don't use it. AI slop! 😊

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • 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: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I76d13e2f381288566bd70e3692b4c663a8a5bf96
    Gerrit-Change-Number: 7900685
    Gerrit-PatchSet: 4
    Gerrit-Owner: Victor Gomes <victo...@chromium.org>
    Gerrit-Reviewer: Michael Achenbach <mache...@chromium.org>
    Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
    Gerrit-Comment-Date: Tue, 09 Jun 2026 13:14:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Michael Achenbach <mache...@chromium.org>
    satisfied_requirement
    open
    diffy

    v8-scoped@luci-project-accounts.iam.gserviceaccount.com (Gerrit)

    unread,
    Jun 9, 2026, 11:23:34 AM (2 days ago) Jun 9
    to Victor Gomes, Michael Achenbach, v8-re...@googlegroups.com

    v8-s...@luci-project-accounts.iam.gserviceaccount.com submitted the change with unreviewed changes

    Unreviewed changes

    3 is the latest approved patch-set.
    The change was submitted with unreviewed changes in the following files:

    ```
    The name of the file: tools/check_bazel_deps.py
    Insertions: 5, Deletions: 2.

    The diff is too large to show. Please review the diff.
    ```

    Change information

    Commit message:
    Add check_bazel_deps.py tool to monitor and update Bzlmod dependencies

    This script parses MODULE.bazel for bazel_dep declarations and queries the Bazel Central Registry to check for newer versions. It distinguishes between stable releases and pre-releases (such as release candidates).
    It also supports automatically updating MODULE.bazel in-place using the --update flag.

    TAG=agy
    CONV=a02928b1-06a9-426a-8821-743388252a94
    Bug: 521080734
    Change-Id: I76d13e2f381288566bd70e3692b4c663a8a5bf96
    Reviewed-by: Michael Achenbach <mache...@chromium.org>
    Commit-Queue: Victor Gomes <victo...@chromium.org>
    Auto-Submit: Victor Gomes <victo...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#107859}
    Files:
    • A tools/check_bazel_deps.py
    Change size: M
    Delta: 1 file changed, 212 insertions(+), 0 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Michael Achenbach
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: v8/v8
    Gerrit-Branch: main
    Gerrit-Change-Id: I76d13e2f381288566bd70e3692b4c663a8a5bf96
    Gerrit-Change-Number: 7900685
    Gerrit-PatchSet: 5
    Gerrit-Owner: Victor Gomes <victo...@chromium.org>
    Gerrit-Reviewer: Michael Achenbach <mache...@chromium.org>
    Gerrit-Reviewer: Victor Gomes <victo...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages