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

build: remove brfs from build processes #24000

Merged
merged 1 commit into from
Apr 15, 2024
Merged

build: remove brfs from build processes #24000

merged 1 commit into from
Apr 15, 2024

Conversation

davidmurdoch
Copy link
Contributor

@davidmurdoch davidmurdoch commented Apr 12, 2024

The brfs package was used to transform calls to fs.readFile* into inlined files as strings during build/compilation. We no longer make use of fs.readFile* in our code, so the dependency is no longer required. While it doesn't cause issues to leave it, the package is slow as it must parse the contents into an AST and then statically analyze the tree looking for relevant calls to fs.readFile*. This overhead is unwanted, so I've removed it from our build process.

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.

Copy link

socket-security bot commented Apr 12, 2024

@davidmurdoch davidmurdoch marked this pull request as ready for review April 12, 2024 14:54
@davidmurdoch davidmurdoch requested review from a team and kumavis as code owners April 12, 2024 14:54
@davidmurdoch davidmurdoch force-pushed the remove-brfs branch 3 times, most recently from e7a251d to b597020 Compare April 12, 2024 16:42
@metamaskbot
Copy link
Collaborator

Builds ready [e0fb026]
Page Load Metrics (1244 ± 571 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint683821387435
domContentLoaded11126333014
load55296212441190571
domInteractive11126333014
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 19 Bytes (0.00%)

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.54%. Comparing base (1098a10) to head (e0fb026).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #24000   +/-   ##
========================================
  Coverage    67.54%   67.54%           
========================================
  Files         1245     1245           
  Lines        48866    48866           
  Branches     12744    12744           
========================================
  Hits         33005    33005           
  Misses       15861    15861           

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

@davidmurdoch davidmurdoch merged commit be3c4f2 into develop Apr 15, 2024
67 of 68 checks passed
@davidmurdoch davidmurdoch deleted the remove-brfs branch April 15, 2024 20:10
@github-actions github-actions bot locked and limited conversation to collaborators Apr 15, 2024
@metamaskbot metamaskbot added the release-11.16.0 Issue or pull request that will be included in release 11.16.0 label Apr 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.16.0 Issue or pull request that will be included in release 11.16.0 team-extension-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants