Page MenuHomeSoftware Heritage

common/service: Migrate origin_search to latest apis change
ClosedPublic

Authored by ardumont on Jul 30 2020, 10:56 PM.

Details

Summary

Related to T645

Test Plan

tox
(failing until swh.storage > 0.11.6 and swh.search > 0.0.4 releases)

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14119
Build 21687: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 21686: arc lint + arc unit

Unit TestsFailed

TimeTest
28 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_origin::Tests / Python tests / test_api_origin_search[swh-search]
api_client = <rest_framework.test.APIClient object at 0x7fabd81719e8> mocker = <pytest_mock.plugin.MockFixture object at 0x7fabd82361d0> backend = 'swh-search'
10 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_origin::Tests / Python tests / test_api_origin_search[swh-storage]
api_client = <rest_framework.test.APIClient object at 0x7fabd81719e8> mocker = <pytest_mock.plugin.MockFixture object at 0x7fabd822c278> backend = 'swh-storage'
71 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_origin::Tests / Python tests / test_api_origin_search_limit[swh-search]
api_client = <rest_framework.test.APIClient object at 0x7fabd81719e8> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7fabd936c320> tests_data = {'contents': [{'blake2s256': '8be9488e471c288e4196841d00735d7d501e81bee3ace986c2e2e5adad44b272', 'data': '\nWindows\nD...^\x14\xe9\xd7\xb1M\x8fq\xf8\x8b\xdf\xc7\x005\xc4', b'dr\xa6\xb4\xb3\x0c\xbab8\x17\x06\xb7jL]\xeaX\xc2!\xb8', ...}, ...}
63 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_origin::Tests / Python tests / test_api_origin_search_limit[swh-storage]
api_client = <rest_framework.test.APIClient object at 0x7fabd81719e8> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7fabd936c320> tests_data = {'contents': [{'blake2s256': '8be9488e471c288e4196841d00735d7d501e81bee3ace986c2e2e5adad44b272', 'data': '\nWindows\nD...^\x14\xe9\xd7\xb1M\x8fq\xf8\x8b\xdf\xc7\x005\xc4', b'dr\xa6\xb4\xb3\x0c\xbab8\x17\x06\xb7jL]\xeaX\xc2!\xb8', ...}, ...}
8 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_origin::Tests / Python tests / test_api_origin_search_scroll[1-swh-search]
api_client = <rest_framework.test.APIClient object at 0x7fabd81719e8> archive_data = <swh.web.tests.conftest._ArchiveData object at 0x7fabd936c320> mocker = <pytest_mock.plugin.MockFixture object at 0x7fabd815a8d0>, limit = 1
View Full Test Results (20 Failed · 523 Passed · 7 Skipped)

Event Timeline

Build has FAILED

Patch application report for D3661 (id=12882)

Rebasing onto b712b2679e...

Current branch diff-target is up to date.
Changes applied before test
commit 6ae2352f7a3277647fc3622a6cac1bceccf647f0
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Jul 30 22:55:35 2020 +0200

    common/service: Migrate origin_search to latest apis change
    
    Related to T645

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

This revision is now accepted and ready to land.Jul 31 2020, 11:36 AM

Adapt according to latest change in swh-search (should still fail as release
from storage is missing)

Build has FAILED

Patch application report for D3661 (id=12915)

Rebasing onto b712b2679e...

Current branch diff-target is up to date.
Changes applied before test
commit ddfb658d250236ad02c173ba4c018f02992550f3
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Jul 30 22:55:35 2020 +0200

    common/service: Migrate origin_search to latest apis change
    
    Related to T645

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

Build is green

Patch application report for D3661 (id=12915)

Rebasing onto b712b2679e...

Current branch diff-target is up to date.
Changes applied before test
commit ddfb658d250236ad02c173ba4c018f02992550f3
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Thu Jul 30 22:55:35 2020 +0200

    common/service: Migrate origin_search to latest apis change
    
    Related to T645

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