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

fix: move migration validation out of onPersistComplete #13158

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

owencraston
Copy link
Contributor

@owencraston owencraston commented Jan 23, 2025

Description

  • The issue now seems to be that onPersistComplete is not only called after migrations run, they are called even for new users so we are seeing errors logged to sentry that do not pertain to existing users.

  • In this PR I hope to only run the migration validation after after we have completed all the migrations. This should only happen when a user updates the app.

Related issues

Fixes: #13144

Manual testing steps

  1. Download an old version of the app
  2. create accounts (ideally ones that have tokens)
  3. Update to this version of the app
  4. there should be no crashes

Screenshots/Recordings

Before

After

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

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.

@owencraston owencraston force-pushed the chore/unmask-account-scopes branch from 91727f1 to 0bd3016 Compare January 23, 2025 19:07
@owencraston owencraston added the Run Smoke E2E Triggers smoke e2e on Bitrise label Jan 23, 2025
Copy link
Contributor

github-actions bot commented Jan 23, 2025

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 0bd3016
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/6b523b41-50cf-4685-b593-15ec43ee0102

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@owencraston
Copy link
Contributor Author

@owencraston owencraston marked this pull request as ready for review January 23, 2025 19:08
@owencraston owencraston requested review from a team as code owners January 23, 2025 19:08
@owencraston owencraston added team-accounts Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Jan 23, 2025
Copy link
Contributor

github-actions bot commented Jan 23, 2025

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: ac67868
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/66e1399e-a316-407d-89c9-d4cdda6237ee

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM

@sethkfman sethkfman added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit dd95738 Jan 29, 2025
43 of 44 checks passed
@sethkfman sethkfman deleted the chore/unmask-account-scopes branch January 29, 2025 04:28
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2025
@metamaskbot metamaskbot added the release-7.40.0 Issue or pull request that will be included in release 7.40.0 label Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.40.0 Issue or pull request that will be included in release 7.40.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Migration validation errors
3 participants