| 547 | | |
| 548 | | |
| 549 | | |
| 550 | | |
| 551 | | |
| 552 | | |
| 553 | | |
| 554 | | |
| | 547 | == planting daily links == |
| | 548 | |
| | 549 | Coordinated ''blessed-for-24hrs'' revisions for configurations : '''dybinst''' and '''opt.dybinst''' are |
| | 550 | provided by the bitten master at : |
| | 551 | * http://dayabay.ihep.ac.cn/tracs/dybsvn/daily/dybinst |
| | 552 | * http://dayabay.ihep.ac.cn/tracs/dybsvn/daily/opt.dybinst |
| | 553 | |
| | 554 | The revisions listed correspond to the last revision that was successfully built by all operational |
| | 555 | slaves for the corresponding configuration prior to the cutoff time : |
| | 556 | || '''18:00 Dayabay time''' || |
| | 557 | |
| | 558 | The '''slvmgr.py''' script accesses these pages in order to determine the blessed revisions for |
| | 559 | each configuration when it is invoked with the '''--diabolic''' option. |
| | 560 | The planting of daily links to revision dirs is best done from a cron job |
| | 561 | running at a coordinated time rather than as part of the copy step. |
| | 562 | |
| | 563 | For coordinated diabolic links it is recommended that cron invokes the diabolic option 15-min after the cutoff time, |
| | 564 | eg with cron command line ( with time converted to your machines timezone). |
| | 565 | |
| | 566 | {{{ |
| | 567 | HOME=/home/joe |
| | 568 | 15 18 * * * ( cd /path/to/dybinst/export/dir ; python installation/trunk/dybinst/scripts/slvmgr.py --diabolic dybinst opt.dybinst ) > $HOME/diabolic.log 2>&1 |
| | 569 | }}} |
| | 570 | |
| | 571 | Note that diabolic calls outside the time window (cutoff + 10min, cutoff +20 min) |
| | 572 | do not plant links. Thus to avoid having to change cron config twice a year for |
| | 573 | daylight saving time changes you can add cron entries an hr ahead and behind |
| | 574 | the target time 18:15 in your timezone. |
| | 575 | |