[users at bb.net] Unit Tests Failing after clean install

Justin Fehr Justin.Fehr at Kinze.com
Tue Oct 27 21:43:36 UTC 2015


I reinstalled everything into a virtualenv using the buildbot guide, and after running the tests received the same two errors as before. For reference I am running python 2.7.6 on Ubuntu 14.04.3 LTS

From: Bill Deegan [mailto:bill at baddogconsulting.com]
Sent: Tuesday, October 27, 2015 2:35 PM
To: Pierre Tardy
Cc: Justin Fehr; Dustin J. Mitchell; users at buildbot.net
Subject: Re: [users at bb.net] Unit Tests Failing after clean install

I'll second Pierre's recommendation.
Plus. I'm always loath to mess with system installed packages via pip.
Much cleaner to use a virtualenv.
That also allows you to try new versions on the same system when they come out without displacing your running buildbot instance..
-Bill

On Tue, Oct 27, 2015 at 11:55 AM, Pierre Tardy <tardyp at gmail.com<mailto:tardyp at gmail.com>> wrote:
The recommended method is to use virtualenv, so that you know you have a clean setup.

Le mar. 27 oct. 2015 à 19:48, Justin Fehr <Justin.Fehr at kinze.com<mailto:Justin.Fehr at kinze.com>> a écrit :
I used pip to install it. I believe that is the recommended method, correct?

KINZE Manufacturing, Inc.
Justin.Fehr at kinze.com<mailto:Justin.Fehr at kinze.com>
319.668.1300<tel:319.668.1300>

From: Bill Deegan [mailto:bill at baddogconsulting.com<mailto:bill at baddogconsulting.com>]
Sent: Tuesday, October 27, 2015 1:44 PM
To: Justin Fehr
Cc: Dustin J. Mitchell; users at buildbot.net<mailto:users at buildbot.net>

Subject: Re: [users at bb.net<mailto:users at bb.net>] Unit Tests Failing after clean install

Justin,
Looks like you install buildbot in your system python.
How did you install buildbot?
(distro package, pip, other?)
-Bill

On Tue, Oct 27, 2015 at 11:36 AM, Justin Fehr <Justin.Fehr at kinze.com<mailto:Justin.Fehr at kinze.com>> wrote:
After searching my machine I can only find one version of buildbot. Do you have any other suggestions? Thanks for the help

J

From: djmitche at gmail.com<mailto:djmitche at gmail.com> [mailto:djmitche at gmail.com<mailto:djmitche at gmail.com>] On Behalf Of Dustin J. Mitchell
Sent: Tuesday, October 27, 2015 8:35 AM
To: Justin Fehr
Cc: users at buildbot.net<mailto:users at buildbot.net>
Subject: Re: [users at bb.net<mailto:users at bb.net>] Unit Tests Failing after clean install

Hi Justin --
What version of Buildbot do you have installed?
Most times, test failures like this are due to having multiple copies of Buildbot installed in such a way that Python is finding some modules from one version and some modules from another.  Did you, by chance, install Buildbot with your system package manager (dnf or apt-get), then install it systemwide with pip?
Dustin

On Mon, Oct 26, 2015 at 5:32 PM, Justin Fehr <Justin.Fehr at kinze.com<mailto:Justin.Fehr at kinze.com>> wrote:
Hi all,

I am setting up buildbot for the first time, after installing buildbot I ran the unit tests to confirm that everything is installed correctly. I received two errors and now am unsure of how to proceed. They are as follows:

===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/buildbot/test/unit/test_process_buildstep.py", line 386, in test_updateSu
mmary_running_empty_dict
    step._step_status.setText.assert_not_called()
  File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 915, in assert_not_called
    raise AssertionError(msg)
exceptions.AssertionError: Expected 'setText' to not have been called. Called 1 times.

buildbot.test.unit.test_process_buildstep.TestBuildStep.test_updateSummary_running_empty_dict
===============================================================================
[ERROR]
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/buildbot/test/unit/test_util.py", line 269, in test_broken_locale
    config.error.assert_called()
  File "/usr/local/lib/python2.7/dist-packages/mock/mock.py", line 721, in __getattr__
    raise AttributeError(name)
exceptions.AttributeError: assert_called

buildbot.test.unit.test_util.FunctionalEnvironment.test_broken_locale

Thanks,

J

________________________________

Electronic Privacy Notice: This e-mail, and any attachments, contains information that is, or may be, covered by electronic communications privacy laws, and is confidential and proprietary in nature. If you are not the intended recipient, please be advised that retaining, using, copying, distributing, or otherwise disclosing this information is strictly prohibited. Instead, please reply to the sender that you have received this communication in error, and then immediately delete and/or destroy your copy. Thank you for your cooperation.

_______________________________________________
users mailing list
users at buildbot.net<mailto:users at buildbot.net>
https://lists.buildbot.net/mailman/listinfo/users


_______________________________________________
users mailing list
users at buildbot.net<mailto:users at buildbot.net>
https://lists.buildbot.net/mailman/listinfo/users

_______________________________________________
users mailing list
users at buildbot.net<mailto:users at buildbot.net>
https://lists.buildbot.net/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20151027/2671014a/attachment.html>


More information about the users mailing list