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

[HOLD for payment 2024-11-14] HOLD ON PR #52228 [$250] ND app hangs at the splash screen when on a bad connection and opening after a while #51185

Open
1 of 8 tasks
m-natarajan opened this issue Oct 21, 2024 · 30 comments
Assignees
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause Reviewing Has a PR in review Weekly KSv2

Comments

@m-natarajan
Copy link

m-natarajan commented Oct 21, 2024

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


Version Number:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C05LX9D6E07/p1728600237229689

Action Performed:

  1. Be on a bad connection
  2. Open the ND

Expected Result:

ND should open and should not stuck on the splash screen

Actual Result:

ND is stuck at the splash screen and refreshing the screen logs user out

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence ![image (6)](https://github.com/user-attachments/assets/afb30d72-3f25-449b-90c7-3f6dc3bf0d5e)

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021852278098288894434
  • Upwork Job ID: 1852278098288894434
  • Last Price Increase: 2024-11-01
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @zirgulis
@m-natarajan m-natarajan added Daily KSv2 Needs Reproduction Reproducible steps needed Bug Something is broken. Auto assigns a BugZero manager. AutoAssignerNewDotQuality Used to assign quality issues to engineers labels Oct 21, 2024
Copy link

melvin-bot bot commented Oct 21, 2024

Triggered auto assignment to @twisterdotcom (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Oct 21, 2024

Triggered auto assignment to @madmax330 (AutoAssignerNewDotQuality)

@melvin-bot melvin-bot bot added the Weekly KSv2 label Oct 21, 2024
@MelvinBot
Copy link

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

@muttmuure muttmuure moved this to CRITICAL in [#whatsnext] #quality Oct 23, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 23, 2024
@twisterdotcom
Copy link
Contributor

So far, I am unable to recreate.

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2024
@twisterdotcom
Copy link
Contributor

Gonna close this as I cannot recreate after a few times testing this week.

511885.mp4

@github-project-automation github-project-automation bot moved this from CRITICAL to Done in [#whatsnext] #quality Oct 25, 2024
@muttmuure
Copy link
Contributor

@zirgulis is going to update the unit test which is meant to be catching this bug

@muttmuure muttmuure reopened this Oct 29, 2024
@muttmuure
Copy link
Contributor

@zirgulis please can you comment for assignment?

@muttmuure
Copy link
Contributor

Bump @zirgulis

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Weekly KSv2 labels Oct 31, 2024
@zirgulis
Copy link
Contributor

@muttmuure test PR #51805

@allgandalf
Copy link
Contributor

I was assigned to review the PR, does it require a C+ review ?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 7, 2024
@melvin-bot melvin-bot bot changed the title [$250] ND app hangs at the splash screen when on a bad connection and opening after a while [HOLD for payment 2024-11-14] [$250] ND app hangs at the splash screen when on a bad connection and opening after a while Nov 7, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 7, 2024
Copy link

melvin-bot bot commented Nov 7, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 7, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-11-14. 🎊

For reference, here are some details about the assignees on this issue:

  • @zirgulis does not require payment (Contractor)
  • @allgandalf requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Nov 7, 2024

@allgandalf @twisterdotcom The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@neil-marcellini
Copy link
Contributor

Hi, I was linked over to the PR that recently updated the test from the issue I'm working on #51707. It sounds like these issues might be very similar. What's the plan to fix this issue? I think the solution to my issue is to retry re-authentication if it's failing, but I'm not sure if that will fix this one too.

I see you're adding tests to improve this, but that can't solve the issue, and shouldn't the tests you're adding be failing tests, not passing ones? I'm confused.

Copy link

melvin-bot bot commented Nov 14, 2024

Payment Summary

Upwork Job

BugZero Checklist (@twisterdotcom)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1852278098288894434/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@twisterdotcom
Copy link
Contributor

@zirgulis and @allgandalf please see @neil-marcellini's Q above.

@zirgulis
Copy link
Contributor

zirgulis commented Nov 14, 2024

@neil-marcellini @twisterdotcom the proposed approach to tackle this issue was firstly to fix the test which check's if the user is still logged in after reauthentication while offline.

Steps to fix it:

  1. Add a a test which reproduces the issue. My PR: [No QA] [HOLD ON PR #52228] Improve simulating online/offline conditions in reauthentication test #52165
  2. Add a fix to the reauth flow. @neil-marcellini PR: Fix re-authentication when it fails to fetch #52228
  3. Make sure the the updated test (step 1) passes with the fix (step 2).

Regarding step 3 it seems the test itself works with that fix but there are general issues with the network tests suite. I left more detailed explanation here

Copy link

melvin-bot bot commented Nov 18, 2024

@madmax330, @twisterdotcom, @zirgulis, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Nov 18, 2024
@muttmuure muttmuure changed the title [HOLD for payment 2024-11-14] [$250] ND app hangs at the splash screen when on a bad connection and opening after a while [HOLD for payment 2024-11-14] HOLD ON PR #52228 [$250] ND app hangs at the splash screen when on a bad connection and opening after a while Nov 18, 2024
@muttmuure
Copy link
Contributor

As discussed over here: https://expensify.slack.com/archives/C05LX9D6E07/p1731940801581519?thread_ts=1728600237.229689&cid=C05LX9D6E07

Let's focus on getting this PR done: #52228

@muttmuure
Copy link
Contributor

Putting this issue on hold while we wait for the PR to be completed

@zirgulis
Copy link
Contributor

zirgulis commented Nov 18, 2024

@neil-marcellini @allgandalf @muttmuure I opened a new PR which incorporates changes by Neil and in addition:

  • reverted reauth test
  • reverted RequestThrottle to be function based
  • fixed flaky network tests
  • add improved reauth while offline test

@melvin-bot melvin-bot bot removed the Overdue label Nov 18, 2024
@neil-marcellini
Copy link
Contributor

Thanks @zirgulis, I will review that one and maybe add some of my own commits there too. All those points sound good, except I do think we should have the RequestThrottle for re-auth separate from the one for the sequential queue, which is why I made it a class.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Nov 21, 2024
@muttmuure muttmuure added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Nov 25, 2024
@muttmuure
Copy link
Contributor

This was merged - #52727

So I think we are good to unhold this one and also add retest label

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AutoAssignerNewDotQuality Used to assign quality issues to engineers Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Needs Reproduction Reproducible steps needed retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause Reviewing Has a PR in review Weekly KSv2
Projects
Development

No branches or pull requests

9 participants