-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
test(replay): Fix flaky xhr/fetch request tests #7270
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
Conversation
size-limit report 📦
|
c6bd979
to
91fe0dd
Compare
change order of actions and awaiting requests use Promise.all in xhr test reduce flush mindelay, increase maxdelay explicitly await request response simplify waitForResponse skip tests on firefox cleanup test
6af894b
to
b10e550
Compare
flushMinDelay: 500, | ||
flushMaxDelay: 500, | ||
useCompression: true, | ||
flushMinDelay: 200, |
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.
Did we change these on purpose? 🤔 IMHO it would be good to leave this at the same value to better replicate the regular "default" experience, wdyt?
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.
Ahh I think this is just a leftover from experimenting. Will change, thanks!
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.
Actually, I'll test this with another 150x run just to be sure 😅
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.
Ok, still seems to work 👍
seems ok
28ec9fc
to
44468e0
Compare
As reported in #7267, a newly added replay test (#7044) for checking for the presence of XHR/fetch request spans was flaky on CI. I pinned this down to two reasons which this PR fixes:
Note: I ran these tests multiple times for 150 times per CI job and haven't observed flakes anymore.
closes #7267