jkaluza / freshmaker

Forked from freshmaker 7 years ago
Clone

272576b Build images according to configurable Errata state

Authored and Committed by cqi 6 years ago
    Build images according to configurable Errata state
    
    * Use whitelist to allow to rebuild by advisory state. For development,
      either running freshmaker in development mode or running tests, states
      REL_PREP, PUSH_READY, IN_PUSH, SHIPPED_LIVE are set.
    * ErrataAdvisoryRPMsSignedHandler.handle is changed. If the advisory
      being handled currently is in SHIPPED_LIVE, do not request comopse
      from ODCS for it and start to rebuild the first batch images
      immediately.
    * Add new property errata_state to event class
      ErrataAdvisoryRPMsSignedEvent. It is used in
      ErrataAdvisoryRPMsSignedHandler.handle. And all code that initiate
      ErrataAdvisoryRPMsSignedEvent event object are updated by passing
      advisory.state accordingly.
    * Calling allow_build in BrewSignRPMHandler.handle and
      ErrataAdvisoryStateChangedHandler.handle by passing advisory state to
      determine whether the state is allowed by whitelist.
    * Add tests.
    
    Signed-off-by: Chenxiong Qi <cqi@redhat.com>
    
        
file modified
+17 -0
file modified
+34 -0
file modified
+2 -1
file modified
+3 -3