[openstack-dev] [Neutron]All unittest passed but Jenkins failed

James E. Blair jeblair at openstack.org
Wed Sep 11 14:38:59 UTC 2013


ZhiQiang Fan <aji.zqfan at gmail.com> writes:

> currently, i don't know if it is coverage problem or something else.
>
> the direct cause is:
>
> sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh post
>
> Sep  9 06:57:23 precise1 sudo:  jenkins : 3 incorrect password
> attempts ; TTY=unknown ;
> PWD=/home/jenkins/workspace/gate-neutron-python27 ; USER=root ;
> COMMAND=ovs-vsctl --timeout=2 -- --columns=external_ids,name,ofport
> find Interface external_ids:iface-id="71d9fa4c-f074-46bd-96af-8c592d37c160"

This is because the unit test tried to run 'sudo'.  That's not allowed
in unit tests, so it needs to be mocked out.

> meanwhile, i found that:
>
> 2013-09-09 06:42:25.922 | + git fetch
> http://zuul.openstack.org/p/openstack/neutron
> refs/zuul/master/Z62b50e610b554304bde4aa2a9ea80193
> 2013-09-09 06:42:26.747 | From http://zuul.openstack.org/p/openstack/neutron
> 2013-09-09 06:42:26.747 |  * branch
> refs/zuul/master/Z62b50e610b554304bde4aa2a9ea80193 -> FETCH_HEAD
> 2013-09-09 06:42:26.751 | + git checkout FETCH_HEAD
> 2013-09-09 06:42:26.954 | Warning: you are leaving 17 commits behind,
> not connected to
> 2013-09-09 06:42:26.954 | any of your branches:
> 2013-09-09 06:42:26.954 |
> 2013-09-09 06:42:26.954 |   62d0927 Avoid shadowing NeutronException
> 'message' attribute
> 2013-09-09 06:42:26.954 |   e26639b Merge "Replace assertEquals with
> assertEqual"
> 2013-09-09 06:42:26.954 |   5bae582 Load ML2 mech drivers as listed in
> ml2_conf.ini
> 2013-09-09 06:42:26.955 |   902dc88 Replace assertEquals with assertEqual
> 2013-09-09 06:42:26.955 |  ... and 13 more.
> 2013-09-09 06:42:26.955 |
> 2013-09-09 06:42:26.955 | If you want to keep them by creating a new
> branch, this may be a good time
> 2013-09-09 06:42:26.956 | to do so with:
> 2013-09-09 06:42:26.956 |
> 2013-09-09 06:42:26.956 |  git branch new_branch_name
> 62d09275d899237dc34cf50c81e99d50489212ff
> 2013-09-09 06:42:26.956 |
> 2013-09-09 06:42:26.962 | HEAD is now at 7cbd0f5... Improve dhcp_agent_scheduler

You can ignore most of that; that's just Jenkins resetting its git repo
from an earlier test run.  By the time it's finished, it says:

>> 2013-09-09 06:42:26.962 | HEAD is now at 7cbd0f5... Improve dhcp_agent_scheduler

Which is the important part.  You'll see that matches your local HEAD as well:

> but in my local env:
>
> $ git log --pretty=format:"%h %s"
>
> 7cbd0f5 Improve dhcp_agent_scheduler

-Jim



More information about the OpenStack-dev mailing list