diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-19 18:45:36 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-19 22:58:43 +0300 |
commit | 7a4c92e7171d642a1e1fce324441710ad4d44ce9 (patch) | |
tree | 290526533839801bf060df347f8ee32232f3e1e5 /yarns/500-build-fail.yarn | |
parent | b11d31ef23c5dfee6bfa54afbec47fc8b8bab7b1 (diff) | |
download | ick2-7a4c92e7171d642a1e1fce324441710ad4d44ce9.tar.gz |
Change: use build graphs in build resources, instead of action list
Diffstat (limited to 'yarns/500-build-fail.yarn')
-rw-r--r-- | yarns/500-build-fail.yarn | 53 |
1 files changed, 41 insertions, 12 deletions
diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn index 59a2e67..4d4071a 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -88,6 +88,7 @@ Worker wants work and gets the first step to run. ... "worker": "obelix", ... "project": "rome", ... "parameters": {}, + ... "action_id": "1", ... "step": { ... "action": "create_workspace", ... "where": "host" @@ -139,13 +140,27 @@ There's a build with a log. ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", - ... "actions": [ - ... { "where": "host", "action": "create_workspace" }, - ... { "where": "host", "shell": "day 1" }, - ... { "where": "host", "shell": "day 2" } - ... ], - ... "current_action": null, ... "parameters": {}, + ... "graph": { + ... "1": { + ... "status": "failed", + ... "depends": [], + ... "action": { + ... "action": "create_workspace", + ... "where": "host" + ... } + ... }, + ... "2": { + ... "status": "blocked", + ... "depends": ["1"], + ... "action": {"shell": "day 1", "where": "host"} + ... }, + ... "3": { + ... "status": "blocked", + ... "depends": ["2"], + ... "action": {"shell": "day 2", "where": "host"} + ... } + ... }, ... "status": 1 ... } ... ] @@ -160,13 +175,27 @@ There's a build with a log. ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", - ... "actions": [ - ... { "where": "host", "action": "create_workspace" }, - ... { "where": "host", "shell": "day 1" }, - ... { "where": "host", "shell": "day 2" } - ... ], - ... "current_action": null, ... "parameters": {}, + ... "graph": { + ... "1": { + ... "status": "failed", + ... "depends": [], + ... "action": { + ... "action": "create_workspace", + ... "where": "host" + ... } + ... }, + ... "2": { + ... "status": "blocked", + ... "depends": ["1"], + ... "action": {"shell": "day 1", "where": "host"} + ... }, + ... "3": { + ... "status": "blocked", + ... "depends": ["2"], + ... "action": {"shell": "day 2", "where": "host"} + ... } + ... }, ... "status": 1 ... } |