Page MenuHomeSoftware Heritage

tests: Reuse loader-core test utility function
ClosedPublic

Authored by ardumont on Jul 6 2020, 6:10 PM.

Details

Summary

As mentioned in D3428

Related to T2482

Depends on D3431 D3432 D3433

Test Plan

tox
(failing until release swh.loader.core 0.5.2)

Diff Detail

Repository
rDLDG Git loader
Branch
migrate-pytest
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 13392
Build 20478: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 20477: arc lint + arc unit

Unit TestsFailed

TimeTest
0 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.git.tests.test_from_disk
ImportError while importing test module '/var/lib/jenkins/workspace/DLDG/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/git/tests/test_from_disk.py'. Hint: make sure your test modules/packages have valid Python names. Traceback:
0 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.git.tests.test_loader
ImportError while importing test module '/var/lib/jenkins/workspace/DLDG/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/git/tests/test_loader.py'. Hint: make sure your test modules/packages have valid Python names. Traceback:

Event Timeline

Build has FAILED

Patch application report for D3438 (id=12172)

Rebasing onto f0e48ff781...

Current branch diff-target is up to date.
Changes applied before test
commit d767b5b2c34fb6ce901ac28137c9421b13327f40
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 6 18:07:58 2020 +0200

    tests: Reuse loader-core test utility function
    
    Related to T2482

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

Use proper version requirement on loader-core

Build has FAILED

Patch application report for D3438 (id=12173)

Rebasing onto f0e48ff781...

Current branch diff-target is up to date.
Changes applied before test
commit fc2ec733aa5cc9e0d1682c1359a447b9aa2e2ac9
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 6 18:07:58 2020 +0200

    tests: Reuse loader-core test utility function
    
    Related to T2482

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

This revision is now accepted and ready to land.Jul 7 2020, 9:41 AM

Build is green

Patch application report for D3438 (id=12173)

Rebasing onto f0e48ff781...

Current branch diff-target is up to date.
Changes applied before test
commit fc2ec733aa5cc9e0d1682c1359a447b9aa2e2ac9
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Jul 6 18:07:58 2020 +0200

    tests: Reuse loader-core test utility function
    
    Related to T2482

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