dcavalca / pungi-fedora

Forked from pungi-fedora 8 months ago
Clone

f56b24d composes: keep metadata where it won't be garbage collected

Authored and Committed by adamwill 10 months ago
    composes: keep metadata where it won't be garbage collected
    
    This copies the metadata for nightly composes to a separate
    location which will not be garbage-collected, so we have a store
    of metadata from old composes now PDC is gone. It also writes
    the compose's compose ID into a "series" file, which makes it
    possible to sanely do things like "what was the compose before
    this compose?" without having PDC.
    
    The metadata for a full compose weighs about 150M. Almost all of
    this is rpms.json; withut that it's under 100K. If 150M per
    compose for eternity is too big, we could leave out rpms.json.
    
    The series file for Rawhide will grow eternally, but it's just a
    text file. We do one compose per day (usually), so in 100 years
    it'll be 36500 lines long, which doesn't really seem like a
    problem.
    
    This backport incorporates the follow-up commits to fix quoting,
    store the metadata by year, and create the series directory
    before writing to it.
    
    Signed-off-by: Adam Williamson <awilliam@redhat.com>
    
        
file modified
+11 -0
file modified
+11 -0
file modified
+11 -0
file modified
+11 -0