Page MenuHomeSoftware Heritage

Add a test for 'crates' lister
AbandonedPublicDraft

Authored by franckbret on Mar 17 2022, 7:17 PM.

Details

Reviewers
None
Group Reviewers
Reviewers
Required Signatures
L3 Software Heritage Contributor License Agreement, version 1.0

Diff Detail

Repository
rDLS Listers
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 27541
Build 43102: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 43101: arc lint + arc unit

Unit TestsFailed

TimeTest
0 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.bitbucket.tests.test_tasks::test_full_listing
swh_scheduler_celery_app = <Celery celery.tests at 0x7f0db6ca2128> swh_scheduler_celery_includes = ['swh.scheduler.tests.tasks', 'swh.lister.bitbucket.tasks', 'swh.lister.cgit.tasks', 'swh.lister.cran.tasks', 'swh.lister.crates.tasks', 'swh.lister.debian.tasks', ...]
0 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.bitbucket.tests.test_tasks::test_incremental_listing
swh_scheduler_celery_app = <Celery celery.tests at 0x7f0db6ca2128> swh_scheduler_celery_includes = ['swh.scheduler.tests.tasks', 'swh.lister.bitbucket.tasks', 'swh.lister.cgit.tasks', 'swh.lister.cran.tasks', 'swh.lister.crates.tasks', 'swh.lister.debian.tasks', ...]
1,179 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.bitbucket.tests.test_tasks::test_ping
swh_scheduler_celery_app = <Celery celery.tests at 0x7f0db6ca2128> swh_scheduler_celery_includes = ['swh.scheduler.tests.tasks', 'swh.lister.bitbucket.tasks', 'swh.lister.cgit.tasks', 'swh.lister.cran.tasks', 'swh.lister.crates.tasks', 'swh.lister.debian.tasks', ...]
0 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.cgit.tests.test_tasks::test_cgit_lister_task
swh_scheduler_celery_app = <Celery celery.tests at 0x7f0db6ca2128> swh_scheduler_celery_includes = ['swh.scheduler.tests.tasks', 'swh.lister.bitbucket.tasks', 'swh.lister.cgit.tasks', 'swh.lister.cran.tasks', 'swh.lister.crates.tasks', 'swh.lister.debian.tasks', ...]
1 msJenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.cgit.tests.test_tasks::test_cgit_ping
swh_scheduler_celery_app = <Celery celery.tests at 0x7f0db6ca2128> swh_scheduler_celery_includes = ['swh.scheduler.tests.tasks', 'swh.lister.bitbucket.tasks', 'swh.lister.cgit.tasks', 'swh.lister.cran.tasks', 'swh.lister.crates.tasks', 'swh.lister.debian.tasks', ...]
View Full Test Results (44 Failed · 157 Passed)

Event Timeline

Build has FAILED

Patch application report for D7375 (id=26658)

Could not rebase; Attempt merge onto fd03941c5f...

Updating fd03941..5547bc9
Fast-forward
 .pre-commit-config.yaml                            |   1 +
 setup.py                                           |   1 +
 swh/lister/crates/__init__.py                      |  12 +++
 swh/lister/crates/lister.py                        | 120 +++++++++++++++++++++
 swh/lister/crates/tests/__init__.py                |  29 +++++
 .../tests/data/fake-crates-repository.tar.gz       | Bin 0 -> 26518 bytes
 .../tests/data/fake_crates_repository_init.sh      |  34 ++++++
 swh/lister/crates/tests/test_lister.py             |  87 +++++++++++++++
 swh/lister/crates/tests/test_tasks.py              |   0
 9 files changed, 284 insertions(+)
 create mode 100644 swh/lister/crates/__init__.py
 create mode 100644 swh/lister/crates/lister.py
 create mode 100644 swh/lister/crates/tests/__init__.py
 create mode 100644 swh/lister/crates/tests/data/fake-crates-repository.tar.gz
 create mode 100755 swh/lister/crates/tests/data/fake_crates_repository_init.sh
 create mode 100644 swh/lister/crates/tests/test_lister.py
 create mode 100644 swh/lister/crates/tests/test_tasks.py
Changes applied before test
commit 5547bc9e32e9eecdf7190e1444cd24574b6e8a23
Author: Franck Bret <franck.bret@octobus.net>
Date:   Thu Mar 17 19:07:32 2022 +0100

    Add a test for 'crates' lister

commit fa7869cf9f9a863591d7e85d2659671abbcf6aca
Author: Franck Bret <franck.bret@octobus.net>
Date:   Thu Mar 17 12:13:04 2022 +0100

    WIP: Start rust crates lister

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

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 17 2022, 7:20 PM
Harbormaster failed remote builds in B27541: Diff 26658!

Cancelling to move those changes in D7367