-
Notifications
You must be signed in to change notification settings - Fork 35
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
Automate Sauce Lab browser tests in Travis for PRs #131
Comments
|
short-term goal: run browser tests with Sauce Labs on push using Travis; get at least one browser working (latest IE) and see how this affects the time for builds |
|
@Scotchester and document it ✍️ 📓 📝 |
Notes from Virginia's and my pairing session 7/19 testing Sauce Labs acceptance tests locallyQuestions
Todos
Improvements
|
Test suite failures on Sauce labs
|
Do we ever run all the browser tests in any environment, such as Jenkins? I'm going to dig around docs/JAC jobs to find out but if anyone knows the answer let us know. From what I remember when talking about it in the past, the answer was 'no.' |
@cfarm afaik browser tests are never run on Jenkins, only on Travis. |
OK. The browser tests are run in Chrome with Travis, so it seems that none of the other browsers are tested automatically: https://github.com/cfpb/cfgov-refresh/blob/master/test/browser_tests/default-suites.js#L64 |
For scheduling all the browser tests to run outside of the Travis PR queue, we looked at https://circleci.com/docs/2.0/workflows/#scheduling-a-workflow which allows us to schedule a specific time to run the browser tests every day. This wouldn't block our PRs since it'd be running through CircleCI instead of Travis. We could also use CircleCI eventually to run performance tests, visual regression tests, etc - other tests that we normally don't implement on Travis because we worry about blocking PRs. Adam would have to approve CircleCI app on the cfpb organization for us to try this out. Edited to add: can we also set up Sauce Labs to run these as a cron job? Something to investigate |
Plan for next Thursday 3/ 👍
Future discussions:
|
Travis cron jobsWe initially looked into the possibility of creating a Travis cron job to run the browser tests in Sauce at night so it wouldn't impact our Travis queue, but it appears that Travis only offers the option to set an interval (daily, weekly, monthly) for a cron job, not a specific start time. It does sound like jobs run at approximately the same time you first set them up, so a workaround could be to initially enable the job at night. Using something like CircleCI to completely bypass the Travis queue might be a cleaner option, though. |
Here's my WIP branch with changes to the browser tests documentation...added info on how to run tests against localhost, consumerfinance.gov, etc. I haven't fully tested some of the instructions I wrote here, so they are probably wrong in places (it's based on piecing together memories of last July's findings) cfpb/consumerfinance.gov#4859 |
Cron jobs follow-upTravis and CircleCI cron jobs for the cross-browser tests are now on hold. We may be able to use CircleCI, we need to talk to @marcesher about our use case and get a PUA going to be able to enable it on cfgov-refresh. For now, we will continue our proof-of-concept for running cross-browser tests on Sauce Labs by using Jenkins - for reference we will use this technique https://github.com/cfpb/cfgov-refresh/pull/new/new-acceptance-tests-feedback |
JAC the whats-in-a-name job to use node > 8 |
The text was updated successfully, but these errors were encountered: