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

[Due for payment 2025-02-26] [$50] Flaky tests/ui/GroupChatNameTests.tsx test #56057

Closed
mountiny opened this issue Jan 30, 2025 · 42 comments
Closed
Assignees
Labels
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 Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2

Comments

@mountiny
Copy link
Contributor

mountiny commented Jan 30, 2025

Problem

The tests/ui/GroupChatNameTests.tsx test https://github.com/Expensify/App/actions/runs/13051191486/job/36411651957 is now failing in main and its not clear what is causing it, lets investigate and fix it.

EDIT: This is also affecting the test below ("Should show last message preview in LHN"): https://github.com/Expensify/App/actions/runs/13051191486/job/36411651957

This test seems to be flaky as it is passign after restart here https://github.com/Expensify/App/actions/runs/13050631537

Solution

Identify the offending PR that made if flaky - the test has been around for 6 months so something had to make it flaky recently

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021884927641362998630
  • Upwork Job ID: 1884927641362998630
  • Last Price Increase: 2025-02-19
Issue OwnerCurrent Issue Owner: @sakluger
@mountiny mountiny added Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 labels Jan 30, 2025
@mountiny mountiny self-assigned this Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

Triggered auto assignment to @sakluger (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.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 30, 2025
@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Jan 30, 2025
@melvin-bot melvin-bot bot changed the title Flaky tests/ui/GroupChatNameTests.tsx test [$250] Flaky tests/ui/GroupChatNameTests.tsx test Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (External)

@mountiny mountiny changed the title [$250] Flaky tests/ui/GroupChatNameTests.tsx test [$50] Flaky tests/ui/GroupChatNameTests.tsx test Jan 30, 2025
@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jan 30, 2025
Copy link

melvin-bot bot commented Jan 30, 2025

Upwork job price has been updated to $50

@mountiny mountiny removed the Reviewing Has a PR in review label Jan 30, 2025
@mountiny
Copy link
Contributor Author

@rezkiy37 can you check, this first time happened after your PR https://github.com/Expensify/App/pull/54958/files

@rezkiy37
Copy link
Contributor

@mountiny, the issue has been solved by re-runing - #56051 (comment).

Image

@rezkiy37
Copy link
Contributor

Hi, I am Michael (Mykhailo) from Callstack, an expert agency and I can work on this issue.

@rezkiy37
Copy link
Contributor

I am testing it locally. Currently, it always works properly on the latest main for me.

@ikevin127
Copy link
Contributor

I was only able to reproduce this the very first time I ran the test locally, specifically targeted only on the tests/ui/GroupChatNameTests.tsx file and it failed due to timeout (50000 ms):

Image

After the very first time I wasn't able to reproduce anymore 🤷‍♂

@melvin-bot melvin-bot bot added the Overdue label Feb 2, 2025
@Dylanb-dev
Copy link

Dylanb-dev commented Feb 3, 2025

I can't reproduce on local

First time the error occurred in logs https://github.com/Expensify/App/actions/runs/13039925713
from PR #54163

Maybe it was the package update that changed it? suggest trying to reproduce with old package version

Copy link

melvin-bot bot commented Feb 6, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

Copy link

melvin-bot bot commented Feb 7, 2025

@sakluger, @mountiny, @fedirjh 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@pasyukevich
Copy link
Member

@mountiny
It looks like it is failing again- https://github.com/Expensify/App/actions/runs/13180202083/job/36806035525?pr=56461

So, it is reproducible

Could you share more details about the env settings for the CI? (especially that specific for this flow)

@pasyukevich
Copy link
Member

@mountiny bump here

@rezkiy37
Copy link
Contributor

We just talked about it. We faced a few strange moments:

  1. It runs on Ubuntu and it is specified as latest. Probably, it fails after some upgrade.
  2. We don't know machine limitations and specifications. I mean RAM, CPU, other info. We are going to emulate it locally but we need more information.
  3. Timelines. The project expects to run for 50 seconds but takes much more on CI.
Details

Image Image Image

cc @mountiny

Copy link

melvin-bot bot commented Feb 11, 2025

@sakluger, @mountiny, @fedirjh 10 days overdue. I'm getting more depressed than Marvin.

Copy link

melvin-bot bot commented Feb 13, 2025

@sakluger @mountiny @fedirjh this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Feb 13, 2025

@sakluger, @mountiny, @fedirjh 12 days overdue now... This issue's end is nigh!

@rezkiy37
Copy link
Contributor

Just a friendly reminder here #56057 (comment).

@rezkiy37
Copy link
Contributor

We've found one more possible root cause of the problem. We compared commands that we launch locally and CI does remotely.

  1. Local - npm run test - TZ=utc NODE_OPTIONS=--experimental-vm-modules jest.
  2. Remote - NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" npx jest --silent --shard=3/3 --max-workers 4.

As you can see they are slightly different. CI uses a couple of parameters for jest. We've tried to add them locally and it works well. However, we faced a crucial discrepancy - npm vs npx. I could reproduce the bug once I ran the remote command locally.

Details

Image

@pasyukevich
Copy link
Member

I will update the PR with a CI patch to npm to test it remotely

Do we have any specific reasons for using npx?

@pasyukevich
Copy link
Member

I've updated the workflow - not failed now

#56461

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 Overdue labels Feb 13, 2025
@rezkiy37
Copy link
Contributor

I’m planning a short vacation next week from Monday to Wednesday, from the 17th to the 19th. I am working on the issue later.

@mountiny
Copy link
Contributor Author

Sorry had been ooo last week

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 19, 2025
@melvin-bot melvin-bot bot changed the title [$50] Flaky tests/ui/GroupChatNameTests.tsx test [Due for payment 2025-02-26] [$50] Flaky tests/ui/GroupChatNameTests.tsx test Feb 19, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 19, 2025
Copy link

melvin-bot bot commented Feb 19, 2025

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

Copy link

melvin-bot bot commented Feb 19, 2025

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

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

  • @fedirjh requires payment through NewDot Manual Requests

Copy link

melvin-bot bot commented Feb 19, 2025

@fedirjh @sakluger @fedirjh 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]

Copy link

melvin-bot bot commented Feb 19, 2025

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@mountiny
Copy link
Contributor Author

No payments or regression tests required

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. External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors Weekly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants