Page MenuHomeSoftware Heritage

test_generate_content_get_no_result: Pass a multiple of 2 as number of partitions.
ClosedPublic

Authored by vlorentz on Oct 6 2020, 2:03 PM.

Details

Summary

This caused indexers to crash, but they caught the error and returned
uneventful instead.
A future commit will remove this exception silencing, so it will
make this test fail.

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Oct 6 2020, 2:04 PM

Build is green

Patch application report for D4155 (id=14647)

Could not rebase; Attempt merge onto 3ac0c155da...

Updating 3ac0c15..6535444
Fast-forward
 swh/indexer/tests/test_fossology_license.py | 2 +-
 swh/indexer/tests/utils.py                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Changes applied before test
commit 6535444922ebf2adc6182a0a54e0e9e1c3ce3cdc
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Oct 6 13:58:05 2020 +0200

    test_generate_content_get_no_result: Pass a multiple of 2 as number of partitions.
    
    This caused indexers to crash, but they caught the error and returned
    uneventful instead.
    A future commit will remove this exception silencing, so it will
    make this test fail.

commit 337ac3a79be87269d510b79b34c4fb981fea41e6
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Tue Oct 6 13:56:52 2020 +0200

    Fix invalid None value for the list of licenses in tests.
    
    This caused indexers to crash, but they caught the error and returned
    uneventful instead.
    A future commit will remove this exception silencing, so it will
    make tests fail.

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