gate-bandit-integration-* not failing when they should
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bandit |
Fix Released
|
High
|
Eric Brown |
Bug Description
Bandit has an integration tox job which checks against other projects whether a bandit patch potentially breaks them. I noticed its not working as of late.
When errors occur, they are ignored. Either the exit code is not preserved or something else is happening. The job always shows success.
For example (gate-bandit-
2016-02-17 19:15:01.574 | + pushd ../keystone
2016-02-17 19:15:01.574 | /home/jenkins/
2016-02-17 19:15:01.574 | + set +e
2016-02-17 19:15:01.574 | + tox -e bandit --notest
2016-02-17 19:15:01.663 | ERROR: unknown environment 'bandit'
2016-02-17 19:15:01.670 | + .tox/bandit/bin/pip install --force-reinstall -U /home/jenkins/
2016-02-17 19:15:01.671 | scripts/
2016-02-17 19:15:01.671 | + tox -e bandit
2016-02-17 19:15:01.795 | ERROR: unknown environment 'bandit'
2016-02-17 19:15:01.802 | + popd
2016-02-17 19:15:01.802 | /home/jenkins/
2016-02-17 19:15:01.802 | + [[ 0 -eq 1 ]]
2016-02-17 19:15:01.803 | _______
2016-02-17 19:15:01.803 | integration: commands succeeded
2016-02-17 19:15:01.803 | congratulations :)
gate-bandit-
2016-02-17 19:15:20.354 | [93m>> Issue: [B309:blacklist] Use of HTTPSConnection does not provide security, see https:/
2016-02-17 19:15:20.354 | Severity: Medium Confidence: High
2016-02-17 19:15:20.354 | Location: oslo_vmware/
2016-02-17 19:15:20.354 | 311 conn = httplib.
2016-02-17 19:15:20.354 | 312 elif self._scheme == 'https':
2016-02-17 19:15:20.354 | 313 conn = httplib.
2016-02-17 19:15:20.354 | 314 else:
2016-02-17 19:15:20.354 | 315 excep_msg = _("Invalid scheme: %s.") % self._scheme
2016-02-17 19:15:20.354 |
2016-02-17 19:15:20.355 | -------
2016-02-17 19:15:20.355 | [94m>> Issue: [B112:os_
2016-02-17 19:15:20.355 | Severity: Low Confidence: Low
2016-02-17 19:15:20.355 | Location: oslo_vmware/
2016-02-17 19:15:20.355 | 194 major_minor = '%s.%s' % (major_minor, ver[1])
2016-02-17 19:15:20.355 | 195 curr_dir = os.path.
2016-02-17 19:15:20.355 | 196 pbm_service_wsdl = os.path.
2016-02-17 19:15:20.355 | 197 'pbmService.wsdl')
2016-02-17 19:15:20.355 | 198 if not os.path.
2016-02-17 19:15:20.355 | 199 LOG.warning(
2016-02-17 19:15:20.356 |
2016-02-17 19:15:20.356 | -------
2016-02-17 19:15:20.374 | ERROR: InvocationError: '/home/
2016-02-17 19:15:20.374 | _______
2016-02-17 19:15:20.374 | ERROR: bandit: commands failed
2016-02-17 19:15:20.382 | + popd
2016-02-17 19:15:20.382 | /home/jenkins/
2016-02-17 19:15:20.382 | + [[ 0 -eq 1 ]]
2016-02-17 19:15:20.382 | _______
2016-02-17 19:15:20.382 | integration: commands succeeded
2016-02-17 19:15:20.382 | congratulations :)
Changed in bandit: | |
assignee: | nobody → Eric Brown (ericwb) |
importance: | Undecided → High |
Changed in bandit: | |
milestone: | none → 1.0 |
Fix proposed to branch: master /review. openstack. org/281560
Review: https:/