Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding metrics for signature decoding #28719

Merged
merged 16 commits into from
Nov 27, 2024
Merged

feat: adding metrics for signature decoding #28719

merged 16 commits into from
Nov 27, 2024

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Nov 26, 2024

Description

Adding metrics for signature decoding.

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3644

Manual testing steps

  1. Enable signature deccoding locally
  2. Open permit page
  3. Check that metrics are recorded for signature decoding information

Screenshots/Recordings

NA

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@jpuri jpuri added the team-confirmations Push issues to confirmations team label Nov 26, 2024
@jpuri jpuri requested a review from a team as a code owner November 26, 2024 10:22
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@jpuri jpuri requested a review from a team as a code owner November 26, 2024 11:48
@jpuri jpuri enabled auto-merge November 26, 2024 11:49
@metamaskbot
Copy link
Collaborator

Builds ready [acec502]
Page Load Metrics (1627 ± 75 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint35820911573317152
domContentLoaded14282079160814971
load14372089162715575
domInteractive2483442110
backgroundConnect67619178
firstReactRender1574332311
getState34916168
initialActions01000
loadScripts10171560117412359
setupStore654212010
uiStartup16152246181816680
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.46 KiB (0.02%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [44c0235]
Page Load Metrics (1607 ± 58 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15032007160911555
domContentLoaded14711963158111254
load14802017160712158
domInteractive218836189
backgroundConnect1076282010
firstReactRender157125189
getState4421094
initialActions01000
loadScripts1060145711609244
setupStore65515168
uiStartup16392307178514871
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.46 KiB (0.02%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [1aec969]
Page Load Metrics (1855 ± 90 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15112324185319493
domContentLoaded14952255182218589
load15122329185518790
domInteractive157736147
backgroundConnect1090362210
firstReactRender1898462512
getState663232010
initialActions01000
loadScripts10781745135515976
setupStore65013136
uiStartup170228682081256123

@metamaskbot
Copy link
Collaborator

Builds ready [3bcd04e]
Page Load Metrics (1586 ± 48 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint1439186515899746
domContentLoaded1429177915579043
load14391876158610148
domInteractive2285442110
backgroundConnect9101272411
firstReactRender1577352411
getState45516189
initialActions01000
loadScripts1040135711547938
setupStore5589115
uiStartup16082118177412359
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.46 KiB (0.02%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri requested a review from matthewwalsh0 November 27, 2024 13:33
matthewwalsh0
matthewwalsh0 previously approved these changes Nov 27, 2024
});
});

it('should call updateSignatureEventFragment with correct parameters if there are no state changes', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Minor, same name as the other?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

};

describe('useDecodedSignatureMetrics', () => {
process.env.ENABLE_SIGNATURE_DECODING = 'true';
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: should we unset the ENV var after the tests are complete or is there another way to add ENV for builds?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is being removed in a following PR

@jpuri jpuri added this pull request to the merge queue Nov 27, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [e938f4e]
Page Load Metrics (1711 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint15451951170911455
domContentLoaded15191910168011555
load15481961171111354
domInteractive247842189
backgroundConnect117131189
firstReactRender1776402411
getState65615168
initialActions00000
loadScripts1104145112519947
setupStore65814178
uiStartup17252151190512258
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 1.34 KiB (0.02%)
  • common: 0 Bytes (0.00%)

Merged via the queue into develop with commit afe6dc0 Nov 27, 2024
75 checks passed
@jpuri jpuri deleted the decoding_metrics branch November 27, 2024 14:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants