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-05-02] Investigate Search, SignInpage and ReportScreen flaky perf tests #39913

Closed
mountiny opened this issue Apr 9, 2024 · 21 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff

Comments

@mountiny
Copy link
Contributor

mountiny commented Apr 9, 2024

Problem

We have noticed recently that some of the SearchPage and SignInPage reassure tests are being flaky. Slack thread.

There is also a ReportScreen test flaky https://expensify.slack.com/archives/C01GTK53T8Q/p1712676878465949?thread_ts=1712669146.879679&cid=C01GTK53T8Q [ReportScreen] should press of the report item

This could have happened after some refactoring of the lower level components, implementing some caching mechanism for example.

This is a problem as its undermining the reliability of the tests.

Solution

Investigate the flakiness and make sure the tests are robust again.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0130b2a9f98f63ea9f
  • Upwork Job ID: 1783652764398231552
  • Last Price Increase: 2024-04-26
@mountiny mountiny added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 9, 2024
@mountiny mountiny self-assigned this Apr 9, 2024
Copy link

melvin-bot bot commented Apr 9, 2024

Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@OlimpiaZurek
Copy link
Contributor

Hi! I'm Olimpia from Callstack. I want to work on this issue.

@mountiny mountiny changed the title Investigate Search and SignInpage flaky perf tests Investigate Search, SignInpage and ReportScreen flaky perf tests Apr 9, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Apr 9, 2024
@mountiny mountiny removed the Reviewing Has a PR in review label Apr 9, 2024
@mountiny
Copy link
Contributor Author

@OlimpiaZurek how is this looking?

@OlimpiaZurek
Copy link
Contributor

@mountiny I have prepared a PR with refactored tests and we are discussing these changes internally. In this PR, I removed the SignInPage tests and moved them down the component tree, but I'm wondering if they should be removed completely. SingInPage is not part of the audit and catching regressions is not important in this part of the UI. Also removing this will also reduce the time taken by Reassure.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 18, 2024
@melvin-bot melvin-bot bot changed the title Investigate Search, SignInpage and ReportScreen flaky perf tests [HOLD for payment 2024-04-25] Investigate Search, SignInpage and ReportScreen flaky perf tests Apr 18, 2024
Copy link

melvin-bot bot commented Apr 18, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.62-17 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-04-25. 🎊

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

Copy link

melvin-bot bot commented Apr 18, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@mountiny] The PR that introduced the bug has been identified. Link to the PR:
  • [@mountiny] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@mountiny] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@OlimpiaZurek] Determine if we should create a regression test for this bug.
  • [@OlimpiaZurek] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@OlimpiaZurek
Copy link
Contributor

@mountiny We discussed this with the team and agreed that we should only stick to the tests covering existing metrics. Can you confirm if this approach is acceptable? Thanks.

@mountiny
Copy link
Contributor Author

We discussed this with the team and agreed that we should only stick to the tests covering existing metrics. Can you confirm if this approach is acceptable? Thanks.

@OlimpiaZurek can you please elaborate? do you mean that we should only have tests which cover the metrics we focus on in audit? Wouldn't that be quite limiting?

@OlimpiaZurek
Copy link
Contributor

@mountiny I think when it comes to testing more complex UI components, it would be better to stick to audit metrics (we’ve already covered most important scenarios for ReportScreen, SearchPage and LHN). This doesn't mean we can't add the tests to other parts of the app that come in the future or that are lower in the component tree, such as rendering and scrolling lists, functions etc.

In this particular case, I suggested removing the tests for SignInPage because we don't think it's very important to catch performance regressions there.

@mountiny
Copy link
Contributor Author

that does make sense, thanks!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review and removed Weekly KSv2 labels Apr 22, 2024
@melvin-bot melvin-bot bot added the Weekly KSv2 label Apr 22, 2024
@OlimpiaZurek
Copy link
Contributor

@mountiny PR is ready for review.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 24, 2024
@sakluger
Copy link
Contributor

It looks like @hungvu193 is a reviewer on the new PR. @mountiny I'm assuming payment will be $250, and we can handle payment on this issue. @mountiny can you confirm if that plan sounds good?

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Apr 25, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-04-25] Investigate Search, SignInpage and ReportScreen flaky perf tests [HOLD for payment 2024-05-02] [HOLD for payment 2024-04-25] Investigate Search, SignInpage and ReportScreen flaky perf tests Apr 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 25, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

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

Copy link

melvin-bot bot commented Apr 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.65-5 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-05-02. 🎊

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

Copy link

melvin-bot bot commented Apr 25, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@mountiny] The PR that introduced the bug has been identified. Link to the PR:
  • [@mountiny] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@mountiny] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@OlimpiaZurek] Determine if we should create a regression test for this bug.
  • [@OlimpiaZurek] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sakluger] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@sakluger sakluger changed the title [HOLD for payment 2024-05-02] [HOLD for payment 2024-04-25] Investigate Search, SignInpage and ReportScreen flaky perf tests [HOLD for payment 2024-05-02] Investigate Search, SignInpage and ReportScreen flaky perf tests Apr 26, 2024
@sakluger sakluger added the Internal Requires API changes or must be handled by Expensify staff label Apr 26, 2024
Copy link

melvin-bot bot commented Apr 26, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0130b2a9f98f63ea9f

Copy link

melvin-bot bot commented Apr 26, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @Pujan92 (Internal)

@sakluger sakluger assigned hungvu193 and unassigned Pujan92 Apr 26, 2024
@sakluger
Copy link
Contributor

Added @hungvu193 as C+ since he reviewed the PR.

@sakluger
Copy link
Contributor

Sent offer to @hungvu193 https://www.upwork.com/nx/wm/offer/102036441

@sakluger sakluger added Daily KSv2 and removed Weekly KSv2 labels May 1, 2024
@sakluger
Copy link
Contributor

sakluger commented May 1, 2024

Moving to daily since payment is tomorrow.

@sakluger
Copy link
Contributor

sakluger commented May 2, 2024

All paid, thanks everyone

@sakluger sakluger closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

5 participants