Page MenuHomeSoftware Heritage

gnu.tests: Check gnu lister
ClosedPublic

Authored by ardumont on Oct 4 2019, 6:30 PM.

Details

Summary

This triggers a gnu listing and checks the output from the scheduler.

For this, a new swh-listers fixture got added.
This allows to retrieve a test ready lister from its name (e.g gnu).
Those listers have then access to a scheduler fixture to be able to
check the lister's output in the scheduler backend.

Related T2023

Test Plan

tox

Diff Detail

Repository
rDLS Listers
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 8126
Build 11713: tox-on-jenkinsJenkins
Build 11712: arc lint + arc unit

Event Timeline

  • gnu.tests: Checks lister output from scheduler
  • core.models: Fix typo
ardumont retitled this revision from gnu.tests: Add basic listing check from a tree.json.gz to gnu.tests: Check gnu listing.Oct 5 2019, 12:56 PM
ardumont edited the summary of this revision. (Show Details)
ardumont added projects: Lister, Origin-GNU.
ardumont retitled this revision from gnu.tests: Check gnu listing to gnu.tests: Check gnu lister.
douardda added inline comments.
swh/lister/gnu/tests/test_lister.py
19–26

wouldn't it be the right moment to (at least) move this in swh/lister/core/tests/conftest.py (or so)?

This revision now requires changes to proceed.Oct 7 2019, 10:24 AM
swh/lister/gnu/tests/test_lister.py
19–26

I entertained the idea then i did not really know how to "properly" handle the DATADIR which is different between listers.

swh/lister/gnu/tests/test_lister.py
19–26

wip in swh-core

swh/lister/gnu/tests/test_lister.py
19–26

no longer wip, it's happening -> D2082

This revision is now accepted and ready to land.Oct 8 2019, 1:39 PM

Include the tox.ini fix.

  • tox.ini: Use tests installed files instead of working directory
This revision was landed with ongoing or failed builds.Oct 9 2019, 5:39 PM
This revision was automatically updated to reflect the committed changes.