Page MenuHomeSoftware Heritage

Make the origin visit scheduling cooldown configurable
ClosedPublic

Authored by olasd on Jun 21 2021, 4:46 PM.

Details

Summary

Split off from D5809, now with tests

Test Plan

new tests added for non default values of the cooldown

Diff Detail

Repository
rDSCH Scheduling utilities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5901 (id=21163)

Rebasing onto 9e1b4145fe...

Current branch diff-target is up to date.
Changes applied before test
commit 4027b3ef7b832036146525849faee78cfbc0091c
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Mon Jun 21 16:34:21 2021 +0200

    Make the origin visit scheduling cooldown configurable

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

olasd requested review of this revision.Jun 21 2021, 4:49 PM
ardumont added inline comments.
swh/scheduler/tests/test_scheduler.py
773

?

lgtm, one test docstring sentence phrasing improvment inline.

This revision is now accepted and ready to land.Jun 21 2021, 5:06 PM

Update backoff checking logic to vary the grab timestamp instead of the configured backoff

Build is green

Patch application report for D5901 (id=21169)

Rebasing onto 9e1b4145fe...

Current branch diff-target is up to date.
Changes applied before test
commit 1bcfd5a0b1aedcbb4f3a2511b897e4d7e0b70fc9
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Mon Jun 21 16:34:21 2021 +0200

    Make the origin visit scheduling cooldown configurable

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

Only vary the backoff test timestamp by 1 second

Build is green

Patch application report for D5901 (id=21179)

Rebasing onto 9e1b4145fe...

Current branch diff-target is up to date.
Changes applied before test
commit 73121c76c21080e1ee2dba79532d9901860f4777
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Mon Jun 21 17:36:00 2021 +0200

    Make the origin visit scheduling cooldown configurable

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

Build is green

Patch application report for D5901 (id=21217)

Rebasing onto 7f51f274ed...

Current branch diff-target is up to date.
Changes applied before test
commit ce8608d1f8887993ae6ddf56169cb4c117243461
Author: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date:   Mon Jun 21 17:36:00 2021 +0200

    Make the origin visit scheduling cooldown configurable

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