Skip to content
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

Scheduler for long running tests in travis #310

Open
EgorBu opened this issue Nov 8, 2018 · 3 comments
Open

Scheduler for long running tests in travis #310

EgorBu opened this issue Nov 8, 2018 · 3 comments
Assignees

Comments

@EgorBu
Copy link

EgorBu commented Nov 8, 2018

Make a schedule to launch long-running tests during the weekends so we know if something is failing.

@EgorBu EgorBu changed the title Schedule for long running tests in travis Scheduler for long running tests in travis Nov 8, 2018
@vmarkovtsev
Copy link
Collaborator

@warenlg You should do this once you pass the long tests.

@m09
Copy link
Contributor

m09 commented Dec 19, 2018

To give some feedback on my experience last time I tried it:

  • travis has no option to schedule a cron at a given time every week. It is possible however to create the cron at the time you want and it should repeat in the future weeks around that time (this is obviously really annoying since it means doing it on a sunday for us)
  • last time I checked I saw 2 ways to enable long tests in the cron:
    • conditional stages or jobs, in particular there is a type = cron condition that should be usable to filter on crons only.
    • environment variables (TRAVIS_EVENT_TYPE is set to cron during cron jobs).
  • we should not hardcode anything in the tests themselves but rather edit .travis.yml to set LONG_TESTS appropriately with one method or the other.

@vmarkovtsev
Copy link
Collaborator

vmarkovtsev commented Dec 19, 2018

I created a cron job to run weekly. I also added "do not run if there was a build in the last 24 hours". This should be fine for now. So what's left is to check TRAVIS_EVENT_TYPE in script and export LONG_TESTS=1 if in cron.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants