Updating QA crontabs: Difference between revisions

From Genecats
Jump to navigationJump to search
(Created page with "''DO NOT EDIT THE QATEAM hgwdev CRONTAB FILE DIRECTLY'' Rather This file is in the genecats git repository: genecats/qa/crontabs/hgwdev.crontab. * Go to your genecats repository...")
 
No edit summary
Line 15: Line 15:
# Commit and push your changes to the genecats repository.
# Commit and push your changes to the genecats repository.
# In the qateam@hgwdev window you can output the current cronjob with "crontab -l".  You can put this in a temp file <tt>crontab -l > /tmp/deleteMe</tt>
# In the qateam@hgwdev window you can output the current cronjob with "crontab -l".  You can put this in a temp file <tt>crontab -l > /tmp/deleteMe</tt>
# You can compare the two to be sure your changes are all you are updating.  <tt>diff /tmp/deleteMe ~brianlee/genecats/qa/crontabs/hgwdev.crontab</tt>  
# You can compare the two to be sure your changes are all you are updating (where <tt>brianlee</tt> is changed to your directory).  <tt>diff /tmp/deleteMe ~brianlee/genecats/qa/crontabs/hgwdev.crontab</tt>  
# From qateam@hgwdev, you can update the current cronjob by running the new genecats version <tt>crontab ~brianlee/genecats/qa/crontabs/hgwdev.crontab </tt>
# From qateam@hgwdev, you can update the current cronjob by running the new genecats version <tt>crontab ~brianlee/genecats/qa/crontabs/hgwdev.crontab </tt>



Revision as of 19:38, 21 May 2014

DO NOT EDIT THE QATEAM hgwdev CRONTAB FILE DIRECTLY

Rather This file is in the genecats git repository: genecats/qa/crontabs/hgwdev.crontab.

  • Go to your genecats repository and do a git pull to bring it up to date.
  • Edit genecats/qa/crontabs/hgwdev.crontab and add your new chronjob. For example:
MAILTO=braney,brianlee
HGDB_CONF=.hg.conf.beta

15 03 * * * /cluster/bin/x86_64/hubPublicCheck hubPublic  -udcDir=/data/tmp/qa
16 02 * * * /cluster/bin/x86_64/hgsql -e "select hubUrl from hubPublic" hgcentralbeta | tail -n +2 | while read url; do /cluster/bin/x86_64/hubCheck  -udcDir=/data/tmp/qa $url; done
  1. In another terminal you can ssh qateam@hgwdev
  2. Test your changes from qateam, for example in the above run /cluster/bin/x86_64/hubPublicCheck hubPublic -udcDir=/data/tmp/qa and your other commands to see if they will work as expected from the home directory.
  3. Commit and push your changes to the genecats repository.
  4. In the qateam@hgwdev window you can output the current cronjob with "crontab -l". You can put this in a temp file crontab -l > /tmp/deleteMe
  5. You can compare the two to be sure your changes are all you are updating (where brianlee is changed to your directory). diff /tmp/deleteMe ~brianlee/genecats/qa/crontabs/hgwdev.crontab
  6. From qateam@hgwdev, you can update the current cronjob by running the new genecats version crontab ~brianlee/genecats/qa/crontabs/hgwdev.crontab