test failures on trusty

Bug #1326940 reported by Andreas Hasenack
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
High
Björn Tillenius
landscape-client (Ubuntu)
Fix Released
Undecided
Unassigned
Lucid
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned

Bug Description

r768:

[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_changer.py", line 491, in got_result
    self.assertEqual(message["result-code"], 100)
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = 1
b = 100

landscape.package.tests.test_changer.AptPackageChangerTest.test_transaction_error
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1261, in test_get_unmet_dependency_info_depend
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_depend
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1577, in test_get_unmet_dependency_info_multiple_broken
    self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'another-foo' architecture='' id:2L>,
     <Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_multiple_broken
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1553, in test_get_unmet_dependency_info_only_unmet
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_only_unmet
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1281, in test_get_unmet_dependency_info_predepend
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_predepend
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1350, in test_get_unmet_dependency_info_with_dep_already_installed
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_with_dep_already_installed
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1403, in test_get_unmet_dependency_info_with_dep_downgraded
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_with_dep_downgraded
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1325, in test_get_unmet_dependency_info_with_dep_install
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:1L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_with_dep_install
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1376, in test_get_unmet_dependency_info_with_dep_upgraded
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_with_dep_upgraded
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1423, in test_get_unmet_dependency_info_with_or_deps
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_with_or_deps
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1301, in test_get_unmet_dependency_info_with_version
    set([foo.package]), self.facade._get_broken_packages())
  File "/usr/lib/python2.7/dist-packages/twisted/trial/_synctest.py", line 356, in assertEqual
    % (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = set([<Package: name:'foo' architecture='' id:0L>])
b = set([])

landscape.package.tests.test_facade.AptFacadeTest.test_get_unmet_dependency_info_with_version
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 2106, in test_mark_install_transaction_error
    self.facade.perform_changes)
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 368, in failUnlessRaises
    "%s not raised (%r returned)" % (excName, result))
twisted.trial.unittest.FailTest: TransactionError not raised (None returned)

landscape.package.tests.test_facade.AptFacadeTest.test_mark_install_transaction_error
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 1220, in test_perform_changes_install_broken_includes_error_info
    TransactionError, self.facade.perform_changes)
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 368, in failUnlessRaises
    "%s not raised (%r returned)" % (excName, result))
twisted.trial.unittest.FailTest: TransactionError not raised (None returned)

landscape.package.tests.test_facade.AptFacadeTest.test_perform_changes_install_broken_includes_error_info
===============================================================================
[FAIL]
Traceback (most recent call last):
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 146, in test_method_wrapper
    result = test_method()
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/package/tests/test_facade.py", line 2069, in test_perform_changes_with_broken_packages_install_broken
    TransactionError, self.facade.perform_changes)
  File "/home/andreas/canonical/source/landscape-client/trunk/landscape/tests/mocker.py", line 368, in failUnlessRaises
    "%s not raised (%r returned)" % (excName, result))
twisted.trial.unittest.FailTest: TransactionError not raised ('' returned)

landscape.package.tests.test_facade.AptFacadeTest.test_perform_changes_with_broken_packages_install_broken
-------------------------------------------------------------------------------
Ran 2339 tests in 625.701s

FAILED (failures=14, successes=2325)

Also here:
http://ci.lscape.net/job/landscape-client-test/label=trusty-client/19/consoleFull (search for pformat)

Related branches

tags: removed: kanban
Changed in landscape-client:
status: New → In Progress
assignee: nobody → Adam Collard (adam-collard)
Revision history for this message
Adam Collard (adam-collard) wrote :

This looks to be caused by a change in behaviour in libapt.

Specifically http://anonscm.debian.org/gitweb/?p=apt/apt.git;a=commit;h=446551c8ffd2c9cb9dcd707c94590e73009f7dd9

Changed in landscape-client:
assignee: Adam Collard (adam-collard) → Björn Tillenius (bjornt)
Changed in landscape-client:
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Andreas, or anyone else affected,

Accepted landscape-client into utopic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/landscape-client/14.12-0ubuntu0.14.10 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Andreas, or anyone else affected,

Accepted landscape-client into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/landscape-client/14.12-0ubuntu0.14.04 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This change only affects trusty, but I verified that the code is there and that it doesn't break package handling on utopic.

I used the package in utopic-proposed:

root@juju-andreas-canonistack2-machine-2:~# apt-cache policy landscape-client
landscape-client:
  Installed: 14.12-0ubuntu0.14.10
  Candidate: 14.12-0ubuntu0.14.10
  Version table:
 *** 14.12-0ubuntu0.14.10 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ utopic-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     14.01-0ubuntu3 0
        500 http://nova.clouds.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Verified with the package from trusty-proposed:

root@juju-machine-0-lxc-25:~# apt-cache policy landscape-client
landscape-client:
  Installed: 14.12-0ubuntu0.14.04
  Candidate: 14.12-0ubuntu0.14.04
  Version table:
 *** 14.12-0ubuntu0.14.04 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     14.01-0ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

Revision history for this message
Chris J Arges (arges) wrote :

Hello Andreas, or anyone else affected,

Accepted landscape-client into lucid-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/landscape-client/14.12-0ubuntu0.10.04 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-done-trusty verification-done-utopic
Revision history for this message
Chris Glass (tribaal) wrote :

Verified with the package in lucid-proposed:

tribaal@ubuntu:~$ apt-cache policy landscape-client
landscape-client:
  Installed: 14.12-0ubuntu0.10.04
  Candidate: 14.12-0ubuntu0.10.04
  Version table:
 *** 14.12-0ubuntu0.10.04 0
        500 http://deb-mirror.habari.co.tz/ubuntu/ lucid-proposed/main Packages
        100 /var/lib/dpkg/status
     13.07.3-0ubuntu0.10.04 0
        500 http://deb-mirror.habari.co.tz/ubuntu/ lucid-updates/main Packages
     1.5.0.1-0ubuntu0.10.04.0 0
        500 http://deb-mirror.habari.co.tz/ubuntu/ lucid/main Packages

tags: added: verification-done-lucid
Revision history for this message
Chris Glass (tribaal) wrote :

Verified (that the tests pass) with the package in precise-proposed:

tribaal@ubuntu:~$ apt-cache policy landscape-client
landscape-client:
  Installed: 14.12-0ubuntu0.12.04
  Candidate: 14.12-0ubuntu0.12.04
  Version table:
 *** 14.12-0ubuntu0.12.04 0
        500 http://deb-mirror.habari.co.tz/ubuntu/ precise-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     13.07.3-0ubuntu0.12.04 0
        500 http://deb-mirror.habari.co.tz/ubuntu/ precise-updates/main amd64 Packages
     12.04.3-0ubuntu1 0
        500 http://deb-mirror.habari.co.tz/ubuntu/ precise/main amd64 Packages

tags: added: verification-done-precise
removed: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for landscape-client has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Timo Aaltonen (tjaalton)
Changed in landscape-client (Ubuntu Precise):
status: New → Fix Released
Changed in landscape-client (Ubuntu Lucid):
status: New → Fix Released
Changed in landscape-client (Ubuntu):
status: New → Fix Released
David Britton (dpb)
Changed in landscape-client:
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.