Bug 1710715 - test failure with borgbackup 1.1.10 (F30)
Summary: test failure with borgbackup 1.1.10 (F30)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: borgbackup
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Persona non grata
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1669083
TreeView+ depends on / blocked
 
Reported: 2019-05-16 07:22 UTC by Felix Schwarz
Modified: 2019-05-16 18:25 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-16 18:25:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github borgbackup borg issues 4573 0 None None None 2019-05-16 07:54:39 UTC

Description Felix Schwarz 2019-05-16 07:22:24 UTC
Various test failures:
https://koji.fedoraproject.org/koji/taskinfo?taskID=34880986

s390x:
build/lib.linux-s390x-3.7/borg/testsuite/archiver.py::ArchiverTestCase::test_delete_force FAILED [  3%]
=================================== FAILURES ===================================
______________________ ArchiverTestCase.test_delete_force ______________________
self = <borg.testsuite.archiver.ArchiverTestCase testMethod=test_delete_force>
    def test_delete_force(self):
        self.cmd('init', '--encryption=none', self.repository_location)
        self.create_src_archive('test')
        with Repository(self.repository_path, exclusive=True) as repository:
            manifest, key = Manifest.load(repository, Manifest.NO_OPERATION_CHECK)
            archive = Archive(repository, key, manifest, 'test')
            for item in archive.iter_items():
                if 'chunks' in item:
>                   first_chunk_id = item.chunks[0].id
E                   IndexError: list index out of range
build/lib.linux-s390x-3.7/borg/testsuite/archiver.py:1493: IndexError
======= 1 failed, 81 passed, 2 skipped, 142 deselected in 23.20 seconds ========


x86_64
build/lib.linux-i686-3.7/borg/testsuite/archiver.py::ArchiverTestCase::test_corrupted_repository FAILED [ 50%]
=================================== FAILURES ===================================
__________________ ArchiverTestCase.test_corrupted_repository __________________
self = <borg.testsuite.archiver.ArchiverTestCase testMethod=test_corrupted_repository>
    def test_corrupted_repository(self):
        self.cmd('init', '--encryption=repokey', self.repository_location)
        self.create_src_archive('test')
        self.cmd('extract', '--dry-run', self.repository_location + '::test')
        output = self.cmd('check', '--show-version', self.repository_location)
        self.assert_in('borgbackup version', output)  # implied output even without --info given
>       self.assert_not_in('Starting repository check', output)  # --info not given for root logger
E       AssertionError: 'Starting repository check' unexpectedly found in 'borgbackup version 1.1.10\nStarting repository check\nStarting repository index check\nCompleted repository check, no problems found.\n'
build/lib.linux-i686-3.7/borg/testsuite/archiver.py:1523: AssertionError

Comment 1 Felix Schwarz 2019-05-16 18:25:50 UTC
This is a pytest bug: pytest 3.7/3.8/3.9 prevent borg's testsuite from completing successfully. Luckily I can get the tests to pass by just excluding "test_corrupted_repository".

I can not reproduce the s390x failure.


Note You need to log in before you can comment on or make changes to this bug.