rad:zwTxygwuz5LDGBq255RA2CbNGrz8
radicle-ci-broker4caab2118c56ad6b4794aba5cab3be5b94ae9f30
Request message
.radicle/native.yaml
git clone /home/_rad/.radicle/storage/zwTxygwuz5LDGBq255RA2CbNGrz8 /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src
git config advice.detachedHead false
git checkout 4caab2118c56ad6b4794aba5cab3be5b94ae9f30
git show 4caab2118c56ad6b4794aba5cab3be5b94ae9f30
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
subplot docgen doc/userguide.subplot -o doc/userguide.html
make -C doc publish
Request message
{ "request": "trigger", "version": 1, "event_type": "push", "repository": { "id": "rad:zwTxygwuz5LDGBq255RA2CbNGrz8", "name": "radicle-ci-broker", "description": "Radicle CI broker", "private": false, "default_branch": "main", "delegates": [ "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV", "did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT" ] }, "pusher": { "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV", "alias": "liw" }, "before": "4caab2118c56ad6b4794aba5cab3be5b94ae9f30", "after": "4caab2118c56ad6b4794aba5cab3be5b94ae9f30", "branch": "", "commits": [ "4caab2118c56ad6b4794aba5cab3be5b94ae9f30" ] }
.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 subplot docgen doc/userguide.subplot -o doc/userguide.html make -C doc publish
git clone /home/_rad/.radicle/storage/zwTxygwuz5LDGBq255RA2CbNGrz8 /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src
Command arguments:
"git"
"clone"
"/home/_rad/.radicle/storage/zwTxygwuz5LDGBq255RA2CbNGrz8"
"/srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src"
In directory: /
Exit code: 0
Output (stdout and stderr):
Cloning into '/srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src'... done.
git config advice.detachedHead false
Command arguments:
"git"
"config"
"advice.detachedHead"
"false"
In directory: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src
Exit code: 0
git checkout 4caab2118c56ad6b4794aba5cab3be5b94ae9f30
Command arguments:
"git"
"checkout"
"4caab2118c56ad6b4794aba5cab3be5b94ae9f30"
In directory: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src
Exit code: 0
Output (stdout and stderr):
HEAD is now at 4caab21 feat: generate RSS feeds for all, failed CI runs
git show 4caab2118c56ad6b4794aba5cab3be5b94ae9f30
Command arguments:
"git"
"show"
"4caab2118c56ad6b4794aba5cab3be5b94ae9f30"
In directory: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src
Exit code: 0
Output (stdout and stderr):
commit 4caab2118c56ad6b4794aba5cab3be5b94ae9f30 Author: Lars Wirzenius <liw@liw.fi> Date: Wed Nov 13 16:24:53 2024 +0200 feat: generate RSS feeds for all, failed CI runs This is primarily a stop-gap measure so I can have some notification of CI runs, without having to manually check the report page. It may also be useful for other people, who do not use Radicle themselves, but are interested in CI runs on Radicle nodes. Signed-off-by: Lars Wirzenius <liw@liw.fi> diff --git a/Cargo.lock b/Cargo.lock index 038e08d..b93bde0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -211,6 +211,19 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" +[[package]] +name = "atom_syndication" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a3a5ed3201df5658d1aa45060c5a57dc9dba8a8ada20d696d67cb0c479ee043" +dependencies = [ + "chrono", + "derive_builder", + "diligent-date-parser", + "never", + "quick-xml", +] + [[package]] name = "autocfg" version = "1.4.0" @@ -596,6 +609,41 @@ dependencies = [ "socks5-client", ] +[[package]] +name = "darling" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.87", +] + +[[package]] +name = "darling_macro" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.87", +] + [[package]] name = "data-encoding" version = "2.6.0" @@ -641,6 +689,37 @@ dependencies = [ "powerfmt", ] +[[package]] +name = "derive_builder" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" +dependencies = [ + "derive_builder_macro", +] + +[[package]] +name = "derive_builder_core" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "derive_builder_macro" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" +dependencies = [ + "derive_builder_core", + "syn 2.0.87", +] + [[package]] name = "deunicode" version = "1.6.0" @@ -659,6 +738,15 @@ dependencies = [ "subtle", ] +[[package]] +name = "diligent-date-parser" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6cf7fe294274a222363f84bcb63cdea762979a0443b4cf1f4f8fd17c86b1182" +dependencies = [ + "chrono", +] + [[package]] name = "displaydoc" version = "0.2.5" @@ -835,6 +923,12 @@ dependencies = [ "miniz_oxide", ] +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + [[package]] name = "form_urlencoded" version = "1.2.1" @@ -1230,6 +1324,12 @@ dependencies = [ "syn 2.0.87", ] +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + [[package]] name = "idna" version = "1.0.3" @@ -1475,6 +1575,12 @@ dependencies = [ "data-encoding-macro", ] +[[package]] +name = "never" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96aba5aa877601bb3f6dd6a63a969e1f82e60646e81e71b14496995e9853c91" + [[package]] name = "nix" version = "0.29.0" @@ -1844,6 +1950,16 @@ dependencies = [ "rand", ] +[[package]] +name = "quick-xml" +version = "0.36.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7649a7b4df05aed9ea7ec6f628c67c9953a43869b8bc50929569b2999d443fe" +dependencies = [ + "encoding_rs", + "memchr", +] + [[package]] name = "quote" version = "1.0.37" @@ -1899,6 +2015,7 @@ dependencies = [ "radicle-git-ext", "radicle-surf", "regex", + "rss", "serde", "serde_json", "serde_yml", @@ -2159,6 +2276,18 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rss" +version = "2.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27e92048f840d98c6d6dd870af9101610ea9ff413f11f1bcebf4f4c31d96d957" +dependencies = [ + "atom_syndication", + "derive_builder", + "never", + "quick-xml", +] + [[package]] name = "rust_decimal" version = "1.36.0" diff --git a/Cargo.toml b/Cargo.toml index 574193d..c36872a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,7 @@ html-page = "0.4.0" radicle-git-ext = "0.8.0" radicle-surf = { version = "0.22.0", default-features = false, features = ["serde"] } regex = "1.10.5" +rss = "2.0.9" serde = { version = "1.0.204", features = ["derive"] } serde_json = "1.0.121" serde_yml = "0.0.11" diff --git a/ci-broker.md b/ci-broker.md index dd14f0f..c94a607 100644 --- a/ci-broker.md +++ b/ci-broker.md @@ -262,6 +262,8 @@ then stderr contains "loaded configuration" then stderr contains "CI broker ends successfully" then file reports/index.html exists then file reports/status.json exists +then file reports/index.rss exists +when I run tidy -xml -indent -quiet reports/index.rss when I run cibtool --db ci-broker.db event list then stdout is empty diff --git a/src/pages.rs b/src/pages.rs index 658fbe0..9c65a94 100644 --- a/src/pages.rs +++ b/src/pages.rs @@ -17,6 +17,7 @@ use std::{ }; use html_page::{Element, HtmlPage, Tag}; +use rss::{Channel, ChannelBuilder, Guid, Item, ItemBuilder}; use serde::Serialize; use time::{macros::format_description, OffsetDateTime}; @@ -31,11 +32,13 @@ use crate::{ ci_event::{CiEvent, CiEventV1}, db::{Db, DbError, QueuedCiEvent}, logger, - msg::RunId, + msg::{RunId, RunResult}, notif::NotificationReceiver, run::{Run, RunState, Whence}, }; +const BROKER_RSS: &str = "index.rss"; +const FAILURE_RSS: &str = "failed.rss"; const CSS: &str = include_str!("radicle-ci.css"); const REFERESH_INTERVAL: &str = "300"; const UPDATE_INTERVAL: Duration = Duration::from_secs(60); @@ -97,6 +100,22 @@ impl PageData { doc.push_to_body(Element::new(Tag::H1).with_text(&title)); + doc.push_to_body( + Element::new(Tag::P) + .with_text("RSS feeds: ") + .with_child( + Element::new(Tag::A) + .with_text("all") + .with_attribute("href", BROKER_RSS), + ) + .with_text(" ") + .with_child( + Element::new(Tag::A) + .with_text("failed") + .with_attribute("href", FAILURE_RSS), + ), + ); + Self::h1(&mut doc, "Broker status"); doc.push_to_body( Element::new(Tag::P) @@ -512,6 +531,62 @@ impl PageData { } value } + + fn status_as_rss(&self) -> Result<Channel, PageError> { + let mut channel = ChannelBuilder::default(); + channel + .title("Radicle CI broker run information") + .description("All CI runs known to this instance of the Radicle CI broker.") + .link("FIXME:link"); + for (_alias, repo_id) in self.repos() { + for run in self.runs(repo_id) { + channel.item(Self::rss_item_from_run(run)); + } + } + Ok(channel.build()) + } + + fn failed_as_rss(&self) -> Result<Channel, PageError> { + let mut channel = ChannelBuilder::default(); + channel + .title("Radicle CI broker run information") + .description("All CI runs known to this instance of the Radicle CI broker.") + .link("FIXME:link"); + for (_alias, repo_id) in self.repos() { + for run in self.runs(repo_id) { + if run.state() == RunState::Finished && run.result() == Some(&RunResult::Failure) { + channel.item(Self::rss_item_from_run(run)); + } + } + } + Ok(channel.build()) + } + + fn rss_item_from_run(run: &Run) -> Item { + let mut guid = Guid::default(); + guid.set_value(run.broker_run_id().to_string()); + + let state = if run.state() == RunState::Finished { + match run.result() { + Some(result) => result.to_string(), + None => "unknown".to_string(), + } + } else { + run.state().to_string() + }; + let title = format!("{state}: {} run {}", run.repo_alias(), run.broker_run_id()); + + let mut item = ItemBuilder::default() + .title(Some(title)) + .guid(Some(guid)) + .build(); + + if let Some(url) = run.adapter_info_url() { + item.set_link(Some(url.into())); + }; + + item + } } /// Data for status pages for CI broker. @@ -647,6 +722,16 @@ impl StatusPage { let filename = dirname.join(STATUS_JSON); let json = data.status_page_as_json()?; Self::write_file(&filename, &json)?; + + let filename = dirname.join(BROKER_RSS); + let channel = data.status_as_rss()?; + let rss = channel.to_string(); + Self::write_file(&filename, &rss)?; + + let filename = dirname.join(FAILURE_RSS); + let channel = data.failed_as_rss()?; + let rss = channel.to_string(); + Self::write_file(&filename, &rss)?; } Ok(()) }
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
subplot docgen doc/userguide.subplot -o doc/userguide.html
make -C doc publish
Command arguments:
"timeout"
"600"
"bash"
"-c"
"set -xeuo pipefail\ncargo --version\nrustc --version\n\ncargo fmt --check\ncargo clippy --all-targets --workspace -- -Dwarnings\ncargo build --all-targets --workspace\ncargo doc --workspace\ncargo test --workspace --no-fail-fast\n\nsubplot docgen ci-broker.subplot -o doc/ci-broker.html\nsubplot docgen doc/userguide.subplot -o doc/userguide.html\nmake -C doc publish\n"
In directory: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/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.89 Compiling unicode-ident v1.0.13 Compiling version_check v0.9.5 Compiling libc v0.2.162 Checking cfg-if v1.0.0 Compiling typenum v1.17.0 Compiling serde v1.0.214 Compiling shlex v1.3.0 Compiling thiserror v1.0.68 Compiling memchr v2.7.4 Compiling once_cell v1.20.2 Compiling byteorder v1.5.0 Compiling syn v1.0.109 Compiling bitflags v2.6.0 Checking subtle v2.6.1 Checking stable_deref_trait v1.2.0 Compiling strsim v0.11.1 Compiling rustix v0.38.39 Compiling crossbeam-utils v0.8.20 Compiling pkg-config v0.3.31 Compiling linux-raw-sys v0.4.14 Compiling anyhow v1.0.93 Compiling generic-array v0.14.7 Compiling ahash v0.8.11 Compiling log v0.4.22 Compiling itoa v1.0.11 Compiling regex-syntax v0.8.5 Compiling time-core v0.1.2 Compiling num-conv v0.1.0 Compiling aho-corasick v1.1.3 Checking cpufeatures v0.2.14 Checking litemap v0.7.3 Checking writeable v0.5.5 Compiling utf8parse v0.2.2 Compiling same-file v1.0.6 Compiling allocator-api2 v0.2.18 Compiling anstyle-parse v0.2.6 Compiling time-macros v0.2.18 Compiling walkdir v2.5.0 Compiling anstyle-query v1.1.2 Compiling is_terminal_polyfill v1.70.1 Compiling anstyle v1.0.10 Checking icu_locid_transform_data v1.5.0 Compiling ucd-trie v0.1.7 Compiling colorchoice v1.0.3 Compiling quote v1.0.37 Compiling anstream v0.6.18 Compiling bstr v1.10.0 Compiling doc-comment v0.3.3 Compiling powerfmt v0.2.0 Compiling syn v2.0.87 Compiling jobserver v0.1.32 Compiling getrandom v0.2.15 Compiling crossbeam-epoch v0.9.18 Compiling unic-char-range v0.9.0 Compiling cc v1.1.36 Compiling rand_core v0.6.4 Compiling unicode-width v0.1.14 Checking icu_properties_data v1.5.0 Compiling unic-common v0.9.0 Compiling heck v0.5.0 Compiling libm v0.2.11 Compiling vcpkg v0.2.15 Compiling unic-ucd-version v0.9.0 Compiling crossbeam-deque v0.8.5 Compiling unic-char-property v0.9.0 Compiling deranged v0.3.11 Compiling proc-macro-error-attr v1.0.4 Compiling encoding_rs v0.8.35 Checking icu_normalizer_data v1.5.0 Compiling serde_json v1.0.132 Compiling clap_lex v0.7.2 Checking write16 v1.0.0 Checking crypto-common v0.1.6 Checking block-buffer v0.10.4 Checking block-padding v0.3.3 Checking utf8_iter v1.0.4 Checking utf16_iter v1.0.5 Checking digest v0.10.7 Checking inout v0.1.3 Compiling fastrand v2.2.0 Compiling arraydeque v0.5.1 Checking smallvec v1.13.2 Checking cipher v0.4.4 Compiling clap_builder v4.5.20 Checking universal-hash v0.5.1 Compiling unic-ucd-segment v0.9.0 Compiling proc-macro-error v1.0.4 Compiling tempfile v3.14.0 Compiling ryu v1.0.18 Compiling autocfg v1.4.0 Compiling regex-automata v0.4.8 Compiling time v0.3.36 Checking opaque-debug v0.3.1 Checking signature v1.6.4 Compiling amplify_syn v2.0.1 Compiling deunicode v1.6.0 Compiling unicode-linebreak v0.1.5 Compiling pulldown-cmark v0.12.2 Compiling smawk v0.3.2 Compiling slug v0.1.6 Compiling num-traits v0.2.19 Compiling humansize v2.1.3 Compiling textwrap v0.16.1 Checking ed25519 v1.5.3 Compiling unic-segment v0.9.0 Compiling getopts v0.2.21 Compiling subplot v0.11.0 Checking ct-codecs v1.1.2 Checking ascii v1.1.0 Compiling libz-sys v1.1.20 Compiling pikchr v0.1.3 Compiling libgit2-sys v0.17.0+1.8.1 Compiling utf8-width v0.1.7 Compiling percent-encoding v2.3.1 Compiling unicase v2.8.0 Checking amplify_num v0.5.3 Compiling humantime v2.1.0 Compiling lazy_static v1.5.0 Compiling fnv v1.0.7 Compiling ident_case v1.0.1 Compiling pulldown-cmark-escape v0.11.0 Checking form_urlencoded v1.2.1 Compiling html-escape v0.2.13 Compiling sqlite3-src v0.5.1 Checking ec25519 v0.1.0 Compiling amplify_derive v4.0.1 Checking polyval v0.6.2 Checking sha2 v0.10.8 Compiling tracing-core v0.1.32 Compiling base64 v0.22.1 Checking keccak v0.1.5 Compiling file_diff v1.0.0 Compiling line-col v0.2.1 Checking base64ct v1.6.0 Compiling pin-project-lite v0.2.15 Checking sha3 v0.10.8 Checking ghash v0.5.1 Checking pem-rfc7468 v0.7.0 Checking ctr v0.9.2 Checking aes v0.8.4 Checking aead v0.5.2 Checking equivalent v1.0.1 Checking hashbrown v0.15.1 Compiling data-encoding v2.6.0 Compiling cfg_aliases v0.2.1 Compiling regex v1.11.1 Compiling globset v0.4.15 Checking base32 v0.4.0 Compiling env_filter v0.1.2 Checking aes-gcm v0.10.3 Compiling ignore v0.4.23 Compiling synstructure v0.13.1 Compiling darling_core v0.20.10 Compiling env_logger v0.11.5 Checking indexmap v2.6.0 Compiling nix v0.29.0 Checking ssh-encoding v0.2.0 Checking blowfish v0.9.1 Checking poly1305 v0.8.0 Compiling data-encoding-macro-internal v0.1.13 Checking cbc v0.1.2 Checking chacha20 v0.9.1 Checking pbkdf2 v0.12.2 Compiling globwalk v0.9.1 Checking radicle-std-ext v0.1.0 Checking zeroize v1.8.1 Compiling adler2 v2.0.0 Checking ssh-cipher v0.2.0 Compiling miniz_oxide v0.8.0 Checking bcrypt-pbkdf v0.10.0 Checking chrono v0.4.38 Checking rand v0.8.5 Compiling xattr v1.3.1 Compiling filetime v0.2.25 Compiling crc32fast v1.4.2 Checking signature v2.2.0 Checking data-encoding-macro v0.1.15 Compiling slog v2.7.0 Checking base-x v0.2.11 Checking ssh-key v0.6.7 Checking multibase v0.9.1 Compiling flate2 v1.0.34 Compiling tar v0.4.43 Checking qcheck v1.0.0 Checking cvt v0.1.2 Checking amplify v4.8.0 Compiling rust_decimal v1.36.0 Checking tinyvec_macros v0.1.1 Compiling glob v0.3.1 Checking tinyvec v1.8.0 Checking cyphergraphy v0.3.0 Checking diligent-date-parser v0.1.4 Checking terminal_size v0.4.0 Checking radicle-dag v0.9.0 Checking cypheraddr v0.4.0 Checking never v0.1.0 Checking arrayvec v0.7.6 Checking base64 v0.21.7 Checking socks5-client v0.4.1 Checking normpath v1.3.0 Checking fs_at v0.2.1 Compiling radicle-surf v0.22.1 Compiling serde_yml v0.0.11 Checking cyphernet v0.5.2 Checking crossbeam-channel v0.5.13 Checking remove_dir_all v0.8.4 Checking unicode-normalization v0.1.24 Checking fs2 v0.4.3 Checking unescape v0.1.0 Compiling serde_derive v1.0.214 Compiling thiserror-impl v1.0.68 Compiling zerocopy-derive v0.7.35 Compiling zerofrom-derive v0.1.4 Compiling yoke-derive v0.7.4 Compiling zerovec-derive v0.10.3 Compiling displaydoc v0.2.5 Compiling icu_provider_macros v1.5.0 Compiling clap_derive v4.5.18 Compiling git-testament-derive v0.2.0 Compiling tracing-attributes v0.1.27 Compiling darling_macro v0.20.10 Compiling culpa-macros v1.0.2 Checking quick-xml v0.36.2 Compiling darling v0.20.10 Compiling zerocopy v0.7.35 Compiling derive_builder_core v0.20.2 Compiling git-testament v0.2.5 Checking libyml v0.0.4 Checking winnow v0.6.20 Checking state v0.5.3 Compiling pest v2.7.14 Compiling git-ref-format-core v0.3.1 Checking siphasher v1.0.1 Checking radicle-ssh v0.9.0 Compiling ppv-lite86 v0.2.20 Checking arc-swap v1.7.1 Checking zerofrom v0.1.4 Compiling hashbrown v0.14.5 Checking shell-words v1.1.0 Compiling tracing v0.1.40 Checking yoke v0.7.4 Compiling git-ref-format-macro v0.3.1 Checking slog-scope v4.4.0 Compiling culpa v1.0.2 Compiling derive_builder_macro v0.20.2 Checking zerovec v0.10.4 Compiling rand_chacha v0.3.1 Checking html-page v0.4.0 Compiling subplotlib-derive v0.11.0 Checking uuid v1.11.0 Compiling ctor v0.2.8 Compiling hashlink v0.8.4 Compiling hashlink v0.9.1 Compiling clap v4.5.20 Compiling pest_meta v2.7.14 Checking tinystr v0.7.6 Checking icu_collections v1.5.0 Compiling yaml-rust2 v0.8.1 Checking icu_locid v1.5.0 Compiling tempfile-fast v0.3.4 Checking derive_builder v0.20.2 Checking atom_syndication v0.12.4 Checking icu_provider v1.5.0 Compiling pest_generator v2.7.14 Checking icu_locid_transform v1.5.0 Checking rss v2.0.9 Compiling pest_derive v2.7.14 Checking icu_properties v1.5.1 Checking nonempty v0.9.0 Checking localtime v1.3.1 Checking duration-str v0.11.2 Checking git-ref-format v0.3.1 Checking slog-json v2.6.1 Checking icu_normalizer v1.5.0 Compiling serde_path_to_error v0.1.16 Compiling marked-yaml v0.7.1 Checking idna_adapter v1.2.0 Checking idna v1.0.3 Compiling roadmap v0.6.1 Checking url v2.5.3 Compiling tera v1.20.0 Checking git2 v0.19.0 Checking radicle-git-ext v0.8.1 Compiling subplot-build v0.11.0 Compiling subplotlib v0.11.0 Compiling radicle-ci-broker v0.8.0 (/srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src) Checking sqlite3-sys v0.15.2 Checking sqlite v0.32.0 Checking radicle-crypto v0.11.0 Checking radicle-cob v0.12.0 Checking radicle v0.13.0 Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.75s + cargo build --all-targets --workspace Compiling cfg-if v1.0.0 Compiling memchr v2.7.4 Compiling bitflags v2.6.0 Compiling once_cell v1.20.2 Compiling log v0.4.22 Compiling itoa v1.0.11 Compiling strsim v0.11.1 Compiling typenum v1.17.0 Compiling libc v0.2.162 Compiling subtle v2.6.1 Compiling stable_deref_trait v1.2.0 Compiling regex-syntax v0.8.5 Compiling serde v1.0.214 Compiling thiserror v1.0.68 Compiling zerofrom v0.1.4 Compiling percent-encoding v2.3.1 Compiling fastrand v2.2.0 Compiling utf8parse v0.2.2 Compiling crossbeam-utils v0.8.20 Compiling yoke v0.7.4 Compiling rustix v0.38.39 Compiling anstyle-parse v0.2.6 Compiling time-core v0.1.2 Compiling is_terminal_polyfill v1.70.1 Compiling powerfmt v0.2.0 Compiling ryu v1.0.18 Compiling zerovec v0.10.4 Compiling writeable v0.5.5 Compiling num-conv v0.1.0 Compiling colorchoice v1.0.3 Compiling cpufeatures v0.2.14 Compiling anstyle v1.0.10 Compiling anstyle-query v1.1.2 Compiling litemap v0.7.3 Compiling time-macros v0.2.18 Compiling deranged v0.3.11 Compiling ahash v0.8.11 Compiling aho-corasick v1.1.3 Compiling anstream v0.6.18 Compiling anyhow v1.0.93 Compiling encoding_rs v0.8.35 Compiling hashbrown v0.14.5 Compiling generic-array v0.14.7 Compiling getrandom v0.2.15 Compiling icu_locid_transform_data v1.5.0 Compiling clap_lex v0.7.2 Compiling pest v2.7.14 Compiling rand_core v0.6.4 Compiling crossbeam-epoch v0.9.18 Compiling tinystr v0.7.6 Compiling crypto-common v0.1.6 Compiling block-padding v0.3.3 Compiling block-buffer v0.10.4 Compiling icu_collections v1.5.0 Compiling digest v0.10.7 Compiling icu_locid v1.5.0 Compiling inout v0.1.3 Compiling bstr v1.10.0 Compiling icu_properties_data v1.5.0 Compiling cipher v0.4.4 Compiling rand_chacha v0.3.1 Compiling crossbeam-deque v0.8.5 Compiling hashlink v0.8.4 Compiling write16 v1.0.0 Compiling utf16_iter v1.0.5 Compiling smallvec v1.13.2 Compiling utf8_iter v1.0.4 Compiling icu_normalizer_data v1.5.0 Compiling rand v0.8.5 Compiling yaml-rust2 v0.8.1 Compiling tempfile v3.14.0 Compiling hashlink v0.9.1 Compiling universal-hash v0.5.1 Compiling icu_provider v1.5.0 Compiling regex-automata v0.4.8 Compiling clap_builder v4.5.20 Compiling lazy_static v1.5.0 Compiling utf8-width v0.1.7 Compiling signature v1.6.4 Compiling opaque-debug v0.3.1 Compiling time v0.3.36 Compiling html-escape v0.2.13 Compiling ed25519 v1.5.3 Compiling subplot v0.11.0 Compiling icu_locid_transform v1.5.0 Compiling pest_meta v2.7.14 Compiling ascii v1.1.0 Compiling ct-codecs v1.1.2 Compiling linux-raw-sys v0.4.14 Compiling serde_path_to_error v0.1.16 Compiling serde_json v1.0.132 Compiling amplify_num v0.5.3 Compiling pulldown-cmark v0.12.2 Compiling ec25519 v0.1.0 Compiling darling_core v0.20.10 Compiling marked-yaml v0.7.1 Compiling tempfile-fast v0.3.4 Compiling icu_properties v1.5.1 Compiling pest_generator v2.7.14 Compiling polyval v0.6.2 Compiling libz-sys v1.1.20 Compiling sha2 v0.10.8 Compiling form_urlencoded v1.2.1 Compiling tracing-core v0.1.32 Compiling git-ref-format-core v0.3.1 Compiling clap v4.5.20 Compiling base64 v0.22.1 Compiling git-testament-derive v0.2.0 Compiling regex v1.11.1 Compiling globset v0.4.15 Compiling roadmap v0.6.1 Compiling amplify v4.8.0 Compiling base64ct v1.6.0 Compiling keccak v0.1.5 Compiling ignore v0.4.23 Compiling pest_derive v2.7.14 Compiling env_filter v0.1.2 Compiling byteorder v1.5.0 Compiling icu_normalizer v1.5.0 Compiling tracing v0.1.40 Compiling env_logger v0.11.5 Compiling pem-rfc7468 v0.7.0 Compiling cyphergraphy v0.3.0 Compiling sha3 v0.10.8 Compiling git-ref-format-macro v0.3.1 Compiling git-testament v0.2.5 Compiling libgit2-sys v0.17.0+1.8.1 Compiling num-traits v0.2.19 Compiling globwalk v0.9.1 Compiling ghash v0.5.1 Compiling idna_adapter v1.2.0 Compiling tera v1.20.0 Compiling aes v0.8.4 Compiling ctr v0.9.2 Compiling idna v1.0.3 Compiling aead v0.5.2 Compiling hashbrown v0.15.1 Compiling base32 v0.4.0 Compiling equivalent v1.0.1 Compiling ssh-encoding v0.2.0 Compiling sqlite3-src v0.5.1 Compiling cypheraddr v0.4.0 Compiling url v2.5.3 Compiling blowfish v0.9.1 Compiling poly1305 v0.8.0 Compiling git-ref-format v0.3.1 Compiling chacha20 v0.9.1 Compiling aes-gcm v0.10.3 Compiling cbc v0.1.2 Compiling pbkdf2 v0.12.2 Compiling radicle-std-ext v0.1.0 Compiling zeroize v1.8.1 Compiling data-encoding v2.6.0 Compiling bcrypt-pbkdf v0.10.0 Compiling darling_macro v0.20.10 Compiling socks5-client v0.4.1 Compiling chrono v0.4.38 Compiling sqlite3-sys v0.15.2 Compiling ssh-cipher v0.2.0 Compiling xattr v1.3.1 Compiling filetime v0.2.25 Compiling crc32fast v1.4.2 Compiling signature v2.2.0 Compiling indexmap v2.6.0 Compiling base-x v0.2.11 Compiling ssh-key v0.6.7 Compiling tar v0.4.43 Compiling git2 v0.19.0 Compiling flate2 v1.0.34 Compiling cyphernet v0.5.2 Compiling sqlite v0.32.0 Compiling data-encoding-macro v0.1.15 Compiling radicle-ssh v0.9.0 Compiling multibase v0.9.1 Compiling nix v0.29.0 Compiling qcheck v1.0.0 Compiling nonempty v0.9.0 Compiling darling v0.20.10 Compiling derive_builder_core v0.20.2 Compiling cvt v0.1.2 Compiling tinyvec_macros v0.1.1 Compiling tinyvec v1.8.0 Compiling culpa v1.0.2 Compiling diligent-date-parser v0.1.4 Compiling slog v2.7.0 Compiling radicle-surf v0.22.1 Compiling terminal_size v0.4.0 Compiling quick-xml v0.36.2 Compiling radicle-dag v0.9.0 Compiling fs_at v0.2.1 Compiling base64 v0.21.7 Compiling arrayvec v0.7.6 Compiling normpath v1.3.0 Compiling never v0.1.0 Compiling rust_decimal v1.36.0 Compiling remove_dir_all v0.8.4 Compiling unicode-normalization v0.1.24 Compiling subplotlib-derive v0.11.0 Compiling localtime v1.3.1 Compiling derive_builder_macro v0.20.2 Compiling fs2 v0.4.3 Compiling crossbeam-channel v0.5.13 Compiling winnow v0.6.20 Compiling shell-words v1.1.0 Compiling libyml v0.0.4 Compiling unescape v0.1.0 Compiling arc-swap v1.7.1 Compiling subplot-build v0.11.0 Compiling derive_builder v0.20.2 Compiling radicle-git-ext v0.8.1 Compiling state v0.5.3 Compiling atom_syndication v0.12.4 Compiling siphasher v1.0.1 Compiling slog-scope v4.4.0 Compiling slog-json v2.6.1 Compiling html-page v0.4.0 Compiling uuid v1.11.0 Compiling radicle-crypto v0.11.0 Compiling serde_yml v0.0.11 Compiling rss v2.0.9 Compiling radicle-cob v0.12.0 Compiling radicle v0.13.0 Compiling subplotlib v0.11.0 Compiling radicle-ci-broker v0.8.0 (/srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src) Compiling duration-str v0.11.2 Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.04s + cargo doc --workspace Checking unicode-ident v1.0.13 Documenting unicode-ident v1.0.13 Documenting cfg-if v1.0.0 Documenting typenum v1.17.0 Documenting libc v0.2.162 Documenting subtle v2.6.1 Documenting stable_deref_trait v1.2.0 Documenting bitflags v2.6.0 Documenting litemap v0.7.3 Documenting cpufeatures v0.2.14 Documenting writeable v0.5.5 Documenting memchr v2.7.4 Documenting icu_locid_transform_data v1.5.0 Checking ident_case v1.0.1 Documenting icu_properties_data v1.5.0 Checking fnv v1.0.7 Checking proc-macro2 v1.0.89 Documenting write16 v1.0.0 Documenting icu_normalizer_data v1.5.0 Documenting proc-macro2 v1.0.89 Documenting utf16_iter v1.0.5 Documenting utf8_iter v1.0.4 Documenting smallvec v1.13.2 Documenting opaque-debug v0.3.1 Checking quote v1.0.37 Documenting ed25519 v1.5.3 Documenting itoa v1.0.11 Documenting amplify_num v0.5.3 Documenting percent-encoding v2.3.1 Checking syn v2.0.87 Checking syn v1.0.109 Documenting log v0.4.22 Documenting fnv v1.0.7 Documenting linux-raw-sys v0.4.14 Documenting ct-codecs v1.1.2 Documenting ascii v1.1.0 Documenting ident_case v1.0.1 Checking git-ref-format-core v0.3.1 Documenting byteorder v1.5.0 Documenting keccak v0.1.5 Documenting quote v1.0.37 Documenting base64ct v1.6.0 Documenting form_urlencoded v1.2.1 Documenting fastrand v2.2.0 Documenting num-traits v0.2.19 Documenting base32 v0.4.0 Documenting rustix v0.38.39 Checking amplify_syn v2.0.1 Documenting getrandom v0.2.15 Documenting libz-sys v1.1.20 Checking synstructure v0.13.1 Checking darling_core v0.20.10 Checking proc-macro-error v1.0.4 Checking darling v0.20.10 Documenting hashbrown v0.15.1 Checking data-encoding v2.6.0 Documenting equivalent v1.0.1 Documenting sqlite3-src v0.5.1 Documenting pem-rfc7468 v0.7.0 Documenting once_cell v1.20.2 Documenting data-encoding v2.6.0 Documenting data-encoding-macro-internal v0.1.13 Documenting synstructure v0.13.1 Documenting zerovec-derive v0.10.3 Documenting serde_derive v1.0.214 Documenting displaydoc v0.2.5 Documenting icu_provider_macros v1.5.0 Documenting thiserror-impl v1.0.68 Documenting amplify_syn v2.0.1 Documenting proc-macro-error-attr v1.0.4 Documenting generic-array v0.14.7 Documenting ec25519 v0.1.0 Documenting darling_core v0.20.10 Documenting libgit2-sys v0.17.0+1.8.1 Documenting rand_core v0.6.4 Documenting indexmap v2.6.0 Documenting powerfmt v0.2.0 Documenting ryu v1.0.18 Documenting zerofrom-derive v0.1.4 Documenting yoke-derive v0.7.4 Documenting proc-macro-error v1.0.4 Documenting radicle-std-ext v0.1.0 Documenting crypto-common v0.1.6 Documenting block-buffer v0.10.4 Documenting block-padding v0.3.3 Documenting thiserror v1.0.68 Documenting amplify_derive v4.0.1 Documenting zeroize v1.8.1 Documenting deranged v0.3.11 Documenting zerofrom v0.1.4 Documenting rand v0.8.5 Documenting data-encoding-macro v0.1.15 Documenting sqlite3-sys v0.15.2 Documenting chrono v0.4.38 Checking derive_builder_core v0.20.2 Documenting git-ref-format-macro v0.3.1 Documenting time-macros v0.2.18 Documenting base-x v0.2.11 Documenting inout v0.1.3 Documenting yoke v0.7.4 Documenting time-core v0.1.2 Documenting num-conv v0.1.0 Documenting digest v0.10.7 Documenting universal-hash v0.5.1 Documenting aead v0.5.2 Documenting utf8parse v0.2.2 Documenting serde v1.0.214 Documenting signature v2.2.0 Documenting amplify v4.8.0 Documenting multibase v0.9.1 Documenting darling_macro v0.20.10 Documenting cipher v0.4.4 Documenting qcheck v1.0.0 Documenting sqlite v0.32.0 Documenting radicle-ssh v0.9.0 Documenting zerovec v0.10.4 Documenting anstyle-parse v0.2.6 Documenting tempfile v3.14.0 Documenting nix v0.29.0 Documenting sha2 v0.10.8 Documenting polyval v0.6.2 Documenting sha3 v0.10.8 Documenting poly1305 v0.8.0 Documenting darling v0.20.10 Documenting pbkdf2 v0.12.2 Documenting time v0.3.36 Documenting aho-corasick v1.1.3 Documenting encoding_rs v0.8.35 Documenting cvt v0.1.2 Documenting ctr v0.9.2 Documenting aes v0.8.4 Documenting cyphergraphy v0.3.0 Documenting tinystr v0.7.6 Documenting icu_collections v1.5.0 Documenting ghash v0.5.1 Documenting ssh-encoding v0.2.0 Documenting git-ref-format-core v0.3.1 Documenting cbc v0.1.2 Documenting blowfish v0.9.1 Documenting chacha20 v0.9.1 Documenting derive_builder_core v0.20.2 Documenting serde_json v1.0.132 Documenting nonempty v0.9.0 Documenting colorchoice v1.0.3 Documenting regex-syntax v0.8.5 Documenting icu_locid v1.5.0 Documenting is_terminal_polyfill v1.70.1 Documenting cypheraddr v0.4.0 Documenting aes-gcm v0.10.3 Documenting tinyvec_macros v0.1.1 Documenting anstyle-query v1.1.2 Documenting anstyle v1.0.10 Documenting bcrypt-pbkdf v0.10.0 Documenting quick-xml v0.36.2 Documenting git-ref-format v0.3.1 Documenting fs_at v0.2.1 Documenting diligent-date-parser v0.1.4 Documenting tinyvec v1.8.0 Documenting terminal_size v0.4.0 Documenting culpa-macros v1.0.2 Documenting icu_provider v1.5.0 Documenting derive_builder_macro v0.20.2 Documenting radicle-dag v0.9.0 Documenting ssh-cipher v0.2.0 Documenting anstream v0.6.18 Compiling radicle-ci-broker v0.8.0 (/srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src) Documenting socks5-client v0.4.1 Documenting slog v2.7.0 Documenting crossbeam-utils v0.8.20 Documenting normpath v1.3.0 Documenting never v0.1.0 Documenting strsim v0.11.1 Documenting heck v0.5.0 Documenting clap_lex v0.7.2 Checking heck v0.5.0 Documenting lazy_static v1.5.0 Documenting arrayvec v0.7.6 Documenting regex-automata v0.4.8 Documenting derive_builder v0.20.2 Documenting icu_locid_transform v1.5.0 Documenting ssh-key v0.6.7 Documenting utf8-width v0.1.7 Documenting culpa v1.0.2 Documenting remove_dir_all v0.8.4 Documenting clap_derive v4.5.18 Documenting cyphernet v0.5.2 Documenting crossbeam-channel v0.5.13 Documenting unicode-normalization v0.1.24 Documenting localtime v1.3.1 Documenting clap_builder v4.5.20 Documenting subplotlib-derive v0.11.0 Documenting rust_decimal v1.36.0 Documenting html-escape v0.2.13 Documenting fs2 v0.4.3 Documenting filetime v0.2.25 Documenting icu_properties v1.5.1 Documenting unescape v0.1.0 Documenting winnow v0.6.20 Documenting arc-swap v1.7.1 Documenting siphasher v1.0.1 Documenting base64 v0.22.1 Documenting shell-words v1.1.0 Documenting libyml v0.0.4 Documenting state v0.5.3 Documenting slog-json v2.6.1 Documenting html-page v0.4.0 Documenting uuid v1.11.0 Documenting anyhow v1.0.93 Documenting atom_syndication v0.12.4 Documenting regex v1.11.1 Documenting slog-scope v4.4.0 Documenting clap v4.5.20 Documenting serde_yml v0.0.11 Documenting duration-str v0.11.2 Documenting icu_normalizer v1.5.0 Documenting rss v2.0.9 Documenting subplotlib v0.11.0 Documenting idna_adapter v1.2.0 Documenting idna v1.0.3 Documenting url v2.5.3 Documenting git2 v0.19.0 Documenting radicle-git-ext v0.8.1 Documenting radicle-crypto v0.11.0 Documenting radicle-surf v0.22.1 Documenting radicle-cob v0.12.0 Documenting radicle v0.13.0 Documenting radicle-ci-broker v0.8.0 (/srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src) warning: unresolved link to `RunningProcess` --> src/adapter.rs:186:44 | 186 | /// Error from [`TimeoutCommand`] or [`RunningProcess`]. | ^^^^^^^^^^^^^^ no item named `RunningProcess` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default warning: `radicle-ci-broker` (lib doc) generated 1 warning Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.77s Generated /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/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-3ad492fbaefb810c) running 84 tests test broker::test::does_not_find_unknown_repo ... ok test broker::test::adds_adapter ... ok test adapter::test::adapter_does_not_exist ... ok test adapter::test::adapter_has_bad_interpreter ... ok test adapter::test::adapter_is_not_executable ... ok test broker::test::does_not_have_a_default_adapter_initially ... ok test ci_event::test::branch_created ... ok test ci_event::test::branch_deleted ... ok test ci_event::test::branch_updated ... ok test ci_event::test::nothing_updated ... ok test ci_event::test::patch_created ... ok test ci_event::test::patch_updated ... ok test ci_event::test::skipped ... ok test ci_event::test_namespaced_branch::empty ... ok test ci_event::test_namespaced_branch::has_namespace ... ok test ci_event::test_namespaced_branch::has_namespace_with_path ... ok test ci_event::test_namespaced_branch::lacks_namespace ... ok test ci_event::test_patch_id::empty ... ok test ci_event::test_patch_id::has_namespace ... ok test ci_event::test_patch_id::has_namespace_with_path ... ok test ci_event::test_patch_id::lacks_namespace ... ok test config::test::parse_config_yaml ... ok test config::test::parse_config_yaml_without_max_run_time ... ok test filter::test::allows_all_for_default_repository ... ok test filter::test::allows_all_for_main_branch ... ok test filter::test::allows_all_for_right_node ... ok test filter::test::allows_any_event ... ok test filter::test::allows_branch_creation ... ok test filter::test::allows_branch_deletion ... ok test filter::test::allows_branch_update ... ok test filter::test::allows_if_all_allow ... ok test filter::test::allows_if_any_allows ... ok test filter::test::allows_no_event ... ok test filter::test::allows_none_for_wrong_node ... ok test filter::test::allows_opposite ... ok test filter::test::allows_patch_creation ... ok test filter::test::allows_patch_update ... ok test filter::test::allows_shutdown ... ok test filter::test::allows_specific_patch ... ok test filter::test::doesnt_allow_any_for_other_branch ... ok test filter::test::doesnt_allow_any_for_other_repository ... ok test filter::test::doesnt_allows_other_patch ... ok test filter::test::only_allows_branch_creation ... ok test filter::test::only_allows_branch_deletion ... ok test filter::test::only_allows_branch_update ... ok test filter::test::only_allows_patch_creation ... ok test filter::test::only_allows_patch_update ... ok test msg::test_push_branch::get_no_push_branch ... ok test msg::test_push_branch::get_push_branch ... ok test broker::test::has_no_adapters_initially ... ok test broker::test::finds_default_adapter_for_unknown_repo ... ok test broker::test::sets_a_default_adapter_initially ... ok test msg::trigger_from_ci_event_tests::trigger_patch_from_patch_created ... ok test run::test::serialize_run_state ... ok test msg::trigger_from_ci_event_tests::trigger_push_from_branch_created ... ok test sensitive::test_sensitive::debugged ... ok test sensitive::test_sensitive::deser ... ok test sensitive::test_sensitive::displayed ... ok test sensitive::test_sensitive::ser ... ok test msg::trigger_from_ci_event_tests::trigger_patch_from_patch_updated ... ok test msg::trigger_from_ci_event_tests::trigger_push_from_branch_updated ... ok test adapter::test::adapter_is_killed_after_second_message ... ok test adapter::test::adapter_outputs_too_many_messages ... ok test adapter::test::adapter_ends_ok_before_second_message ... ok test adapter::test::adapter_produces_as_bad_message ... ok test adapter::test::adapter_reports_failure ... ok test adapter::test::adapter_first_message_isnt_triggered ... ok test adapter::test::adapter_is_killed_before_any_messages ... ok test adapter::test::adapter_is_killed_after_first_message ... ok test adapter::test::adapter_reports_success ... ok test adapter::test::adapter_exits_nonzero ... ok test broker::test::adapter_fails ... ok test timeoutcmd::tests::bin_false ... ok test timeoutcmd::tests::bin_true ... ok test timeoutcmd::tests::hello_world ... ok test timeoutcmd::tests::hello_world_to_stderr ... ok test timeoutcmd::tests::pipe_through_cat ... ok test broker::test::executes_adapter ... ok test timeoutcmd::tests::sleep_1 ... ok test timeoutcmd::tests::sleep_for_too_long ... ok test timeoutcmd::tests::yes_to_stdout ... ok test timeoutcmd::tests::yes_to_stderr ... ok test timeoutcmd::tests::kill ... ok test timeoutcmd::tests::kill_stderr ... ok test result: ok. 84 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 7.09s Running unittests src/bin/cib.rs (target/debug/deps/cib-93b4b58d2d7952a5) 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-512f37fda9d0dbbc) 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-5e46c79296367dd3) 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-924118b3ab1cd52f) running 38 tests test adapter_with_url_runs_successfully ... ok test dummy_adapter_runs_successfully ... ok test can_add_shutdown_event_to_queue ... ok test event_synthesizer_terminates_after_first_connection ... ok test allows_setting_minimum_log_level ... ok test don_t_insert_event_for_non_existent_repository ... ok test convert_recorded_node_events_into_ci_events ... ok test can_trigger_a_ci_run ... ok test add_information_about_run_that_s_finished_successfully_to_database ... ok test add_information_about_run_that_s_running_to_database ... ok test add_information_about_triggered_run_to_database ... ok test logs_termination_due_to_error ... ok test don_t_insert_events_into_queue_when_not_allowed_by_filter ... ok test adapter_can_provide_url_for_info_on_run ... ok test add_information_about_run_that_s_finished_in_failure_to_database ... ok test events_can_be_queued_and_removed_from_queue ... ok test filter_recorded_ci_events ... ok test shows_config_as_json ... ok test can_remove_all_queued_events ... ok test gives_helpful_error_message_if_it_doesn_t_understand_its_configuration_file ... ok test gives_helpful_error_message_if_node_socket_can_t_be_found ... ok test insert_events_into_queue ... ok test we_can_run_rad ... ok test record_node_events ... ok test logs_start_and_successful_end ... ok test produces_a_json_status_file ... ok test produces_a_report_page_upon_request ... ok test reports_it_version ... ok test shuts_down_when_requested ... ok test logs_adapter_stderr_output ... ok test stops_if_the_node_connection_breaks ... ok test process_queued_events ... ok test update_and_show_information_about_run_to_running ... ok test smoke_test__runs_adapter ... FAILED test acceptance_criteria_for_upgrades has been running for over 60 seconds 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 insert_many_events_into_queue has been running for over 60 seconds test count_in_a_single_process ... ok test insert_many_events_into_queue ... ok test count_in_concurrent_processes ... ok test acceptance_criteria_for_upgrades ... ok failures: ---- smoke_test__runs_adapter stdout ---- unknown: scenario: Smoke test: Runs adapter ci-broker.md:243:1: step: given an installed CI broker ci-broker.md:244:1: step: given a CI adapter adapter.sh from dummy.sh install adapter adapter.sh from dummy.sh: #!/bin/bash set -euo pipefail cat > /dev/null echo '{"response":"triggered","run_id":{"id":"xyzzy"}}' echo '{"response":"finished","result":"success"}' echo "This is an adapter error: Mordor" 1>&2 write adapter.sh chmod /tmp/subplotg0qcFSmoke-test--Runs-adapter/adapter.sh (exists? true) ci-broker.md:246:1: step: given file radenv.sh ci-broker.md:247:1: step: given file setup-node.sh ci-broker.md:248: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/subplotg0qcFSmoke-test--Runs-adapter ENV: SHELL = /bin/sh PATH: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src/target/debug://bin:/home/_rad/.radicle/bin:/home/_rad/.cargo/bin Exit code: 0 Stdout: Initializing your radicle 👾 identity ✓ Creating your Ed25519 keypair... ✓ Your Radicle DID is did:key:z6MkoqWKitKnBh59dgkF8fTAuZWLgXKYnZpvVe519vNH2aM3. This identifies your device. Run `rad self` to show it at all times. ✓ You're all set. ✗ Hint: install ssh-agent to have it fill in your passphrase for you when signing. To create a Radicle repository, run `rad init` from a Git repository with at least one commit. To clone a repository, run `rad clone <rid>`. For example, `rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5` clones the Radicle 'heartwood' repository. To get a list of all commands, run `rad`. Initialized empty Git repository in /tmp/subplotg0qcFSmoke-test--Runs-adapter/testy/.git/ [main (root-commit) 59c3dfe] test 1 file changed, 1 insertion(+) create mode 100644 test.txt On branch main nothing to commit, working tree clean commit 59c3dfeeb50664ead9e8954773e3f6183624a0dd Author: TestyMcTestFace <radicle@example.com> Date: Wed Nov 13 18:11:51 2024 +0200 test diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..16b14f5 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +test file Initializing private radicle 👾 repository in /tmp/subplotg0qcFSmoke-test--Runs-adapter/testy.. ✓ Repository testy created. Your Repository ID (RID) is rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe. You can show it any time by running `rad .` from this directory. You have created a private repository. This repository will only be visible to you, and to peers you explicitly allow. To make it public, run `rad publish`. To push changes, run `git push`. { "payload": { "xyz.radicle.project": { "defaultBranch": "main", "description": "test", "name": "testy" } }, "delegates": [ "did:key:z6MkoqWKitKnBh59dgkF8fTAuZWLgXKYnZpvVe519vNH2aM3" ], "threshold": 1, "visibility": { "type": "private" } } ╭──────────────────────────────────────────────────────────────────────────╮ │ ● ID Title Author Status Created │ ├──────────────────────────────────────────────────────────────────────────┤ │ ● a09b123 Initial revision brokertest (you) accepted now │ ╰──────────────────────────────────────────────────────────────────────────╯ Stderr: + mkdir -p /tmp/subplotg0qcFSmoke-test--Runs-adapter/homedir + rad auth --alias brokertest + git config --global user.email radicle@example.com + git config --global user.name TestyMcTestFace + git init -b main testy + cd testy + echo 'test file' + git add . + git commit -am test + git status + git show + rad init --name testy --description test --default-branch main --private --no-confirm --no-seed + rad inspect --identity + rad id list ci-broker.md:250:1: step: given file refsfetched.json ci-broker.md:251:1: step: given file set-rid ci-broker.md:252:1: step: when I run bash radenv.sh env HOME=../homedir python3 set-rid refsfetched.json testy Running `bash` with args ["radenv.sh", "env", "HOME=../homedir", "python3", "set-rid", "refsfetched.json", "testy"] Running in /tmp/subplotg0qcFSmoke-test--Runs-adapter ENV: SHELL = /bin/sh PATH: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src/target/debug://bin:/home/_rad/.radicle/bin:/home/_rad/.cargo/bin Exit code: 0 Stdout: Stderr: ci-broker.md:253:1: step: when I run synthetic-events synt.sock refsfetched.json --log log.txt Running `synthetic-events` with args ["synt.sock", "refsfetched.json", "--log", "log.txt"] Running in /tmp/subplotg0qcFSmoke-test--Runs-adapter ENV: SHELL = /bin/sh PATH: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src/target/debug://bin:/home/_rad/.radicle/bin:/home/_rad/.cargo/bin Exit code: 0 Stdout: launching daemon waiting for daemon to create socket no socket yet there is a socket now Stderr: ci-broker.md:255:1: step: given a directory reports ci-broker.md:256:1: step: given file broker.yaml ci-broker.md:258:1: step: when I run bash radenv.sh RAD_SOCKET=synt.sock cib --config broker.yaml process-events Running `bash` with args ["radenv.sh", "RAD_SOCKET=synt.sock", "cib", "--config", "broker.yaml", "process-events"] Running in /tmp/subplotg0qcFSmoke-test--Runs-adapter ENV: SHELL = /bin/sh PATH: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src/target/debug://bin:/home/_rad/.radicle/bin:/home/_rad/.cargo/bin Exit code: 0 Stdout: Stderr: {"msg":"CI broker starts","level":"INFO","ts":"2024-11-13T16:11:52.24235839Z","version":"4caab21"} {"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 \"API_KEY\": \"***\",\n } },\n },\n max_run_time: 3600s,\n filters: [\n Branch(\n RefString(\n \"main\",\n ),\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-11-13T16:11:52.25519826Z"} {"msg":"start page updater thread","level":"INFO","ts":"2024-11-13T16:11:52.636237709Z"} {"msg":"wait about 60 seconds to update HTML report pages again","level":"INFO","ts":"2024-11-13T16:11:52.636312249Z"} {"msg":"broker database: ci-broker.db","level":"INFO","ts":"2024-11-13T16:11:52.636423359Z"} {"msg":"adapter 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 \"API_KEY\": \"***\",\n } },\n },\n max_run_time: 3600s,\n filters: [\n Branch(\n RefString(\n \"main\",\n ),\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-11-13T16:11:52.6370396Z"} {"msg":"start thread to add events from node to event queue","level":"INFO","ts":"2024-11-13T16:11:52.640756985Z"} {"msg":"start thread to process events until a shutdown event","level":"INFO","ts":"2024-11-13T16:11:52.647093695Z"} {"msg":"created node event source","level":"INFO","ts":"2024-11-13T16:11:52.649082408Z","source":"NodeEventSource<path=/tmp/subplotg0qcFSmoke-test--Runs-adapter/homedir/.radicle"} {"msg":"created CI event source","level":"INFO","ts":"2024-11-13T16:11:52.649365269Z","source":"CiEventSource<path=NodeEventSource<path=/tmp/subplotg0qcFSmoke-test--Runs-adapter/homedir/.radicle"} {"msg":"node_event: try to get an event","level":"DEBG","ts":"2024-11-13T16:11:52.649615159Z"} {"msg":"node event source received event","level":"INFO","ts":"2024-11-13T16:11:52.65002692Z","node_event":"RefsFetched {\n remote: PublicKey(z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV),\n rid: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe),\n updated: [\n Updated {\n name: RefString(\n \"refs/namespaces/z6MkoqWKitKnBh59dgkF8fTAuZWLgXKYnZpvVe519vNH2aM3/refs/heads/main\",\n ),\n old: Oid(\n 0000000000000000000000000000000000000000,\n ),\n new: Oid(\n 59c3dfeeb50664ead9e8954773e3f6183624a0dd,\n ),\n },\n ],\n}"} {"msg":"ci_event_source: result=Ok(Some(RefsFetched { remote: PublicKey(z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV), rid: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe), updated: [Updated { name: RefString(\"refs/namespaces/z6MkoqWKitKnBh59dgkF8fTAuZWLgXKYnZpvVe519vNH2aM3/refs/heads/main\"), old: Oid(0000000000000000000000000000000000000000), new: Oid(59c3dfeeb50664ead9e8954773e3f6183624a0dd) }] }))","level":"DEBG","ts":"2024-11-13T16:11:52.65060677Z"} {"msg":"CI event source received events","level":"INFO","ts":"2024-11-13T16:11:52.655627168Z","ci_events":"[\n V1(\n BranchUpdated {\n from_node: PublicKey(z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV),\n repo: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe),\n branch: RefString(\n \"main\",\n ),\n tip: Oid(\n 59c3dfeeb50664ead9e8954773e3f6183624a0dd,\n ),\n old_tip: Oid(\n 0000000000000000000000000000000000000000,\n ),\n },\n ),\n]"} {"msg":"queueadd: events=Ok(Some([V1(BranchUpdated { from_node: PublicKey(z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV), repo: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe), branch: RefString(\"main\"), tip: Oid(59c3dfeeb50664ead9e8954773e3f6183624a0dd), old_tip: Oid(0000000000000000000000000000000000000000) })]))","level":"DEBG","ts":"2024-11-13T16:11:52.656232359Z"} {"msg":"EventFilter::allows: decision=true event=V1(BranchUpdated { from_node: PublicKey(z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV), repo: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe), branch: RefString(\"main\"), tip: Oid(59c3dfeeb50664ead9e8954773e3f6183624a0dd), old_tip: Oid(0000000000000000000000000000000000000000) })","level":"DEBG","ts":"2024-11-13T16:11:52.65648633Z"} {"msg":"insert broker event into queue: V1(BranchUpdated { from_node: PublicKey(z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV), repo: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe), branch: RefString(\"main\"), tip: Oid(59c3dfeeb50664ead9e8954773e3f6183624a0dd), old_tip: Oid(0000000000000000000000000000000000000000) })","level":"DEBG","ts":"2024-11-13T16:11:52.65678443Z"} {"msg":"node_event: try to get an event","level":"DEBG","ts":"2024-11-13T16:11:52.719755296Z"} {"msg":"node event source end of file on control socket","level":"INFO","ts":"2024-11-13T16:11:52.719844646Z","node_event_source":"NodeEventSource<path=/tmp/subplotg0qcFSmoke-test--Runs-adapter/homedir/.radicle"} {"msg":"ci_event_source: result=Ok(None)","level":"DEBG","ts":"2024-11-13T16:11:52.719888996Z"} {"msg":"CI event source was notified end of events","level":"INFO","ts":"2024-11-13T16:11:52.719920776Z"} {"msg":"queueadd: events=Ok(None)","level":"DEBG","ts":"2024-11-13T16:11:52.719953506Z"} {"msg":"thread to process events ends","level":"INFO","ts":"2024-11-13T16:11:52.719985506Z"} {"msg":"picked event from queue: c0522a8f-cb04-4466-a7b8-048738b2c908: QueuedCiEvent {\n id: QueueId {\n id: \"c0522a8f-cb04-4466-a7b8-048738b2c908\",\n },\n ts: \"2024-11-13 16:11:52.656924Z\",\n event: V1(\n BranchUpdated {\n from_node: PublicKey(z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV),\n repo: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe),\n branch: RefString(\n \"main\",\n ),\n tip: Oid(\n 59c3dfeeb50664ead9e8954773e3f6183624a0dd,\n ),\n old_tip: Oid(\n 0000000000000000000000000000000000000000,\n ),\n },\n ),\n}","level":"INFO","ts":"2024-11-13T16:11:52.720705687Z"} {"msg":"Action: run: rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe 59c3dfeeb50664ead9e8954773e3f6183624a0dd","level":"INFO","ts":"2024-11-13T16:11:52.720764248Z"} {"msg":"start CI run","level":"INFO","ts":"2024-11-13T16:11:52.727191077Z"} {"msg":"trigger event: Trigger {\n common: EventCommonFields {\n version: 1,\n event_type: Push,\n repository: Repository {\n id: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe),\n name: \"testy\",\n description: \"test\",\n private: true,\n default_branch: \"main\",\n delegates: [\n Did(\"did:key:z6MkoqWKitKnBh59dgkF8fTAuZWLgXKYnZpvVe519vNH2aM3\"),\n ],\n },\n },\n push: Some(\n PushEvent {\n pusher: Author {\n id: Did(\"did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV\"),\n alias: None,\n },\n before: Oid(\n 59c3dfeeb50664ead9e8954773e3f6183624a0dd,\n ),\n after: Oid(\n 59c3dfeeb50664ead9e8954773e3f6183624a0dd,\n ),\n branch: \"\",\n commits: [\n Oid(\n 59c3dfeeb50664ead9e8954773e3f6183624a0dd,\n ),\n ],\n },\n ),\n patch: None,\n}","level":"DEBG","ts":"2024-11-13T16:11:52.728205828Z"} {"msg":"adapter stderr","level":"DEBG","ts":"2024-11-13T16:11:54.665428545Z","stderr":"This is an adapter error: Mordor\n"} {"msg":"wait result? TimeoutResult { timed_out: false, status: ExitStatus(unix_wait_status(0)) } status.code: Some(0)","level":"DEBG","ts":"2024-11-13T16:11:54.667073358Z"} {"msg":"adapter exit code","level":"DEBG","ts":"2024-11-13T16:11:54.667147228Z","exit_code":0} {"msg":"Finish CI run","level":"INFO","ts":"2024-11-13T16:11:54.737594065Z"} {"msg":"finished CI run: Run {\n broker_run_id: RunId {\n id: \"a76f36c6-5f5a-4e52-958c-cba5f8393964\",\n },\n adapter_run_id: Some(\n RunId {\n id: \"xyzzy\",\n },\n ),\n adapter_info_url: None,\n repo_id: RepoId(rad:z3FMzSiHpmdZdhcDrDmTkidXiwuwe),\n repo_name: \"testy\",\n timestamp: \"2024-11-13 16:11:52Z\",\n whence: Branch {\n name: \"push-event-has-no-branch-name\",\n commit: Oid(\n 59c3dfeeb50664ead9e8954773e3f6183624a0dd,\n ),\n who: Some(\n \"did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV\",\n ),\n },\n state: Finished,\n result: Some(\n Success,\n ),\n}","level":"DEBG","ts":"2024-11-13T16:11:54.737820655Z"} {"msg":"remove event from queue: c0522a8f-cb04-4466-a7b8-048738b2c908","level":"INFO","ts":"2024-11-13T16:11:54.738086845Z"} {"msg":"event notification channel disconnected","level":"INFO","ts":"2024-11-13T16:11:54.842424765Z"} {"msg":"thread to process events ends","level":"INFO","ts":"2024-11-13T16:11:54.842493135Z"} {"msg":"page updater: run notification channel disconnected","level":"INFO","ts":"2024-11-13T16:11:55.472265003Z"} {"msg":"end page updater thread","level":"INFO","ts":"2024-11-13T16:11:55.479853354Z"} {"msg":"CI broker ends successfully","level":"INFO","ts":"2024-11-13T16:11:55.480119745Z"} ci-broker.md:259:1: step: then stderr contains "CI broker starts" ci-broker.md:260:1: step: then stderr contains "loaded configuration" ci-broker.md:261:1: step: then stderr contains "CI broker ends successfully" ci-broker.md:262:1: step: then file reports/index.html exists ci-broker.md:263:1: step: then file reports/status.json exists ci-broker.md:264:1: step: then file reports/index.rss exists ci-broker.md:265:1: step: when I run tidy -xml -indent -quiet reports/index.rss Running `tidy` with args ["-xml", "-indent", "-quiet", "reports/index.rss"] Running in /tmp/subplotg0qcFSmoke-test--Runs-adapter ENV: SHELL = /bin/sh PATH: /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src/target/debug://bin:/home/_rad/.radicle/bin:/home/_rad/.cargo/bin return: Failure thread 'smoke_test__runs_adapter' panicked at /srv/http/f728598b-a1a0-4188-b45a-99915d6314f7/src/target/debug/build/radicle-ci-broker-076e095901296075/out/ci-broker.rs:504:20: called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failures: smoke_test__runs_adapter test result: FAILED. 37 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 96.34s 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/timeoutcmd.rs - timeoutcmd (line 21) ... ok test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.48s error: 1 target failed: `--test subplot`