Add environment variable that sets the module_scheme [chromium/src : main]

38 views
Skip to first unread message

Benjamin Joyce (Ben) (Gerrit)

unread,
Dec 19, 2025, 1:07:39 PM12/19/25
to Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, Nico Weber, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Nico Weber

Benjamin Joyce (Ben) added 2 comments

Patchset-level comments
File-level comment, Patchset 4:
Nico Weber . resolved

It seems a bit weird that individual tests would need to know about this.

Should we just set this in PRESUBMIT.py instead

Benjamin Joyce (Ben)

So currently, all tests in presubmit are presumed to have a "flat" module scheme and most of them do.

https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7231163/14/recipes/recipe_modules/presubmit/api.py#b38

You'd be proposing to

Commit Message
Line 10, Patchset 4:These tests are ran in presubmit and need to upload as a flat type,
Nico Weber . resolved

nit: s/are ran/are run/

Benjamin Joyce (Ben)

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Nico Weber
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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
Gerrit-Change-Number: 7277195
Gerrit-PatchSet: 7
Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Attention: Nico Weber <tha...@chromium.org>
Gerrit-Comment-Date: Fri, 19 Dec 2025 18:07:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Weber <tha...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Benjamin Joyce (Ben) (Gerrit)

unread,
Jan 6, 2026, 4:39:40 PM (10 days ago) Jan 6
to Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, Nico Weber, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Nico Weber

Benjamin Joyce (Ben) added 1 comment

Patchset-level comments
File-level comment, Patchset 9 (Latest):
Benjamin Joyce (Ben) . resolved

Ping on this.

Open in Gerrit

Related details

Attention is currently required from:
  • Nico Weber
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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
Gerrit-Change-Number: 7277195
Gerrit-PatchSet: 9
Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Attention: Nico Weber <tha...@chromium.org>
Gerrit-Comment-Date: Tue, 06 Jan 2026 21:39:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Benjamin Joyce (Ben) (Gerrit)

unread,
Jan 12, 2026, 4:57:00 PM (4 days ago) Jan 12
to Andrew Grieve, Kenneth Russell, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Andrew Grieve and Kenneth Russell

Benjamin Joyce (Ben) added 1 comment

Patchset-level comments
Benjamin Joyce (Ben) . resolved

Adding keenteh for renderer/binding/ agrieve for grit presubmit.

Open in Gerrit

Related details

Attention is currently required from:
  • Andrew Grieve
  • Kenneth Russell
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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
Gerrit-Change-Number: 7277195
Gerrit-PatchSet: 9
Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Attention: Kenneth Russell <k...@chromium.org>
Gerrit-Attention: Andrew Grieve <agr...@chromium.org>
Gerrit-Comment-Date: Mon, 12 Jan 2026 21:56:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kenneth Russell (Gerrit)

unread,
Jan 12, 2026, 5:15:43 PM (4 days ago) Jan 12
to Benjamin Joyce (Ben), Andrew Grieve, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
Attention needed from Andrew Grieve and Benjamin Joyce (Ben)

Kenneth Russell voted and added 1 comment

Votes added by Kenneth Russell

Code-Review+1

1 comment

Patchset-level comments
Kenneth Russell . resolved

lgtm

Open in Gerrit

Related details

Attention is currently required from:
  • Andrew Grieve
  • Benjamin Joyce (Ben)
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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
    Gerrit-Change-Number: 7277195
    Gerrit-PatchSet: 9
    Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
    Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
    Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
    Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
    Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Benjamin Joyce (Ben) <bjo...@google.com>
    Gerrit-Attention: Andrew Grieve <agr...@chromium.org>
    Gerrit-Comment-Date: Mon, 12 Jan 2026 22:15:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Andrew Grieve (Gerrit)

    unread,
    Jan 12, 2026, 9:03:01 PM (4 days ago) Jan 12
    to Benjamin Joyce (Ben), Kenneth Russell, Andrew Grieve, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
    Attention needed from Benjamin Joyce (Ben)

    Andrew Grieve added 2 comments

    Commit Message
    Line 19, Patchset 9 (Latest):Bug:47777155
    Andrew Grieve . unresolved

    Wrong bug number? (Says invalid ID)

    File tools/grit/PRESUBMIT.py
    Line 14, Patchset 9 (Latest): # Needed to prevent an issue with conflicting module schemes when uploading
    Andrew Grieve . unresolved

    "prevent an issue" begs the question: what is the issue?

    Can you describe the issue?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Benjamin Joyce (Ben)
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
      Gerrit-Change-Number: 7277195
      Gerrit-PatchSet: 9
      Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
      Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
      Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
      Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Benjamin Joyce (Ben) <bjo...@google.com>
      Gerrit-Comment-Date: Tue, 13 Jan 2026 02:02:49 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Benjamin Joyce (Ben) (Gerrit)

      unread,
      Jan 14, 2026, 4:29:04 PM (2 days ago) Jan 14
      to Kenneth Russell, Andrew Grieve, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
      Attention needed from Andrew Grieve

      Benjamin Joyce (Ben) added 2 comments

      Commit Message
      Line 19, Patchset 9:Bug:47777155
      Andrew Grieve . resolved

      Wrong bug number? (Says invalid ID)

      Benjamin Joyce (Ben)

      Done. Should have been: 467777155

      File tools/grit/PRESUBMIT.py
      Line 14, Patchset 9: # Needed to prevent an issue with conflicting module schemes when uploading
      Andrew Grieve . resolved

      "prevent an issue" begs the question: what is the issue?

      Can you describe the issue?

      Benjamin Joyce (Ben)

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andrew Grieve
      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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
        Gerrit-Change-Number: 7277195
        Gerrit-PatchSet: 13
        Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
        Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
        Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
        Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
        Gerrit-Attention: Andrew Grieve <agr...@chromium.org>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 21:28:50 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Andrew Grieve <agr...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Andrew Grieve (Gerrit)

        unread,
        Jan 14, 2026, 4:30:45 PM (2 days ago) Jan 14
        to Benjamin Joyce (Ben), Andrew Grieve, Kenneth Russell, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org
        Attention needed from Benjamin Joyce (Ben)

        Andrew Grieve voted and added 1 comment

        Votes added by Andrew Grieve

        Code-Review+1

        1 comment

        File tools/grit/PRESUBMIT.py
        Line 14, Patchset 13 (Latest): # The presubmit tests are all ran together with the module scheme set to
        Andrew Grieve . unresolved

        nit: s/ran/run/

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Benjamin Joyce (Ben)
        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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
        Gerrit-Change-Number: 7277195
        Gerrit-PatchSet: 13
        Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
        Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
        Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
        Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: Kentaro Hara <har...@chromium.org>
        Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
        Gerrit-Attention: Benjamin Joyce (Ben) <bjo...@google.com>
        Gerrit-Comment-Date: Wed, 14 Jan 2026 21:30:34 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Benjamin Joyce (Ben) (Gerrit)

        unread,
        Jan 14, 2026, 4:49:16 PM (2 days ago) Jan 14
        to Andrew Grieve, Kenneth Russell, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org

        Benjamin Joyce (Ben) added 1 comment

        File tools/grit/PRESUBMIT.py
        Line 14, Patchset 13: # The presubmit tests are all ran together with the module scheme set to
        Andrew Grieve . resolved

        nit: s/ran/run/

        Benjamin Joyce (Ben)

        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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
          Gerrit-Change-Number: 7277195
          Gerrit-PatchSet: 14
          Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
          Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
          Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
          Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: Kentaro Hara <har...@chromium.org>
          Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
          Gerrit-Comment-Date: Wed, 14 Jan 2026 21:49:04 +0000
          satisfied_requirement
          open
          diffy

          Benjamin Joyce (Ben) (Gerrit)

          unread,
          Jan 14, 2026, 4:49:21 PM (2 days ago) Jan 14
          to Andrew Grieve, Kenneth Russell, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org

          Benjamin Joyce (Ben) voted Commit-Queue+2

          Commit-Queue+2
          Gerrit-Comment-Date: Wed, 14 Jan 2026 21:49:07 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          Jan 14, 2026, 6:24:35 PM (2 days ago) Jan 14
          to Benjamin Joyce (Ben), Andrew Grieve, Kenneth Russell, Code Review Nudger, Raphael Kubo da Costa, Kentaro Hara, AyeAye, chromium...@chromium.org, blink-revie...@chromium.org, blink-...@chromium.org

          Chromium LUCI CQ submitted the change with unreviewed changes

          Unreviewed changes

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

          ```
          The name of the file: third_party/blink/renderer/build/scripts/PRESUBMIT.py
          Insertions: 1, Deletions: 1.

          @@ -37,7 +37,7 @@


          def _RunTests(input_api, output_api):
          - # The presubmit tests are all ran together with the module scheme set to
          + # The presubmit tests are all run together with the module scheme set to
          # "flat" at the recipe level. But these presubmit tests run through
          # a test runner that parses the test as a "pyunit" test. The environment
          # variable forces the test runner to parse the tests as a flat test,
          ```
          ```
          The name of the file: tools/grit/PRESUBMIT.py
          Insertions: 1, Deletions: 1.

          @@ -11,7 +11,7 @@
          import os

          def RunUnittests(input_api, output_api):
          - # The presubmit tests are all ran together with the module scheme set to
          + # The presubmit tests are all run together with the module scheme set to
          # "flat" at the recipe level. But these presubmit tests run through
          # a test runner that parses the test as a "pyunit" test. The environment
          # variable forces the test runner to parse the tests as a flat test,
          ```
          ```
          The name of the file: third_party/blink/renderer/build/scripts/blinkbuild/PRESUBMIT.py
          Insertions: 1, Deletions: 1.

          @@ -5,7 +5,7 @@
          import os

          def _RunBindingsTests(input_api, output_api):
          - # The presubmit tests are all ran together with the module scheme set to
          + # The presubmit tests are all run together with the module scheme set to
          # "flat" at the recipe level. But these presubmit tests run through
          # a test runner that parses the test as a "pyunit" test. The environment
          # variable forces the test runner to parse the tests as a flat test,
          ```
          ```
          The name of the file: third_party/blink/renderer/bindings/PRESUBMIT.py
          Insertions: 1, Deletions: 1.

          @@ -34,7 +34,7 @@
          import os

          def _RunBindingsTests(input_api, output_api):
          - # The presubmit tests are all ran together with the module scheme set to
          + # The presubmit tests are all run together with the module scheme set to
          # "flat" at the recipe level. But these presubmit tests run through
          # a test runner that parses the test as a "pyunit" test. The environment
          # variable forces the test runner to parse the tests as a flat test,
          ```

          Change information

          Commit message:
          Add environment variable that sets the module_scheme

          Sets a module scheme as an environment variable for resultdb upload.
          These tests are run in presubmit and need to upload as a flat type,
          where as by default, they upload with pyunit.

          These tests are called by the presubmit tests and were failing with the resultdb migration in:
          https://ci.chromium.org/ui/p/chromium/builders/ci/linux-presubmit/35142/overview

          This change will be used when this catapult CL is rolled:
          https://chromium-review.googlesource.com/c/catapult/+/7274125
          Bug: 467777155
          Change-Id: Icd77254b431aa5ea0793d8e3082e38da78f616fc
          Reviewed-by: Kenneth Russell <k...@chromium.org>
          Reviewed-by: Andrew Grieve <agr...@chromium.org>
          Commit-Queue: Benjamin Joyce (Ben) <bjo...@google.com>
          Cr-Commit-Position: refs/heads/main@{#1569378}
          Files:
          • M third_party/blink/renderer/bindings/PRESUBMIT.py
          • M third_party/blink/renderer/build/scripts/PRESUBMIT.py
          • M third_party/blink/renderer/build/scripts/blinkbuild/PRESUBMIT.py
          • M tools/grit/PRESUBMIT.py
          Change size: S
          Delta: 4 files changed, 33 insertions(+), 0 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Andrew Grieve, +1 by Kenneth Russell
          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: Icd77254b431aa5ea0793d8e3082e38da78f616fc
          Gerrit-Change-Number: 7277195
          Gerrit-PatchSet: 15
          Gerrit-Owner: Benjamin Joyce (Ben) <bjo...@google.com>
          Gerrit-Reviewer: Andrew Grieve <agr...@chromium.org>
          Gerrit-Reviewer: Benjamin Joyce (Ben) <bjo...@google.com>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Kenneth Russell <k...@chromium.org>
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages