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

UserDefaults misbehavior monitoring #3510

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

dus7
Copy link
Contributor

@dus7 dus7 commented Oct 30, 2024

Task/Issue URL: https://app.asana.com/0/1206226850447395/1208659072736427/f
Tech Design URL: https://app.asana.com/0/481882893211075/1208618515043198/f
CC:

Description:

Attempt to validate a hypothesis about unreliable/inaccessible UserDefaults data during app launch.

Steps to test this PR:

Statistics loader

  1. Launch the app
  2. Stop and put a breakpoint in StatisticsLoader.swift:50
  3. Run the app again. On breakpoint run a debugger command: expr statisticsStore.atb = nil
  4. Continue execution.
  5. Verify proper pixel is fired.
  6. On assertion go to StatisticsLoader.load() frame in the stack and run: expr atbPresenceFileMarker?.unmark() or remove the app. This will prevent assertion for next scenario.

Ad attribution reporter

  1. Change AdAttributionPixelReporter.isAdAttributionReportingEnabled to true
  2. Put a breakpoint in AdAttributionPixelReporter.swift:60
  3. Run the app. On breakpoint run a debugger command: expr attributionReportSuccessfulFileMarker?.mark()
  4. Continue execution
  5. Verify proper pixel is fired.
  6. On assertion go to AdAttributionPixelReporter.reportAttributionIfNeeded() frame in the stack and run: expr attributionReportSuccessfulFileMarker?.unmark() or remove the app.

Definition of Done (Internal Only):


Internal references:

Software Engineering Expectations
Technical Design Template

@dus7 dus7 requested a review from bwaresiak October 30, 2024 20:36
@dus7 dus7 marked this pull request as ready for review October 30, 2024 20:36
@dus7 dus7 requested review from bwaresiak and removed request for bwaresiak October 30, 2024 20:37
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.

1 participant