PBR

Unit tests are failing in Sid

Bug #1296200 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PBR
Fix Released
Medium
Doug Hellmann

Bug Description

======================================================================
FAIL: pbr.tests.test_packaging.TestPackagingInGitRepoWithCommit.test_changelog
pbr.tests.test_packaging.TestPackagingInGitRepoWithCommit.test_changelog
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''
  pythonlogging:'pbr'
  stderr

stdout: {{{
Initialized empty Git repository in /tmp/tmpBe1cJd/tmpLjA1my/testpackage/.git/

*** Please tell me who you are.

Run

  git config --global user.email "<email address hidden>"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <email address hidden>) not allowed
running sdist
[pbr] Writing ChangeLog
[pbr] Generating AUTHORS
running egg_info
creating pbr_testpackage.egg-info
writing pbr_testpackage.egg-info/PKG-INFO
writing top-level names to pbr_testpackage.egg-info/top_level.txt
writing dependency_links to pbr_testpackage.egg-info/dependency_links.txt
writing entry points to pbr_testpackage.egg-info/entry_points.txt
[pbr] Processing SOURCES.txt
writing manifest file 'pbr_testpackage.egg-info/SOURCES.txt'
[pbr] In git context, generating filelist from git
reading manifest template 'MANIFEST.in'
writing manifest file 'pbr_testpackage.egg-info/SOURCES.txt'
running check
creating pbr_testpackage-0.0
creating pbr_testpackage-0.0/data_files
creating pbr_testpackage-0.0/pbr_testpackage
creating pbr_testpackage-0.0/pbr_testpackage.egg-info
creating pbr_testpackage-0.0/pbr_testpackage/package_data
creating pbr_testpackage-0.0/src
making hard links in pbr_testpackage-0.0...
hard linking AUTHORS -> pbr_testpackage-0.0
hard linking CHANGES.txt -> pbr_testpackage-0.0
hard linking ChangeLog -> pbr_testpackage-0.0
hard linking LICENSE.txt -> pbr_testpackage-0.0
hard linking MANIFEST.in -> pbr_testpackage-0.0
hard linking README.txt -> pbr_testpackage-0.0
hard linking extra-file.txt -> pbr_testpackage-0.0
hard linking git-extra-file.txt -> pbr_testpackage-0.0
hard linking setup.cfg -> pbr_testpackage-0.0
hard linking setup.py -> pbr_testpackage-0.0
hard linking data_files/a.txt -> pbr_testpackage-0.0/data_files
hard linking data_files/b.txt -> pbr_testpackage-0.0/data_files
hard linking data_files/c.rst -> pbr_testpackage-0.0/data_files
hard linking pbr_testpackage/__init__.py -> pbr_testpackage-0.0/pbr_testpackage
hard linking pbr_testpackage/_setup_hooks.py -> pbr_testpackage-0.0/pbr_testpackage
hard linking pbr_testpackage/cmd.py -> pbr_testpackage-0.0/pbr_testpackage
hard linking pbr_testpackage.egg-info/PKG-INFO -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/SOURCES.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/dependency_links.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/entry_points.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/not-zip-safe -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/top_level.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage/package_data/1.txt -> pbr_testpackage-0.0/pbr_testpackage/package_data
hard linking pbr_testpackage/package_data/2.txt -> pbr_testpackage-0.0/pbr_testpackage/package_data
hard linking src/testext.c -> pbr_testpackage-0.0/src
copying setup.cfg -> pbr_testpackage-0.0
Writing pbr_testpackage-0.0/setup.cfg
creating dist
Creating tar archive
removing 'pbr_testpackage-0.0' (and everything under it)
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
}}}

Traceback (most recent call last):
  File "/home/zigo/sources/openstack/icehouse/python-pbr/build-area/python-pbr-0.7.0/pbr/tests/test_packaging.py", line 73, in test_changelog
    self.assertNotEqual(body, '')
  File "/usr/lib/python2.7/unittest/case.py", line 524, in assertNotEqual
    raise self.failureException(msg)
AssertionError: '' == ''

======================================================================
FAIL: pbr.tests.test_packaging.TestPackagingInGitRepoWithoutCommit.test_changelog
pbr.tests.test_packaging.TestPackagingInGitRepoWithoutCommit.test_changelog
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''
  pythonlogging:'pbr'
  stderr

stdout: {{{
Initialized empty Git repository in /tmp/tmpELTvuz/tmpUIw3V9/testpackage/.git/

running sdist
[pbr] Writing ChangeLog
[pbr] Generating AUTHORS
running egg_info
creating pbr_testpackage.egg-info
writing pbr_testpackage.egg-info/PKG-INFO
writing top-level names to pbr_testpackage.egg-info/top_level.txt
writing dependency_links to pbr_testpackage.egg-info/dependency_links.txt
writing entry points to pbr_testpackage.egg-info/entry_points.txt
[pbr] Processing SOURCES.txt
writing manifest file 'pbr_testpackage.egg-info/SOURCES.txt'
[pbr] In git context, generating filelist from git
reading manifest template 'MANIFEST.in'
writing manifest file 'pbr_testpackage.egg-info/SOURCES.txt'
running check
creating pbr_testpackage-0.0
creating pbr_testpackage-0.0/data_files
creating pbr_testpackage-0.0/pbr_testpackage
creating pbr_testpackage-0.0/pbr_testpackage.egg-info
creating pbr_testpackage-0.0/pbr_testpackage/package_data
creating pbr_testpackage-0.0/src
making hard links in pbr_testpackage-0.0...
hard linking AUTHORS -> pbr_testpackage-0.0
hard linking CHANGES.txt -> pbr_testpackage-0.0
hard linking ChangeLog -> pbr_testpackage-0.0
hard linking LICENSE.txt -> pbr_testpackage-0.0
hard linking MANIFEST.in -> pbr_testpackage-0.0
hard linking README.txt -> pbr_testpackage-0.0
hard linking extra-file.txt -> pbr_testpackage-0.0
hard linking git-extra-file.txt -> pbr_testpackage-0.0
hard linking setup.cfg -> pbr_testpackage-0.0
hard linking setup.py -> pbr_testpackage-0.0
hard linking data_files/a.txt -> pbr_testpackage-0.0/data_files
hard linking data_files/b.txt -> pbr_testpackage-0.0/data_files
hard linking data_files/c.rst -> pbr_testpackage-0.0/data_files
hard linking pbr_testpackage/__init__.py -> pbr_testpackage-0.0/pbr_testpackage
hard linking pbr_testpackage/_setup_hooks.py -> pbr_testpackage-0.0/pbr_testpackage
hard linking pbr_testpackage/cmd.py -> pbr_testpackage-0.0/pbr_testpackage
hard linking pbr_testpackage.egg-info/PKG-INFO -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/SOURCES.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/dependency_links.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/entry_points.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/not-zip-safe -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage.egg-info/top_level.txt -> pbr_testpackage-0.0/pbr_testpackage.egg-info
hard linking pbr_testpackage/package_data/1.txt -> pbr_testpackage-0.0/pbr_testpackage/package_data
hard linking pbr_testpackage/package_data/2.txt -> pbr_testpackage-0.0/pbr_testpackage/package_data
hard linking src/testext.c -> pbr_testpackage-0.0/src
copying setup.cfg -> pbr_testpackage-0.0
Writing pbr_testpackage-0.0/setup.cfg
creating dist
Creating tar archive
removing 'pbr_testpackage-0.0' (and everything under it)
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitreview'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
}}}
Traceback (most recent call last):
  File "/home/zigo/sources/openstack/icehouse/python-pbr/build-area/python-pbr-0.7.0/pbr/tests/test_packaging.py", line 95, in test_changelog
    self.assertEqual(body, 'CHANGES\n=======\n\n')
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 321, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
MismatchError: '' != 'CHANGES\n=======\n\n'

======================================================================
FAIL: process-returncode
process-returncode
----------------------------------------------------------------------
testtools.testresult.real._StringException: Binary content:
  traceback (test/plain; charset="utf8")

----------------------------------------------------------------------

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

I'd like to add that this is critical: because of PBR failing, I can't package python-hacking 0.8.1, and therefore, can't package oslotest, and therefore, can't package the latest oslo.messaging. An urgent fix is needed.

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

I overlooked python-hacking dependencies, pbr >= 0.5.21 is enough. Never the less a quick fix would be nice.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Is this still an issue?

Changed in pbr:
status: New → Incomplete
Revision history for this message
melanie witt (melwitt) wrote :
Download full text (4.0 KiB)

FWIW, I'm hitting a similar error when I try to run the pbr unit tests locally:

======================================================================
FAIL: pbr.tests.test_packaging.TestVersions.test_untagged_version_minor_bump
tags: worker-1
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
  pythonlogging:''
  pythonlogging:'pbr'
  stderr

stdout: {{{
Initialized empty Git repository in /tmp/tmpoWtU0E/tmpqL5Da2/testpackage/.git/

gpg: directory `/tmp/tmpsh2RfT/.gnupg' created
gpg: new configuration file `/tmp/tmpsh2RfT/.gnupg/gpg.conf' created
gpg: WARNING: options in `/tmp/tmpsh2RfT/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/tmp/tmpsh2RfT/.gnupg/secring.gpg' created
gpg: keyring `/tmp/tmpsh2RfT/.gnupg/pubring.gpg' created
gpg: skipping control `%no-ask-passphrase' ()
gpg: invalid item `(setpref)' in preference string
gpg: keysize invalid; using 2048 bits
..+++++
.........+++++
gpg: /tmp/tmpsh2RfT/.gnupg/trustdb.gpg: trustdb created
gpg: key D45B686C marked as ultimately trusted

*** Please tell me who you are.

Run

  git config --global user.email "<email address hidden>"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <email address hidden>) not allowed

fatal: Failed to resolve 'HEAD' as a valid ref.

*** Please tell me who you are.

Run

  git config --global user.email "<email address hidden>"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <email address hidden>) not allowed
}}}

Traceback (most recent call last):
  File "pbr/tests/test_packaging.py", line 262, in test_untagged_version_minor_bump
    self.assertThat(version, matchers.StartsWith('1.3.0.dev1.g'))
  File "/home/vagrant/pbr/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 433, in assertThat
    raise mismatch_error
MismatchError: '0.0.1' does not start with '1.3.0.dev1.g'.

Traceback (most recent call last):
_StringException: Empty attachments:
  pythonlogging:''
  pythonlogging:'pbr'
  stderr

stdout: {{{
Initialized empty Git repository in /tmp/tmpoWtU0E/tmpqL5Da2/testpackage/.git/

gpg: directory `/tmp/tmpsh2RfT/.gnupg' created
gpg: new configuration file `/tmp/tmpsh2RfT/.gnupg/gpg.conf' created
gpg: WARNING: options in `/tmp/tmpsh2RfT/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/tmp/tmpsh2RfT/.gnupg/secring.gpg' created
gpg: keyring `/tmp/tmpsh2RfT/.gnupg/pubring.gpg' created
gpg: skipping control `%no-ask-passphrase' ()
gpg: invalid item `(setpref)' in preference string
gpg: keysize invalid; using 2048 bits
..+++++
.........+++++
gpg: /tmp/tmpsh2RfT/.gnupg/trustdb.gpg: trustdb created
gpg: key D45B686C marked as ultimately trusted

*** Please tell me who you are.

Run

  git config --global user.email "<email address hidden>"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repos...

Read more...

Revision history for this message
melanie witt (melwitt) wrote :

I see the above running on vagrant virtualbox vms running precise64 and trusty64. But I just tried simple git cloning pbr, installing haveged, and running tox on RHEL6 and it worked fine. Not yet sure what's going on.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :
Changed in pbr:
assignee: nobody → Doug Hellmann (doug-hellmann)
status: Incomplete → In Progress
importance: Undecided → Medium
milestone: none → next-kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to pbr (master)

Reviewed: https://review.openstack.org/122249
Committed: https://git.openstack.org/cgit/openstack-dev/pbr/commit/?id=9082720fc47c74fc22ea0ea80486f35157e619b7
Submitter: Jenkins
Branch: master

commit 9082720fc47c74fc22ea0ea80486f35157e619b7
Author: Doug Hellmann <email address hidden>
Date: Wed Sep 17 17:05:13 2014 -0400

    Add user.name to git config in tests

    Apparently git wants the user.name set as well as user.email, so add
    that to the fixture class.

    Closes-Bug: #1296200
    Change-Id: I6ce2d7e3ca6f0e6cf2d8de962027e8f9b9dcc9b7

Changed in pbr:
status: In Progress → Fix Committed
Changed in pbr:
status: Fix Committed → Fix Released
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.