| 1 |
Plan for concluding the syn_pysyn commissioning process: |
| 2 |
|
| 3 |
Goal: apply the information gathered from the syn_pysyn testing to the |
| 4 |
ETC regression testing process. |
| 5 |
|
| 6 |
This document assumes the procedure described in the document |
| 7 |
pysyn_etc_acceptance_testing.txt, and describes further details in the |
| 8 |
"first iteration" of that procedure. |
| 9 |
|
| 10 |
The ordering of subitems in each stage is not necessarily significant; |
| 11 |
some items can be worked simultaneously. |
| 12 |
|
| 13 |
PENULTIMATE STAGE: |
| 14 |
|
| 15 |
1. Pysynphot Code Changes |
| 16 |
========================= |
| 17 |
|
| 18 |
Commit code changes for remaining set of high-priority tickets: |
| 19 |
|
| 20 |
DONE: (altho extinction curves may need tuning) |
| 21 |
#123: extinction (add new extinction laws, including new |
| 22 |
implementation of the same gal3 law, without turning off old |
| 23 |
gal1/smc/lmc/xgal yet) |
| 24 |
#149: tapering behavior |
| 25 |
#129: etc.countrate() should return effective wavelength |
| 26 |
#157: partial overlap should raise an exception |
| 27 |
#158: etc.py should taper in case of a partial overlap exception |
| 28 |
|
| 29 |
Code changes were also committed pertinent to the redshift (#106) and |
| 30 |
effstim (#140) calculations: while these were not high-priority |
| 31 |
tickets for purposes of the ETC, they involved changes to fundamental |
| 32 |
classes so it was desirable to include them in this round of testing. |
| 33 |
|
| 34 |
2. Changes to test definitions |
| 35 |
================================ |
| 36 |
2a. Finish identifying necessary changes to the tests: |
| 37 |
- change Bruzual models to Pickles |
| 38 |
- change gal2 to gal1 or gal3 |
| 39 |
- remove duplicate cases |
| 40 |
2b. Make the changes in the syn_pysyn tests: DONE |
| 41 |
2c. Make the changes in the ETC regression tests: DONE |
| 42 |
- requires signoff from instrument teams |
| 43 |
- may require extra work for WFC3 |
| 44 |
|
| 45 |
2d. Modify test definitions for partial overlap cases to apply taper DONE |
| 46 |
|
| 47 |
2e. Create a special "pinned" version of CDBS throughput files to be |
| 48 |
used for endstage testing. (Note that this was done in two stages; |
| 49 |
additional STIS detector files were identified as needing to be pinned |
| 50 |
in Feb 09.) DONE |
| 51 |
|
| 52 |
With these tickets, test definitions, and data changes, there should be no |
| 53 |
more test errors. |
| 54 |
|
| 55 |
3. Representative subset |
| 56 |
======================== |
| 57 |
3a. Identify the subset of representative test cases |
| 58 |
......DONE |
| 59 |
3b. Modify the test code to include a flag identifying this subset |
| 60 |
......DONE |
| 61 |
3c. Modify the test assessment tools to generate useful reports of |
| 62 |
only this subset |
| 63 |
......DONE |
| 64 |
|
| 65 |
|
| 66 |
4. Run the last test set |
| 67 |
========================= |
| 68 |
4a. Run the tests |
| 69 |
4b. Generate Subset report: failed representative tests for scrutiny |
| 70 |
4c. Generate Extreme report:failed extreme cases for overview |
| 71 |
4d. Generate Countrate report: failed testcountrate for scrutiny |
| 72 |
4e. Generate Throughput report: failed testthru for scrutiny |
| 73 |
4f. Contact Danny Lennon to run his diagnostics |
| 74 |
4g. Record all accepted failures from the above sets. If necessary, |
| 75 |
iterate this step until all failures in the above sets are accepted. |
| 76 |
|
| 77 |
|
| 78 |
FINAL STAGE: |
| 79 |
|
| 80 |
1. Preparation |
| 81 |
============== |
| 82 |
1a. Write script to parse ETC logs, extract tast case names, and |
| 83 |
include them in the pysynphot command as another keyword-value |
| 84 |
pair DONE. |
| 85 |
1b. Write scripts to parse the ETC regression test report logs and |
| 86 |
generate files that contain the name of the failed test, one per |
| 87 |
line. (Two scripts are necessary, one for old-style tests and one |
| 88 |
for new-style tests.) |
| 89 |
1c. Write utility to mark syn_pysyn tests as "ETC failed" using the |
| 90 |
above files as input. |
| 91 |
1d. Complete changes to the ETC test cases to give them meaningful |
| 92 |
names. DONE. |
| 93 |
1e. Modify the ETC code to produce test case names in the log. DONE |
| 94 |
1f. Create useful report generator that will use the ETC name to |
| 95 |
generate reports described below |
| 96 |
1g. Create a branch in the ETC repository to hold all necessary |
| 97 |
changes to run this round of testing |
| 98 |
|
| 99 |
2. Mapping to the ETC cases |
| 100 |
=========================== |
| 101 |
2a. Generate the logs of pysynphot calls produced by the ETC regression |
| 102 |
tests that include the name of the ETC regression test. DONE. |
| 103 |
2b. Regenerate the test cases with the ETC name as part of |
| 104 |
the test definition by parsing those logs. DONE. |
| 105 |
|
| 106 |
|
| 107 |
3. Run the ETC Regression test set |
| 108 |
================================== |
| 109 |
3a. Set up test environment |
| 110 |
3b. Install the latest pysynphot |
| 111 |
3c. Disable synphot |
| 112 |
3d. Run the regression tests |
| 113 |
3e. Generate a report of failed test names |
| 114 |
3f. Divide them into "new" and 'expected" failures. |
| 115 |
|
| 116 |
|
| 117 |
4. Examine any "new" failures |
| 118 |
======================================= |
| 119 |
4a. Subset: ETC case failed, syn_pysyn passed, subset=True |
| 120 |
4b: Extreme: ETC case failed,syn_pysyn passed, subset=False, Extreme=True |
| 121 |
4c: Countrate: ETC case failed, syn_pysyn passed, subset=False, |
| 122 |
testname contains 'testcountrate' |
| 123 |
4d: Throughput:ETC case failed, syn_pysyn passed, subset=False, Extreme=False, |
| 124 |
testname contains 'testthru' |
| 125 |
|
| 126 |
|
| 127 |
5. Doublecheck the "expected" failures |
| 128 |
============================= |
| 129 |
5a. Subset: ETC case failed, syn_pysyn accepted failure, |
| 130 |
subset=True |
| 131 |
5b: Extreme: ETC case failed,syn_pysyn accepted failure, |
| 132 |
subset=False, Extreme=True |
| 133 |
5c: Countrate: ETC case failed, syn_pysyn accepted failure, |
| 134 |
subset=False, testname contains 'testcountrate' |
| 135 |
5d: Throughput:ETC case failed, syn_pysyn accepted failure, |
| 136 |
subset=False, Extreme=False, testname contains 'testthru' |