-
Notifications
You must be signed in to change notification settings - Fork 5.5k
ci: count network requests made during benchmarks #37291
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
Conversation
|
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. |
✨ Files requiring CODEOWNER review ✨🧪 @MetaMask/qa (2 files, +31 -11)
|
2a31449 to
bbae151
Compare
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [bbae151]
UI Startup Metrics (1267 ± 79 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
bbae151 to
69dbd90
Compare
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [69dbd90]
UI Startup Metrics (1294 ± 80 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
69dbd90 to
2947abc
Compare
2947abc to
a371c95
Compare
Builds ready [a371c95]
UI Startup Metrics (1274 ± 85 ms)
|
a371c95 to
fe3a8ac
Compare
Builds ready [fe3a8ac]
UI Startup Metrics (1278 ± 83 ms)
|
fe3a8ac to
b5a17bc
Compare
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [a6a1235]
UI Startup Metrics (1380 ± 112 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
seaona
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 😍 LGTM
|
just a question: having the metrics in the PR comment seems that if there's a spike on number requests for example, people won't realize, because you have to unfold the comment, and also compare with previous numbers. Is there a plan to somehow add an alert in the future, if the numbers get super high all of a sudden? @HowardBraham
|
@seaona This data is going to be posted to Sentry soon 🙂 |
| jobs: | ||
| benchmarks: | ||
| if: ${{ github.event_name != 'merge_group' }} # Skip this job for the Merge Queue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, I noticed this as I was watching the workflows. There's absolutely no reason to run the benchmarks during the Merge Queue 🙂
MajorLift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!

Description
Measures and adds a
numNetworkReqsline to theUI Startup Metricstable. More detailed info on the network requests is coming in a later PR.Changelog
CHANGELOG entry: null
Related issues
Progresses: MetaMask/metamask-planning#6123
Note
Adds numNetworkReqs to page-load benchmarks by counting network requests via mocks and wiring through helpers, and skips certain CI jobs for merge queue runs.
numNetworkReqsto collectedMetrics; include inALL_METRICSused for stats output.test/e2e/mock-e2e.js,test/e2e/mock-e2e-pass-through.ts) and exposegetNetworkReport/clearNetworkReport.withFixtures) to benchmark runners; reset network counters per page load and record counts.numNetworkReqsand defineNetworkReport; renameALL_TRACEStoALL_METRICS; add browser-load start logging.publish-prereleaseandrun-benchmarksjobs onmerge_groupevents.Written by Cursor Bugbot for commit a6a1235. This will update automatically on new commits. Configure here.