Radish alpha
r
rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE
Radicle CI adapter for native CI
Radicle
Git
fix: send "triggered" message immediately
Lars Wirzenius committed 2 years ago
commit b7d0f037f3fd4cd25f1fe55a86d6569d1b127526
parent 71e0c94
2 files changed +3 -3
modified doc/architecture.md
@@ -29,11 +29,11 @@ The child process is called "the CI adapter" in this document.
Native CI works like this:

* reads a request message from its standard input
+
* writes a response message saying it starts a run, to its standard
+
  output
* clones the git repository in the request
* switches to the commit in the request
* reads the `.radicle/native.yaml` file in the repository
-
* writes a response message saying it starts a run, to its standard
-
  output
* executes the shell snippet in the `.native.yaml` file
* writes a response message with the result of the run
* writes a log file based on what it did
modified doc/architecture.uml
@@ -8,11 +8,11 @@ participant "/bin/bash" as shell
participant "index.html" as index

broker -> ci : request message
+
ci -> broker : response: triggered
ci -> node   : git clone
node -> repo
ci -> repo   : read native.yaml
repo -> ci
-
ci -> broker : response: triggered
ci -> shell  : execute desired commands
shell -> ci  : stdout, stderr, exit
ci -> broker : response: result