[benchmarking] Update signature of CustomizeOptions method of Benchmark class [catapult : master]

0 views
Skip to first unread message

Wenbin Zhang (Gerrit)

unread,
Nov 19, 2020, 1:35:42 PM11/19/20
to John Chen, telemetr...@chromium.org, catapult...@chromium.org

Attention is currently required from: Wenbin Zhang.

Wenbin Zhang uploaded patch set #2 to this change.

View Change

[benchmarking] Update signature of CustomizeOptions method of Benchmark class

We will remove the FindBrowser call in CustomizeOptions, in order to avoid the FindBrowser to be called twice during RunBenchmark.

This CL updates the signature of the CustomizaOptions of the parent class in Telemetry.

We will have another CL to update the child class in Perf repo, and then a last CL to update the caller on Telemetry. More details on:
crbug/1149275#c6

Bug: chromium:1149275
Change-Id: I8d6f20c72548635b22b18c11a5f0dcf67ef27e4c
---
M telemetry/telemetry/benchmark.py
1 file changed, 1 insertion(+), 1 deletion(-)

To view, visit change 2550943. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: catapult
Gerrit-Branch: master
Gerrit-Change-Id: I8d6f20c72548635b22b18c11a5f0dcf67ef27e4c
Gerrit-Change-Number: 2550943
Gerrit-PatchSet: 2
Gerrit-Owner: Wenbin Zhang <wenbi...@google.com>
Gerrit-Reviewer: John Chen <john...@chromium.org>
Gerrit-Attention: Wenbin Zhang <wenbi...@google.com>
Gerrit-MessageType: newpatchset

Wenbin Zhang (Gerrit)

unread,
Nov 19, 2020, 1:36:19 PM11/19/20
to telemetr...@chromium.org, John Chen, catapult...@chromium.org

Patch set 2:Auto-Submit +1

View Change

1 comment:

  • Commit Message:

    • Patch Set #1, Line 8: We will remove the FindBrowser call in CustomizeOptions, in order to avoid the FindBrowser to be called twice during RunBenchmark.

      Nit: Please add an empty line before this.

      Done

To view, visit change 2550943. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: catapult
Gerrit-Branch: master
Gerrit-Change-Id: I8d6f20c72548635b22b18c11a5f0dcf67ef27e4c
Gerrit-Change-Number: 2550943
Gerrit-PatchSet: 2
Gerrit-Owner: Wenbin Zhang <wenbi...@google.com>
Gerrit-Reviewer: John Chen <john...@chromium.org>
Gerrit-Reviewer: Wenbin Zhang <wenbi...@google.com>
Gerrit-Comment-Date: Thu, 19 Nov 2020 18:36:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: John Chen <john...@chromium.org>
Gerrit-MessageType: comment

Wenbin Zhang (Gerrit)

unread,
Nov 19, 2020, 1:47:06 PM11/19/20
to telemetr...@chromium.org, John Chen, catapult...@chromium.org

Patch set 2:Commit-Queue +2

View Change

    To view, visit change 2550943. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: catapult
    Gerrit-Branch: master
    Gerrit-Change-Id: I8d6f20c72548635b22b18c11a5f0dcf67ef27e4c
    Gerrit-Change-Number: 2550943
    Gerrit-PatchSet: 2
    Gerrit-Owner: Wenbin Zhang <wenbi...@google.com>
    Gerrit-Reviewer: John Chen <john...@chromium.org>
    Gerrit-Reviewer: Wenbin Zhang <wenbi...@google.com>
    Gerrit-Comment-Date: Thu, 19 Nov 2020 18:47:00 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Commit Bot (Gerrit)

    unread,
    Nov 19, 2020, 1:47:07 PM11/19/20
    to Wenbin Zhang, telemetr...@chromium.org, John Chen, catapult...@chromium.org

    CQ is trying the patch.

    Note: The patchset #2 "Edit commit message" sent to CQ was uploaded after this CL was CR+1-ed.
    Reviewer, please verify there is nothing unexpected https://chromium-review.googlesource.com/c/2550943/2

    Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/chromium-review.googlesource.com/2550943/2

    Bot data: {"action": "start", "triggered_at": "2020-11-19T18:47:00.0Z", "revision": "e3bc35798077fbe89538d6833d5c8caf0334e434"}

    View Change

      To view, visit change 2550943. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: catapult
      Gerrit-Branch: master
      Gerrit-Change-Id: I8d6f20c72548635b22b18c11a5f0dcf67ef27e4c
      Gerrit-Change-Number: 2550943
      Gerrit-PatchSet: 2
      Gerrit-Owner: Wenbin Zhang <wenbi...@google.com>
      Gerrit-Reviewer: John Chen <john...@chromium.org>
      Gerrit-Reviewer: Wenbin Zhang <wenbi...@google.com>
      Gerrit-CC: Commit Bot <commi...@chromium.org>
      Gerrit-Comment-Date: Thu, 19 Nov 2020 18:47:05 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      Gerrit-MessageType: comment

      Commit Bot (Gerrit)

      unread,
      Nov 19, 2020, 3:18:41 PM11/19/20
      to Wenbin Zhang, telemetr...@chromium.org, John Chen, catapult...@chromium.org

      Commit Bot submitted this change.

      View Change

      Approvals: John Chen: Looks good to me Wenbin Zhang: Commit; Send CL to CQ automatically after approval
      [benchmarking] Update signature of CustomizeOptions method of Benchmark class

      We will remove the FindBrowser call in CustomizeOptions, in order to avoid the FindBrowser to be called twice during RunBenchmark.

      This CL updates the signature of the CustomizaOptions of the parent class in Telemetry.

      We will have another CL to update the child class in Perf repo, and then a last CL to update the caller on Telemetry. More details on:
      crbug/1149275#c6

      Bug: chromium:1149275
      Change-Id: I8d6f20c72548635b22b18c11a5f0dcf67ef27e4c
      Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/2550943
      Auto-Submit: Wenbin Zhang <wenbi...@google.com>
      Commit-Queue: Wenbin Zhang <wenbi...@google.com>
      Reviewed-by: John Chen <john...@chromium.org>

      ---
      M telemetry/telemetry/benchmark.py
      1 file changed, 1 insertion(+), 1 deletion(-)

      diff --git a/telemetry/telemetry/benchmark.py b/telemetry/telemetry/benchmark.py
      index 7963ec4..d28f341 100644
      --- a/telemetry/telemetry/benchmark.py
      +++ b/telemetry/telemetry/benchmark.py
      @@ -130,7 +130,7 @@
      def ProcessCommandLineArgs(cls, parser, args):
      pass

      - def CustomizeOptions(self, finder_options):
      + def CustomizeOptions(self, finder_options, possible_browser=None):
      """Add options that are required by this benchmark."""

      def GetBugComponents(self):

      To view, visit change 2550943. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: catapult
      Gerrit-Branch: master
      Gerrit-Change-Id: I8d6f20c72548635b22b18c11a5f0dcf67ef27e4c
      Gerrit-Change-Number: 2550943
      Gerrit-PatchSet: 3
      Gerrit-Owner: Wenbin Zhang <wenbi...@google.com>
      Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
      Gerrit-Reviewer: John Chen <john...@chromium.org>
      Gerrit-Reviewer: Wenbin Zhang <wenbi...@google.com>
      Gerrit-MessageType: merged
      Reply all
      Reply to author
      Forward
      0 new messages