[Qa-jenkins-scm] Build failed in Jenkins: reproducible_diffoscope_from_git_branches #174

jenkins at jenkins.debian.net jenkins at jenkins.debian.net
Thu Jun 1 17:32:11 UTC 2017


See <https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/174/display/redirect?page=changes>

Changes:

[infinity0] WIP fix string checking

------------------------------------------
[...truncated 488.12 KB...]
    @skip_unless_tools_exist('msgunfmt')
    def test_charsets(mo_no_charset, mo_iso8859_1):
>       difference = mo_no_charset.compare(mo_iso8859_1)

mo_iso8859_1 = <<class 'diffoscope.comparators.utils.specialize.MoFile'> /tmp/testrun/.pybuild/pythonX.Y_3.5/build/tests/data/test_iso8859-1.mo>
mo_no_charset = <<class 'diffoscope.comparators.utils.specialize.MoFile'> /tmp/testrun/.pybuild/pythonX.Y_3.5/build/tests/data/test_no_charset.mo>

tests/comparators/test_gettext.py:55: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/utils/file.py:271: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/utils/file.py:217: in _compare_using_details
    details.extend(self.compare_details(other, source))
diffoscope/comparators/gettext.py:67: in compare_details
    return [Difference.from_command(Msgunfmt, self.path, other.path)]
diffoscope/difference.py:197: in from_command
    difference = Difference.from_feeder(feeder1, feeder2, path1, path2, *args, **kwargs)
diffoscope/difference.py:140: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/diff.py:250: in diff
    return run_diff(fifo1_path, fifo2_path, fifo1.end_nl_q, fifo2.end_nl_q)
diffoscope/diff.py:207: in __exit__
    self.join()
diffoscope/diff.py:241: in join
    raise self._exception
diffoscope/diff.py:230: in run
    end_nl = self.feeder(fifo)
diffoscope/difference.py:265: in feeder
    end_nl = make_feeder_from_raw_reader(command.stdout, command.filter)(out_file)
diffoscope/difference.py:284: in feeder
    out = filter(buf)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <diffoscope.comparators.gettext.Msgunfmt object at 0x7f03385da048>
line = b'msgid ""\n'

    def filter(self, line):
        if not self._encoding:
            self._header.write(line)
            if line == b'\n':
                logger.debug("unable to determine PO encoding, let's hope it's utf-8")
                self._encoding = 'utf-8'
                return self._header.getvalue()
>           found = Msgunfmt.CHARSET_RE.match(line)
E           TypeError: cannot use a string pattern on a bytes-like object

line       = b'msgid ""\n'
self       = <diffoscope.comparators.gettext.Msgunfmt object at 0x7f03385da048>

diffoscope/comparators/gettext.py:52: TypeError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/diff.py", line 230, in run
    end_nl = self.feeder(fifo)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 265, in feeder
    end_nl = make_feeder_from_raw_reader(command.stdout, command.filter)(out_file)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 284, in feeder
    out = filter(buf)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/comparators/gettext.py", line 52, in filter
    found = Msgunfmt.CHARSET_RE.match(line)
TypeError: cannot use a string pattern on a bytes-like object
Traceback (most recent call last):
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/diff.py", line 230, in run
    end_nl = self.feeder(fifo)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 265, in feeder
    end_nl = make_feeder_from_raw_reader(command.stdout, command.filter)(out_file)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 284, in feeder
    out = filter(buf)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/comparators/gettext.py", line 52, in filter
    found = Msgunfmt.CHARSET_RE.match(line)
TypeError: cannot use a string pattern on a bytes-like object
__________________________ test_compare_non_existing ___________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f033874cd30>
mo1 = <<class 'diffoscope.comparators.utils.specialize.MoFile'> /tmp/testrun/.pybuild/pythonX.Y_3.5/build/tests/data/test1.mo>

    @skip_unless_tools_exist('msgunfmt')
    def test_compare_non_existing(monkeypatch, mo1):
        monkeypatch.setattr(Config(), 'new_file', True)
>       difference = mo1.compare(MissingFile('/nonexisting', mo1))

mo1        = <<class 'diffoscope.comparators.utils.specialize.MoFile'> /tmp/testrun/.pybuild/pythonX.Y_3.5/build/tests/data/test1.mo>
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f033874cd30>

tests/comparators/test_gettext.py:62: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
diffoscope/comparators/utils/file.py:271: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/utils/file.py:217: in _compare_using_details
    details.extend(self.compare_details(other, source))
diffoscope/comparators/gettext.py:67: in compare_details
    return [Difference.from_command(Msgunfmt, self.path, other.path)]
diffoscope/difference.py:197: in from_command
    difference = Difference.from_feeder(feeder1, feeder2, path1, path2, *args, **kwargs)
diffoscope/difference.py:140: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/diff.py:250: in diff
    return run_diff(fifo1_path, fifo2_path, fifo1.end_nl_q, fifo2.end_nl_q)
diffoscope/diff.py:207: in __exit__
    self.join()
diffoscope/diff.py:241: in join
    raise self._exception
diffoscope/diff.py:230: in run
    end_nl = self.feeder(fifo)
diffoscope/difference.py:265: in feeder
    end_nl = make_feeder_from_raw_reader(command.stdout, command.filter)(out_file)
diffoscope/difference.py:284: in feeder
    out = filter(buf)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <diffoscope.comparators.gettext.Msgunfmt object at 0x7f033874cda0>
line = b'msgid ""\n'

    def filter(self, line):
        if not self._encoding:
            self._header.write(line)
            if line == b'\n':
                logger.debug("unable to determine PO encoding, let's hope it's utf-8")
                self._encoding = 'utf-8'
                return self._header.getvalue()
>           found = Msgunfmt.CHARSET_RE.match(line)
E           TypeError: cannot use a string pattern on a bytes-like object

line       = b'msgid ""\n'
self       = <diffoscope.comparators.gettext.Msgunfmt object at 0x7f033874cda0>

diffoscope/comparators/gettext.py:52: TypeError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/diff.py", line 230, in run
    end_nl = self.feeder(fifo)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 265, in feeder
    end_nl = make_feeder_from_raw_reader(command.stdout, command.filter)(out_file)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 284, in feeder
    out = filter(buf)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/comparators/gettext.py", line 52, in filter
    found = Msgunfmt.CHARSET_RE.match(line)
TypeError: cannot use a string pattern on a bytes-like object
__________________________ test_compare_non_existing ___________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0338570240>
rlib1 = <<class 'diffoscope.comparators.utils.specialize.ArFile'> /tmp/testrun/.pybuild/pythonX.Y_3.5/build/tests/data/test1.rlib>

    @skip_unless_tools_exist('nm')
    def test_compare_non_existing(monkeypatch, rlib1):
>       assert_non_existing(monkeypatch, rlib1)

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f0338570240>
rlib1      = <<class 'diffoscope.comparators.utils.specialize.ArFile'> /tmp/testrun/.pybuild/pythonX.Y_3.5/build/tests/data/test1.rlib>

tests/comparators/test_rlib.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/utils/nonexisting.py:29: in assert_non_existing
    difference = fixture.compare(MissingFile('/nonexisting', fixture))
diffoscope/comparators/utils/file.py:271: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/utils/file.py:226: in _compare_using_details
    details.extend(self.as_container.compare(other.as_container, no_recurse=no_recurse))
diffoscope/comparators/utils/container.py:164: in compare_pair
    difference = compare_files(file1, file2, source=None, diff_content_only=no_recurse)
diffoscope/comparators/utils/compare.py:95: in compare_files
    return file1.compare(file2, source)
diffoscope/comparators/utils/file.py:271: in compare
    difference = self._compare_using_details(other, source)
diffoscope/comparators/utils/file.py:226: in _compare_using_details
    details.extend(self.as_container.compare(other.as_container, no_recurse=no_recurse))
diffoscope/comparators/utils/container.py:164: in compare_pair
    difference = compare_files(file1, file2, source=None, diff_content_only=no_recurse)
diffoscope/comparators/utils/compare.py:95: in compare_files
    return file1.compare(file2, source)
diffoscope/comparators/elf.py:330: in compare
    command_args=[self._name],
diffoscope/difference.py:197: in from_command
    difference = Difference.from_feeder(feeder1, feeder2, path1, path2, *args, **kwargs)
diffoscope/difference.py:140: in from_feeder
    unified_diff = diff(feeder1, feeder2)
diffoscope/diff.py:250: in diff
    return run_diff(fifo1_path, fifo2_path, fifo1.end_nl_q, fifo2.end_nl_q)
diffoscope/diff.py:207: in __exit__
    self.join()
diffoscope/diff.py:241: in join
    raise self._exception
diffoscope/diff.py:230: in run
    end_nl = self.feeder(fifo)
diffoscope/difference.py:265: in feeder
    end_nl = make_feeder_from_raw_reader(command.stdout, command.filter)(out_file)
diffoscope/difference.py:284: in feeder
    out = filter(buf)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <diffoscope.comparators.elf.ObjdumpDisassembleSection object at 0x7f033843ddd8>
line = b'\n'

    def filter(self, line):
        line = super(ObjdumpDisassembleSection, self).filter(line)
>       return ObjdumpDisassembleSection.RE_SYMBOL_COMMENT.sub(r'\1', line)
E       TypeError: cannot use a string pattern on a bytes-like object

__class__  = <class 'diffoscope.comparators.elf.ObjdumpDisassembleSection'>
line       = b'\n'
self       = <diffoscope.comparators.elf.ObjdumpDisassembleSection object at 0x7f033843ddd8>

diffoscope/comparators/elf.py:238: TypeError
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/diff.py", line 230, in run
    end_nl = self.feeder(fifo)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 265, in feeder
    end_nl = make_feeder_from_raw_reader(command.stdout, command.filter)(out_file)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/difference.py", line 284, in feeder
    out = filter(buf)
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/comparators/elf.py", line 238, in filter
    return ObjdumpDisassembleSection.RE_SYMBOL_COMMENT.sub(r'\1', line)
TypeError: cannot use a string pattern on a bytes-like object
========= 8 failed, 314 passed, 15 skipped, 10 error in 415.31 seconds =========
Fatal Python error: PyImport_GetModuleDict: no module dictionary!

Current thread 0x00007f034cc74700 (most recent call first):
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/tempfiles.py", line 109 in cleanup
  File "/tmp/testrun/.pybuild/pythonX.Y_3.5/build/diffoscope/tempfiles.py", line 116 in __del__
Aborted
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=134: cd /tmp/testrun/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest -vv -r sxX -l --cov=diffoscope --cov-report=term-missing --cov-report=html --junit-xml=/tmp/job-exports/test-results/tests.xml
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.5 returned exit code 13
debian/rules:35: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc failed
+ cleanup
+ '[' -e /chroots/chroot-run-sid.MYjzcutxC/tmp/testrun/stats.csv ']'
+ '[' true = true ']'
+ mkdir -p <https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/ws/job-exports>
++ ls -1A /chroots/chroot-run-sid.MYjzcutxC//tmp/job-exports
+ '[' '!' -z test-results ']'
+ cp -drv /chroots/chroot-run-sid.MYjzcutxC//tmp/job-exports/test-results <https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/ws/job-exports/>
‘/chroots/chroot-run-sid.MYjzcutxC//tmp/job-exports/test-results’ -> ‘<https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/ws/job-exports/test-results%E2%80%99>
‘/chroots/chroot-run-sid.MYjzcutxC//tmp/job-exports/test-results/tests.xml’ -> ‘<https://jenkins.debian.net/job/reproducible_diffoscope_from_git_branches/ws/job-exports/test-results/tests.xml%E2%80%99>
++ ls -1 '/chroots/chroot-run-sid.MYjzcutxC/tmp/debian-edu-doc_*.changes'
++ true
+ CHANGES=
+ '[' '!' -z '' ']'
+ '[' false = true ']'
+ '[' -d /chroots/chroot-run-sid.MYjzcutxC/proc ']'
+ sudo umount -l /chroots/chroot-run-sid.MYjzcutxC/proc
+ '[' -d /chroots/chroot-run-sid.MYjzcutxC/testrun ']'
+ '[' -d /chroots/chroot-run-sid.MYjzcutxC ']'
+ sudo rm -rf --one-file-system /chroots/chroot-run-sid.MYjzcutxC
Thu  1 Jun 17:32:11 UTC 2017 - /srv/jenkins/bin/chroot-run.sh stopped running as /tmp/jenkins-script-Tq5l0TTp, which will now be removed.
Build step 'Execute shell' marked build as failure



More information about the Qa-jenkins-scm mailing list