test: stabilize storage settings reactivity emojis/sounds tests#39172
test: stabilize storage settings reactivity emojis/sounds tests#39172nazabucciarelli wants to merge 3 commits intodevelopfrom
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
WalkthroughThe changes address test flakiness in storage settings reactivity tests by making debounce behavior in CachedSettings conditional on TEST_MODE (eliminating debounce during tests), and adjusting FileSystemPath setup timing in custom sounds and emoji end-to-end tests. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #39172 +/- ##
===========================================
+ Coverage 70.85% 70.89% +0.04%
===========================================
Files 3208 3208
Lines 113426 113432 +6
Branches 20489 20579 +90
===========================================
+ Hits 80363 80415 +52
+ Misses 31012 30971 -41
+ Partials 2051 2046 -5
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
ggazzo
left a comment
There was a problem hiding this comment.
What do you think about removing debouncing in development/test_mode instead of increasing CI time?
Proposed changes (including videos or screenshots)
Apparently this test is flaky because
watchMultiplehas a debounce of 100ms andupdateSettinghas also a debounce of 100ms, which means that sometimes the storage doesn't have enough time to reinitialize. Suggested changes:watchMultipleto be debounced whenTEST_MODE=true, this will cause theupdateSetting's debounce to have enough time to reinitialize the storage.apps/meteor/tests/end-to-end/api/emoji-custom.tsandapps/meteor/tests/end-to-end/api/emoji-custom.ts, it's just a change to make tests faster and safer. Faster, because now thedebounceparameter isfalse, as its followingupdateSettingmanages the debounce. Safer, because in the case thatFileSystemPathisn't empty (the default), the subsequent tests will fail.Issue(s)
CORE-1894 Fix 'storage settings reactivity' tests flakiness from Custom Sounds/Emojis
Steps to test or reproduce
Further comments
For test purposes, verify that nothing breaks and the flakiness is gone, I've run the
API Test (CE)job several times, and each of them succeeded.Summary by CodeRabbit
Release Notes