Download Offline User Manual
Transcript
Offline User Manual, Release 24142 Intended additions: 1. verify use of versiondate=TimeStamp(0,0) signaling overlay dates Pre-commit validations must be quick and self-contained as cannot run tests on SVN server. Test Locally Validations can be run locally using DybPython.dbsvn script. Demonstrate tests and Request Propagation Send email to the Database Managers and the offline mailing list mailto:[email protected] requesting that your dybaux revision is propagated. The email needs to contain: 1. dybaux revision to be propagated 2. proof of testing in the form of nosetest output from running tests against your tmp_ DB and context information Proof and context can conveniently be provided by copy and pasting the output from: pwd ; date ; svnversion . ; nosetests -v Detailed guidelines on update testing techniques and responsibilities are in DB Testing Database Managers Propagate updates from dybaux into offline_db After re-running validations as described in Early Validations are found to be successful DB managers can perform updates first on their tmp_offline_db and then on the central offline_db. Prepare a fresh tmp_offline_db: db.py offline_db dump ~/offline_db.sql db.py tmp_offline_db load ~/offline_db.sql Get uptodate with dybaux: mkdir ~/dybaux ; cd ~/dybaux ; svn co http://http://dayabay.ihep.ac.cn/svn/dybaux/catalog svn up ~/dybaux/catalog Use rcmpcat to see changed tables and added SEQNO in the dybaux ascii catalog relative to the DB tmp_offline_db: db.py tmp_offline_db rcmpcat ~/dybaux/catalog/tmp_offline_db Proceed to rloadcat into tmp_offline_db: db.py tmp_offline_db rloadcat ~/dybaux/catalog/tmp_offline_db db.py tmp_offline_db rcmpcat ~/dybaux/catalog/tmp_offline_db ## should report no updates Repeating rloadcat should detect no updates and do nothing. Note that the catalog working copy is changed by the rloadcat due to INSERTDATE fastforwarding (dybsvn:ticket:844), check with: svn status ~/dybaux/catalog/tmp_offline_db ## will show Vld table changes Following the definitive rloadcat into offline_db the changed *Vld.csv should be committed into dybaux with a commit message including OVERRIDE (only admin users configured in the pre-commit hook can do this). 21.5. DB Table Updating Workflow 223