-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
fix: Infinite loop in timezones on the negative side of UTC #12063
fix: Infinite loop in timezones on the negative side of UTC #12063
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Ignored Deployments
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes! |
packages/features/calendars/lib/getAvailableDatesInMonth.test.ts
Outdated
Show resolved
Hide resolved
packages/features/calendars/lib/getAvailableDatesInMonth.test.ts
Outdated
Show resolved
Hide resolved
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 208 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 10/25/2023 11:54:03am UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: db0a11a Started: 10/25/2023 11:50:00am UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
2FA Tests should allow a user to enable 2FA and login using 2FA
Retry 1 • Initial Attempt |
0.34% (1)1 / 296 runfailed over last 7 days |
29.73% (88)88 / 296 runsflaked over last 7 days |
📄 apps/web/playwright/event-types.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Event Types tests user Different Locations Tests can add Attendee Phone Number location and book with it
Retry 1 • Initial Attempt |
0% (0)0 / 306 runsfailed over last 7 days |
3.59% (11)11 / 306 runsflaked over last 7 days |
📄 apps/web/playwright/change-username.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Change username on settings User can change username to include periods(or dots)
Retry 1 • Initial Attempt |
0% (0)0 / 97 runsfailed over last 7 days |
34.02% (33)33 / 97 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Popup Tests should be able to reschedule
Retry 2 • Retry 1 • Initial Attempt |
7.21% (22)22 / 305 runsfailed over last 7 days |
90.16% (275)275 / 305 runsflaked over last 7 days |
📄 apps/web/playwright/teams.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Teams Non admin team members cannot create team in org
Retry 1 • Initial Attempt |
0.34% (1)1 / 298 runfailed over last 7 days |
20.81% (62)62 / 298 runsflaked over last 7 days |
📄 apps/web/playwright/webhook.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
FORM_SUBMITTED on submitting team form, triggers team webhook
Retry 1 • Initial Attempt |
0.33% (1)1 / 299 runfailed over last 7 days |
12.37% (37)37 / 299 runsflaked over last 7 days |
📄 apps/web/playwright/availability.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Availablity tests Availability pages
Retry 1 • Initial Attempt |
0% (0)0 / 305 runsfailed over last 7 days |
1.31% (4)4 / 305 runsflaked over last 7 days |
Can we check with e2e are failing? |
Maybe unrelated but I'm getting this test failure locally. cc @CarinaWolli I think I've shared this with you before ![]() |
@zomars That's unrelated, investigating right now. Somehow dayjs has some different results depending what tz your system is running on |
…hub.com:calcom/cal.com into bugfix/get-available-dates-negative-utc-offsets
@zomars not entirely unrelated, turns out after the test the system time wasn't reverted, and some of our e2e tests are failing on the new system time - I'm pushing a fix to revert to real system time for now but it's a problem that that test fails in different system times. |
…hub.com:calcom/cal.com into bugfix/get-available-dates-negative-utc-offsets
The new test passes for me for both old and updated code 😮 |
Same here, but the bug is actually fixed. Trying to see if I can fix the test. |
@emrysal I found that we need to fake the timezone using TZ env variable in Vitest. So, I added the concept of timeZone dependent tests and marked these tests as timezone dependent by having an extension Doing this I was able to replicate that infinite loop scenario in main with the tests. But even with the fix, I see some expectations mismatch here. Failing with America/Los_Angeles Also, feel free to revert the commit, if it's not the right approach. I was debugging and just went ahead with this approach. |
@hariombalhara thanks! Turned out the test was broken and casting to UTC - fixed the cast and pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated code changes look good. Will wait for tests to pass to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested Locally, the new test spins in infinite loop with the old code. With the new code, test works fine 🚀
What does this PR do?
Test by: