Page MenuHomeSoftware Heritage

Remove unnecessary use of BytesIO
ClosedPublic

Authored by vlorentz on Feb 23 2022, 1:43 PM.

Diff Detail

Unit TestsFailed

TimeTest
1,567 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_collection_add_to_origin::test_add_deposit_add_to_origin_conflict
authenticated_client = <rest_framework.test.APIClient object at 0x7f8502c79978> deposit_collection = <DepositCollection: {'id': 11, 'name': 'test'}> deposit_another_collection = <DepositCollection: {'id': 12, 'name': 'another-collection'}>
1,740 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_collection_add_to_origin::test_add_deposit_add_to_wrong_origin
authenticated_client = <rest_framework.test.APIClient object at 0x7f8502bcaf98> deposit_collection = <DepositCollection: {'id': 13, 'name': 'test'}> atom_dataset = {'codemeta-sample': '<?xml version="1.0"?>\n <entry xmlns="http://www.w3.org/2005/Atom"\n xmlns:d...ntry>\n', 'entry-data-empty-body': '<?xml version="1.0"?>\n<entry xmlns="http://www.w3.org/2005/Atom"></entry>\n', ...}
1,366 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_collection_add_to_origin::test_add_deposit_with_add_to_origin
raw_content = b'<entry xmlns="http://www.w3.org/2005/Atom"\n xmlns:sword="http://purl.org/net/sword/terms/"\n xmlns:dcte...1/test/1/status/" />\n\n <sword:packaging>http://purl.org/net/sword/package/SimpleZip</sword:packaging>\n</entry>\n' def parse_xml(raw_content):
1,539 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_collection_add_to_origin::test_add_deposit_with_add_to_origin_and_external_identifier
raw_content = b'<entry xmlns="http://www.w3.org/2005/Atom"\n xmlns:sword="http://purl.org/net/sword/terms/"\n xmlns:dcte...1/test/3/status/" />\n\n <sword:packaging>http://purl.org/net/sword/package/SimpleZip</sword:packaging>\n</entry>\n' def parse_xml(raw_content):
1,889 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_collection_add_to_origin::test_post_deposit_atom_403_add_to_wrong_origin_url_prefix
authenticated_client = <rest_framework.test.APIClient object at 0x7f8502da6898> deposit_collection = <DepositCollection: {'id': 15, 'name': 'test'}> atom_dataset = {'codemeta-sample': '<?xml version="1.0"?>\n <entry xmlns="http://www.w3.org/2005/Atom"\n xmlns:d...ntry>\n', 'entry-data-empty-body': '<?xml version="1.0"?>\n<entry xmlns="http://www.w3.org/2005/Atom"></entry>\n', ...}
View Full Test Results (157 Failed · 128 Passed)

Event Timeline

Build has FAILED

Patch application report for D7229 (id=26203)

Rebasing onto 5a7d59cb2c...

First, rewinding head to replay your work on top of it...
Applying: Remove unnecessary use of BytesIO
Changes applied before test
commit a351c9ba00b39c2abdb957b2359412a35b7eec8d
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Wed Feb 23 13:43:33 2022 +0100

    Remove unnecessary use of BytesIO

Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/739/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/739/console

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 23 2022, 1:52 PM
Harbormaster failed remote builds in B27076: Diff 26203!
This revision is now accepted and ready to land.Feb 23 2022, 6:39 PM

Build has FAILED

Patch application report for D7229 (id=26220)

Rebasing onto 5a7d59cb2c...

Current branch diff-target is up to date.
Changes applied before test
commit 79be8e1c74e15607d4ced35fc2f2de1359c02ecb
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Wed Feb 23 13:43:33 2022 +0100

    Remove unnecessary use of BytesIO

Link to build: https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/748/
See console output for more information: https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/748/console

This revision was landed with ongoing or failed builds.Feb 24 2022, 10:02 AM
This revision was automatically updated to reflect the committed changes.