Skip to content

Conversation

@hotsphink
Copy link
Contributor

One thing I discovered while trying to document this is that a negative match without a key will be treated as a positive match against a substring with a - in it: the search string a,-DOM will match anything with "a" in it or with "-DOM" in it, whereas a,-name:DOM will match anything with "a" in it except markers with "DOM" in their names. That's fine functionality to have (I see markers with - in their fields, for example), but unexpected to me. I would probably rather have them error out until quoted strings are supported (to allow a,"-DOM"). I'm not sure it's worth opening an issue for, though.

@hotsphink hotsphink force-pushed the push-opuqknmyroys branch from 5ccfdca to 315d0a0 Compare June 13, 2025 21:14
@codecov
Copy link

codecov bot commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.15%. Comparing base (452ec65) to head (315d0a0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5493   +/-   ##
=======================================
  Coverage   86.15%   86.15%           
=======================================
  Files         307      307           
  Lines       29637    29637           
  Branches     7999     7999           
=======================================
  Hits        25533    25533           
  Misses       3516     3516           
  Partials      588      588           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@canova canova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

One thing I discovered while trying to document this is that a negative match without a key will be treated as a positive match against a substring with a - in it: the search string a,-DOM will match anything with "a" in it or with "-DOM" in it, whereas a,-name:DOM will match anything with "a" in it except markers with "DOM" in their names. That's fine functionality to have (I see markers with - in their fields, for example), but unexpected to me. I would probably rather have them error out until quoted strings are supported (to allow a,"-DOM"). I'm not sure it's worth opening an issue for, though.

Yeah, this was done this way because of a real use case that we had back then. SP3 profiles had UserTiming markers with names like <test-name>-start and <test-name>-end, and performance people who looked at the sp3 profiles wanted to be able to filter all those by adding -start,-end in the marker filter.

I think this use case has changed now, with the proper duration markers that we have in sp3 profiles. But there could be other use cases like this.

Also if we change this behavior now, the old published urls that include -something won't work. We can handle this with an upgrade, but still it's something to consider.

@canova canova enabled auto-merge (squash) June 16, 2025 18:27
@canova canova merged commit 5a054f9 into firefox-devtools:main Jun 16, 2025
12 of 13 checks passed
@hotsphink
Copy link
Contributor Author

Ah yes, fair, since I ran into exactly these markers in the investigation that spawned this PR. Only in my case, I want to exclude the -start and -end markers, since they're just noise now that the proper interval markers are there (and I was trying out Fouineur and it seemed easiest to filter things down with the profiler). I ended up tacking -name:-end,-name:-start to the end of my filter. So I ended up wanting the opposite: it would have been easier if ...,-end,-start excluded those rather than including them. ;-) But I totally see the backwards-compatibility argument, so I'm fine with current behavior.

@canova canova mentioned this pull request Jul 11, 2025
canova added a commit that referenced this pull request Jul 11, 2025
Changes:

[Nazım Can Altınova] Fix issues related to the track borders (#5484)
[Nazım Can Altınova] Remove the active tab and origins views (#5483)
[Julien Wajsberg] Automatically request reviews for dependency updates
(#5490)
[Julien Wajsberg] Update fetch-mock-jest to @fetch-mock/jest (#5488)
[Steve Fink] Document marker filter syntax (#5493)
[Nazım Can Altınova] Update all of jest 29.7.0 → 30.0.0 (major) (#5495)
[Nazım Can Altınova] Order global tracks by activity and select the most
active non-parent process by default (#5491)
[Paul Adenot] Allow searching for HTTP response status in marker views
(#5504)
[Nazım Can Altınova] Expose a `totalMarkerDuration` function in console
(#5507)
[Nazım Can Altınova] 🔃 Sync: l10n -> main (July 11, 2025) (#5510)

And thanks to our localizers:

el: Jim Spentzos
kab: ZiriSut
tr: Grk
tr: Selim Şumlu
uk: Artem Polivanchuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants