Page MenuHomeSoftware Heritage

gitlab: Adapt requests retry policy to consider HTTP 50x status codes
ClosedPublic

Authored by anlambert on Jul 23 2021, 1:54 PM.

Details

Summary

Temporarily server failures can happen when listing a GitLab instance,
HTTP status codes 502, 503 or 520 are returned in that case.

So adapt lister requests retry policy to execute requests again when
such errors are encountered.

Related to T3442

Diff Detail

Repository
rDLS Listers
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 D6020 (id=21759)

Rebasing onto f00d41d0cd...

Current branch diff-target is up to date.
Changes applied before test
commit 73f85c0b8a429c973334606263722fc3086178c1
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Fri Jul 23 13:51:10 2021 +0200

    gitlab: Adapt requests retry policy to consider HTTP 50x status codes
    
    Temporarily server failures can happen when listing a GitLab instance,
    HTTP status codes 502, 503 or 520 are returned in that case.
    
    So adapt lister requests retry policy to execute requests again when
    such errors are encountered.
    
    Related to T3442

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

This revision is now accepted and ready to land.Jul 23 2021, 1:58 PM