Closed pllim closed 6 years ago
You need to explain what "Move regression tests back to respective repos" actually means
I thought the contents of this issue explained it, no?
no. The regression tests haven't gone anywhere to be moved back from. You're discussing changing the way in which we write, store, manage and execute our regression tests. That's a lot more than "move back to respective repos" unless you mean something entirely different, which should be explained.
Ok. How about now?
You just changed the title. Edit the original description to contain the current way we do tests and your suggested changes, that would be the most clear for everyone. Not everyone here is familiar with our current pandokia system.
I agree it would be best to have a summary of what you propose. There may be other proposals for changes (or may be "wishes" is a better word) so it'll be easier to understand what each one involves without going through emails.
Thanks for the suggestions. I'll put something more coherent together when I get the chance today...
Okay. What about now? I think I have addressed all the comments and concerns. Thanks.
Currently, SSB regression tests live in a private and hard to access SVN repository. Cron jobs are set up on certain machines (Mac OSX, RHEL6, and RHEL5) to update test scripts from that repo once a day and run with
pandokia
, compare results with "truth" images/tables, and generate HTML reports. Developers then look at the reports and can choose to "okify" failed tests (i.e., make the new results the new "truth").Pros
pandokia
is developed in-house (free, no licensing issues).Cons
pandokia
has limited documentation. Some internal wiki instructions but that's about it.pandokia
lacks Python 3 support, as it was written about 10 years ago.pandokia
is not flexible in letting tests reading in big data from an arbitrary path. For example, CALWF3 input data are required to be on the current machine in the current directory.pandokia
. For example, a syntax error will result in the test being omitted from final report entirely (not to be confused with being reporting as missing in the report).Proposed Changes
pysynphot
tests go back topysynphot
GitHub repo. An exception can be made for HSTCAL (because it's written in C but its tests are in Python) and legacy codes (e.g., PyRAF,pytools
). I am willing to absorb CALACS tests intoacstools
, but CALWF3 has opposing view. There is no reason why tests for all the different packages need to be in the same repository. It is trivial to skip/xfail a test requiring big data that is not present.pandokia
with a new test system. For example, a private version of Travis CI or Jenkins CI.git
, to be consistent with our recent move to GitHub. Also, this way, we do not need a special global account to modify the tests. Ideally, we can open pull requests and merge like we do with "real" codes.nose
topytest
. As we move forward with more and more codes depending on Astropy or its template, this is unavoidable.py.test packagename [args]
orpython setup.py test packagename [args]
.c/c: @sosey @nden @cdsontag @jhunkeler @vglaidler @stsci-hack @justincely and whoever else in SSB that is interested
p/s: This is how I envision the change -- https://www.youtube.com/watch?v=mZ6_0wGGsuY