python-bleach: Non-determistically FTBFS due to unreliable tests

Bug #1508302 reported by Logan Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-bleach (Debian)
Fix Released
Unknown
python-bleach (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/798441:

Source: python-bleach
Version: 1.4-1
Severity: serious
Justification: fails to build from source
User: <email address hidden>
Usertags: ftbfs
X-Debbugs-Cc: <email address hidden>

Dear Maintainer,

python-bleach's testsuite can non-deterministically fail, causing the
package
to FTBFS:

  [..]
  nosetests3
  ...................F............................................................................................................
  ======================================================================
  FAIL: Make sure that applying the filter twice doesn't change
  anything.
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in
    runTest
      self.test(*self.arg)
    File "/tmp/buildd/python-bleach-1.4/bleach/tests/test_basics.py",
    line 156, in test_idempotent
      eq_(linked, bleach.linkify(linked))
  AssertionError: '<span>invalid &amp; </span> &lt; extra <a
  rel="nofollow" href="http://link.com">http://link.com</a><em></em>' !=
  '<span>invalid &amp; </span> &lt; extra <a href="http://link.com"
  rel="nofollow">http://link.com</a><em></em>'

  ----------------------------------------------------------------------
  Ran 128 tests in 1.007s

  FAILED (failures=1)
  debian/rules:13: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 1
  make[1]: Leaving directory '/tmp/buildd/python-bleach-1.4'
  debian/rules:6: recipe for target 'build' failed
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  [..]

You can see demonstrate this by leaving this to run for a minute or so:

  $ while nosetests3 bleach.tests.test_basics:test_idempotent; do :;
  done

Curiously, I cannot reproduce when running the tests under Python 2.X
which may help track down the underlying issue.

The full build log is attached or can be viewed here:

    https://reproducible.debian.net/logs/unstable/amd64/python-bleach_1.4-1.build2.log.gz

Regards,

--
      ,''`.
     : :' : Chris Lamb
     `. `'` <email address hidden> / chris-lamb.co.uk
       `-

Tags: ftbfs
Logan Rosen (logan)
Changed in python-bleach (Ubuntu):
status: New → Triaged
importance: Undecided → High
tags: added: ftbfs
description: updated
Changed in python-bleach (Debian):
importance: Undecided → Unknown
status: New → Confirmed
Changed in python-bleach (Debian):
status: Confirmed → Fix Released
Revision history for this message
Logan Rosen (logan) wrote :

This bug was fixed in the package python-bleach - 1.4.2-1

---------------
python-bleach (1.4.2-1) unstable; urgency=low

  [ Per Andersson ]
  * Bump debhelper compat level to 9 (level 8 is required in Build-Depends).
  * Add extend-diff-ignore for egg.info in debian/source/options.
  * d/watch: Use github.com, githubredir is deprecated.
  * Use my @debian.org address.
  * Use HTTPS protocol for Homepage and Vcs-* fields.

  [ Christopher Baines ]
  * New upstream release.
    - Includes fix upstream fix for #798441 (Closes: #798441).
  * Up standards version to 3.9.6, no changes required.

 -- Per Andersson <email address hidden> Mon, 22 Feb 2016 20:38:36 +0100

Changed in python-bleach (Ubuntu):
status: Triaged → 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.