-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixes #5839: Filter slow network logs for mobile tests on Browserstack. #6090
Conversation
https://www.browserstack.com/automate/capabilities can we do something like this, to make sure the correct browser version is selected? is that feasible? Interestingly, their FAQs mention that latest stable browser versions are added within a week, and they haven't updated it yet. |
@nithusha21, I was already in discussion with the Browserstack Support Team. They do not have any way to fix the browser version atm. |
Ah I see. Ignoring these errors is not a bad idea. I am fine with this approach if it works! |
626b54d
to
94c3244
Compare
Seems to be working! Yay :) |
Codecov Report
@@ Coverage Diff @@
## develop #6090 +/- ##
========================================
Coverage 45.37% 45.37%
========================================
Files 525 525
Lines 30863 30863
Branches 4615 4615
========================================
Hits 14005 14005
Misses 16858 16858 Continue to review full report at Codecov.
|
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.
This is ready for review, @seanlip @nithusha21. I have added comments to explain the approach here as well as in the code itself. Thanks!
// This causes the tests to fail, therefore, we remove such logs. | ||
if (browser.isMobile) { | ||
browserLogs = browserLogs.filter(function(browserLog) { | ||
return !(browserLog.message.includes(' Slow network is detected.')); |
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.
We compiled the logs from Browserstack (can be found out here) (Thanks @lilithxxx!). I observed a common pattern Slow network is detected.
and therefore filtered out such logs in case of mobile tests.
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.
LGTM. Thanks!
(And congrats on resolving this!) |
Explanation
Fixes #5839: Filter out
Slow Network
logs for mobile tests on Browserstack.Checklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.