-
Notifications
You must be signed in to change notification settings - Fork 1.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
Timing failures in system tests #5683
Comments
I've set |
https://stackoverflow.com/questions/36732120/capybara-rspec-test-takes-a-long-time-to-execute-why says that 3rd party javascript loading can take a lot of time, though I don't know why. apparently we can turn on debug mode in capybara-webkit (maybe selenium? dunno) and see the output to see what's taking so long. this wasn't too helpful: https://stackoverflow.com/questions/37005387/poltergeist-capybara-view-testing-taking-long-time-when-running-all-test-in-spec These folks found it required adding time as well: https://stackoverflow.com/questions/28464090/poltergeist-capybara-test-unable-to-find-css-intermittently?rq=1 ? |
Noting re: Sebastian's idea on the build taking too long; when i see 1137s to do
|
So: after connecting with @icarito on this, our best theory right now is that actually the slowdown in overall test run is from installation of However, we are also seeing system test failures which seem timing related. HYPOTHESIS: Potentially, whatever is causing |
@alaxalves with your experience in Docker, would you be able to offer any insights here? Noting that @icarito has been working the overall test run speed in #5730 Thanks, all, this is becoming a bit urgent as many PRs are failing due to these issues! Many thanks for your work on this. Also mentioning @publiclab/plots2-reviewers @publiclab/soc to just make people aware that we're encountering these issues. |
@jywarren What I have suggested in publiclab/mapknitter#605 improves our build time, since everything is run in parallel. Regarding the variable |
Whoa, 60 seconds? Well, we can try this, but formerly I thought this had been causing the really long build times. Now that we are thinking it could actually be an issue with installing |
OK, trying |
Installing @jywarren I could work on this if you want, but I'd freeze my work on Mapknitter for a while. What do you say? |
Well, it's your call -- we'd love your help on this, but if you feel it'd
compromise your other work, I totally understand! But I'm fine with it if
you are ok spending a little time on this? Thank you, in any case!
…On Mon, May 20, 2019 at 8:22 PM Álax de Carvalho Alves < ***@***.***> wrote:
Whoa, 60 seconds? Well, we can try this, but formerly I thought this had
been causing the really long build times. Now that we are thinking it could
actually be an issue with installing google-chrome-stable, maybe this is
reasonable?
Installing google-chrome-stable definitely is a big cause to the long
builds duration. Those random failing tests might also be related to this:
[image: image]
<https://user-images.githubusercontent.com/19597045/58059863-28dc5900-7b45-11e9-8803-c7f40c4e3be5.png>
@jywarren <https://github.com/jywarren> I could work on this if you want,
but I'd freeze my work on Mapknitter for a while. What do you say?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5683?email_source=notifications&email_token=AAAF6J6H7SUPW7TDXV3OX3DPWM6B5A5CNFSM4HLOMGOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV2M7OA#issuecomment-494194616>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J4RNGNTTKNB6MT3GU3PWM6B5ANCNFSM4HLOMGOA>
.
|
@jywarren This week I'll take a look a this, I'd like get this train rolling and start some DevOps improvements in here too. No problemo. 😄 💪 |
I believe this is solved. I'm no longer seeing it happening! We can re-open if it happens again. Thanks!!! |
I'm going to re-open because I am seeing intermittent system test failures, like this: The error is: https://travis-ci.org/publiclab/plots2/jobs/540748689#L3885
Now, this means we're not logged in, but it's not reliably reproducible. So, I think it's likely that it's a timing/timeout issue! For example, in the very next build it passed. |
Oof! Thanks @alaxalves! 🎊 i had assumed I hadn't touched any system test code and was so used to system tests not working... but my changes are to one of the only features we actually have system tests for, so this is a perfect use case for system tests! 🎉 |
OMG and the other is also a true system test failure! Wow, closing again. It's so pleasant to have ones tests fail due to real bugs! 😆 |
We're seeing intermittent test failures due to Capybara not waiting long enough; now:
We can individually set a wait parameter but maybe better to set it system wide...
PRs that are stuck:
Here are some of the builds:
The text was updated successfully, but these errors were encountered: