feat: make sure the HTML and JSON files get created
This is the most rudimentary requirement. It does not verify they get updated as the CI broker continues running and doing things, as that’s a little difficult to arrange a test for.
This revealed a problem in how the cib process-events threads work
together, so fix that too. Changed the page updater thread to output
the HTML report and JSON status file at least once, even if there were
not events to process. In addition, the event processing thread uses a
timeout to receive notification of new events, so that it doesn’t get
stuck, if there aren’t any events coming from the node control socket.
Added some logging to make it easier to debug these things in the future.
Signed-off-by: Lars Wirzenius liw@liw.fi
5 files changed
+77
-14
413fd686
→
7a11bedc
modified ci-broker.md
@@ -243,6 +243,8 @@ given file adapter.sh from dummy.sh
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified src/bin/cib.rs
@@ -202,7 +202,8 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -229,6 +230,16 @@ impl ProcessEventsCmd {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/pages.rs
@@ -17,7 +17,7 @@ use std::{
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,6 +34,7 @@ use crate::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -108,6 +109,10 @@ struct PageData {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -148,8 +153,8 @@ impl PageData {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -493,31 +498,49 @@ impl StatusPage {
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -560,6 +583,10 @@ impl StatusPage {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/queueadd.rs
@@ -62,6 +62,8 @@ impl QueueAdder {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified src/queueproc.rs
@@ -2,7 +2,11 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -15,6 +19,8 @@ use crate::{
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -69,23 +75,38 @@ impl QueueProcessor {
|
|
|
|
|
|
| + | |
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|