test_subunit_tags sometimes fails

Bug #1782938 reported by Jerry James
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subunit
Triaged
High
Unassigned
subunit (Fedora)
In Progress
Undecided

Bug Description

When we build subunit for the Fedora Linux distribution, we run the test suite to catch bugs we may have introduced via packaging. However, test_subunit_tags.py sometimes succeeds and sometimes fails. We have seen the failures with versions 1.2.0 and 1.3.0. Typically, the test will fail on only one architecture out of the 7 we support. Also typically, if we simply try running the build again immediately after a failure, it succeeds the second time.

This is typical output from the test when it fails:

Tests running...
======================================================================
FAIL: subunit.tests.test_subunit_tags.TestSubUnitTags.test_add_tag
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/subunit-1.3.0/python3/python/subunit/tests/test_subunit_tags.py", line 68, in test_add_tag
    self.assertThat(reference, Contains(self.filtered.getvalue()))
  File "/usr/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: b'\xb3)\x82\x17\x04test\x02\x03foo\x04quux\xa6\xe1\xde\xec\xb3)\x83\x1b\x04test\x03\x04quux\x03foo\x03bar\xaf\xbd\x9d\xd6' not in [b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x03bar\x04quux\x03fooqn\xab)', b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x04quux\x03foo\x03bar\xaf\xbd\x9d\xd6', b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x04quux\x03bar\x03foo\x03\x04b\r', b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x03bar\x03foo\x04quux\xd2\x18\x1bC', b'\xb3)\x82\x17\x04test\x02\x03foo\x04quux\xa6\xe1\xde\xec\xb3)\x83\x1b\x04test\x03\x03foo\x04quux\x03bar\x08\xc2X\x83', b'\xb3)\x82\x17\x04test\x02\x03foo\x04quux\xa6\xe1\xde\xec\xb3)\x83\x1b\x04test\x03\x03bar\x03foo\x04quux\xd2\x18\x1bC', b'\xb3)\x82\x17\x04test\x02\x03foo\x04quux\xa6\xe1\xde\xec\xb3)\x83\x1b\x04test\x03\x03foo\x03bar\x04quux:\x05e\x80']
Ran 532 tests in 2.450s
FAILED (failures=1)
make[1]: *** [Makefile:1596: check-local] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/subunit-1.3.0/python3'

Revision history for this message
In , Petr (petr-redhat-bugs) wrote :

subunit-1.2.0-20.fc29 fails to build in F29 because this test fails randomly:

Tests running...
======================================================================
FAIL: subunit.tests.test_subunit_tags.TestSubUnitTags.test_add_tag
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/subunit-1.2.0/python3/python/subunit/tests/test_subunit_tags.py", line 68, in test_add_tag
    self.assertThat(reference, Contains(self.filtered.getvalue()))
  File "/usr/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x03foo\x04quux\x03bar\x08\xc2X\x83' not in [b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x03bar\x04quux\x03fooqn\xab)', b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x04quux\x03foo\x03bar\xaf\xbd\x9d\xd6', b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x04quux\x03bar\x03foo\x03\x04b\r', b'\xb3)\x82\x17\x04test\x02\x04quux\x03foo\x05\x97n\x86\xb3)\x83\x1b\x04test\x03\x03bar\x03foo\x04quux\xd2\x18\x1bC', b'\xb3)\x82\x17\x04test\x02\x03foo\x04quux\xa6\xe1\xde\xec\xb3)\x83\x1b\x04test\x03\x03foo\x04quux\x03bar\x08\xc2X\x83', b'\xb3)\x82\x17\x04test\x02\x03foo\x04quux\xa6\xe1\xde\xec\xb3)\x83\x1b\x04test\x03\x03bar\x03foo\x04quux\xd2\x18\x1bC', b'\xb3)\x82\x17\x04test\x02\x03foo\x04quux\xa6\xe1\xde\xec\xb3)\x83\x1b\x04test\x03\x03foo\x03bar\x04quux:\x05e\x80']
Ran 526 tests in 3.232s
FAILED (failures=1)
make[1]: Leaving directory '/builddir/build/BUILD/subunit-1.2.0/python3'

Once it failed on ppc64le <https://koji.fedoraproject.org/koji/taskinfo?taskID=27900773>, once on s390x <https://koji.fedoraproject.org/koji/taskinfo?taskID=27999623>.

Because of that I cannot rebuild subunit against Perl 5.28. This issue will become visible when I merge f29-perl side-tag into f29 tag in Koji.

Revision history for this message
In , Jerry (jerry-redhat-bugs) wrote :

Yes, it's been doing that for awhile now. I haven't been successful in tracking it down. I will see if version 1.3.0 has a fix for the issue. If not, I will at least ask upstream to look into it.

Revision history for this message
In , Jerry (jerry-redhat-bugs) wrote :

I just did a build of 1.3.0 and it succeeded on all arches, which doesn't necessarily mean this bug has been fixed. On the negative side, I completely forgot about the side tag when I submitted the build, so now I get to do another build...

Revision history for this message
In , Jerry (jerry-redhat-bugs) wrote :

The rebuild for f29-perl also succeeded on all arches. I think I will do a few scratch builds to see if this bug happens again before declaring that it has been fixed, though.

Revision history for this message
In , Jerry (jerry-redhat-bugs) wrote :

Alas, this bug popped up again during the mass rebuild. I will ask upstream to check into it.

Revision history for this message
In , Jan (jan-redhat-bugs) wrote :

This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Revision history for this message
Jerry James (loganjerry) wrote :

This bug is still causing random build failures in Fedora. Do any of you subunit developers have any idea at all what might be going wrong here? We would really like to make subunit builds reliable.

Changed in subunit (Fedora):
importance: Unknown → Undecided
status: Unknown → In Progress
Jelmer Vernooij (jelmer)
Changed in subunit:
status: New → Triaged
importance: Undecided → High
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.