Download Offline User Manual
Transcript
Offline User Manual, Release 24142 The appropriate way to perform such checks is via nosetests that can be directed at the the desired DB via the DBCONF mechanism, typically (for bash shell): DBCONF=tmp_<username>_offline_db nosetests -v DBCONF=offline_db nosetests -v OR for csh(tcsh): setenv DBCONF tmp_<username>_offline_db nosetests -v More details on DBCONF can be found at N ways to set an envvar. For how testing fits in with the SOP workflow, see Workflow Outline. 21.12.3 Standardized testing The nosetests corresponding to DB table updating follow the same standard layout as all NuWa nosetests. They are required to be maintained in the tests directory of the package that contains the scripts that perform the update and it should be a sibling to the “cmt” directory of the package. For example: • dybgaudi:Calibration/DBUpdate/tests/ • dybgaudi:Calibration/DBUpdate/tests/test_calibpmtfinegain.py Automation of testing relies on adherence to standards for test naming and layout. 21.12.4 Responsibility for maintaining tests The roster of responsibility for maintaining these DB updating tests are, in decreasing order of responsibility: 1. DB updaters + authors of DB updating scripts, who know best how the results were derived and likely problems 2. Direct downstream users, typically authors of services that use the results who are well placed to know the constraints that should be applied. 3. Working group conveners, responsible to steer the above workers and set expectations for testing 4. Database/testing experts, who know best how testing can be efficiently structured and can advise on techniques to improve test coverage. 5. Anybody else who finds a problem with results, should add tests encapsulating the finding 21.12.5 Responsibility for running tests Although multiple persons are involved with maintaining the tests of DB updates the responsibility to run the tests and demonstrate that the tests were run remains with the DB updaters. 21.12.6 Proof of testing In order to prove that testing has been done, run commands such as the below and copy and paste the text output to be included into your email requesting propagation to offline_db: date ; pwd ; svnversion . 21.12. DB Testing 253