Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: How to check Jenkins results (SOLVED) #58

Closed
pllim opened this issue Apr 5, 2018 · 1 comment
Closed

TST: How to check Jenkins results (SOLVED) #58

pllim opened this issue Apr 5, 2018 · 1 comment

Comments

@pllim
Copy link
Contributor

pllim commented Apr 5, 2018

  1. Link to results for master is available at https://ssbjenkins.stsci.edu/job/STScI/job/pyraf/job/master/ (this link is also reachable by clicking the "build status" badge on README).

  2. On left menu, click on "Open Blue Ocean".

  3. Select row pointing to "master" branch.

  4. Click on the Python 2 build as shown

pyraf_jenkins_1

  1. To make sure, you will now see a line like conda install -y -q python=2.7 iraf-all six on that page below the diagram.

  2. Expand the line with with_env pytest tests --basetemp=tests_output --junitxml results.xml to see Python 2 test results. Example:

[STScI_pyraf_master-52EC45PPOTV4YGTS2XRZCI6UCVSWOPR23BCYCLQME64HJ7JJ445Q] Running shell script

+ with_env pytest tests --basetemp=tests_output --junitxml results.xml

============================= test session starts ==============================
platform linux2 -- Python 2.7.14, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
rootdir: /home/jenkins/workspace/STScI_pyraf_master-xxx, inifile: setup.cfg
collected 76 items

tests/test_basic.py ....                                                 [  5%]
tests/test_clcache.py .                                                  [  6%]
tests/test_cli.py ....                                                   [ 11%]
tests/test_core_nongraphics.py .......x........x...xx..                  [ 43%]
tests/test_describe.py .                                                 [ 44%]
tests/test_graphics.py ..........s                                       [ 59%]
tests/test_invocation.py ........................                        [ 90%]
tests/test_using_tasks.py .......                                        [100%]

 generated xml file: /home/jenkins/workspace/STScI_pyraf_master-xxx/results.xml 
=============== 71 passed, 1 skipped, 4 xfailed in 21.12 seconds ===============
  1. To see Python 3 build, click on the bottom-most circle in the diagram. Then, repeat steps similar to Python 2 build above to see its results. For Python 3, it is currently (as of this writing) allowed to fail, so it will show a green status but you will see some failures. Unlike Travis, Jenkins cannot set individual build to red without failing the whole thing, even if that individual build is an allowed failure.

c/c @cdsontag

@pllim pllim changed the title How to check Jenkins results (SOLVED) TST: How to check Jenkins results (SOLVED) Apr 7, 2018
@cdsontag
Copy link
Contributor

Very cool @pllim ! and instructive. Thank you for the help and diagram here.

@pllim pllim closed this as completed Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants