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: add metamaskbot codeowner announcement #30668

Merged
merged 36 commits into from
Mar 27, 2025

Conversation

hmalik88
Copy link
Contributor

@hmalik88 hmalik88 commented Mar 2, 2025

Description

Write a short description of the changes included in this pull request, also include relevant motivation and context. Have in mind the following questions:

  1. What is the reason for the change? We often get tagged for codeowner reviews, it can sometimes be difficult to know what you're reviewing without looking at the CODEOWNER file yourself. It would be nice to know what you need to review upon just visting the PR link.
  2. What is the improvement/solution? Added a new workflow to get the MetaMask bot to post a comment on the files that need a CODEOWNER review categorized by the respective team. The bot will post a comment and then update that comment as needed. It will also delete the comment if there is no longer a CODEOWNER review required.

Manual testing steps

  1. Open a PR against this branch
  2. Make some codeowner file changes
  3. Observe the MetaMask bot make a comment.

Screenshots/Recordings

After

Screenshot 2025-03-02 at 3 52 44 PM

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.

Copy link
Contributor

github-actions bot commented Mar 2, 2025

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.

@metamaskbot metamaskbot added the team-snaps-platform Snaps Platform team label Mar 2, 2025
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Mar 2, 2025
@hmalik88
Copy link
Contributor Author

hmalik88 commented Mar 2, 2025

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@hmalik88 hmalik88 marked this pull request as ready for review March 2, 2025 21:56
@hmalik88 hmalik88 requested review from a team as code owners March 2, 2025 21:56
@metamaskbot
Copy link
Collaborator

Builds ready [ee3811e]
Page Load Metrics (1564 ± 41 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint35217401507279134
domContentLoaded1383172515378440
load1423174415648541
domInteractive19113462613
backgroundConnect998322211
firstReactRender146726189
getState45517189
initialActions00000
loadScripts1012133311448038
setupStore725942
uiStartup16302004176510148
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Contributor

@HowardBraham HowardBraham left a comment

Choose a reason for hiding this comment

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

I have not actually tested functionality, do you have a PR open against this that tests it?

@hmalik88
Copy link
Contributor Author

hmalik88 commented Mar 3, 2025

I have not actually tested functionality, do you have a PR open against this that tests it?

Yeah, I was testing against #30669

@hmalik88
Copy link
Contributor Author

hmalik88 commented Mar 3, 2025

Yeah, I was testing against #30669

Okay I tried it out, pretty cool. And this is minor but I think very easy: after we groupFilesByTeam, can we sort the teams themselves in alphabetical order? My test produced this result, which I think isn't sorted on anything:

✨ Files requiring CODEOWNER review ✨

📄 @HowardBraham

  • development/circular-deps.jsonc

🔒 @MetaMask/extension-security-team

  • development/circular-deps.jsonc

📈 @MetaMask/ramp

  • ui/ducks/ramps/ramps.test.ts

🫰 @MetaMask/snaps-devs

  • ui/helpers/utils/permission.js

🖥️ @MetaMask/wallet-ux

  • ui/components/multichain/multichain-components.scss

📄 @dbrans

  • development/circular-deps.jsonc

Nice catch, I updated to sort alphabetically and list the teams first.

Screenshot 2025-03-02 at 8 15 15 PM

@metamaskbot
Copy link
Collaborator

Builds ready [e02a949]
Page Load Metrics (1865 ± 61 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16932223186412861
domContentLoaded16682191183312460
load16932219186512761
domInteractive15145502914
backgroundConnect1285392110
firstReactRender1580472512
getState55912115
initialActions00000
loadScripts1234159413779445
setupStore76115136
uiStartup19272501211614971
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [cdad138]
Page Load Metrics (1830 ± 95 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16212250183819895
domContentLoaded15722185180418890
load16222258183019895
domInteractive27191503919
backgroundConnect107326199
firstReactRender1476422613
getState56420199
initialActions00000
loadScripts11741699136816177
setupStore75313105
uiStartup181226042082221106
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@hmalik88 hmalik88 added team-extension-platform Extension Platform team and removed INVALID-PR-TEMPLATE PR's body doesn't match template team-snaps-platform Snaps Platform team labels Mar 7, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [3ebad9d]
Page Load Metrics (2180 ± 101 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint18262599216820397
domContentLoaded17612421208115976
load182526642180210101
domInteractive28154553416
backgroundConnect10458999445
firstReactRender18106472512
getState7200444120
initialActions01000
loadScripts13331908158814067
setupStore95818157
uiStartup202837352571398191
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@hmalik88 hmalik88 requested a review from a team March 11, 2025 18:44
@metamaskbot
Copy link
Collaborator

Builds ready [dc9eccf]
Page Load Metrics (2138 ± 257 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint173234872112459220
domContentLoaded171431392032377181
load173139042138535257
domInteractive28219514421
backgroundConnect1289111519594
firstReactRender15274517335
getState6243496230
initialActions01000
loadScripts127923811544281135
setupStore7125273517
uiStartup1910635326441154554
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@HowardBraham HowardBraham dismissed their stale review March 27, 2025 07:33

comments from itsyoboieltr

@MetaMask MetaMask deleted a comment from HowardBraham Mar 27, 2025
@HowardBraham HowardBraham enabled auto-merge March 27, 2025 18:32
@HowardBraham HowardBraham added this pull request to the merge queue Mar 27, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [0cb96a1]
UI Startup Metrics (1225 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1225111013725712641324
load107494812355411231235
domContentLoaded10679431212541134997
domInteractive16133451630
firstPaint75874122243120184
backgroundConnect116498910
firstReactRender21155372341
getState10432779
initialActions001001
loadScripts81167794655860887
setupStore8424379
WebpackHomeuiStartup925826107557949966
load79159190965834875
domContentLoaded78658690265828867
domInteractive15125171333
firstPaint4345690532882390
backgroundConnect14112941425
firstReactRender13122421314
getState6412267
initialActions001000
loadScripts78457689265826857
setupStore7515289
FirefoxBrowserifyHomeuiStartup13731220183313913911758
load12311064168013612601604
domContentLoaded12311063168013612601604
domInteractive10134179298796
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23175552530
firstReactRender24195362631
getState7427379
initialActions001001
loadScripts12091045166013512411579
setupStore6434467
WebpackHomeuiStartup9858281595161913968
load8637291372143805909
domContentLoaded8637291372143804909
domInteractive114313713515097
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2013102122135
firstReactRender19162622024
getState9455879
initialActions001001
loadScripts8467181342139792900
setupStore105641178
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

Merged via the queue into main with commit 23314e3 Mar 27, 2025
147 checks passed
@HowardBraham HowardBraham deleted the hm/add-metamaskbot-codeowner-announcement branch March 27, 2025 19:40
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Mar 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-extension-platform Extension Platform team
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants