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

travis-ci crontab check #3

Open
MarvinT opened this issue Jun 20, 2018 · 2 comments
Open

travis-ci crontab check #3

MarvinT opened this issue Jun 20, 2018 · 2 comments

Comments

@MarvinT
Copy link
Contributor

MarvinT commented Jun 20, 2018

Is the crontab check necessary?

My understanding is that it acts to make sure the script only runs when the crontab triggers it, i.e. excluding runs after commits.

However, since the code is(?) robust to running multiple times, this seems to only stymie initial setup attempts.

I can submit a pr to address this if its ok to remove it

@dhimmel
Copy link
Collaborator

dhimmel commented Jun 20, 2018

Here is the code in question:

scrumlord/.travis.yml

Lines 13 to 15 in 9d43aa3

after_success:
- test $TRAVIS_EVENT_TYPE = "cron" &&
python upkeep.py --workdays-ahead=1 --token=$GH_TOKEN

I think the $TRAVIS_EVENT_TYPE = "cron" logic is also preventing attempted upkeep after_success on pull requests.

However, since the code is(?) robust to running multiple times, this seems to only stymie initial setup attempts.

It should be. However, users can get used to the scheduled jobs occurring at roughly the same time every day. I don't have a strong opinion on whether non-cron commits to master should trigger upkeep, so @MarvinT if the current design is a problem for you, we could change it.

@MarvinT
Copy link
Contributor Author

MarvinT commented Jun 20, 2018

I've solved it by just creating an extra branch

Maybe I can just add that as a note in deployment instructions.

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

2 participants