From 1d37716be3ecb62ae8c230a01e6887c47f61f308 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Jan 22 2020 08:32:22 +0000 Subject: Add simple diagram version --- diff --git a/wiki-resources/plantuml/build.sh b/wiki-resources/plantuml/build.sh new file mode 100755 index 0000000..e16cb3f --- /dev/null +++ b/wiki-resources/plantuml/build.sh @@ -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 diff --git a/wiki-resources/plantuml/distgit-pr-approved-workflow-simple.plantuml b/wiki-resources/plantuml/distgit-pr-approved-workflow-simple.plantuml new file mode 100644 index 0000000..d5c3329 --- /dev/null +++ b/wiki-resources/plantuml/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 diff --git a/wiki-resources/plantuml/distgit-pr-updated-workflow-simple.plantuml b/wiki-resources/plantuml/distgit-pr-updated-workflow-simple.plantuml new file mode 100644 index 0000000..a0010a5 --- /dev/null +++ b/wiki-resources/plantuml/distgit-pr-updated-workflow-simple.plantuml @@ -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