Support running a describe block in DevTools tests [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Eric Leese (Gerrit)

unread,
Aug 18, 2026, 7:16:54 AM (yesterday) Aug 18
to Alex Rudenko, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org
Attention needed from Alex Rudenko

Eric Leese voted Auto-Submit+1

Auto-Submit+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alex Rudenko
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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
Gerrit-Change-Number: 8258118
Gerrit-PatchSet: 1
Gerrit-Owner: Eric Leese <le...@chromium.org>
Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
Gerrit-Comment-Date: Tue, 18 Aug 2026 11:16:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Alex Rudenko (Gerrit)

unread,
Aug 18, 2026, 7:58:34 AM (yesterday) Aug 18
to Eric Leese, Philip Pfaffe, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org
Attention needed from Eric Leese and Philip Pfaffe

Alex Rudenko added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Alex Rudenko . unresolved

I think we on purpose excluded this to avoid this being similar to grep. The test IDs have to match exactly. Would it be possible to instead find all test IDs for a describe block using the script like the one @pfa...@chromium.org created?

Open in Gerrit

Related details

Attention is currently required from:
  • Eric Leese
  • Philip Pfaffe
Submit Requirements:
    • requirement 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: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
    Gerrit-Change-Number: 8258118
    Gerrit-PatchSet: 1
    Gerrit-Owner: Eric Leese <le...@chromium.org>
    Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
    Gerrit-Reviewer: Eric Leese <le...@chromium.org>
    Gerrit-CC: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Eric Leese <le...@chromium.org>
    Gerrit-Comment-Date: Tue, 18 Aug 2026 11:58:32 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Eric Leese (Gerrit)

    unread,
    Aug 18, 2026, 9:48:33 AM (24 hours ago) Aug 18
    to Philip Pfaffe, Alex Rudenko, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org
    Attention needed from Alex Rudenko and Philip Pfaffe

    Eric Leese added 1 comment

    Patchset-level comments
    Alex Rudenko . unresolved

    I think we on purpose excluded this to avoid this being similar to grep. The test IDs have to match exactly. Would it be possible to instead find all test IDs for a describe block using the script like the one @pfa...@chromium.org created?

    Eric Leese

    That would require considerably more work on the Cider extension side. The design at many layers assumes exactly one test filter. Also it doesn't always detect nested blocks, and there can be things like parameterized tests that we can't parse, so it isn't going to be as reliable.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alex Rudenko
    • Philip Pfaffe
    Submit Requirements:
    • requirement 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: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
    Gerrit-Change-Number: 8258118
    Gerrit-PatchSet: 1
    Gerrit-Owner: Eric Leese <le...@chromium.org>
    Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
    Gerrit-Reviewer: Eric Leese <le...@chromium.org>
    Gerrit-CC: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Alex Rudenko <alexr...@chromium.org>
    Gerrit-Comment-Date: Tue, 18 Aug 2026 13:48:31 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Alex Rudenko <alexr...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alex Rudenko (Gerrit)

    unread,
    Aug 18, 2026, 9:51:24 AM (24 hours ago) Aug 18
    to Eric Leese, Philip Pfaffe, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org
    Attention needed from Eric Leese and Philip Pfaffe

    Alex Rudenko added 1 comment

    Patchset-level comments
    Alex Rudenko . unresolved

    I think we on purpose excluded this to avoid this being similar to grep. The test IDs have to match exactly. Would it be possible to instead find all test IDs for a describe block using the script like the one @pfa...@chromium.org created?

    Eric Leese

    That would require considerably more work on the Cider extension side. The design at many layers assumes exactly one test filter. Also it doesn't always detect nested blocks, and there can be things like parameterized tests that we can't parse, so it isn't going to be as reliable.

    Alex Rudenko
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Eric Leese
    • Philip Pfaffe
    Submit Requirements:
    • requirement 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: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
    Gerrit-Change-Number: 8258118
    Gerrit-PatchSet: 1
    Gerrit-Owner: Eric Leese <le...@chromium.org>
    Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
    Gerrit-Reviewer: Eric Leese <le...@chromium.org>
    Gerrit-CC: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Eric Leese <le...@chromium.org>
    Gerrit-Comment-Date: Tue, 18 Aug 2026 13:51:22 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Eric Leese <le...@chromium.org>
    Comment-In-Reply-To: Alex Rudenko <alexr...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alex Rudenko (Gerrit)

    unread,
    Aug 18, 2026, 11:23:26 AM (22 hours ago) Aug 18
    to Eric Leese, Philip Pfaffe, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org
    Attention needed from Eric Leese and Philip Pfaffe

    Alex Rudenko voted and added 1 comment

    Votes added by Alex Rudenko

    Code-Review+1

    1 comment

    Patchset-level comments
    Alex Rudenko . resolved

    I think we on purpose excluded this to avoid this being similar to grep. The test IDs have to match exactly. Would it be possible to instead find all test IDs for a describe block using the script like the one @pfa...@chromium.org created?

    Eric Leese

    That would require considerably more work on the Cider extension side. The design at many layers assumes exactly one test filter. Also it doesn't always detect nested blocks, and there can be things like parameterized tests that we can't parse, so it isn't going to be as reliable.

    Alex Rudenko

    cc @pfa...@chromium.org wdyt?

    Alex Rudenko

    I think since we ensure : is a delimiter it should be fine. I wonder if we should optimize the check in any way but I suspect we do not pass that many test IDs.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Eric Leese
    • Philip Pfaffe
    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: devtools/devtools-frontend
    Gerrit-Branch: main
    Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
    Gerrit-Change-Number: 8258118
    Gerrit-PatchSet: 1
    Gerrit-Owner: Eric Leese <le...@chromium.org>
    Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
    Gerrit-Reviewer: Eric Leese <le...@chromium.org>
    Gerrit-CC: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Philip Pfaffe <pfa...@chromium.org>
    Gerrit-Attention: Eric Leese <le...@chromium.org>
    Gerrit-Comment-Date: Tue, 18 Aug 2026 15:23:20 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Philip Pfaffe (Gerrit)

    unread,
    Aug 18, 2026, 11:27:15 AM (22 hours ago) Aug 18
    to Eric Leese, Alex Rudenko, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org
    Attention needed from Eric Leese

    Philip Pfaffe voted and added 1 comment

    Votes added by Philip Pfaffe

    Code-Review+1

    1 comment

    File test/shared/run-mocha.ts
    Line 90, Patchset 1 (Latest): const testIds = TestConfig.tests.filter(testId => TEST_ID_REGEX.test(testId));
    Philip Pfaffe . unresolved

    Can we keep the set?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Eric Leese
    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: devtools/devtools-frontend
      Gerrit-Branch: main
      Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
      Gerrit-Change-Number: 8258118
      Gerrit-PatchSet: 1
      Gerrit-Owner: Eric Leese <le...@chromium.org>
      Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
      Gerrit-Reviewer: Eric Leese <le...@chromium.org>
      Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
      Gerrit-Attention: Eric Leese <le...@chromium.org>
      Gerrit-Comment-Date: Tue, 18 Aug 2026 15:27:11 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Eric Leese (Gerrit)

      unread,
      Aug 18, 2026, 12:12:25 PM (22 hours ago) Aug 18
      to Philip Pfaffe, Alex Rudenko, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org

      Eric Leese voted and added 1 comment

      Votes added by Eric Leese

      Auto-Submit+1

      1 comment

      File test/shared/run-mocha.ts
      Line 90, Patchset 1: const testIds = TestConfig.tests.filter(testId => TEST_ID_REGEX.test(testId));
      Philip Pfaffe . resolved

      Can we keep the set?

      Eric Leese

      Done

      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: devtools/devtools-frontend
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
        Gerrit-Change-Number: 8258118
        Gerrit-PatchSet: 2
        Gerrit-Comment-Date: Tue, 18 Aug 2026 16:12:23 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Philip Pfaffe <pfa...@chromium.org>
        satisfied_requirement
        open
        diffy

        Eric Leese (Gerrit)

        unread,
        Aug 18, 2026, 12:12:35 PM (22 hours ago) Aug 18
        to Philip Pfaffe, Alex Rudenko, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org

        Eric Leese voted Commit-Queue+2

        Commit-Queue+2
        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: devtools/devtools-frontend
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
        Gerrit-Change-Number: 8258118
        Gerrit-PatchSet: 2
        Gerrit-Owner: Eric Leese <le...@chromium.org>
        Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
        Gerrit-Reviewer: Eric Leese <le...@chromium.org>
        Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
        Gerrit-Comment-Date: Tue, 18 Aug 2026 16:12:33 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Eric Leese (Gerrit)

        unread,
        5:21 AM (4 hours ago) 5:21 AM
        to Philip Pfaffe, Alex Rudenko, devtools-fro...@luci-project-accounts.iam.gserviceaccount.com, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org

        Eric Leese voted Commit-Queue+2

        Commit-Queue+2
        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: devtools/devtools-frontend
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
        Gerrit-Change-Number: 8258118
        Gerrit-PatchSet: 3
        Gerrit-Comment-Date: Wed, 19 Aug 2026 09:21:44 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

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

        unread,
        6:13 AM (4 hours ago) 6:13 AM
        to Eric Leese, Philip Pfaffe, Alex Rudenko, android-bu...@system.gserviceaccount.com, devtools-rev...@chromium.org

        devtools-fro...@luci-project-accounts.iam.gserviceaccount.com submitted the change with unreviewed changes

        Unreviewed changes

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

        ```
        The name of the file: test/shared/run-mocha.ts
        Insertions: 4, Deletions: 2.

        The diff is too large to show. Please review the diff.
        ```
        ```
        The name of the file: test/unit/mocha-adapter-browser.ts
        Insertions: 2, Deletions: 2.

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

        Change information

        Commit message:
        Support running a describe block in DevTools tests

        In addition to being able to specify a test file or an individual test
        case, you can now specify the id of a describe block to run all tests
        within it.
        Bug: None
        Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
        Reviewed-by: Alex Rudenko <alexr...@chromium.org>
        Reviewed-by: Philip Pfaffe <pfa...@chromium.org>
        Auto-Submit: Eric Leese <le...@chromium.org>
        Commit-Queue: Eric Leese <le...@chromium.org>
        Files:
        • M test/shared/run-mocha.ts
        • M test/unit/mocha-adapter-browser.ts
        Change size: S
        Delta: 2 files changed, 12 insertions(+), 2 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Alex Rudenko, +1 by Philip Pfaffe
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: devtools/devtools-frontend
        Gerrit-Branch: main
        Gerrit-Change-Id: Iaade5174d35c05c399f608b2e0accc113fa824b6
        Gerrit-Change-Number: 8258118
        Gerrit-PatchSet: 4
        Gerrit-Owner: Eric Leese <le...@chromium.org>
        Gerrit-Reviewer: Alex Rudenko <alexr...@chromium.org>
        Gerrit-Reviewer: Eric Leese <le...@chromium.org>
        Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages