Page MenuHomeSoftware Heritage

Rename imports of swh.model.identifiers to fix deprecation warnings.
ClosedPublic

Authored by vlorentz on Oct 5 2021, 3:07 PM.

Diff Detail

Repository
rDDEP Push deposit
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 24230
Build 37817: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 37816: arc lint + arc unit

Unit TestsFailed

TimeTest
105 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.test_utils::test_normalize_date_0
args = (), keywargs = {}, extra_args = [], entered_patchers = [] exc_info = (<class 'AttributeError'>, AttributeError("<module 'swh.deposit.utils' from '/var/lib/jenkins/workspace/DDEP/tests-on-...kages/swh/deposit/utils.py'> does not have the attribute 'normalize_timestamp'"), <traceback object at 0x7f9c9ef51d88>) patching = <unittest.mock._patch object at 0x7f9ca5ab8160>
114 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.test_utils::test_normalize_date_1
args = (), keywargs = {}, extra_args = [], entered_patchers = [] exc_info = (<class 'AttributeError'>, AttributeError("<module 'swh.deposit.utils' from '/var/lib/jenkins/workspace/DDEP/tests-on-...kages/swh/deposit/utils.py'> does not have the attribute 'normalize_timestamp'"), <traceback object at 0x7f9c9f33ed48>) patching = <unittest.mock._patch object at 0x7f9ca5ab8f28>
96 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.test_utils::test_normalize_date_doing_irrelevant_stuff
args = (), keywargs = {}, extra_args = [], entered_patchers = [] exc_info = (<class 'AttributeError'>, AttributeError("<module 'swh.deposit.utils' from '/var/lib/jenkins/workspace/DDEP/tests-on-...kages/swh/deposit/utils.py'> does not have the attribute 'normalize_timestamp'"), <traceback object at 0x7f9c9f3f54c8>) patching = <unittest.mock._patch object at 0x7f9ca5ab8128>
504 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_basic_auth::test_service_document_basic
125 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.api.test_checks::test_api_checks_check_metadata_ko[metadata_ko0-expected_summary0]
View Full Test Results (3 Failed · 278 Passed)

Event Timeline

Build has FAILED

Patch application report for D6413 (id=23317)

Rebasing onto d1b840de26...

Current branch diff-target is up to date.
Changes applied before test
commit 222a3c24e7c943a31583e891726ccfcf9e1e44fe
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Oct 5 15:07:12 2021 +0200

    Rename imports of swh.model.identifiers to fix deprecation warnings.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 5 2021, 3:10 PM
Harbormaster failed remote builds in B24230: Diff 23317!

Build has FAILED

Patch application report for D6413 (id=23318)

Rebasing onto d1b840de26...

Current branch diff-target is up to date.
Changes applied before test
commit 130af40df6c26b73fa30ca78db9902f4ad3965e1
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Oct 5 15:07:12 2021 +0200

    Rename imports of swh.model.identifiers to fix deprecation warnings.

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

Harbormaster returned this revision to the author for changes because remote builds failed.Oct 5 2021, 3:21 PM
Harbormaster failed remote builds in B24231: Diff 23318!

rebase on D6418 to have working tests

Build is green

Patch application report for D6413 (id=23335)

Could not rebase; Attempt merge onto d1b840de26...

Updating d1b840de..179dff0d
Fast-forward
 requirements-swh.txt                               |  2 +-
 swh/deposit/api/common.py                          | 12 +++---
 swh/deposit/api/edit.py                            |  2 +-
 swh/deposit/api/private/deposit_update_status.py   |  2 +-
 swh/deposit/migrations/0018_migrate_swhids.py      |  2 +-
 swh/deposit/tests/api/test_collection_post_atom.py |  2 +-
 swh/deposit/tests/api/test_deposit_update_atom.py  |  2 +-
 swh/deposit/tests/conftest.py                      |  2 +-
 swh/deposit/tests/test_utils.py                    | 49 +++++++++-------------
 swh/deposit/utils.py                               | 12 ++----
 10 files changed, 36 insertions(+), 51 deletions(-)
Changes applied before test
commit 179dff0dfaa4e906354d596cf9669347fe340e87
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Wed Oct 6 13:12:41 2021 +0200

    Rename imports of swh.model.identifiers to fix deprecation warnings.

commit 915c877fd7dfdf451169254c2e6c494341a48c6b
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Wed Oct 6 13:11:18 2021 +0200

    test_utils.py: Remove incorrect mocks

See https://jenkins.softwareheritage.org/job/DDEP/job/tests-on-diff/680/ for more details.

This revision is now accepted and ready to land.Oct 6 2021, 4:43 PM