IcuBridge migration 10.1/n: services/tracing [chromium/src : main]

1 view
Skip to first unread message

Stephen Nusko (Gerrit)

unread,
Jul 29, 2026, 10:36:16 PM (7 days ago) Jul 29
to Danilo Tedeschi, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Danilo Tedeschi

Stephen Nusko added 1 comment

File services/tracing/public/cpp/perfetto/metadata_data_source.cc
Line 188, Patchset 4 (Latest): YMDT::Short()
Stephen Nusko . unresolved

Similar question as before, this appears to me like a change in the format. Could you verify? And correct the format? Perhaps add a test to the unittest that ensure `kTraceCaptureDatetimeKey` has the proper format?

Open in Gerrit

Related details

Attention is currently required from:
  • Danilo Tedeschi
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
Gerrit-Change-Number: 8171443
Gerrit-PatchSet: 4
Gerrit-Owner: Danilo Tedeschi <da...@google.com>
Gerrit-Reviewer: Danilo Tedeschi <da...@google.com>
Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
Gerrit-Attention: Danilo Tedeschi <da...@google.com>
Gerrit-Comment-Date: Thu, 30 Jul 2026 02:35:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Danilo Tedeschi (Gerrit)

unread,
Jul 30, 2026, 11:39:06 AM (7 days ago) Jul 30
to Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Stephen Nusko, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Stephen Nusko

Danilo Tedeschi added 1 comment

File services/tracing/public/cpp/perfetto/metadata_data_source.cc
Line 188, Patchset 4: YMDT::Short()
Stephen Nusko . resolved

Similar question as before, this appears to me like a change in the format. Could you verify? And correct the format? Perhaps add a test to the unittest that ensure `kTraceCaptureDatetimeKey` has the proper format?

Danilo Tedeschi

sorry, the change got lost in the split.

Fixed it now.

Open in Gerrit

Related details

Attention is currently required from:
  • Stephen Nusko
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: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
    Gerrit-Change-Number: 8171443
    Gerrit-PatchSet: 6
    Gerrit-Owner: Danilo Tedeschi <da...@google.com>
    Gerrit-Reviewer: Danilo Tedeschi <da...@google.com>
    Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
    Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
    Gerrit-Comment-Date: Thu, 30 Jul 2026 15:38:53 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Stephen Nusko (Gerrit)

    unread,
    Jul 30, 2026, 11:29:27 PM (6 days ago) Jul 30
    to Danilo Tedeschi, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, ios-revie...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Danilo Tedeschi

    Stephen Nusko added 6 comments

    Patchset-level comments
    File-level comment, Patchset 8 (Latest):
    Stephen Nusko . unresolved

    Also looks like other files crept in as well.

    File services/tracing/public/cpp/perfetto/metadata_data_source.cc
    Line 176, Patchset 8 (Latest): TRACE_TIME_NOW().UTCExplode(&exploded);
    Stephen Nusko . unresolved

    explode can apparently fail I see? Perhaps add a

    `CHECK(exploded.HasValidValues());`

    Line 179, Patchset 8 (Parent): TRACE_TIME_NOW(), "y-M-d H:m:s", icu::TimeZone::getGMT()),
    Stephen Nusko . resolved

    Generally GMT == UTC, is that correct here as well? I think so, but would be nice to have a passing test before the modification.

    Line 179, Patchset 8 (Latest): base::StringPrintf("%d-%d-%d %d:%d:%d", exploded.year, exploded.month,
    Stephen Nusko . unresolved

    this was lower case y, which is just last two digits, is exploded also just for the last two digits? Looks like no from my code reading and the tests?

    File services/tracing/public/cpp/perfetto/metadata_data_source_unittest.cc
    Line 88, Patchset 8 (Latest):
    MetadataDataSource::AddMetadataToBundle("trace-capture-datetime",
    datetime_str, bundle.get());
    Stephen Nusko . unresolved

    This just ensures that the string matches the current inserted format, not that the code in WriteMetadata outputs this time format.

    You'll want to switch this into a similar format as `RecordAndroidMetadata`. I.E. move the logic into a helper function accessible and then test that output.

    Line 100, Patchset 8 (Latest): EXPECT_EQ(metadata.string_value().ToStdString(), "2016-8-18 22:28:10");
    Stephen Nusko . unresolved

    Can you ensure this test was passing before your change? Ideally you'd actually submit the test before your change. I suspect this would fail before the change.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Danilo Tedeschi
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
      Gerrit-Change-Number: 8171443
      Gerrit-PatchSet: 8
      Gerrit-Owner: Danilo Tedeschi <da...@google.com>
      Gerrit-Reviewer: Danilo Tedeschi <da...@google.com>
      Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
      Gerrit-Attention: Danilo Tedeschi <da...@google.com>
      Gerrit-Comment-Date: Fri, 31 Jul 2026 03:29:02 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Danilo Tedeschi (Gerrit)

      unread,
      Jul 31, 2026, 12:14:32 PM (6 days ago) Jul 31
      to Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Stephen Nusko, chromium...@chromium.org, ios-revie...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Stephen Nusko

      Danilo Tedeschi added 5 comments

      Patchset-level comments
      File-level comment, Patchset 8:
      Stephen Nusko . resolved

      Also looks like other files crept in as well.

      Danilo Tedeschi

      Done

      File services/tracing/public/cpp/perfetto/metadata_data_source.cc
      Line 176, Patchset 8: TRACE_TIME_NOW().UTCExplode(&exploded);
      Stephen Nusko . resolved

      explode can apparently fail I see? Perhaps add a

      `CHECK(exploded.HasValidValues());`

      Danilo Tedeschi

      Done

      Line 179, Patchset 8: base::StringPrintf("%d-%d-%d %d:%d:%d", exploded.year, exploded.month,
      Stephen Nusko . resolved

      this was lower case y, which is just last two digits, is exploded also just for the last two digits? Looks like no from my code reading and the tests?

      Danilo Tedeschi

      lower case 'y' does not always translate to last two digits, in "en-US" most of the time, a single 'y' will translate to the four-digit year format.

      File services/tracing/public/cpp/perfetto/metadata_data_source_unittest.cc

      MetadataDataSource::AddMetadataToBundle("trace-capture-datetime",
      datetime_str, bundle.get());
      Stephen Nusko . resolved

      This just ensures that the string matches the current inserted format, not that the code in WriteMetadata outputs this time format.

      You'll want to switch this into a similar format as `RecordAndroidMetadata`. I.E. move the logic into a helper function accessible and then test that output.

      Danilo Tedeschi

      Done

      Line 100, Patchset 8: EXPECT_EQ(metadata.string_value().ToStdString(), "2016-8-18 22:28:10");
      Stephen Nusko . resolved

      Can you ensure this test was passing before your change? Ideally you'd actually submit the test before your change. I suspect this would fail before the change.

      Danilo Tedeschi

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Stephen Nusko
      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: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
        Gerrit-Change-Number: 8171443
        Gerrit-PatchSet: 10
        Gerrit-Owner: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
        Gerrit-Attention: Stephen Nusko <nus...@chromium.org>
        Gerrit-Comment-Date: Fri, 31 Jul 2026 16:14:19 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Stephen Nusko (Gerrit)

        unread,
        Aug 2, 2026, 10:38:04 PM (3 days ago) Aug 2
        to Danilo Tedeschi, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, ios-revie...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
        Attention needed from Danilo Tedeschi

        Stephen Nusko voted and added 1 comment

        Votes added by Stephen Nusko

        Code-Review+1

        1 comment

        File services/tracing/public/cpp/perfetto/metadata_data_source_unittest.cc
        Line 100, Patchset 8: EXPECT_EQ(metadata.string_value().ToStdString(), "2016-8-18 22:28:10");
        Stephen Nusko . resolved

        Can you ensure this test was passing before your change? Ideally you'd actually submit the test before your change. I suspect this would fail before the change.

        Danilo Tedeschi

        Done

        Stephen Nusko

        Huh I though [lowercase y](https://man7.org/linux/man-pages/man1/date.1.html#:~:text=%25y%20%20%20%20%20last%20two%20digits%20of%20year%20(ambiguous%3B%2000..99)) was last 2 digits, but indeed it seems like it was a full year in this case.

        Thanks for double checking for me!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Danilo Tedeschi
        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: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
        Gerrit-Change-Number: 8171443
        Gerrit-PatchSet: 10
        Gerrit-Owner: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
        Gerrit-Attention: Danilo Tedeschi <da...@google.com>
        Gerrit-Comment-Date: Mon, 03 Aug 2026 02:37:38 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        Comment-In-Reply-To: Stephen Nusko <nus...@chromium.org>
        Comment-In-Reply-To: Danilo Tedeschi <da...@google.com>
        satisfied_requirement
        open
        diffy

        Danilo Tedeschi (Gerrit)

        unread,
        Aug 3, 2026, 12:00:17 PM (3 days ago) Aug 3
        to Stephen Nusko, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, ios-revie...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

        Danilo Tedeschi voted Commit-Queue+2

        Commit-Queue+2
        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: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
        Gerrit-Change-Number: 8171443
        Gerrit-PatchSet: 10
        Gerrit-Owner: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
        Gerrit-Comment-Date: Mon, 03 Aug 2026 16:00:06 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Aug 3, 2026, 12:59:12 PM (3 days ago) Aug 3
        to Danilo Tedeschi, Stephen Nusko, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, ios-revie...@chromium.org, marq+...@chromium.org, ios-r...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        IcuBridge migration 10.1/n: services/tracing

        Migrate deprecated UnlocalizedTimeFormatWithPattern and
        LocalizedTimeFormatWithPattern usages to use
        base::i18n::IcuBridge::DateTimeFormatter and modern time APIs.
        Bug: 534455293
        Change-Id: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
        Reviewed-by: Stephen Nusko <nus...@chromium.org>
        Commit-Queue: Danilo Tedeschi <da...@google.com>
        Cr-Commit-Position: refs/heads/main@{#1672734}
        Files:
        • M services/tracing/public/cpp/BUILD.gn
        • M services/tracing/public/cpp/perfetto/metadata_data_source.cc
        • M services/tracing/public/cpp/perfetto/metadata_data_source.h
        • M services/tracing/public/cpp/perfetto/metadata_data_source_unittest.cc
        Change size: M
        Delta: 4 files changed, 57 insertions(+), 9 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Stephen Nusko
        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: I89a6a47406114d90e4c3b417e964ffe53fe5e1c9
        Gerrit-Change-Number: 8171443
        Gerrit-PatchSet: 11
        Gerrit-Owner: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Danilo Tedeschi <da...@google.com>
        Gerrit-Reviewer: Stephen Nusko <nus...@chromium.org>
        open
        diffy
        satisfied_requirement
        Reply all
        Reply to author
        Forward
        0 new messages