Skip to content

Make the argument-values.json profile fixture go through profile upgrading#5796

Merged
mstange merged 1 commit intofirefox-devtools:mainfrom
mstange:argument-values-fixture-upgrading
Jan 30, 2026
Merged

Make the argument-values.json profile fixture go through profile upgrading#5796
mstange merged 1 commit intofirefox-devtools:mainfrom
mstange:argument-values-fixture-upgrading

Conversation

@mstange
Copy link
Contributor

@mstange mstange commented Jan 29, 2026

Otherwise we'll have to change it whenever we change the format.

@mstange mstange requested a review from canova January 29, 2026 23:48
@mstange mstange self-assigned this Jan 29, 2026
const profiler = await unserializeProfileOfArbitraryFormat(
require('../fixtures/upgrades/argument-values.json')
);
const store = storeWithProfile(profiler);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I should probably add a check inside storeWithProfile which throws an exception if it sees something that's not a fully-upgraded profile.

Copy link
Member

Choose a reason for hiding this comment

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

That's a good idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've updated this PR to include that change.

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.64%. Comparing base (d76de1f) to head (23cab85).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/test/fixtures/stores.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5796      +/-   ##
==========================================
- Coverage   85.64%   85.64%   -0.01%     
==========================================
  Files         319      319              
  Lines       31316    31318       +2     
  Branches     8630     8629       -1     
==========================================
+ Hits        26821    26822       +1     
- Misses       4064     4065       +1     
  Partials      431      431              

☔ 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.

Ah right, thanks for the fix!

const profiler = await unserializeProfileOfArbitraryFormat(
require('../fixtures/upgrades/argument-values.json')
);
const store = storeWithProfile(profiler);
Copy link
Member

Choose a reason for hiding this comment

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

That's a good idea.

…ading.

Otherwise we'll have to change it whenever we change the format.
@mstange mstange force-pushed the argument-values-fixture-upgrading branch from c51d8da to 23cab85 Compare January 30, 2026 15:22
@mstange mstange enabled auto-merge January 30, 2026 15:23
@mstange mstange merged commit b1930a0 into firefox-devtools:main Jan 30, 2026
19 checks passed
@canova canova mentioned this pull request Feb 4, 2026
canova added a commit that referenced this pull request Feb 4, 2026
Changes:

[Nazım Can Altınova] Make the range duration text white again (#5792)
[Alex Thayer] Display traced values in Stack Chart view (#5363)
[Nazım Can Altınova] Improve the JS traced arguments visualization in
call node tooltips (#5795)
[Markus Stange] Make the argument-values.json profile fixture go through
profile upgrading (#5796)
[Markus Stange] Add thread.usedInnerWindowIDs to the processed profile
format (#5780)
[fatadel] Fix context menu and hover preview z-index (#5797)
[fatadel] add TrackPower--tooltip-power-microwatt (#5799)
[Markus Stange] Two small test fixes (#5801)
[fatadel] fix selected thread pid color in light mode (#5805)
[Markus Stange] Some fixes to the profile merging code (#5802)
[fatadel] fix disabled button color in dark mode (#5808)
[fatadel] add comment for uptime label translation (#5806)
[Nazım Can Altınova] Add a theme toggle to the home page and follow the
system theme by default (#5800)
[Nazım Can Altınova] 🔃 Sync: l10n -> main (Feb 4, 2025) (#5813)

And huge thanks to our localizers:

de: Ger
de: Michael Köhler
de: Nazım Can Altınova
el: Jim Spentzos
en-GB: Ian Neal
es-CL: ravmn
fy-NL: Fjoerfoks
ia: Melo46
it: Francesco Lodolo [:flod]
nl: Mark Heijl
pt-BR: Marcelo Ghelman
ru: Valery Ledovskoy
sv-SE: Andreas Pettersson
tr: Selim Şumlu
zh-TW: Pin-guang Chen
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