-
Notifications
You must be signed in to change notification settings - Fork 3k
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-08-05] [$125] Fix flakey SubscriptionUtils test #45801
Comments
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil ( |
Triggered auto assignment to @twisterdotcom ( |
|
Or maybe this is fixed in main |
ProposalPlease re-state the problem that we are trying to solve in this issue.tests for SubscriptionUtils.getSubscriptionStatus are flakey What is the root cause of that problem?The GRACE_PERIOD_DATE is declared at the beginning and is 1 second + current time so if the other tests take more than 1 second time in total, SubscriptionUtils.getSubscriptionStatus will return overdue status instead of non-overdue. What changes do you think we should make in order to solve the problem?Update the 1 second added in GRACE_PERIOD_DATE to be a larger value like 1 hour. What alternative solutions did you explore? (Optional)Instead of using just a constant at the beginning, we could update the GRACE_PERIOD_DATE to be now + 1 second before each test or we could also just use a function that returns now + 1 second Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
@rojiphil can you please review the proposal? |
RCA of @jaydamani proposal makes sense as 1 second is too tight to check. The current time can become greater than the set time when the tests are executed to cause this flaky behavior. |
Triggered auto assignment to @flodnv, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Assigned @jaydamani as this flakiness is causing some headaches so hopefully we can get rid of it sooner than later |
@jaydamani What is your ETA for the PR? THanks |
@mountiny, I will do this tonight (IST time) |
@twisterdotcom will handle that part 🙌 |
Job added to Upwork: https://www.upwork.com/jobs/~01fc7c3dad62f3576b |
Current assignee @rojiphil is eligible for the External assigner, not assigning anyone new. |
Man that was way simpler than creating a job manually! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.13-4 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-08-05. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Payment Summary
BugZero Checklist (@twisterdotcom)
|
Updated summary above. Closing as we don't need regression for this. |
Problem
It seems like the SubscriptionUtils tests are flaky:
Here is a run
Solution
Fix the flakiness cc @JKobrynski @blimpich @mananjadhav coming from #44072
Issue Owner
Current Issue Owner: @Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @twisterdotcomThe text was updated successfully, but these errors were encountered: