devstack-gate setup doesn't differentiate git fetch errors from other git errors
Bug #1357660 reported by
Doug Wiegley
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Core Infrastructure |
Triaged
|
Low
|
Unassigned |
Bug Description
Using devstack-gate, during the devstack-
Changed in openstack-ci: | |
status: | New → Triaged |
importance: | Undecided → Low |
summary: |
- git failures in devstack-gate setup are silently ignored + devstack-gate setup doesn't differentiate git fetch errors from other + git errors |
To post a comment you must log in.
This isn't quite the same. The dup'ed bug had the tests fail on a git failure. The issue I had is that the test run did NOT fail, and I got a false positive. Note the fatal error below (configuration error, but the same would occur if say, zuul's apache was down). It continued and ran the tests against master, and then reported results as if it had tested the gerrit review:
2014-08-16 01:40:50.405 | + FALLBACK_ZUUL_REF= openstack/ neutron origin/ master master/ Z9a2f87876cc54d 7e9fdf7a7c1b276 47e openstack/ neutron zuul/master/ Z9a2f87876cc54d 7e9fdf7a7c1b276 47e master/ Z9a2f87876cc54d 7e9fdf7a7c1b276 47e '!=' '' ']' zuul.openstack. org/p/openstack /neutron refs/zuul/ master/ Z9a2f87876cc54d 7e9fdf7a7c1b276 47e zuul.openstack. org/p/openstack /neutron/ ' not found openstack/ neutron openstack/ neutron origin/ master openstack/ neutron C\H\_\H\ E\A\D ]] remotes/ origin/ master origin/ master openstack/ marconi ']' openstack/ marconi/ marconi
2014-08-16 01:40:50.412 | + git_has_branch openstack/neutron master
2014-08-16 01:40:50.414 | + local project=
2014-08-16 01:40:50.415 | + local branch=master
2014-08-16 01:40:50.416 | + git branch -a
2014-08-16 01:40:50.418 | + grep remotes/
2014-08-16 01:40:50.419 | + return 0
2014-08-16 01:40:50.420 | + git_fetch_at_ref openstack/neutron refs/zuul/
2014-08-16 01:40:50.422 | + local project=
2014-08-16 01:40:50.423 | + local ref=refs/
2014-08-16 01:40:50.424 | + '[' refs/zuul/
2014-08-16 01:40:50.425 | + git fetch http://
2014-08-16 01:40:50.582 | fatal: repository 'http://
2014-08-16 01:40:50.585 | + return 128
2014-08-16 01:40:50.587 | + git_fetch_at_ref openstack/neutron
2014-08-16 01:40:50.588 | + local project=
2014-08-16 01:40:50.589 | + local ref=
2014-08-16 01:40:50.590 | + '[' '' '!=' '' ']'
2014-08-16 01:40:50.591 | + return 1
2014-08-16 01:40:50.592 | + git_has_branch openstack/neutron master
2014-08-16 01:40:50.597 | + local project=
2014-08-16 01:40:50.598 | + local branch=master
2014-08-16 01:40:50.599 | + git branch -a
2014-08-16 01:40:50.600 | + grep remotes/
2014-08-16 01:40:50.602 | + return 0
2014-08-16 01:40:50.605 | + git_checkout openstack/neutron master
2014-08-16 01:40:50.606 | + local project=
2014-08-16 01:40:50.607 | + local branch=master
2014-08-16 01:40:50.608 | + local reset_branch=master
2014-08-16 01:40:50.610 | + [[ master != \F\E\T\
2014-08-16 01:40:50.611 | + reset_branch=
2014-08-16 01:40:50.612 | + git checkout master
2014-08-16 01:40:50.648 | Already on 'master'
2014-08-16 01:40:50.655 | Your branch is behind 'origin/master' by 282 commits, and can be fast-forwarded.
2014-08-16 01:40:50.656 | (use "git pull" to update your local branch)
2014-08-16 01:40:50.661 | + git reset --hard remotes/
2014-08-16 01:40:50.733 | HEAD is now at 9bf0e66 Remove auto-generation of db schema from models at startup
2014-08-16 01:40:50.734 | + git clean -x -f -d -q
2014-08-16 01:40:50.745 | + for PROJECT in '$PROJECTS'
2014-08-16 01:40:50.747 | + cd /opt/stack/new
2014-08-16 01:40:50.748 | + '[' -d /opt/git/
2014-08-16 01:40:50.751 | ++ basename openstack/marconi
2014-08-16 01:40:50.757 | + rsync -a /opt/git/