Log from Radicle native CI

Request message

{
  "request": "trigger",
  "version": 1,
  "event_type": "patch",
  "repository": {
    "id": "rad:zwTxygwuz5LDGBq255RA2CbNGrz8",
    "name": "radicle-ci-broker",
    "description": "Radicle CI broker",
    "private": false,
    "default_branch": "main",
    "delegates": [
      "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
      "did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT"
    ]
  },
  "action": "Updated",
  "patch": {
    "id": "ea15ef8044858595510653206ec330bae7a3029d",
    "author": {
      "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
      "alias": "liw"
    },
    "title": "fix(ci-broker.md): avoid race condition by waiting up to a limit",
    "state": {
      "status": "open",
      "conflicts": []
    },
    "before": "58ceb33620b9b2dbeb8642f3cbf70b85d167d1ca",
    "after": "c372c5b3e12f8116aca27304b6e8b5bf474d9d01",
    "commits": [
      "c372c5b3e12f8116aca27304b6e8b5bf474d9d01",
      "1705946968f48d0af9d2c7ef66a58e71f06e9eb5",
      "0d28dde3b2d3b732a2e535af12d82d929b40ada2",
      "e2553dc8b13614bfb1090d0557e8a9aef0a6fd54"
    ],
    "target": "58ceb33620b9b2dbeb8642f3cbf70b85d167d1ca",
    "labels": [],
    "assignees": [],
    "revisions": [
      {
        "id": "ea15ef8044858595510653206ec330bae7a3029d",
        "author": {
          "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
          "alias": "liw"
        },
        "description": "Previously we did \"sleep 0.1\" to wait for the mock node\ndaemon (synthetic-events) to delete the control socket, when it ends.\nThis is too short for some environments where the scenario gets run.\n\nFix this by waiting for the socket to be deleted for some reasonably\nlarge time limit, but checking for it being removed every second.\n\nSigned-off-by: Lars Wirzenius <liw@liw.fi>",
        "base": "40cb793a547656ddfed9250823b7b603e33e64ab",
        "oid": "b99b0798622eb7795fdab889ecfa2b8299ceb09b",
        "timestamp": 1724766017
      },
      {
        "id": "81c6bff23c32e9a1553480819f76704630b8db05",
        "author": {
          "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
          "alias": "liw"
        },
        "description": "",
        "base": "dd043e01544de42afd1245441f6bf83a4dab7ba7",
        "oid": "50443efd41fe0c3d29103a502fe5d28b03336858",
        "timestamp": 1724824747
      },
      {
        "id": "6083d2f9e4461924cbb915586512f8de21654e6d",
        "author": {
          "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
          "alias": "liw"
        },
        "description": "Rebase on main.",
        "base": "58ceb33620b9b2dbeb8642f3cbf70b85d167d1ca",
        "oid": "e2553dc8b13614bfb1090d0557e8a9aef0a6fd54",
        "timestamp": 1724859262
      },
      {
        "id": "ee65639673790ae02932d042e5d65ee2587d8772",
        "author": {
          "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
          "alias": "liw"
        },
        "description": "fix: teach synthetic-events to connect to its daemon\n\nThis means we don't need the non-portable nc.\n\nSigned-off-by: Lars Wirzenius <liw@liw.fi>",
        "base": "58ceb33620b9b2dbeb8642f3cbf70b85d167d1ca",
        "oid": "0d28dde3b2d3b732a2e535af12d82d929b40ada2",
        "timestamp": 1724861598
      },
      {
        "id": "fc0a5cc513be81093af1bb44374cd9b17c004797",
        "author": {
          "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
          "alias": "liw"
        },
        "description": "fix(src/bin/synthetic-events.rs):\n\nFix client code to close its write end and read until end. This avoids\ncrashing the daemon.\n\nAlso: Refactor into smaller functions, for comprehensibility. Log\nerrors in the daemon to the log file. Write errors from other parts to\nstderr.\n\nSigned-off-by: Lars Wirzenius <liw@liw.fi>",
        "base": "58ceb33620b9b2dbeb8642f3cbf70b85d167d1ca",
        "oid": "1705946968f48d0af9d2c7ef66a58e71f06e9eb5",
        "timestamp": 1724920367
      },
      {
        "id": "d9fafa201065651143217697ab506c03ee91ad6e",
        "author": {
          "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
          "alias": "liw"
        },
        "description": "feat(src/bin/synthetic-events.rs): show daemon log when client fails\n\nSigned-off-by: Lars Wirzenius <liw@liw.fi>",
        "base": "58ceb33620b9b2dbeb8642f3cbf70b85d167d1ca",
        "oid": "c372c5b3e12f8116aca27304b6e8b5bf474d9d01",
        "timestamp": 1724921974
      }
    ]
  }
}

.radicle/native.yaml

shell: |
  cargo --version
  rustc --version

  cargo fmt --check
  cargo clippy --all-targets --workspace -- -Dwarnings
  cargo build --all-targets --workspace
  cargo doc --workspace
  cargo test --workspace --no-fail-fast

  subplot docgen ci-broker.subplot -o doc/ci-broker.html
  make -C doc publish

Table of contents

Run: git clone /home/_rad/.radicle/storage/zwTxygwuz5LDGBq255RA2CbNGrz8 /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/srv/http/692acd22-b040-4b46-b034-5b62944c9946/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src

Exit code: 0

Run: git checkout c372c5b3e12f8116aca27304b6e8b5bf474d9d01

Command arguments:

In directory: /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at c372c5b feat(src/bin/synthetic-events.rs): show daemon log when client fails

Run: git show c372c5b3e12f8116aca27304b6e8b5bf474d9d01

Command arguments:

In directory: /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src

Exit code: 0

Output (stdout and stderr):

commit c372c5b3e12f8116aca27304b6e8b5bf474d9d01
Author: Lars Wirzenius <liw@liw.fi>
Date:   Thu Aug 29 11:59:02 2024 +0300

    feat(src/bin/synthetic-events.rs): show daemon log when client fails
    
    Signed-off-by: Lars Wirzenius <liw@liw.fi>

diff --git a/ci-broker.md b/ci-broker.md
index 897f099..a683be5 100644
--- a/ci-broker.md
+++ b/ci-broker.md
@@ -598,10 +598,10 @@ given file wait-for-file-gone.sh
 
 then file synt.sock does not exist
 
-when I run synthetic-events synt.sock
+when I run synthetic-events --log daemon.log synt.sock
 then file synt.sock exists
 
-when I run synthetic-events --client synt.sock
+when I run synthetic-events --client --log daemon.log synt.sock
 then file synt.sock does not exist
 ~~~
 
diff --git a/src/bin/synthetic-events.rs b/src/bin/synthetic-events.rs
index 00674a4..3b3b2e0 100644
--- a/src/bin/synthetic-events.rs
+++ b/src/bin/synthetic-events.rs
@@ -82,6 +82,11 @@ fn client(args: &Args) -> anyhow::Result<()> {
             elapsed.as_millis()
         );
         if elapsed > MAX_WAIT {
+            if let Some(filename) = args.log.as_ref() {
+                let log = std::fs::read(filename)?;
+                let log = String::from_utf8_lossy(&log);
+                eprintln!("daemon log {}:\n====\n{log}\n----\n", filename.display());
+            }
             panic!(
                 "waited too long for {} to be deleted",
                 args.socket.display()
@@ -135,7 +140,7 @@ fn daemon(args: &Args) -> anyhow::Result<()> {
             log(f, "daemon finished reading\n".into());
         }
 
-        remove_file(&args.socket)?;
+        // remove_file(&args.socket)?;
         log(f, "daemon ends\n".into());
 
         Ok(())

Run: timeout 600 bash -c set -xeuo pipefail cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- -Dwarnings cargo build --all-targets --workspace cargo doc --workspace cargo test --workspace --no-fail-fast subplot docgen ci-broker.subplot -o doc/ci-broker.html make -C doc publish

Command arguments:

In directory: /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src

Exit code: 101

Output (stdout and stderr):

+ cargo --version
cargo 1.80.1 (376290515 2024-07-16)
+ rustc --version
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- -Dwarnings
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling version_check v0.9.5
   Compiling libc v0.2.158
   Compiling typenum v1.17.0
    Checking cfg-if v1.0.0
   Compiling shlex v1.3.0
   Compiling serde v1.0.209
   Compiling thiserror v1.0.63
   Compiling memchr v2.7.4
   Compiling once_cell v1.19.0
   Compiling syn v1.0.109
   Compiling byteorder v1.5.0
    Checking subtle v2.6.1
   Compiling bitflags v2.6.0
   Compiling crossbeam-utils v0.8.20
   Compiling pkg-config v0.3.30
   Compiling rustix v0.38.34
   Compiling anyhow v1.0.86
   Compiling linux-raw-sys v0.4.14
   Compiling log v0.4.22
   Compiling generic-array v0.14.7
   Compiling ahash v0.8.11
   Compiling regex-syntax v0.8.4
   Compiling itoa v1.0.11
    Checking cpufeatures v0.2.13
   Compiling utf8parse v0.2.2
   Compiling allocator-api2 v0.2.18
   Compiling num-conv v0.1.0
   Compiling time-core v0.1.2
   Compiling same-file v1.0.6
   Compiling anstyle-parse v0.2.5
   Compiling aho-corasick v1.1.3
   Compiling walkdir v2.5.0
   Compiling time-macros v0.2.18
   Compiling ucd-trie v0.1.6
   Compiling anstyle v1.0.8
   Compiling is_terminal_polyfill v1.70.1
   Compiling colorchoice v1.0.2
   Compiling anstyle-query v1.1.1
   Compiling bstr v1.10.0
   Compiling quote v1.0.37
   Compiling anstream v0.6.15
   Compiling unic-char-range v0.9.0
   Compiling powerfmt v0.2.0
   Compiling vcpkg v0.2.15
   Compiling heck v0.5.0
   Compiling unic-common v0.9.0
   Compiling syn v2.0.76
   Compiling jobserver v0.1.32
   Compiling getrandom v0.2.15
   Compiling crossbeam-epoch v0.9.18
   Compiling doc-comment v0.3.3
   Compiling unicode-width v0.1.13
   Compiling libm v0.2.8
   Compiling rand_core v0.6.4
   Compiling cc v1.1.14
   Compiling crossbeam-deque v0.8.5
   Compiling deranged v0.3.11
   Compiling unic-ucd-version v0.9.0
   Compiling unic-char-property v0.9.0
   Compiling unicase v2.7.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling encoding_rs v0.8.34
   Compiling arraydeque v0.5.1
   Compiling strsim v0.11.1
    Checking tinyvec_macros v0.1.1
   Compiling serde_json v1.0.127
   Compiling fastrand v2.1.1
   Compiling clap_lex v0.7.2
    Checking tinyvec v1.8.0
    Checking crypto-common v0.1.6
    Checking block-padding v0.3.3
    Checking block-buffer v0.10.4
    Checking inout v0.1.3
    Checking universal-hash v0.5.1
   Compiling clap_builder v4.5.15
    Checking digest v0.10.7
    Checking cipher v0.4.4
   Compiling unic-ucd-segment v0.9.0
   Compiling proc-macro-error v1.0.4
   Compiling pulldown-cmark v0.12.0
   Compiling deunicode v1.6.0
   Compiling tempfile v3.12.0
   Compiling time v0.3.36
    Checking signature v1.6.4
   Compiling regex-automata v0.4.7
   Compiling smawk v0.3.2
    Checking opaque-debug v0.3.1
   Compiling unicode-linebreak v0.1.5
   Compiling ryu v1.0.18
   Compiling amplify_syn v2.0.1
    Checking unicode-normalization v0.1.23
   Compiling humansize v2.1.3
   Compiling textwrap v0.16.1
   Compiling slug v0.1.6
    Checking ed25519 v1.5.3
   Compiling unic-segment v0.9.0
   Compiling getopts v0.2.21
   Compiling subplot v0.11.0
    Checking unicode-bidi v0.3.15
   Compiling libz-sys v1.1.20
   Compiling pikchr v0.1.3
   Compiling libgit2-sys v0.16.2+1.7.2
   Compiling lazy_static v1.5.0
    Checking ct-codecs v1.1.1
    Checking ascii v1.1.0
   Compiling percent-encoding v2.3.1
   Compiling pulldown-cmark-escape v0.11.0
   Compiling humantime v2.1.0
   Compiling utf8-width v0.1.7
    Checking amplify_num v0.5.3
   Compiling html-escape v0.2.13
    Checking form_urlencoded v1.2.1
    Checking ec25519 v0.1.0
    Checking idna v0.5.0
   Compiling sqlite3-src v0.5.1
    Checking polyval v0.6.2
   Compiling amplify_derive v4.0.1
    Checking sha2 v0.10.8
   Compiling tracing-core v0.1.32
   Compiling file_diff v1.0.0
   Compiling line-col v0.2.1
    Checking keccak v0.1.5
   Compiling base64 v0.22.1
    Checking base64ct v1.6.0
   Compiling pin-project-lite v0.2.14
    Checking url v2.5.2
    Checking sha3 v0.10.8
    Checking ghash v0.5.1
    Checking ctr v0.9.2
    Checking aes v0.8.4
    Checking pem-rfc7468 v0.7.0
    Checking aead v0.5.2
   Compiling data-encoding v2.6.0
    Checking hashbrown v0.14.5
    Checking equivalent v1.0.1
    Checking base32 v0.4.0
   Compiling cfg_aliases v0.2.1
    Checking ssh-encoding v0.2.0
   Compiling nix v0.29.0
   Compiling globset v0.4.14
   Compiling regex v1.10.6
    Checking aes-gcm v0.10.3
    Checking blowfish v0.9.1
    Checking poly1305 v0.8.0
    Checking cbc v0.1.2
    Checking chacha20 v0.9.1
   Compiling ignore v0.4.22
    Checking indexmap v2.4.0
   Compiling env_filter v0.1.2
    Checking pbkdf2 v0.12.2
   Compiling env_logger v0.11.5
    Checking zeroize v1.8.1
    Checking radicle-std-ext v0.1.0
   Compiling adler2 v2.0.0
    Checking bcrypt-pbkdf v0.10.0
    Checking ssh-cipher v0.2.0
   Compiling miniz_oxide v0.8.0
   Compiling data-encoding-macro-internal v0.1.13
    Checking rand v0.8.5
   Compiling xattr v1.3.1
   Compiling filetime v0.2.24
   Compiling crc32fast v1.4.2
    Checking base-x v0.2.11
   Compiling globwalk v0.9.1
    Checking signature v2.2.0
   Compiling slog v2.7.0
   Compiling tar v0.4.41
    Checking ssh-key v0.6.6
    Checking qcheck v1.0.0
   Compiling flate2 v1.0.33
    Checking cvt v0.1.2
    Checking data-encoding-macro v0.1.15
    Checking multibase v0.9.1
   Compiling glob v0.3.1
    Checking terminal_size v0.3.0
    Checking radicle-dag v0.9.0
    Checking amplify v4.7.0
    Checking normpath v1.3.0
   Compiling serde_yml v0.0.11
   Compiling radicle-surf v0.18.0
    Checking fs2 v0.4.3
    Checking arc-swap v1.7.1
    Checking siphasher v1.0.1
    Checking fs_at v0.2.1
    Checking base64 v0.21.7
    Checking state v0.5.3
    Checking unescape v0.1.0
    Checking crossbeam-channel v0.5.13
    Checking libyml v0.0.4
    Checking remove_dir_all v0.8.3
    Checking nonempty v0.5.0
    Checking cyphergraphy v0.3.0
    Checking shell-words v1.1.0
    Checking base64 v0.13.1
    Checking slog-scope v4.4.0
    Checking uuid v1.10.0
    Checking cypheraddr v0.4.0
   Compiling serde_derive v1.0.209
   Compiling thiserror-impl v1.0.63
   Compiling zerocopy-derive v0.7.35
   Compiling clap_derive v4.5.13
   Compiling git-testament-derive v0.2.0
   Compiling tracing-attributes v0.1.27
   Compiling culpa-macros v1.0.2
    Checking socks5-client v0.4.1
    Checking html-page v0.4.0
    Checking cyphernet v0.5.2
   Compiling ctor v0.2.8
   Compiling git-testament v0.2.5
   Compiling zerocopy v0.7.35
   Compiling pest v2.7.11
   Compiling git-ref-format-core v0.3.0
   Compiling tracing v0.1.40
    Checking radicle-ssh v0.9.0
   Compiling culpa v1.0.2
   Compiling subplotlib-derive v0.11.0
   Compiling ppv-lite86 v0.2.20
   Compiling git-ref-format-macro v0.3.0
   Compiling rand_chacha v0.3.1
   Compiling clap v4.5.16
   Compiling hashlink v0.8.4
   Compiling hashlink v0.9.1
   Compiling pest_meta v2.7.11
   Compiling yaml-rust2 v0.8.1
   Compiling tempfile-fast v0.3.4
   Compiling pest_generator v2.7.11
   Compiling pest_derive v2.7.11
    Checking nonempty v0.9.0
    Checking localtime v1.3.1
    Checking git-ref-format v0.3.0
   Compiling serde_path_to_error v0.1.16
   Compiling marked-yaml v0.7.1
    Checking slog-json v2.6.1
   Compiling roadmap v0.6.1
   Compiling tera v1.20.0
    Checking git2 v0.18.3
    Checking radicle-git-ext v0.7.0
   Compiling subplot-build v0.11.0
   Compiling subplotlib v0.11.0
   Compiling radicle-ci-broker v0.5.0 (/srv/http/692acd22-b040-4b46-b034-5b62944c9946/src)
    Checking sqlite3-sys v0.15.2
    Checking sqlite v0.32.0
    Checking radicle-crypto v0.10.0
    Checking radicle-cob v0.11.0
    Checking radicle v0.12.0
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.72s
+ cargo build --all-targets --workspace
   Compiling cfg-if v1.0.0
   Compiling bitflags v2.6.0
   Compiling memchr v2.7.4
   Compiling once_cell v1.19.0
   Compiling log v0.4.22
   Compiling itoa v1.0.11
   Compiling subtle v2.6.1
   Compiling typenum v1.17.0
   Compiling libc v0.2.158
   Compiling regex-syntax v0.8.4
   Compiling fastrand v2.1.1
   Compiling percent-encoding v2.3.1
   Compiling serde v1.0.209
   Compiling thiserror v1.0.63
   Compiling utf8parse v0.2.2
   Compiling crossbeam-utils v0.8.20
   Compiling is_terminal_polyfill v1.70.1
   Compiling anstyle-parse v0.2.5
   Compiling ryu v1.0.18
   Compiling colorchoice v1.0.2
   Compiling anstyle v1.0.8
   Compiling cpufeatures v0.2.13
   Compiling rustix v0.38.34
   Compiling anstyle-query v1.1.1
   Compiling ahash v0.8.11
   Compiling anyhow v1.0.86
   Compiling num-conv v0.1.0
   Compiling powerfmt v0.2.0
   Compiling time-core v0.1.2
   Compiling getrandom v0.2.15
   Compiling clap_lex v0.7.2
   Compiling strsim v0.11.1
   Compiling anstream v0.6.15
   Compiling encoding_rs v0.8.34
   Compiling time-macros v0.2.18
   Compiling hashbrown v0.14.5
   Compiling deranged v0.3.11
   Compiling rand_core v0.6.4
   Compiling aho-corasick v1.1.3
   Compiling pest v2.7.11
   Compiling generic-array v0.14.7
   Compiling bstr v1.10.0
   Compiling crossbeam-epoch v0.9.18
   Compiling rand_chacha v0.3.1
   Compiling tinyvec_macros v0.1.1
   Compiling tinyvec v1.8.0
   Compiling hashlink v0.8.4
   Compiling crossbeam-deque v0.8.5
   Compiling hashlink v0.9.1
   Compiling rand v0.8.5
   Compiling crypto-common v0.1.6
   Compiling block-buffer v0.10.4
   Compiling block-padding v0.3.3
   Compiling digest v0.10.7
   Compiling inout v0.1.3
   Compiling universal-hash v0.5.1
   Compiling clap_builder v4.5.15
   Compiling lazy_static v1.5.0
   Compiling cipher v0.4.4
   Compiling utf8-width v0.1.7
   Compiling signature v1.6.4
   Compiling opaque-debug v0.3.1
   Compiling subplot v0.11.0
   Compiling ed25519 v1.5.3
   Compiling html-escape v0.2.13
   Compiling amplify_num v0.5.3
   Compiling ascii v1.1.0
   Compiling ct-codecs v1.1.1
   Compiling linux-raw-sys v0.4.14
   Compiling yaml-rust2 v0.8.1
   Compiling unicode-normalization v0.1.23
   Compiling unicode-bidi v0.3.15
   Compiling pest_meta v2.7.11
   Compiling regex-automata v0.4.7
   Compiling tempfile v3.12.0
   Compiling time v0.3.36
   Compiling pulldown-cmark v0.12.0
   Compiling idna v0.5.0
   Compiling tempfile-fast v0.3.4
   Compiling ec25519 v0.1.0
   Compiling sha2 v0.10.8
   Compiling polyval v0.6.2
   Compiling libz-sys v1.1.20
   Compiling pest_generator v2.7.11
   Compiling tracing-core v0.1.32
   Compiling form_urlencoded v1.2.1
   Compiling serde_path_to_error v0.1.16
   Compiling serde_json v1.0.127
   Compiling git-ref-format-core v0.3.0
   Compiling byteorder v1.5.0
   Compiling amplify v4.7.0
   Compiling marked-yaml v0.7.1
   Compiling base64 v0.22.1
   Compiling keccak v0.1.5
   Compiling base64ct v1.6.0
   Compiling git-ref-format-macro v0.3.0
   Compiling clap v4.5.16
   Compiling pem-rfc7468 v0.7.0
   Compiling git-testament-derive v0.2.0
   Compiling cyphergraphy v0.3.0
   Compiling sha3 v0.10.8
   Compiling roadmap v0.6.1
   Compiling tracing v0.1.40
   Compiling url v2.5.2
   Compiling libgit2-sys v0.16.2+1.7.2
   Compiling ghash v0.5.1
   Compiling ctr v0.9.2
   Compiling aes v0.8.4
   Compiling pest_derive v2.7.11
   Compiling aead v0.5.2
   Compiling base32 v0.4.0
   Compiling equivalent v1.0.1
   Compiling sqlite3-src v0.5.1
   Compiling cypheraddr v0.4.0
   Compiling regex v1.10.6
   Compiling globset v0.4.14
   Compiling ssh-encoding v0.2.0
   Compiling git-ref-format v0.3.0
   Compiling blowfish v0.9.1
   Compiling cbc v0.1.2
   Compiling chacha20 v0.9.1
   Compiling pbkdf2 v0.12.2
   Compiling poly1305 v0.8.0
   Compiling git2 v0.18.3
   Compiling radicle-std-ext v0.1.0
   Compiling zeroize v1.8.1
   Compiling env_filter v0.1.2
   Compiling ignore v0.4.22
   Compiling aes-gcm v0.10.3
   Compiling data-encoding v2.6.0
   Compiling env_logger v0.11.5
   Compiling indexmap v2.4.0
   Compiling ssh-cipher v0.2.0
   Compiling git-testament v0.2.5
   Compiling socks5-client v0.4.1
   Compiling bcrypt-pbkdf v0.10.0
   Compiling sqlite3-sys v0.15.2
   Compiling xattr v1.3.1
   Compiling filetime v0.2.24
   Compiling data-encoding-macro v0.1.15
   Compiling crc32fast v1.4.2
   Compiling base-x v0.2.11
   Compiling signature v2.2.0
   Compiling cyphernet v0.5.2
   Compiling tar v0.4.41
   Compiling flate2 v1.0.33
   Compiling ssh-key v0.6.6
   Compiling sqlite v0.32.0
   Compiling multibase v0.9.1
   Compiling nix v0.29.0
   Compiling radicle-ssh v0.9.0
   Compiling globwalk v0.9.1
   Compiling tera v1.20.0
   Compiling qcheck v1.0.0
   Compiling cvt v0.1.2
   Compiling culpa v1.0.2
   Compiling slog v2.7.0
   Compiling terminal_size v0.3.0
   Compiling nonempty v0.9.0
   Compiling radicle-dag v0.9.0
   Compiling normpath v1.3.0
   Compiling subplotlib-derive v0.11.0
   Compiling localtime v1.3.1
   Compiling fs2 v0.4.3
   Compiling crossbeam-channel v0.5.13
   Compiling radicle-surf v0.18.0
   Compiling base64 v0.21.7
   Compiling unescape v0.1.0
   Compiling base64 v0.13.1
   Compiling shell-words v1.1.0
   Compiling fs_at v0.2.1
   Compiling libyml v0.0.4
   Compiling remove_dir_all v0.8.3
   Compiling arc-swap v1.7.1
   Compiling nonempty v0.5.0
   Compiling siphasher v1.0.1
   Compiling state v0.5.3
   Compiling html-page v0.4.0
   Compiling uuid v1.10.0
   Compiling slog-scope v4.4.0
   Compiling serde_yml v0.0.11
   Compiling slog-json v2.6.1
   Compiling radicle-git-ext v0.7.0
   Compiling radicle-crypto v0.10.0
   Compiling radicle-cob v0.11.0
   Compiling radicle v0.12.0
   Compiling subplot-build v0.11.0
   Compiling subplotlib v0.11.0
   Compiling radicle-ci-broker v0.5.0 (/srv/http/692acd22-b040-4b46-b034-5b62944c9946/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.85s
+ cargo doc --workspace
    Checking unicode-ident v1.0.12
 Documenting unicode-ident v1.0.12
 Documenting cfg-if v1.0.0
 Documenting typenum v1.17.0
 Documenting libc v0.2.158
 Documenting subtle v2.6.1
 Documenting bitflags v2.6.0
 Documenting cpufeatures v0.2.13
 Documenting tinyvec_macros v0.1.1
 Documenting memchr v2.7.4
 Documenting opaque-debug v0.3.1
 Documenting ed25519 v1.5.3
 Documenting ascii v1.1.0
 Documenting amplify_num v0.5.3
 Documenting log v0.4.22
 Documenting unicode-bidi v0.3.15
    Checking proc-macro2 v1.0.86
 Documenting percent-encoding v2.3.1
 Documenting tinyvec v1.8.0
 Documenting proc-macro2 v1.0.86
 Documenting linux-raw-sys v0.4.14
 Documenting ct-codecs v1.1.1
    Checking git-ref-format-core v0.3.0
 Documenting itoa v1.0.11
    Checking quote v1.0.37
 Documenting keccak v0.1.5
 Documenting byteorder v1.5.0
 Documenting fastrand v2.1.1
 Documenting base64ct v1.6.0
    Checking syn v2.0.76
    Checking syn v1.0.109
 Documenting form_urlencoded v1.2.1
 Documenting hashbrown v0.14.5
 Documenting base32 v0.4.0
 Documenting equivalent v1.0.1
 Documenting quote v1.0.37
 Documenting unicode-normalization v0.1.23
    Checking data-encoding v2.6.0
 Documenting sqlite3-src v0.5.1
 Documenting rustix v0.38.34
 Documenting data-encoding v2.6.0
 Documenting getrandom v0.2.15
    Checking amplify_syn v2.0.1
    Checking proc-macro-error v1.0.4
 Documenting libz-sys v1.1.20
 Documenting data-encoding-macro-internal v0.1.13
 Documenting radicle-std-ext v0.1.0
 Documenting once_cell v1.19.0
 Documenting pem-rfc7468 v0.7.0
 Documenting ryu v1.0.18
 Documenting zeroize v1.8.1
 Documenting base-x v0.2.11
 Documenting sqlite3-sys v0.15.2
 Documenting serde_derive v1.0.209
 Documenting amplify_syn v2.0.1
 Documenting generic-array v0.14.7
 Documenting thiserror-impl v1.0.63
 Documenting proc-macro-error-attr v1.0.4
 Documenting ec25519 v0.1.0
 Documenting idna v0.5.0
 Documenting libgit2-sys v0.16.2+1.7.2
 Documenting rand_core v0.6.4
 Documenting indexmap v2.4.0
 Documenting data-encoding-macro v0.1.15
 Documenting utf8parse v0.2.2
 Documenting signature v2.2.0
 Documenting powerfmt v0.2.0
 Documenting tempfile v3.12.0
 Documenting sqlite v0.32.0
 Documenting proc-macro-error v1.0.4
 Documenting rand v0.8.5
 Documenting multibase v0.9.1
 Documenting crypto-common v0.1.6
 Documenting block-padding v0.3.3
 Documenting block-buffer v0.10.4
 Documenting amplify_derive v4.0.1
 Documenting thiserror v1.0.63
 Documenting deranged v0.3.11
 Documenting url v2.5.2
 Documenting anstyle-parse v0.2.5
 Documenting nix v0.29.0
 Documenting aho-corasick v1.1.3
 Documenting cvt v0.1.2
 Documenting time-macros v0.2.18
 Documenting inout v0.1.3
 Documenting git-ref-format-macro v0.3.0
 Documenting colorchoice v1.0.2
 Documenting anstyle-query v1.1.1
 Documenting digest v0.10.7
 Documenting serde v1.0.209
 Documenting universal-hash v0.5.1
 Documenting aead v0.5.2
 Documenting qcheck v1.0.0
 Documenting git2 v0.18.3
 Documenting amplify v4.7.0
 Documenting cipher v0.4.4
 Documenting radicle-ssh v0.9.0
 Documenting anstyle v1.0.8
 Documenting time-core v0.1.2
 Documenting is_terminal_polyfill v1.70.1
 Documenting num-conv v0.1.0
 Documenting regex-syntax v0.8.4
 Documenting terminal_size v0.3.0
 Documenting culpa-macros v1.0.2
 Documenting fs_at v0.2.1
 Documenting sha2 v0.10.8
 Documenting sha3 v0.10.8
 Documenting pbkdf2 v0.12.2
 Documenting polyval v0.6.2
 Documenting poly1305 v0.8.0
 Documenting time v0.3.36
 Documenting radicle-dag v0.9.0
 Documenting anstream v0.6.15
 Documenting cyphergraphy v0.3.0
   Compiling radicle-ci-broker v0.5.0 (/srv/http/692acd22-b040-4b46-b034-5b62944c9946/src)
 Documenting slog v2.7.0
 Documenting crossbeam-utils v0.8.20
 Documenting ctr v0.9.2
 Documenting aes v0.8.4
 Documenting ssh-encoding v0.2.0
 Documenting blowfish v0.9.1
 Documenting chacha20 v0.9.1
 Documenting cbc v0.1.2
 Documenting ghash v0.5.1
 Documenting regex-automata v0.4.7
 Documenting git-ref-format-core v0.3.0
 Documenting serde_json v1.0.127
 Documenting nonempty v0.9.0
 Documenting cypheraddr v0.4.0
 Documenting normpath v1.3.0
 Documenting utf8-width v0.1.7
 Documenting heck v0.5.0
 Documenting strsim v0.11.1
 Documenting clap_lex v0.7.2
 Documenting lazy_static v1.5.0
 Documenting bcrypt-pbkdf v0.10.0
    Checking heck v0.5.0
 Documenting crossbeam-channel v0.5.13
 Documenting aes-gcm v0.10.3
 Documenting localtime v1.3.1
 Documenting culpa v1.0.2
 Documenting html-escape v0.2.13
 Documenting clap_derive v4.5.13
 Documenting git-ref-format v0.3.0
 Documenting socks5-client v0.4.1
 Documenting remove_dir_all v0.8.3
 Documenting subplotlib-derive v0.11.0
 Documenting filetime v0.2.24
 Documenting clap_builder v4.5.15
 Documenting fs2 v0.4.3
 Documenting unescape v0.1.0
 Documenting libyml v0.0.4
 Documenting siphasher v1.0.1
 Documenting ssh-cipher v0.2.0
 Documenting arc-swap v1.7.1
 Documenting shell-words v1.1.0
 Documenting state v0.5.3
 Documenting base64 v0.22.1
 Documenting cyphernet v0.5.2
 Documenting radicle-git-ext v0.7.0
 Documenting html-page v0.4.0
 Documenting slog-json v2.6.1
 Documenting regex v1.10.6
 Documenting uuid v1.10.0
 Documenting anyhow v1.0.86
 Documenting serde_yml v0.0.11
 Documenting ssh-key v0.6.6
 Documenting slog-scope v4.4.0
 Documenting clap v4.5.16
 Documenting radicle-surf v0.18.0
 Documenting subplotlib v0.11.0
 Documenting radicle-crypto v0.10.0
 Documenting radicle-cob v0.11.0
 Documenting radicle v0.12.0
 Documenting radicle-ci-broker v0.5.0 (/srv/http/692acd22-b040-4b46-b034-5b62944c9946/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.58s
   Generated /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/doc/radicle_ci_broker/index.html and 3 other files
+ cargo test --workspace --no-fail-fast
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.15s
     Running unittests src/lib.rs (target/debug/deps/radicle_ci_broker-34380cd99ad6ece8)

running 40 tests
{"msg":"broker database: /tmp/.tmph26IBe/db.db","level":"INFO","ts":"2024-08-29T09:00:46.055474645Z"}
{"msg":"broker database: /tmp/.tmpxNbsQ9/db.db","level":"INFO","ts":"2024-08-29T09:00:46.055577375Z"}
{"msg":"broker database: /tmp/.tmpN479nb/db.db","level":"INFO","ts":"2024-08-29T09:00:46.055641795Z"}
{"msg":"broker database: /tmp/.tmpWlVeVa/db.db","level":"INFO","ts":"2024-08-29T09:00:46.055699555Z"}
test broker::test::does_not_have_a_default_adapter_initially ... ok
test broker::test::does_not_find_unknown_repo ... ok
test broker::test::adds_adapter ... ok
{"msg":"broker database: /tmp/.tmpURtT4O/db.db","level":"INFO","ts":"2024-08-29T09:00:46.326070243Z"}
{"msg":"broker database: /tmp/.tmp3AuQzf/db.db","level":"INFO","ts":"2024-08-29T09:00:46.326241573Z"}
{"msg":"broker database: /tmp/.tmpkvL3Tl/db.db","level":"INFO","ts":"2024-08-29T09:00:46.326377213Z"}
test adapter::test::adapter_produces_as_bad_message ... ok
{"msg":"broker database: /tmp/.tmp4OP6Fc/db.db","level":"INFO","ts":"2024-08-29T09:00:46.380310889Z"}
test adapter::test::adapter_does_not_exist ... ok
test event::test::branch_is_not_patch_update ... ok
test event::test::get_no_push_branch ... ok
test event::test::get_push_branch ... ok
test event::test::patch_branch_is_not_patch_update ... ok
test event::test::patch_update ... ok
{"msg":"too many response messages","level":"ERRO","ts":"2024-08-29T09:00:46.385611377Z"}
{"msg":"no first response message","level":"ERRO","ts":"2024-08-29T09:00:46.385725617Z"}
{"msg":"no second response message","level":"ERRO","ts":"2024-08-29T09:00:46.385760327Z"}
{"msg":"adapter was terminated by signal","level":"DEBG","ts":"2024-08-29T09:00:46.385793807Z"}
{"msg":"adapter did not exit voluntarily","level":"WARN","ts":"2024-08-29T09:00:46.385818497Z"}
test event::test::test_parse_invalid_ref ... ok
test adapter::test::adapter_outputs_too_many_messages ... ok
test adapter::test::adapter_is_killed_before_any_messages ... ok
test event::test_broker_event::name_for_branch ... ok
test event::test_broker_event::name_for_shutdown ... ok
test adapter::test::adapter_is_not_executable ... ok
test event::test_broker_event::nid_for_plain_branch_name ... ok
test event::test::test_parse_patch_ref ... ok
test event::test_broker_event::nid_for_ref_without_namespace ... ok
test event::test_broker_event::nid_for_ref_with_namespace ... ok
test event::test::test_parse_push_ref ... ok
test event::test_parse_ref::namespaced_patch ... ok
test event::test_parse_ref::namespaced_branch ... ok
test event::test_parse_ref::namespaced_branch_with_slashes ... ok
test run::test::serialize_run_state ... ok
test event::test_parse_ref::plain_branch_name_is_none ... ok
{"msg":"start CI run","level":"INFO","ts":"2024-08-29T09:00:46.398866278Z"}
{"msg":"trigger event: Trigger {\n    common: EventCommonFields {\n        version: 1,\n        event_type: Push,\n        repository: Repository {\n            id: RepoId(rad:z4YNkZjYnUn5MtYkdMdhZubjaysuQ),\n            name: \"acme\",\n            description: \"Acme's repository\",\n            private: false,\n            default_branch: \"master\",\n            delegates: [\n                Did(\"did:key:z6MkpWpyBc5qPbeVud2ZkKgkAVBEME8saVBb1g6SrXG1x7dB\"),\n            ],\n        },\n    },\n    push: Some(\n        PushEvent {\n            pusher: Author {\n                id: Did(\"did:key:z6MkpWpyBc5qPbeVud2ZkKgkAVBEME8saVBb1g6SrXG1x7dB\"),\n                alias: None,\n            },\n            before: Oid(\n                f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354,\n            ),\n            after: Oid(\n                532c92e4ec973d79c25652c581ae82d238e46a06,\n            ),\n            branch: \"master\",\n            commits: [\n                Oid(\n                    532c92e4ec973d79c25652c581ae82d238e46a06,\n                ),\n            ],\n        },\n    ),\n    patch: None,\n}","level":"DEBG","ts":"2024-08-29T09:00:46.399082509Z"}
{"msg":"adapter exit code","level":"DEBG","ts":"2024-08-29T09:00:46.399125799Z","exit_code":0}
test adapter::test::adapter_reports_failure ... ok
{"msg":"no second response message","level":"ERRO","ts":"2024-08-29T09:00:46.400533651Z"}
{"msg":"adapter was terminated by signal","level":"DEBG","ts":"2024-08-29T09:00:46.400578701Z"}
{"msg":"adapter did not exit voluntarily","level":"WARN","ts":"2024-08-29T09:00:46.400603941Z"}
test adapter::test::adapter_is_killed_after_first_message ... ok
test adapter::test::adapter_has_bad_interpreter ... ok
test adapter::test::adapter_first_message_isnt_triggered ... ok
{"msg":"adapter exit code","level":"DEBG","ts":"2024-08-29T09:00:46.411753468Z","exit_code":1}
{"msg":"adapter stderr","level":"DEBG","ts":"2024-08-29T09:00:46.411793568Z","stderr":"woe be me"}
{"msg":"adapter exit code","level":"DEBG","ts":"2024-08-29T09:00:46.412413679Z","exit_code":0}
test adapter::test::adapter_exits_nonzero ... ok
test adapter::test::adapter_reports_success ... ok
{"msg":"adapter was terminated by signal","level":"DEBG","ts":"2024-08-29T09:00:46.416146305Z"}
{"msg":"adapter did not exit voluntarily","level":"WARN","ts":"2024-08-29T09:00:46.416177935Z"}
test adapter::test::adapter_is_killed_after_second_message ... ok
test msg::tests::trigger_push ... ok
test msg::tests::trigger_patch ... ok
test broker::test::finds_default_adapter_for_unknown_repo ... ok
test broker::test::has_no_adapters_initially ... ok
{"msg":"adapter exit code","level":"DEBG","ts":"2024-08-29T09:00:46.674693354Z","exit_code":1}
{"msg":"adapter stderr","level":"DEBG","ts":"2024-08-29T09:00:46.674750604Z","stderr":"woe be me"}
test broker::test::sets_a_default_adapter_initially ... ok
{"msg":"start CI run","level":"INFO","ts":"2024-08-29T09:00:46.686348903Z"}
{"msg":"trigger event: Trigger {\n    common: EventCommonFields {\n        version: 1,\n        event_type: Push,\n        repository: Repository {\n            id: RepoId(rad:z3LagABWW4DNN8rm947hKQuZVEM9m),\n            name: \"acme\",\n            description: \"Acme's repository\",\n            private: false,\n            default_branch: \"master\",\n            delegates: [\n                Did(\"did:key:z6MkfCV8AtF2DW41R1uNL1wBsbLZVqcWXdvBS1khVp3RehPB\"),\n            ],\n        },\n    },\n    push: Some(\n        PushEvent {\n            pusher: Author {\n                id: Did(\"did:key:z6MkfCV8AtF2DW41R1uNL1wBsbLZVqcWXdvBS1khVp3RehPB\"),\n                alias: None,\n            },\n            before: Oid(\n                f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354,\n            ),\n            after: Oid(\n                532c92e4ec973d79c25652c581ae82d238e46a06,\n            ),\n            branch: \"master\",\n            commits: [\n                Oid(\n                    532c92e4ec973d79c25652c581ae82d238e46a06,\n                ),\n            ],\n        },\n    ),\n    patch: None,\n}","level":"DEBG","ts":"2024-08-29T09:00:46.686501633Z"}
{"msg":"failed to run adapter or it failed to run CI: child process failed with wait status 1","level":"ERRO","ts":"2024-08-29T09:00:46.771773967Z"}
{"msg":"Finish CI run","level":"INFO","ts":"2024-08-29T09:00:46.771861538Z"}
{"msg":"finished CI run: Run {\n    broker_run_id: RunId {\n        id: \"b1acbb81-914b-460a-a782-9723e3eca387\",\n    },\n    adapter_run_id: Some(\n        RunId {\n            id: \"xyzzy\",\n        },\n    ),\n    adapter_info_url: None,\n    repo_id: RepoId(rad:z4YNkZjYnUn5MtYkdMdhZubjaysuQ),\n    repo_name: \"acme\",\n    timestamp: \"2024-08-29 09:00:46Z\",\n    whence: Branch {\n        name: \"push-event-has-no-branch-name\",\n        commit: Oid(\n            532c92e4ec973d79c25652c581ae82d238e46a06,\n        ),\n        who: Some(\n            \"did:key:z6MkpWpyBc5qPbeVud2ZkKgkAVBEME8saVBb1g6SrXG1x7dB\",\n        ),\n    },\n    state: Finished,\n    result: Some(\n        Success,\n    ),\n}","level":"DEBG","ts":"2024-08-29T09:00:46.772136978Z"}
test broker::test::adapter_fails ... ok
{"msg":"adapter exit code","level":"DEBG","ts":"2024-08-29T09:00:46.896899445Z","exit_code":0}
{"msg":"Finish CI run","level":"INFO","ts":"2024-08-29T09:00:46.954615686Z"}
{"msg":"finished CI run: Run {\n    broker_run_id: RunId {\n        id: \"3542721b-ac00-4ca1-8523-752f5e10632c\",\n    },\n    adapter_run_id: Some(\n        RunId {\n            id: \"xyzzy\",\n        },\n    ),\n    adapter_info_url: None,\n    repo_id: RepoId(rad:z3LagABWW4DNN8rm947hKQuZVEM9m),\n    repo_name: \"acme\",\n    timestamp: \"2024-08-29 09:00:46Z\",\n    whence: Branch {\n        name: \"push-event-has-no-branch-name\",\n        commit: Oid(\n            532c92e4ec973d79c25652c581ae82d238e46a06,\n        ),\n        who: Some(\n            \"did:key:z6MkfCV8AtF2DW41R1uNL1wBsbLZVqcWXdvBS1khVp3RehPB\",\n        ),\n    },\n    state: Finished,\n    result: Some(\n        Success,\n    ),\n}","level":"DEBG","ts":"2024-08-29T09:00:46.954789796Z"}
test broker::test::executes_adapter ... ok

test result: ok. 40 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.90s

     Running unittests src/bin/cib.rs (target/debug/deps/cib-2286d5fd9ecb98e1)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/cibtool.rs (target/debug/deps/cibtool-43d6f7069a1c0cb1)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running unittests src/bin/synthetic-events.rs (target/debug/deps/synthetic_events-bdc28d0a8fcf3cb0)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

     Running tests/subplot.rs (target/debug/deps/subplot-abcd01b55d95e39c)

running 32 tests
test adapter_with_url_runs_successfully ... ok
test dummy_adapter_runs_successfully ... ok
test add_information_about_triggered_run_to_database ... FAILED
test add_information_about_run_that_s_finished_in_failure_to_database ... FAILED
test can_trigger_a_ci_run ... FAILED
test add_information_about_run_that_s_running_to_database ... FAILED
test adapter_can_provide_url_for_info_on_run ... FAILED
test add_information_about_run_that_s_finished_successfully_to_database ... FAILED
test don_t_insert_event_for_non_existent_repository ... FAILED
test gives_helpful_error_message_if_it_doesn_t_understand_its_configuration_file ... FAILED
test don_t_insert_events_into_queue_when_not_allowed_by_filter ... FAILED
test events_can_be_queued_and_removed_from_queue ... FAILED
test logs_start_and_successful_end ... FAILED
test gives_helpful_error_message_if_node_socket_can_t_be_found ... FAILED
test logs_adapter_stderr_output ... FAILED
test insert_many_events_into_queue ... FAILED
test insert_events_into_queue ... FAILED
test process_queued_events ... FAILED
test produces_a_json_status_file ... FAILED
test produces_a_report_page_upon_request ... FAILED
test we_can_run_rad ... FAILED
test reports_it_version ... FAILED
test shuts_down_when_requested ... FAILED
test smoke_test__runs_adapter ... FAILED
test stops_if_the_node_connection_breaks ... FAILED
test update_and_show_information_about_run_to_running ... FAILED
test shows_config_as_json ... ok
test logs_termination_due_to_error ... FAILED
test can_add_shutdown_event_to_queue ... ok
test event_synthesizer_terminates_after_first_connection ... FAILED
test count_in_a_single_process has been running for over 60 seconds
test count_in_concurrent_processes has been running for over 60 seconds
test count_in_a_single_process ... ok
test count_in_concurrent_processes ... ok

failures:

---- add_information_about_triggered_run_to_database stdout ----
unknown: scenario: Add information about triggered run to database
ci-broker.md:979:1:   step: given file radenv.sh
ci-broker.md:980:1:   step: given file setup-node.sh
ci-broker.md:981:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotGj3ZtAdd-information-about-triggered-run-to-database
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotGj3ZtAdd-information-about-triggered-run-to-database/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'add_information_about_triggered_run_to_database' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:3243:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- add_information_about_run_that_s_finished_in_failure_to_database stdout ----
unknown: scenario: Add information about run that's finished in failure to database
ci-broker.md:1052:1:   step: given file radenv.sh
ci-broker.md:1053:1:   step: given file setup-node.sh
ci-broker.md:1054:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotvIZkKAdd-information-about-run-that-s-finished-in-failure-to-database
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotvIZkKAdd-information-about-run-that-s-finished-in-failure-to-database/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'add_information_about_run_that_s_finished_in_failure_to_database' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:3686:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- can_trigger_a_ci_run stdout ----
unknown: scenario: Can trigger a CI run
ci-broker.md:957:1:   step: given file radenv.sh
ci-broker.md:958:1:   step: given file setup-node.sh
ci-broker.md:959:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplot7o3GaCan-trigger-a-CI-run
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplot7o3GaCan-trigger-a-CI-run/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'can_trigger_a_ci_run' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:3109:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- add_information_about_run_that_s_running_to_database stdout ----
unknown: scenario: Add information about run that's running to database
ci-broker.md:1002:1:   step: given file radenv.sh
ci-broker.md:1003:1:   step: given file setup-node.sh
ci-broker.md:1004:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotL1JXLAdd-information-about-run-that-s-running-to-database
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotL1JXLAdd-information-about-run-that-s-running-to-database/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'add_information_about_run_that_s_running_to_database' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:3377:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- adapter_can_provide_url_for_info_on_run stdout ----
unknown: scenario: Adapter can provide URL for info on run
ci-broker.md:312:1:   step: given file radenv.sh
ci-broker.md:313:1:   step: given file setup-node.sh
ci-broker.md:314:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotcz96PAdapter-can-provide-URL-for-info-on-run
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotcz96PAdapter-can-provide-URL-for-info-on-run/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'adapter_can_provide_url_for_info_on_run' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:786:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- add_information_about_run_that_s_finished_successfully_to_database stdout ----
unknown: scenario: Add information about run that's finished successfully to database
ci-broker.md:1027:1:   step: given file radenv.sh
ci-broker.md:1028:1:   step: given file setup-node.sh
ci-broker.md:1029:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotdtEFVAdd-information-about-run-that-s-finished-successfully-to-database
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotdtEFVAdd-information-about-run-that-s-finished-successfully-to-database/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'add_information_about_run_that_s_finished_successfully_to_database' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:3520:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- don_t_insert_event_for_non_existent_repository stdout ----
unknown: scenario: Don't insert event for non-existent repository
ci-broker.md:1129:1:   step: given file radenv.sh
ci-broker.md:1130:1:   step: given file setup-node.sh
ci-broker.md:1131:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotJLMAqDon-t-insert-event-for-non-existent-repository
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotJLMAqDon-t-insert-event-for-non-existent-repository/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'don_t_insert_event_for_non_existent_repository' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:4203:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- gives_helpful_error_message_if_it_doesn_t_understand_its_configuration_file stdout ----
unknown: scenario: Gives helpful error message if it doesn't understand its configuration file
ci-broker.md:380:1:   step: given file radenv.sh
ci-broker.md:381:1:   step: given file setup-node.sh
ci-broker.md:382:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotiYXvuGives-helpful-error-message-if-it-doesn-t-understand-its-configuration-file
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotiYXvuGives-helpful-error-message-if-it-doesn-t-understand-its-configuration-file/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'gives_helpful_error_message_if_it_doesn_t_understand_its_configuration_file' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:1021:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- don_t_insert_events_into_queue_when_not_allowed_by_filter stdout ----
unknown: scenario: Don't insert events into queue when not allowed by filter
ci-broker.md:742:1:   step: given file radenv.sh
ci-broker.md:743:1:   step: given file setup-node.sh
ci-broker.md:744:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplot4VuWtDon-t-insert-events-into-queue-when-not-allowed-by-filter
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplot4VuWtDon-t-insert-events-into-queue-when-not-allowed-by-filter/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'don_t_insert_events_into_queue_when_not_allowed_by_filter' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:2435:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- events_can_be_queued_and_removed_from_queue stdout ----
unknown: scenario: Events can be queued and removed from queue
ci-broker.md:904:1:   step: given file radenv.sh
ci-broker.md:905:1:   step: given file setup-node.sh
ci-broker.md:906:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotj2iinEvents-can-be-queued-and-removed-from-queue
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotj2iinEvents-can-be-queued-and-removed-from-queue/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'events_can_be_queued_and_removed_from_queue' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:2921:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- logs_start_and_successful_end stdout ----
unknown: scenario: Logs start and successful end
ci-broker.md:1192:1:   step: given file radenv.sh
ci-broker.md:1193:1:   step: given file setup-node.sh
ci-broker.md:1194:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotUoasfLogs-start-and-successful-end
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotUoasfLogs-start-and-successful-end/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'logs_start_and_successful_end' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:4360:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- gives_helpful_error_message_if_node_socket_can_t_be_found stdout ----
unknown: scenario: Gives helpful error message if node socket can't be found
ci-broker.md:352:1:   step: given file radenv.sh
ci-broker.md:353:1:   step: given file setup-node.sh
ci-broker.md:354:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotb6I1dGives-helpful-error-message-if-node-socket-can-t-be-found
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotb6I1dGives-helpful-error-message-if-node-socket-can-t-be-found/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'gives_helpful_error_message_if_node_socket_can_t_be_found' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:895:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- logs_adapter_stderr_output stdout ----
unknown: scenario: Logs adapter stderr output
ci-broker.md:493:1:   step: given file radenv.sh
ci-broker.md:494:1:   step: given file setup-node.sh
ci-broker.md:495:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplot1T9CLLogs-adapter-stderr-output
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplot1T9CLLogs-adapter-stderr-output/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'logs_adapter_stderr_output' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:1596:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- insert_many_events_into_queue stdout ----
unknown: scenario: Insert many events into queue
ci-broker.md:712:1:   step: given file radenv.sh
ci-broker.md:713:1:   step: given file setup-node.sh
ci-broker.md:714:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotypINXInsert-many-events-into-queue
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotypINXInsert-many-events-into-queue/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'insert_many_events_into_queue' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:2273:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- insert_events_into_queue stdout ----
unknown: scenario: Insert events into queue
ci-broker.md:683:1:   step: given file radenv.sh
ci-broker.md:684:1:   step: given file setup-node.sh
ci-broker.md:685:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotOLaZuInsert-events-into-queue
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotOLaZuInsert-events-into-queue/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'insert_events_into_queue' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:2115:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- process_queued_events stdout ----
unknown: scenario: Process queued events
ci-broker.md:776:1:   step: given file radenv.sh
ci-broker.md:777:1:   step: given file setup-node.sh
ci-broker.md:778:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotIKGsfProcess-queued-events
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotIKGsfProcess-queued-events/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'process_queued_events' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:2684:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- produces_a_json_status_file stdout ----
unknown: scenario: Produces a JSON status file
ci-broker.md:1249:1:   step: given file radenv.sh
ci-broker.md:1250:1:   step: given file setup-node.sh
ci-broker.md:1251:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotaDbInProduces-a-JSON-status-file
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotaDbInProduces-a-JSON-status-file/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'produces_a_json_status_file' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:4561:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- produces_a_report_page_upon_request stdout ----
unknown: scenario: Produces a report page upon request
ci-broker.md:465:1:   step: given file radenv.sh
ci-broker.md:466:1:   step: given file setup-node.sh
ci-broker.md:467:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotzmkNcProduces-a-report-page-upon-request
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotzmkNcProduces-a-report-page-upon-request/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'produces_a_report_page_upon_request' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:1416:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- we_can_run_rad stdout ----
unknown: scenario: We can run rad
ci-broker.md:533:1:   step: given file radenv.sh
ci-broker.md:534:1:   step: when I run bash radenv.sh rad --version
Running `bash` with args ["radenv.sh", "rad", "--version"]
Running in /tmp/subplotfv2mpWe-can-run-rad
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
env: ‘rad’: No such file or directory


  return: Failure
thread 'we_can_run_rad' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:1644:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- reports_it_version stdout ----
unknown: scenario: Reports it version
ci-broker.md:282:1:   step: given file radenv.sh
ci-broker.md:283:1:   step: given file setup-node.sh
ci-broker.md:284:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotPiBfmReports-it-version
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotPiBfmReports-it-version/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'reports_it_version' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:577:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- shuts_down_when_requested stdout ----
unknown: scenario: Shuts down when requested
ci-broker.md:439:1:   step: given file radenv.sh
ci-broker.md:440:1:   step: given file setup-node.sh
ci-broker.md:441:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotO4GjkShuts-down-when-requested
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotO4GjkShuts-down-when-requested/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'shuts_down_when_requested' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:1294:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- smoke_test__runs_adapter stdout ----
unknown: scenario: Smoke test: Runs adapter
ci-broker.md:242:1:   step: given file radenv.sh
ci-broker.md:243:1:   step: given file setup-node.sh
ci-broker.md:244:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotd6c23Smoke-test--Runs-adapter
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotd6c23Smoke-test--Runs-adapter/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'smoke_test__runs_adapter' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:462:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- stops_if_the_node_connection_breaks stdout ----
unknown: scenario: Stops if the node connection breaks
ci-broker.md:410:1:   step: given file radenv.sh
ci-broker.md:411:1:   step: given file setup-node.sh
ci-broker.md:412:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotrwslnStops-if-the-node-connection-breaks
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotrwslnStops-if-the-node-connection-breaks/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'stops_if_the_node_connection_breaks' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:1139:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- update_and_show_information_about_run_to_running stdout ----
unknown: scenario: Update and show information about run to running
ci-broker.md:1079:1:   step: given file radenv.sh
ci-broker.md:1080:1:   step: given file setup-node.sh
ci-broker.md:1081:1:   step: when I run bash radenv.sh bash setup-node.sh
Running `bash` with args ["radenv.sh", "bash", "setup-node.sh"]
Running in /tmp/subplotRbNe6Update-and-show-information-about-run-to-running
ENV: SHELL = /bin/sh
PATH: /home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 127
Stdout:

Stderr:
+ mkdir -p /tmp/subplotRbNe6Update-and-show-information-about-run-to-running/homedir
+ rad auth --alias brokertest
setup-node.sh: line 7: rad: command not found


  return: Failure
thread 'update_and_show_information_about_run_to_running' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:4030:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(127)"

---- logs_termination_due_to_error stdout ----
unknown: scenario: Logs termination due to error
ci-broker.md:1223:1:   step: given an installed cib
ci-broker.md:1225:1:   step: given file broker.yaml
ci-broker.md:1226:1:   step: when I try to run cib --config broker.yaml queued
Running `cib` with args ["--config", "broker.yaml", "queued"]
Running in /tmp/subplotOGYeBLogs-termination-due-to-error
ENV: SHELL = /bin/sh
PATH: /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug:/home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 101
Stdout:

Stderr:
{"msg":"CI broker starts","level":"INFO","ts":"2024-08-29T09:00:46.980060996Z"}
{"msg":"loaded configuration Config {\n    default_adapter: \"mcadapterface\",\n    adapters: {\n        \"mcadapterface\": Adapter { \n         command: \"./adapter.sh\", \n         env: {\n            \"RADICLE_NATIVE_CI\": \"native-ci.yaml\",\n        }, \n         sensitive_env: {} },\n    },\n    filters: [\n        Branch(\n            \"main\",\n        ),\n    ],\n    report_dir: Some(\n        \"reports\",\n    ),\n    status_update_interval_seconds: None,\n    db: \"ci-broker.db\",\n}","level":"DEBG","ts":"2024-08-29T09:00:46.980777687Z"}
{"msg":"broker database: ci-broker.db","level":"INFO","ts":"2024-08-29T09:00:46.984174693Z"}
{"msg":"default adapter: Adapter { bin: \"./adapter.sh\", env: {\"RADICLE_NATIVE_CI\": \"native-ci.yaml\"} }","level":"DEBG","ts":"2024-08-29T09:00:47.30476107Z"}
{"msg":"start thread to process events until a shutdown event","level":"INFO","ts":"2024-08-29T09:00:47.309580597Z"}
{"msg":"queue in db has 0 events","level":"DEBG","ts":"2024-08-29T09:00:47.309749657Z"}
{"msg":"queue in db has 0 events","level":"DEBG","ts":"2024-08-29T09:00:47.309842988Z"}
{"msg":"event notification channel disconnected","level":"INFO","ts":"2024-08-29T09:00:47.309889678Z"}
{"msg":"start thread to process events ends","level":"INFO","ts":"2024-08-29T09:00:47.309929168Z"}
{"msg":"broker database has 0 CI runs","level":"DEBG","ts":"2024-08-29T09:00:47.310332638Z"}
{"msg":"start page updater thread","level":"INFO","ts":"2024-08-29T09:00:47.310378938Z"}
{"msg":"wait about 60 seconds to update HTML report pages again","level":"INFO","ts":"2024-08-29T09:00:47.310414869Z"}
thread 'main' panicked at src/bin/cib.rs:180:14:
page updater thread succeeded: Write("reports/index.html", Os { code: 2, kind: NotFound, message: "No such file or directory" })
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


ci-broker.md:1228:1:   step: then stderr contains "CI broker starts"
ci-broker.md:1229:1:   step: then stderr contains "CI broker ends in unrecoverable error"
  return: Failure
thread 'logs_termination_due_to_error' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:4426:20:
called `Result::unwrap()` on an `Err` value: "stderr does not contain \"CI broker ends in unrecoverable error\""

---- event_synthesizer_terminates_after_first_connection stdout ----
unknown: scenario: Event synthesizer terminates after first connection
ci-broker.md:595:1:   step: given an installed synthetic-events
ci-broker.md:596:1:   step: given file wait-for-file-gone.sh
ci-broker.md:598:1:   step: then file synt.sock does not exist
ci-broker.md:600:1:   step: when I run synthetic-events --log daemon.log synt.sock
Running `synthetic-events` with args ["--log", "daemon.log", "synt.sock"]
Running in /tmp/subplotknEIwEvent-synthesizer-terminates-after-first-connection
ENV: SHELL = /bin/sh
PATH: /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug:/home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 0
Stdout:
launching daemon
waiting for daemon to create socket
no socket yet
there is a socket now

Stderr:


ci-broker.md:601:1:   step: then file synt.sock exists
ci-broker.md:603:1:   step: when I run synthetic-events --client --log daemon.log synt.sock
Running `synthetic-events` with args ["--client", "--log", "daemon.log", "synt.sock"]
Running in /tmp/subplotknEIwEvent-synthesizer-terminates-after-first-connection
ENV: SHELL = /bin/sh
PATH: /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug:/home/_rad/.cargo/bin:/bin:/usr/bin:/sbin:/usr/sbin
Exit code: 101
Stdout:
connect to synt.sock
wait for daemon to remove the socket file
still waiting; it's been 0 milliseconds
still waiting; it's been 1000 milliseconds
still waiting; it's been 2000 milliseconds
still waiting; it's been 3000 milliseconds
still waiting; it's been 4000 milliseconds
still waiting; it's been 5000 milliseconds
still waiting; it's been 6000 milliseconds
still waiting; it's been 7000 milliseconds
still waiting; it's been 8000 milliseconds
still waiting; it's been 9000 milliseconds
still waiting; it's been 10000 milliseconds

Stderr:
daemon log daemon.log:
====
daemon starts
repeat=1
daemon connects to synt.sock
daemon accepted connection: Ok(UnixStream { fd: FileDesc(OwnedFd { fd: 5 }), local: "synt.sock" (pathname), peer: (unnamed) })
unwrapped stream: UnixStream { fd: FileDesc(OwnedFd { fd: 5 }), local: "synt.sock" (pathname), peer: (unnamed) }daemon sent all messages
daemon shutdown write
daemon finished reading
daemon ends

----

thread 'main' panicked at src/bin/synthetic-events.rs:90:13:
waited too long for synt.sock to be deleted
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


  return: Failure
thread 'event_synthesizer_terminates_after_first_connection' panicked at /srv/http/692acd22-b040-4b46-b034-5b62944c9946/src/target/debug/build/radicle-ci-broker-98abe7c6d9689d74/out/ci-broker.rs:1854:20:
called `Result::unwrap()` on an `Err` value: "expected exit code 0, but had Some(101)"


failures:
    adapter_can_provide_url_for_info_on_run
    add_information_about_run_that_s_finished_in_failure_to_database
    add_information_about_run_that_s_finished_successfully_to_database
    add_information_about_run_that_s_running_to_database
    add_information_about_triggered_run_to_database
    can_trigger_a_ci_run
    don_t_insert_event_for_non_existent_repository
    don_t_insert_events_into_queue_when_not_allowed_by_filter
    event_synthesizer_terminates_after_first_connection
    events_can_be_queued_and_removed_from_queue
    gives_helpful_error_message_if_it_doesn_t_understand_its_configuration_file
    gives_helpful_error_message_if_node_socket_can_t_be_found
    insert_events_into_queue
    insert_many_events_into_queue
    logs_adapter_stderr_output
    logs_start_and_successful_end
    logs_termination_due_to_error
    process_queued_events
    produces_a_json_status_file
    produces_a_report_page_upon_request
    reports_it_version
    shuts_down_when_requested
    smoke_test__runs_adapter
    stops_if_the_node_connection_breaks
    update_and_show_information_about_run_to_running
    we_can_run_rad

test result: FAILED. 6 passed; 26 failed; 0 ignored; 0 measured; 0 filtered out; finished in 67.17s

error: test failed, to rerun pass `--test subplot`
   Doc-tests radicle_ci_broker

running 2 tests
test src/msg.rs - msg::RunId (line 44) ... ok
test src/event.rs - event (line 11) ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.58s

error: 1 target failed:
    `--test subplot`