otaylor / rpkg

Forked from rpkg 5 years ago
Clone

5cce3d5 Create stats for module builds in 'init' state

1 file Authored by csomh 4 years ago, Committed by onosek 4 years ago,
    Create stats for module builds in 'init' state
    
    When watching builds, the dictionary to track module build progress was
    not populated with tracking information due to an early 'continue'
    statement.
    
    This caused watching builds fail when builds transitioned from 'init' to
    'build' state between two watch cycles, with:
    
        Could not execute module_build: 'tasks_stats'
    
    This happened when building modules without any components and starting
    the watch as soon as the build was submitted.
    
    Treating 'init' as any other state solves this issue, as the 'build'
    branch in 'module_watch_build()' will find tracking information
    pre-populated.
    
    This is safe to do since 02affb4: we won't fail on an empty 'tasks'
    dictionary.
    
    Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
    
    Merges: https://pagure.io/rpkg/pull-request/478
    
        
file modified
+0 -3