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 e2e for signature decoding api and enable it in extension #28423

Merged
merged 26 commits into from
Nov 28, 2024

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Nov 12, 2024

Description

adding e2e for signature decoding api and enable it in extension

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/3625, https://github.com/MetaMask/MetaMask-planning/issues/3692

Manual testing steps

NA

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 12, 2024
@jpuri jpuri requested review from a team as code owners November 12, 2024 13:50
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 marked this pull request as draft November 13, 2024 05:44
@jpuri
Copy link
Contributor Author

jpuri commented Nov 13, 2024

The PR can not be merged till the env variable are enabled for main build in develop branch.

Base automatically changed from native_value_display to develop November 22, 2024 00:50
@jpuri jpuri changed the base branch from develop to decoding_api_request_filtering November 27, 2024 14:51
@jpuri jpuri marked this pull request as ready for review November 27, 2024 14:58
@jpuri jpuri requested a review from a team as a code owner November 27, 2024 14:58
# URL of the decoding API used to provide additional data from signature requests
- DECODING_API_URL: null
- DECODING_API_URL: 'https://qtgdj2huxh.execute-api.us-east-2.amazonaws.com/uat/v1'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are still pointing to uat, as prod is currently broken

@jpuri
Copy link
Contributor Author

jpuri commented Nov 27, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

No policy changes

Base automatically changed from decoding_api_request_filtering to develop November 27, 2024 16:06
@metamaskbot
Copy link
Collaborator

Builds ready [f339dca]
Page Load Metrics (1605 ± 61 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint13891918161012761
domContentLoaded13761889158211957
load13871909160512761
domInteractive237832136
backgroundConnect119826209
firstReactRender15100422914
getState466172010
initialActions01000
loadScripts9981422116310148
setupStore66412157
uiStartup15372212185819091
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 55 Bytes (0.00%)
  • ui: 70 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [6c8c6e7]
Page Load Metrics (1920 ± 62 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint17542271192413062
domContentLoaded17162245189912862
load17562273192013062
domInteractive266536105
backgroundConnect96127168
firstReactRender16472284
getState49115912010
initialActions01000
loadScripts12741737144711555
setupStore610811
uiStartup19632583218815373
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 55 Bytes (0.00%)
  • ui: 70 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

matthewwalsh0
matthewwalsh0 previously approved these changes Nov 28, 2024
OGPoyraz
OGPoyraz previously approved these changes Nov 28, 2024
@@ -48,6 +48,8 @@
"price.api.cx.metamask.io",
"proxy.api.cx.metamask.io",
"proxy.dev-api.cx.metamask.io",
"qtgdj2huxh.execute-api.us-east-2.amazonaws.com",
"https://signature-insights.api.cx.metamask.io",
Copy link
Member

Choose a reason for hiding this comment

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

Where is this entry coming from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are UAT and PROD url for signature decoding api.

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 removed PROD url for now, we can add it back once we switch to prod instance

@jpuri jpuri changed the title chore: adding e2e for signature decoding api chore: adding e2e for signature decoding api and enable it in extension Nov 28, 2024
@jpuri jpuri changed the title chore: adding e2e for signature decoding api and enable it in extension feat: adding e2e for signature decoding api and enable it in extension Nov 28, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [8b83e99]
Page Load Metrics (1849 ± 111 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint158323701856225108
domContentLoaded157623091816218105
load158423621849230111
domInteractive246240147
backgroundConnect8137343617
firstReactRender1596322211
getState2486582311
initialActions01000
loadScripts11991831138218287
setupStore682202311
uiStartup178127982153273131
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 55 Bytes (0.00%)
  • ui: 1.75 KiB (0.02%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri requested a review from Gudahtt November 28, 2024 15:15
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM! Reviewed just the privacy snapshot, build config, and metamask-controller

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

Builds ready [e1cfcd6]
Page Load Metrics (2032 ± 68 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint29621701833521250
domContentLoaded17872417200914168
load18082432203214168
domInteractive277348167
backgroundConnect876252110
firstReactRender168026157
getState50121101178
initialActions01000
loadScripts12961872155012962
setupStore7341063
uiStartup20612745234217484
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 55 Bytes (0.00%)
  • ui: 1.75 KiB (0.02%)
  • common: 0 Bytes (0.00%)

Merged via the queue into develop with commit 9b067c8 Nov 28, 2024
75 checks passed
@jpuri jpuri deleted the decoding_e2e branch November 28, 2024 16:29
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2024
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 28, 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
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants