#39 Add simple diagram version
Merged 5 years ago by zuul. Opened 5 years ago by fbo.
fbo/fedora-project-config simple-diag  into  master

@@ -0,0 +1,6 @@ 

+ #!/bin/sh

+ 

+ java -jar ~fabien/plantuml.jar distgit-pr-updated-workflow.plantuml

+ java -jar ~fabien/plantuml.jar distgit-pr-approved-workflow.plantuml

+ java -jar ~fabien/plantuml.jar distgit-pr-updated-workflow-simple.plantuml

+ java -jar ~fabien/plantuml.jar distgit-pr-approved-workflow-simple.plantuml

@@ -0,0 +1,42 @@ 

+ @startuml

+ 

+ skinparam DefaultFontSize 18

+ skinparam monochrome true

+ hide footbox

+ title Example of a Pull Request Approved Workflow for a Distgit

+ 

+ actor Human

+ participant src.fp.org

+ participant Zuul

+ participant Koji

+ 

+ Human -> src.fp.org : Flag the PR with "gateit"

+ 

+ activate src.fp.org

+ src.fp.org -> Zuul : Notify

+ activate "Zuul"

+ 

+ == gate pipeline ==

+ Zuul -> Zuul : noop job

+ Zuul -> src.fp.org : Return CI Status

+ Zuul -> src.fp.org : Merge the Pull Request

+ deactivate Zuul

+ == End of gate pipeline ==

+ 

+ src.fp.org -> Zuul : Notify "Pull Request merged"

+ 

+ == promote pipeline ==

+ activate Zuul

+ activate Koji

+ group job rpm-build run

+   Zuul -> Koji : Request a Koji build

+   Zuul -> Koji : Fetch artifacts (RPMs and build logs)

+ end

+ Deactivate Koji

+ group job rpm-build run

+ Zuul -> Zuul : Store result and artifacts

+ Zuul -> src.fp.org : Return logs/artifacts links as comments

+ deactivate Zuul

+ == End of promote pipeline ==

+ 

+ @enduml

@@ -0,0 +1,39 @@ 

+ @startuml

+ skinparam DefaultFontSize 18

+ skinparam monochrome true

+ hide footbox

+ title Example of a Pull Request Created/Updated Workflow for a Distgit

+ 

+ actor Human

+ participant src.fp.org

+ participant Zuul

+ participant Koji

+ 

+ Human -> src.fp.org : Open/Update/Recheck a PR

+ 

+ activate src.fp.org

+ src.fp.org -> Zuul : Notify

+ activate Zuul

+ 

+ == check pipeline ==

+ group job rpm-scratch-build run

+   Zuul -> Zuul : Starts rpm-scratch-build exec

+   Zuul -> Koji : Request scratch build

+   activate Koji

+   Koji -> Koji : Exec scratch build

+   Zuul -> Koji : Fetch artifacts (RPMs and build logs)

+   deactivate Koji

+ end

+ Zuul -> Zuul : Store result and artifacts in the store

+ group job rpm-rpmlint and rpm-rpminspect runs in //

+   Zuul -> Zuul : Fetch artifacts (rpms) form store

+   Zuul -> Zuul : Starts the linter command

+ end

+ Zuul -> Zuul : Store result and artifacts

+ Zuul -> src.fp.org : Return CI status

+ Zuul -> src.fp.org : Return logs/artifacts links as comments

+ deactivate Zuul

+ deactivate src.fp.org

+ == End of check pipeline ==

+ 

+ @enduml