App icon indicating copy to clipboard operation
App copied to clipboard

[Apple rejecting release] Investigate splash screen issue with apple test credentials

Open chiragsalian opened this issue 5 years ago • 57 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. On testflight iOS, log into the account shown here

Expected Result:

  1. The user should be able to login and see the chats normally

Actual Result:

Instead, you'll just see a splash screen and nothing else. image

Workaround:

N/A

Platform:

Where is this issue occurring?

  • iOS

Seems to work fine on staging web newDot

Version Number: 1.0.84.5 Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos: Any additional supporting documentation Expensify/Expensify Issue URL:

View all open jobs on Upwork

chiragsalian avatar Aug 12 '21 16:08 chiragsalian

Triggered auto assignment to @arielgreen (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Aug 12 '21 16:08 MelvinBot

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

OSBotify avatar Aug 12 '21 16:08 OSBotify

Triggered auto assignment to @Julesssss (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 12 '21 16:08 MelvinBot

@chiragsalian should this be labeled External?

arielgreen avatar Aug 12 '21 20:08 arielgreen

Nope, usually deploy blockers are investigated internally.

chiragsalian avatar Aug 12 '21 20:08 chiragsalian

So what i tried,

  1. I can reproduce the issue sometimes (like 1 in 4 maybe) using testflight.
  2. I have not been able to reproduce the problem on staging web newDot.
  3. I tried to reproduce the error on an iOS simulator in hopes that i could get some logs but it works without any issue on the simulator (pointed env to staging for testing)
  4. Tried to reproduce the error on my physical iOS phone (assuming that maybe the issue only happens on a physical phone). But I could not reproduce the issue on my phone too.

I seem to only sometimes get the issue on testflight. Unsure what to do next or if there is some way we can get the error logs from testflight. Unfortunately, I'll have to unassign myself from this issue since I'm OOO tomorrow.

chiragsalian avatar Aug 12 '21 23:08 chiragsalian

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

OSBotify avatar Aug 13 '21 13:08 OSBotify

DeployBlockerCash issues should not be unassigned per the comment above. Reassigning to @Julesssss since he was the initial assignee.

iwiznia avatar Aug 13 '21 13:08 iwiznia

This is a tricky one.

Locating the offending PR is unlikely due to the fact that there are over 80 PRs in this deploy checklist and that the issue is only reproducible about 1/4 times. Usually, I would git-bisect to locate the problem, but this method would take days as we would need to compile an iOS build and run it multiple times to check each individual PR.

Instead, I will focus on retrieving logs for now.

Julesssss avatar Aug 13 '21 16:08 Julesssss

I am not able to reproduce on a physical Android device, pointing to staging with the same credentials and version.

Log search was unfruitful due to the number of logs the test user account generates. My next plan was to reproduce it, noting the time of the event so that I could locate the logs, but we have not been able to reproduce the issue since then.

I won't have access to a physical iOS test device until Monday, so @johncschuster kindly ran some tests for me. He logged into the mentioned user account 5 times and didn't once see the issue. He also tried logging in after killing the app, but this also worked successfully. The device was an iPhone 12 Pro Max, running iOS 14.7.1

Julesssss avatar Aug 13 '21 17:08 Julesssss

But I could not reproduce the issue on my phone too. Unsure what to do next or if there is some way we can get the error logs from testflight

TestFlight won't be useful unfortunately as this wasn't a Crash. Our best bet would be LogSearch (no luck here), or device JS logs (not possible currently as we cannot reproduce locally).

At this point, I don't think this should remain a deploy blocker. As far as we know it occurs rarely (1/4 times) on login (a rare event for existing users), on a single platform (not Android/Web/Desktop/mWeb), possibly for a single user.

I'm going to remove thedeployBlocker label, drop the priority to Daily, and will mention this issue in #QA and ask Applause to test it too. If anyone else is able to reproduce in the meantime then we should take another look. Tagging @Expensify/mobile-deployers in case anyone disagrees with removing the label

Julesssss avatar Aug 13 '21 18:08 Julesssss

I thought this is literally a deploy blocker deemed by Apple? They won't approve the app until we fix it

AndrewGable avatar Aug 13 '21 18:08 AndrewGable

Ah I didn't see that, is there another issue or thread for this?

Julesssss avatar Aug 13 '21 18:08 Julesssss

Slack thread: https://expensify.slack.com/archives/C07J32337/p1628644892166500

AndrewGable avatar Aug 13 '21 18:08 AndrewGable

Thanks. Okay, so that changes things 😞

Given that we must solve this I see two paths forward here:

  • Compile a release build, run it on a physical iOS device until the issue is reproduced and hope that device logs/Logsearch help us track down the issues
  • Use git-bisect to isolate the PR which introduced this issue and revert

We should also confirm that the issue exists on other accounts. If the issue is isolated to the Apple test account then A) this might give us hints towards the issue, and B) we might be able to provide alternate credentials to Apple to get around the rejection

As I mentioned above, I'm away from my physical iOS test device until next week (plus I missed that this was not a regular deployblocker and it is quite late here) but I continue this investigation first thing on Monday.

If any mobile deployer is able to make a start on any of these paths forward in the meantime that would be super helpful.

Julesssss avatar Aug 13 '21 18:08 Julesssss

Linking this previous race condition PR, which may provide a good starting point (as Chirag pointed out)

Julesssss avatar Aug 13 '21 19:08 Julesssss

So far today I have not been able to reproduce the issue once in 10's of attempts. Here's the build info:

Device: Physical iPhone 7
iOS Version: 13.3
Build flavor: Release
App version: v1.0.85-6
Environment: Staging/prod

I'm now reverting to the reported version for further testing -- it's unlikely, but perhaps the conditions for this potential race condition have simply ceased to exist with additional changes.

The only odd thing I have noticed so far is that we're subscribing to UA twice in very quick succession due to the main App component updating. But this occurs even if we make it past the splash screen.

Julesssss avatar Aug 16 '21 14:08 Julesssss

The latest TestFlight build I can update to is 1.0.83-0, we should also be seeing the issue on this version as it was originally reported on 1.0.82-7.

But I didn't see the issue once in 10 attempts with the Apple credentials, or with 5 attempts on two other user accounts of mine (one with few conversations, one with many).

Julesssss avatar Aug 16 '21 15:08 Julesssss

@Julesssss This was not reproducible on our side during regression 🤔 I just asked a tester to double check and he was able to log in without issues.

isagoico avatar Aug 16 '21 16:08 isagoico

Thanks, @isagoico. Would you mind sharing the iOS model and version that was tested? And just to confirm, was it attempted a few times?

At this point, I think the only possibilities are that this is specific to certain iOS versions, or that it was a temporary issue that somehow occurred during two Apple reviews 😕

Julesssss avatar Aug 16 '21 16:08 Julesssss