-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix: Truncate extremely long transaction histories #26291
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Builds ready [549146f]
Page Load Metrics (361 ± 338 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26291 +/- ##
===========================================
+ Coverage 69.97% 69.99% +0.03%
===========================================
Files 1409 1410 +1
Lines 49916 49958 +42
Branches 13788 13798 +10
===========================================
+ Hits 34926 34968 +42
Misses 14990 14990 ☔ View full report in Codecov by Sentry. |
Gudahtt
force-pushed
the
truncate-long-transaction-histories
branch
from
August 1, 2024 16:57
549146f
to
ced0861
Compare
matthewwalsh0
requested changes
Aug 1, 2024
Builds ready [ced0861]
Page Load Metrics (568 ± 491 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Gudahtt
force-pushed
the
truncate-long-transaction-histories
branch
from
August 1, 2024 18:00
e4906a8
to
47f8991
Compare
matthewwalsh0
approved these changes
Aug 1, 2024
Builds ready [47f8991]
Page Load Metrics (323 ± 300 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
DDDDDanica
approved these changes
Aug 1, 2024
Transaction histories over 100 entries long have been truncated to 100 entries. Transaction histories are not expected to be that large in normal circumstances, but we have found cases of users with transactions stuck in error loops that result in extremely long histories, causing significant performance issues and crashes. This is a partial solution to that problem. We still need to prevent history from growing again. This is accomplished in `@metamask/transaction-controller@35.1.0`, but that update will be included in a later PR because there are some other updates blocking it. This migration is added first to make it easier to cherry-pick into v12.0.1. The migration has been set as number 120.3 because we want to cherry- pick it into v12.0.1, and using this number avoids needing to re-order migrations. Relates to #9372
Gudahtt
force-pushed
the
truncate-long-transaction-histories
branch
from
August 1, 2024 19:34
47f8991
to
cc9dbd5
Compare
Quality Gate passedIssues Measures |
metamaskbot
added
the
release-12.4.0
Issue or pull request that will be included in release 12.4.0
label
Aug 1, 2024
Builds ready [cc9dbd5]
Page Load Metrics (314 ± 274 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
gauthierpetetin
added
release-12.3.0
Issue or pull request that will be included in release 12.3.0
and removed
release-12.4.0
Issue or pull request that will be included in release 12.4.0
labels
Sep 11, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Transaction histories over 100 entries long have been truncated to 100 entries.
Transaction histories are not expected to be that large in normal circumstances, but we have found cases of users with transactions stuck in error loops that result in extremely long histories, causing significant performance issues and crashes.
This is a partial solution to that problem. We still need to prevent history from growing again. This is accomplished in
@metamask/transaction-controller@35.1.0
, but that update will be included in a later PR because there are some other updates blocking it. This migration is added first to make it easier to cherry-pick into v12.0.1.The migration has been set as number 120.3 because we want to cherry- pick it into v12.0.1, and using this number avoids needing to re-order migrations.
Related issues
Relates to #9372
Manual testing steps
dist/chrome
directory and proceed through onboardingScreenshots/Recordings
N/A
Pre-merge author checklist
Pre-merge reviewer checklist