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

Persist LastRunInfo and populate app.isLaunching for JVM errors #1165

Conversation

fractalwrench
Copy link
Contributor

@fractalwrench fractalwrench commented Feb 26, 2021

Goal

Persists the LastRunInfo so that previous launch information can be retrieved by the user. This also sets the value of app.isLaunching on JVM events.

The implementation of this behaviour for NDK errors will be done in a separate changeset to ease review.

Changeset

  • Added LaunchCrashTracker, which tracks the state of whether the application is currently launching or not
  • Created LastRunInfoStore, which loads and saves the LastRunInfo object from disk in the key-value format
  • Reset the LastRunInfo to the defaults on Client initialization
  • Set the LastRunInfo whenever an unhandled exception occurred so that the next launch allows the user to check that the app crashed

Testing

Added unit tests for new classes. Updated JVM events to assert that the app.isLaunching field is set to the correct default.

E2E tests for the NDK and when markLaunchCompleted() are called will be added in a separate PR.

@fractalwrench fractalwrench force-pushed the PLAT-5977/persist-last-run-info branch 3 times, most recently from 91d8260 to 9fa4fd2 Compare February 26, 2021 17:20
@fractalwrench fractalwrench force-pushed the PLAT-5977/persist-last-run-info branch from 9fa4fd2 to 04ba191 Compare March 1, 2021 09:32
@fractalwrench fractalwrench marked this pull request as ready for review March 1, 2021 09:35
@tomlongridge tomlongridge requested a review from kstenerud March 1, 2021 13:59
@fractalwrench fractalwrench force-pushed the PLAT-5977/persist-last-run-info branch from 04ba191 to 697da0e Compare March 2, 2021 09:55
@fractalwrench
Copy link
Contributor Author

Updated in response to review comments.

@fractalwrench fractalwrench force-pushed the PLAT-5977/persist-last-run-info branch from 697da0e to 83ceb47 Compare March 4, 2021 11:41
@fractalwrench fractalwrench force-pushed the PLAT-5977/persist-last-run-info branch from 83ceb47 to caa197e Compare March 4, 2021 11:49
@fractalwrench fractalwrench merged commit 9087f64 into integration/road-1175-identify-crashes-on-launch Mar 4, 2021
@fractalwrench fractalwrench deleted the PLAT-5977/persist-last-run-info branch March 4, 2021 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants