fix: capture and log all stderr from adapter
Previously, we failed to capture all of stderr from the adapter if the adapter sent messages to its stdout could not be parsed, or otherwise meant the CI broker deduced the CI run had failed. Now we read all of stderr (module time limits) before returning an error result.
Signed-off-by: Lars Wirzenius liw@liw.fi
3 files changed
+84
-27
7a754fe1
→
09db9b76
modified ci-broker.md
@@ -588,7 +588,7 @@ error output. This makes it easier to debug adapter problems.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -598,9 +598,22 @@ when I run ./env.sh cibtool --db ci-broker.db event list --json
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/adapter.rs
@@ -15,6 +15,8 @@ use std::{
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -22,7 +24,7 @@ use crate::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -102,7 +104,52 @@ impl Adapter {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -116,13 +163,11 @@ impl Adapter {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -135,49 +180,48 @@ impl Adapter {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
| + | |
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/timeoutcmd.rs
@@ -138,7 +138,7 @@ impl TimeoutCommand {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|