lobster: add feature flag [chromium/src : main]

1 view
Skip to first unread message

Darren Shen (Gerrit)

unread,
Jun 26, 2024, 11:12:42 PM (6 days ago) Jun 26
to Curtis McMullan, chromium...@chromium.org
Attention needed from Curtis McMullan

Darren Shen voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Curtis McMullan
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
Gerrit-Change-Number: 5647454
Gerrit-PatchSet: 2
Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
Gerrit-Reviewer: Darren Shen <sh...@chromium.org>
Gerrit-Attention: Curtis McMullan <curtism...@chromium.org>
Gerrit-Comment-Date: Thu, 27 Jun 2024 03:12:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Darren Shen (Gerrit)

unread,
Jun 26, 2024, 11:14:04 PM (6 days ago) Jun 26
to Curtis McMullan, chromium...@chromium.org
Attention needed from Curtis McMullan

Darren Shen added 1 comment

File ash/lobster/lobster_controller.h
Line 12, Patchset 2 (Latest): static bool SecretKeyMatches();
Darren Shen . unresolved

nit: maybe just `FeatureKeyMatches` is fine

Open in Gerrit

Related details

Attention is currently required from:
  • Curtis McMullan
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
    Gerrit-Change-Number: 5647454
    Gerrit-PatchSet: 2
    Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
    Gerrit-Reviewer: Darren Shen <sh...@chromium.org>
    Gerrit-Attention: Curtis McMullan <curtism...@chromium.org>
    Gerrit-Comment-Date: Thu, 27 Jun 2024 03:13:50 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Curtis McMullan (Gerrit)

    unread,
    Jul 1, 2024, 12:01:53 AM (yesterday) Jul 1
    to Darren Shen, chromium...@chromium.org

    Curtis McMullan added 1 comment

    File ash/lobster/lobster_controller.h
    Line 12, Patchset 2: static bool SecretKeyMatches();
    Darren Shen . resolved

    nit: maybe just `FeatureKeyMatches` is fine

    Curtis McMullan

    Done

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
    Gerrit-Change-Number: 5647454
    Gerrit-PatchSet: 3
    Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
    Gerrit-Reviewer: Darren Shen <sh...@chromium.org>
    Gerrit-Comment-Date: Mon, 01 Jul 2024 04:01:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Darren Shen <sh...@chromium.org>
    satisfied_requirement
    open
    diffy

    Curtis McMullan (Gerrit)

    unread,
    Jul 1, 2024, 1:25:29 AM (yesterday) Jul 1
    to Scott Violet, Darren Shen, chromium...@chromium.org
    Attention needed from Scott Violet

    Curtis McMullan added 1 comment

    Patchset-level comments
    File-level comment, Patchset 3 (Latest):
    Curtis McMullan . resolved

    PTAL thanks!

    sky@ added for approval of new top level folder in //ash, thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Scott Violet
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Review
    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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
    Gerrit-Change-Number: 5647454
    Gerrit-PatchSet: 3
    Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
    Gerrit-Reviewer: Darren Shen <sh...@chromium.org>
    Gerrit-Reviewer: Scott Violet <s...@chromium.org>
    Gerrit-Attention: Scott Violet <s...@chromium.org>
    Gerrit-Comment-Date: Mon, 01 Jul 2024 05:25:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy

    Scott Violet (Gerrit)

    unread,
    Jul 1, 2024, 9:14:24 AM (yesterday) Jul 1
    to Curtis McMullan, Scott Violet, Darren Shen, chromium...@chromium.org
    Attention needed from Curtis McMullan

    Scott Violet voted and added 2 comments

    Votes added by Scott Violet

    Code-Review+1

    2 comments

    File ash/lobster/lobster_controller.h
    Line 12, Patchset 3 (Latest): static bool FeatureKeyMatches();
    Scott Violet . unresolved

    Based on the name, it wasn't readily obvious what this does. Consider naming something like `IsEnabled()`.

    File ash/lobster/lobster_controller.cc
    Line 28, Patchset 3 (Latest): const std::string provided_key_hash = base::SHA1HashString(
    base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
    switches::kLobsterFeatureKey));
    return provided_key_hash == kLobsterKey;
    Scott Violet . unresolved

    This seems non-trivial. I would be inclined to cache the value. That is, use a static boolean.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Curtis McMullan
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
      Gerrit-Change-Number: 5647454
      Gerrit-PatchSet: 3
      Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
      Gerrit-Reviewer: Darren Shen <sh...@chromium.org>
      Gerrit-Reviewer: Scott Violet <s...@chromium.org>
      Gerrit-Attention: Curtis McMullan <curtism...@chromium.org>
      Gerrit-Comment-Date: Mon, 01 Jul 2024 13:14:09 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Curtis McMullan (Gerrit)

      unread,
      9:10 PM (2 hours ago) 9:10 PM
      to Scott Violet, Darren Shen, chromium...@chromium.org

      Curtis McMullan added 2 comments

      File ash/lobster/lobster_controller.h
      Line 12, Patchset 3: static bool FeatureKeyMatches();
      Scott Violet . resolved

      Based on the name, it wasn't readily obvious what this does. Consider naming something like `IsEnabled()`.

      Curtis McMullan

      Done

      File ash/lobster/lobster_controller.cc
      Line 28, Patchset 3: const std::string provided_key_hash = base::SHA1HashString(

      base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
      switches::kLobsterFeatureKey));
      return provided_key_hash == kLobsterKey;
      Scott Violet . resolved

      This seems non-trivial. I would be inclined to cache the value. That is, use a static boolean.

      Curtis McMullan

      Done

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Review
      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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
      Gerrit-Change-Number: 5647454
      Gerrit-PatchSet: 5
      Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
      Gerrit-Reviewer: Darren Shen <sh...@chromium.org>
      Gerrit-Reviewer: Scott Violet <s...@chromium.org>
      Gerrit-Comment-Date: Wed, 03 Jul 2024 01:10:35 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Scott Violet <s...@chromium.org>
      satisfied_requirement
      open
      diffy

      Curtis McMullan (Gerrit)

      unread,
      9:20 PM (2 hours ago) 9:20 PM
      to Scott Violet, Darren Shen, chromium...@chromium.org

      Curtis McMullan voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Review
      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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
      Gerrit-Change-Number: 5647454
      Gerrit-PatchSet: 5
      Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
      Gerrit-Reviewer: Curtis McMullan <curtism...@chromium.org>
      Gerrit-Reviewer: Darren Shen <sh...@chromium.org>
      Gerrit-Reviewer: Scott Violet <s...@chromium.org>
      Gerrit-Comment-Date: Wed, 03 Jul 2024 01:20:11 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      10:04 PM (1 hour ago) 10:04 PM
      to Curtis McMullan, Scott Violet, Darren Shen, chromium...@chromium.org

      Chromium LUCI CQ 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: ash/lobster/lobster_controller.cc
      Insertions: 6, Deletions: 5.

      The diff is too large to show. Please review the diff.
      ```
      ```
      The name of the file: ash/lobster/lobster_controller.h
      Insertions: 1, Deletions: 1.

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

      Change information

      Commit message:
      lobster: add feature flag

      BUG=b:348280305
      Change-Id: I7ce3135f0b10710783298604b8ebe71ffd7e0149
      Reviewed-by: Darren Shen <sh...@chromium.org>
      Commit-Queue: Curtis McMullan <curtism...@chromium.org>
      Reviewed-by: Scott Violet <s...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1322529}
      Files:
      • M ash/BUILD.gn
      • M ash/constants/ash_features.cc
      • M ash/constants/ash_features.h
      • M ash/constants/ash_switches.cc
      • M ash/constants/ash_switches.h
      • A ash/lobster/OWNERS
      • A ash/lobster/lobster_controller.cc
      • A ash/lobster/lobster_controller.h
      Change size: M
      Delta: 8 files changed, 71 insertions(+), 0 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Darren Shen, +1 by Scott Violet
      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: I7ce3135f0b10710783298604b8ebe71ffd7e0149
      Gerrit-Change-Number: 5647454
      Gerrit-PatchSet: 6
      Gerrit-Owner: Curtis McMullan <curtism...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages