RPP: fix incorrect Interactions timeline [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Jack Franklin (Gerrit)

unread,
Sep 22, 2025, 4:32:19 AMĀ (2 days ago)Ā Sep 22
to Finnur Thorarinsson, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Finnur Thorarinsson

Jack Franklin voted and added 1 comment

Votes added by Jack Franklin

Auto-Submit+1

1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Jack Franklin . resolved

PTAL.

Open in Gerrit

Related details

Attention is currently required from:
  • Finnur Thorarinsson
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: I99571cbf131ab2b694eb0a7883f4f83a06fd9cb3
Gerrit-Change-Number: 6972018
Gerrit-PatchSet: 2
Gerrit-Owner: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Finnur Thorarinsson <fin...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Finnur Thorarinsson <fin...@chromium.org>
Gerrit-Comment-Date: Mon, 22 Sep 2025 08:32:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Finnur Thorarinsson (Gerrit)

unread,
Sep 23, 2025, 11:42:40 AMĀ (15 hours ago)Ā Sep 23
to Jack Franklin, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Jack Franklin

Finnur Thorarinsson voted and added 8 comments

Votes added by Finnur Thorarinsson

Code-Review+1

8 comments

Patchset-level comments
Finnur Thorarinsson . resolved

Just nits and observations...

File front_end/models/trace/handlers/UserInteractionsHandler.test.ts
Line 153, Patchset 2 (Latest): // 1.pointerdown, 2. pointerup, 3. click
Finnur Thorarinsson . unresolved

nit: Missing period at the end. :)

Line 153, Patchset 2 (Latest): // 1.pointerdown, 2. pointerup, 3. click
Finnur Thorarinsson . unresolved

nit: missing space after period.

Line 153, Patchset 2 (Latest): // 1.pointerdown, 2. pointerup, 3. click
Finnur Thorarinsson . unresolved

Looks like the test expectations have changed, but the comment is documenting the old way, not the new way...

Line 155, Patchset 2 (Latest): // 4. keydown, 5. keyup
Finnur Thorarinsson . unresolved

ditto. :)

Line 156, Patchset 2 (Latest):
Finnur Thorarinsson . resolved

nit: Is this intentional? Don't care much either way, just thought I'd ask.

Line 177, Patchset 2 (Latest): assert.strictEqual(keyboardInteraction.mainThreadHandling, 143901);
Finnur Thorarinsson . resolved

Just an observation... this variable name (mainThreadHandling) is not a very descriptive one, for a duration... (beyond the scope for this CL though)

Line 193, Patchset 2 (Latest): // end events were used which meant the durations of the interaction events
Finnur Thorarinsson . unresolved

micro-not: comma before 'which'.

Open in Gerrit

Related details

Attention is currently required from:
  • Jack Franklin
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: I99571cbf131ab2b694eb0a7883f4f83a06fd9cb3
Gerrit-Change-Number: 6972018
Gerrit-PatchSet: 2
Gerrit-Owner: Jack Franklin <jacktf...@chromium.org>
Gerrit-Reviewer: Finnur Thorarinsson <fin...@chromium.org>
Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Jack Franklin <jacktf...@chromium.org>
Gerrit-Comment-Date: Tue, 23 Sep 2025 15:42:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Jack Franklin (Gerrit)

unread,
Sep 23, 2025, 12:35:29 PMĀ (14 hours ago)Ā Sep 23
to Finnur Thorarinsson, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

Jack Franklin voted and added 6 comments

Votes added by Jack Franklin

Auto-Submit+1
Commit-Queue+2

6 comments

File front_end/models/trace/handlers/UserInteractionsHandler.test.ts
Line 153, Patchset 2: // 1.pointerdown, 2. pointerup, 3. click
Finnur Thorarinsson . resolved

nit: missing space after period.

Jack Franklin

Done

Line 153, Patchset 2: // 1.pointerdown, 2. pointerup, 3. click
Finnur Thorarinsson . resolved

Looks like the test expectations have changed, but the comment is documenting the old way, not the new way...

Jack Franklin

Done

Line 153, Patchset 2: // 1.pointerdown, 2. pointerup, 3. click
Finnur Thorarinsson . resolved

nit: Missing period at the end. :)

Jack Franklin

Done

Line 155, Patchset 2: // 4. keydown, 5. keyup
Finnur Thorarinsson . resolved

ditto. :)

Jack Franklin

Done

Line 177, Patchset 2: assert.strictEqual(keyboardInteraction.mainThreadHandling, 143901);
Finnur Thorarinsson . resolved

Just an observation... this variable name (mainThreadHandling) is not a very descriptive one, for a duration... (beyond the scope for this CL though)

Jack Franklin

Yeah, I would agree. I will send another CL to rename. I'd probably just lob `Duration` on the end. wdyt?

Line 193, Patchset 2: // end events were used which meant the durations of the interaction events
Finnur Thorarinsson . resolved

micro-not: comma before 'which'.

Jack Franklin

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: I99571cbf131ab2b694eb0a7883f4f83a06fd9cb3
    Gerrit-Change-Number: 6972018
    Gerrit-PatchSet: 3
    Gerrit-Owner: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Finnur Thorarinsson <fin...@chromium.org>
    Gerrit-Reviewer: Jack Franklin <jacktf...@chromium.org>
    Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Comment-Date: Tue, 23 Sep 2025 16:35:25 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Finnur Thorarinsson <fin...@chromium.org>
    satisfied_requirement
    open
    diffy

    Devtools-frontend LUCI CQ (Gerrit)

    unread,
    Sep 23, 2025, 3:13:59 PMĀ (11 hours ago)Ā Sep 23
    to Jack Franklin, Finnur Thorarinsson, devtools-rev...@chromium.org

    Devtools-frontend LUCI CQ submitted the change with unreviewed changes

    Unreviewed changes

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

    ```
    The name of the file: front_end/models/trace/handlers/UserInteractionsHandler.test.ts
    Insertions: 3, Deletions: 3.

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

    Change information

    Commit message:
    RPP: fix incorrect Interactions timeline

    This is the same fix as crrev.com/c/6969008 but applied to the
    UserInteractionsHandler, which does not use our generic event pairing
    implementation (it should, but it works slightly differently with how we
    construct the events, so I will tackle that in a separate CL).

    Perfetto changed to reuse IDs for non-overlapping event pairs, and the
    UserInteractionsHandler did not account for this. This CL ensures that
    it does, meaning that we no longer pair events inaccurately in the
    timeline.
    Fixed: 446590230
    Change-Id: I99571cbf131ab2b694eb0a7883f4f83a06fd9cb3
    Commit-Queue: Jack Franklin <jacktf...@chromium.org>
    Auto-Submit: Jack Franklin <jacktf...@chromium.org>
    Reviewed-by: Finnur Thorarinsson <fin...@chromium.org>
    Files:
    • M front_end/models/trace/handlers/UserInteractionsHandler.test.ts
    • M front_end/models/trace/handlers/UserInteractionsHandler.ts
    • M front_end/panels/timeline/fixtures/traces/BUILD.gn
    • M front_end/panels/timeline/fixtures/traces/README.md
    • A front_end/panels/timeline/fixtures/traces/interaction-events-with-shared-ids.json.gz
    Change size: M
    Delta: 5 files changed, 142 insertions(+), 74 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Finnur Thorarinsson
    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: I99571cbf131ab2b694eb0a7883f4f83a06fd9cb3
    Gerrit-Change-Number: 6972018
    Gerrit-PatchSet: 4
    Gerrit-Owner: Jack Franklin <jacktf...@chromium.org>
    Gerrit-Reviewer: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages