Page MenuHomeSoftware Heritage

test_db/test_db_copy_to: Fix hypothesis FailedHealthCheck error
ClosedPublic

Authored by anlambert on May 17 2022, 1:29 PM.

Details

Summary

With latest version of hypothesis, this test often raises the following
error:

hypothesis.errors.FailedHealthCheck: Data generation is extremely slow ...

Setting the number of hypothesis examples for that test to a lower value
makes the error goes away.

This should also fix that test execution in the swh-environment/tests
Jenkins job which often fails.

See tests report on https://jenkins.softwareheritage.org/job/DENV/job/tests/

Diff Detail

Event Timeline

Build is green

Patch application report for D7842 (id=28321)

Rebasing onto 60f384d35a...

Current branch diff-target is up to date.
Changes applied before test
commit 9fed30b5b05799d00e4619b42c95e851caa821e9
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue May 17 11:46:33 2022 +0200

    test_db/test_db_copy_to: Fix hypothesis FailedHealthCheck error
    
    With latest version of hypothesis, this test often raises the following
    error:
    
    hypothesis.errors.FailedHealthCheck: Data generation is extremely slow ...
    
    Setting the number of hypothesis examples for that test to a lower value
    makes the error goes away.
    
    This should also fix that test execution in the swh-environment/tests
    Jenkins job which often fails.

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

This revision is now accepted and ready to land.May 17 2022, 2:30 PM

Build is green

Patch application report for D7842 (id=28323)

Rebasing onto 6fa229792d...

Current branch diff-target is up to date.
Changes applied before test
commit e77c68ab91bc939ae66b0762c9fd9a44f5b3a121
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue May 17 11:46:33 2022 +0200

    test_db/test_db_copy_to: Fix hypothesis FailedHealthCheck error
    
    With latest version of hypothesis, this test often raises the following
    error:
    
    hypothesis.errors.FailedHealthCheck: Data generation is extremely slow ...
    
    Setting the number of hypothesis examples for that test to a lower value
    makes the error goes away.
    
    This should also fix that test execution in the swh-environment/tests
    Jenkins job which often fails.

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