qwan / fm-orchestrator

Forked from fm-orchestrator 6 years ago
Clone

aee0437 Clear up module_build_service.messaging

26 files Authored by cqi 4 years ago, Committed by qwan 4 years ago,
26 files changed. 493 lines added. 471 lines removed.
module_build_service/builder/KojiModuleBuilder.py
file modified
+3 -2
module_build_service/manage.py
file modified
+3 -2
module_build_service/messaging.py
file modified
+8 -274
module_build_service/models.py
file modified
+3 -2
module_build_service/scheduler/__init__.py
file modified
+0 -84
module_build_service/scheduler/consumer.py
file modified
+10 -9
module_build_service/scheduler/events.py
file added
+151
module_build_service/scheduler/handlers/components.py
file modified
+3 -2
module_build_service/scheduler/handlers/modules.py
file modified
+3 -3
module_build_service/scheduler/handlers/tags.py
file modified
+3 -2
module_build_service/scheduler/local.py
file added
+97
module_build_service/scheduler/parser.py
file added
+118
module_build_service/scheduler/producer.py
file modified
+5 -4
module_build_service/utils/batches.py
file modified
+2 -3
module_build_service/utils/reuse.py
file modified
+3 -3
tests/test_build/test_build.py
file modified
+12 -12
tests/test_builder/test_koji.py
file modified
+6 -5
tests/test_manage.py
file modified
+5 -5
tests/test_messaging.py
file modified
+8 -4
tests/test_scheduler/test_consumer.py
file modified
+1 -1
tests/test_scheduler/test_module_init.py
file modified
+5 -10
tests/test_scheduler/test_module_wait.py
file modified
+6 -10
tests/test_scheduler/test_poller.py
file modified
+2 -2
tests/test_scheduler/test_repo_done.py
file modified
+7 -6
tests/test_scheduler/test_tag_tagged.py
file modified
+25 -23
tests/test_utils/test_utils.py
file modified
+4 -3
    Clear up module_build_service.messaging
    
    Message classes and FedmsgMessageParser are moved into dedicated Python module
    under scheduler/ directory.
    
    FedmsgMessageParser is decoupled from messaging.py by initializing a parser
    object with known fedmsg services. This decouple avoids cycle import between
    parser.py and messaging.py.
    
    Signed-off-by: Chenxiong Qi <cqi@redhat.com>
    
        
file modified
+12 -12
file modified
+5 -5
file modified
+8 -4