Page MenuHomeSoftware Heritage

debian: Provide last_update to produced ListedOrigin models
ClosedPublic

Authored by anlambert on Dec 3 2021, 4:14 PM.

Details

Summary

Use the value of the "Last-Modified" header from the HTTP response
resulting of the debian sources index HTTP request.

It will prevent to create loading tasks for debian packages with no
changes since last listing.

Related to T2400

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

ardumont published this revision for review.Dec 3 2021, 4:16 PM
ardumont added a subscriber: ardumont.

Awesome!

This revision is now accepted and ready to land.Dec 3 2021, 4:16 PM

Build is green

Patch application report for D6743 (id=24484)

Rebasing onto 605b13a676...

Current branch diff-target is up to date.
Changes applied before test
commit 93f17d4d9cb103d39448d4eed2031a825e3c0125
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Fri Dec 3 16:09:36 2021 +0100

    debian: Provide last_update to produced ListedOrigin models
    
    Use the value of the "Last-Modified" header from the HTTP response
    resulting of the debian sources index HTTP request.
    
    It will prevent to create loading tasks for debian packages with no
    changes since last listing.
    
    Related to T2400

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