integration test unable to report using screen

Bug #1551431 reported by Eric Brown
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bandit
Fix Released
High
Eric Brown

Bug Description

http://logs.openstack.org/60/281560/4/check/gate-bandit-integration-keystone/cd28124/console.html

2016-02-29 21:29:13.113 | bandit runtests: PYTHONHASHSEED='424043074'
2016-02-29 21:29:13.114 | bandit runtests: commands[0] | bandit -r keystone
2016-02-29 21:29:13.491 | [main] INFO running on Python 2.7.6
2016-02-29 21:29:49.680 | 434 [0.. 50.. 100.. 150.. 200.. 250.. 300.. 350.. 400.. ]
2016-02-29 21:29:49.696 | Traceback (most recent call last):
2016-02-29 21:29:49.697 | File ".tox/bandit/bin/bandit", line 10, in <module>
2016-02-29 21:29:49.697 | sys.exit(main())
2016-02-29 21:29:49.698 | File "/home/jenkins/workspace/gate-bandit-integration-keystone/openstack/keystone/.tox/bandit/local/lib/python2.7/site-packages/bandit/cli/main.py", line 342, in main
2016-02-29 21:29:49.698 | args.output_format)
2016-02-29 21:29:49.698 | File "/home/jenkins/workspace/gate-bandit-integration-keystone/openstack/keystone/.tox/bandit/local/lib/python2.7/site-packages/bandit/core/manager.py", line 169, in output_results
2016-02-29 21:29:49.699 | % output_format)
2016-02-29 21:29:49.699 | RuntimeError: Unable to output report using 'screen' formatter.
2016-02-29 21:29:49.995 | ERROR: InvocationError: '/home/jenkins/workspace/gate-bandit-integration-keystone/openstack/keystone/.tox/bandit/bin/bandit -r keystone'
2016-02-29 21:29:49.995 | ___________________________________ summary _______

Eric Brown (ericwb)
Changed in bandit:
importance: Undecided → High
Eric Brown (ericwb)
Changed in bandit:
assignee: nobody → Eric Brown (ericwb)
Eric Brown (ericwb)
Changed in bandit:
milestone: none → 1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to bandit (master)

Fix proposed to branch: master
Review: https://review.openstack.org/289512

Changed in bandit:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to bandit (master)

Reviewed: https://review.openstack.org/289512
Committed: https://git.openstack.org/cgit/openstack/bandit/commit/?id=58b6fe376142f16702f24daf9dd1129c02f27c57
Submitter: Jenkins
Branch: master

commit 58b6fe376142f16702f24daf9dd1129c02f27c57
Author: Eric Brown <email address hidden>
Date: Mon Mar 7 10:40:47 2016 -0800

    Only use screen when terminal is tty

    Seems that our jenkins CI runs in an environment without a tty.
    As a result the screen formatter fails in this environment. This
    patch conditional uses screen or text formatter depending on the
    TTY.

    Change-Id: Ia661b4b56827bc07e86ab796d71db5f7528dc4ef
    Closes-Bug: #1551431

Changed in bandit:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to bandit (master)

Fix proposed to branch: master
Review: https://review.openstack.org/290159

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to bandit (master)

Reviewed: https://review.openstack.org/290159
Committed: https://git.openstack.org/cgit/openstack/bandit/commit/?id=80a89e3ba2c34a19c00933216d8c1c4d121a1fe6
Submitter: Jenkins
Branch: master

commit 80a89e3ba2c34a19c00933216d8c1c4d121a1fe6
Author: Eric Brown <email address hidden>
Date: Tue Mar 8 14:02:33 2016 -0800

    Take2: Only use screen when terminal is tty

    Commit Ia661b4b56827bc07e86ab796d71db5f7528dc4ef did not properly
    fix the detection of using the 'screen' formatter versus 'text'.
    The default for the command line was always set to 'screen'.

    Change-Id: I31c8c7e768a01c038f7f46923e97d3ad6bcb8220
    Closes-Bug: #1551431

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.