Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
release 0.11.0
Merged liw opened 1 year ago
4 files changed +85 -35 11c002d9 e9f51c5c
modified Cargo.lock
@@ -415,7 +415,7 @@ dependencies = [
 "heck",
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -523,7 +523,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32a2785755761f3ddc1492979ce1e48d2c00d09311c39e4466429188f3dd6501"
dependencies = [
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -552,7 +552,7 @@ checksum = "1234e1717066d3c71dcf89b75e7b586299e41204d361db56ec51e6ded5014279"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -618,7 +618,7 @@ dependencies = [
 "proc-macro2",
 "quote",
 "strsim",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -629,7 +629,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
dependencies = [
 "darling_core",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -695,7 +695,7 @@ dependencies = [
 "darling",
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -705,7 +705,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
dependencies = [
 "derive_builder_core",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -749,7 +749,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -1010,7 +1010,7 @@ dependencies = [
 "git-ref-format-core",
 "proc-macro-error",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -1242,7 +1242,7 @@ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -1710,7 +1710,7 @@ dependencies = [
 "pest_meta",
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -1736,9 +1736,9 @@ dependencies = [

[[package]]
name = "pin-project-lite"
-
version = "0.2.15"
+
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff"
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"

[[package]]
name = "pkcs1"
@@ -1928,7 +1928,7 @@ dependencies = [

[[package]]
name = "radicle-ci-broker"
-
version = "0.10.0"
+
version = "0.11.0"
dependencies = [
 "anyhow",
 "clap",
@@ -2294,14 +2294,14 @@ checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
name = "serde_json"
-
version = "1.0.134"
+
version = "1.0.135"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d00f4175c42ee48b15416f6193a959ba3a0d67fc699a0db9ad12df9f83991c7d"
+
checksum = "2b0d7ba2887406110130a978386c4e1befb98c674b4fba677954e4db976630d9"
dependencies = [
 "indexmap",
 "itoa",
@@ -2614,7 +2614,7 @@ dependencies = [
 "proc-macro2",
 "quote",
 "subplot",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -2636,9 +2636,9 @@ dependencies = [

[[package]]
name = "syn"
-
version = "2.0.94"
+
version = "2.0.95"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "987bc0be1cdea8b10216bd06e2ca407d40b9543468fafd3ddfb02f36e77f71f3"
+
checksum = "46f71c0377baf4ef1cc3e3402ded576dccc315800fbc62dfc7fe04b009773b4a"
dependencies = [
 "proc-macro2",
 "quote",
@@ -2653,7 +2653,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -2748,7 +2748,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -2759,7 +2759,7 @@ checksum = "7b50fa271071aae2e6ee85f842e2e28ba8cd2c5fb67f11fcb1fd70b276f9e7d4"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -2847,7 +2847,7 @@ checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -3135,7 +3135,7 @@ dependencies = [
 "log",
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
 "wasm-bindgen-shared",
]

@@ -3157,7 +3157,7 @@ checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
 "wasm-bindgen-backend",
 "wasm-bindgen-shared",
]
@@ -3349,9 +3349,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"

[[package]]
name = "winnow"
-
version = "0.6.21"
+
version = "0.6.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "e6f5bb5257f2407a5425c6e749bfd9692192a73e70a6060516ac04f889087d68"
+
checksum = "39281189af81c07ec09db316b302a3e67bf9bd7cbf6c820b50e35fee9c2fa980"
dependencies = [
 "memchr",
]
@@ -3370,9 +3370,9 @@ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"

[[package]]
name = "xattr"
-
version = "1.3.1"
+
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f"
+
checksum = "e105d177a3871454f754b33bb0ee637ecaaac997446375fd3e5d43a2ed00c909"
dependencies = [
 "libc",
 "linux-raw-sys",
@@ -3410,7 +3410,7 @@ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
 "synstructure",
]

@@ -3432,7 +3432,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]

[[package]]
@@ -3452,7 +3452,7 @@ checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
 "synstructure",
]

@@ -3481,5 +3481,5 @@ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.94",
+
 "syn 2.0.95",
]
modified Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "radicle-ci-broker"
-
version = "0.10.0"
+
version = "0.11.0"
edition = "2021"
rust-version = "1.80"
authors = ["Lars Wirzenius <liw@liw.fi", "cloudhead <cloudhead@radicle.xyz>"]
modified NEWS.md
@@ -4,6 +4,50 @@ This file summarizes the user-visible changes to `radicle-ci-broker`
between releases.


+
## Version 0.11.0, released 2025-01-07
+

+
* The CI broker no longer crashes if it fails to create a trigger
+
  message from a CI event. Previously, if there was some problem, such
+
  as a repository getting deleted between the CI event being added to
+
  the event queue and it getting picked up for processing, the CI
+
  broker would crash. The idea was that if the trigger message can't
+
  be created, the event can't be processed in a useful manner, and so
+
  it's better to give up. What really happened is that systemd or
+
  another system would re-start the CI broker, which would pick up the
+
  same event, and again fail to create trigger message, resulting in
+
  another crash.
+

+
  Now the CI broker will log the failure, delete the problematic event
+
  from the event queue, and then continue with the next event. This
+
  makes the CI broker more robust.
+

+
* Some log messages have "extra data" in separate fields, instead of
+
  the free-form message field. The separate fields are typically text
+
  with values in the Rust debug format, so they're still not very
+
  easily consumed by other programs, but they're at least easier to
+
  see.
+

+
* Log messages related to a specific CI run now include the broker run
+
  ID as an extra field. This makes it easier to extract all the
+
  messages related to a specific CI run.
+

+
* Most log messages now have an extra `msg_id` field that contains the
+
  type of message, such as `AdapterConfig`, `BrokerRunStart`, or
+
  `CibEndSuccess`. The full list is in the `src/logger.rs` source
+
  file.
+

+
* The `cibtool log` subcommand can extract `cib` log messages from the
+
  systemd journal:
+

+
~~~
+
sudo journalctl -S today -u radicle-ci-broker -o json | cibtool log --log-level info
+
~~~
+

+
  The output of `cibtool log` is JSON, which is reasonably easy to
+
  post-process by another program, such as `jq` or a small Python
+
  script.
+

+

## Version 0.10.0, released 2024-12-05

Bug fix:
modified debian/changelog
@@ -1,3 +1,9 @@
+
radicle-ci-broker (0.11.0) unstable; urgency=medium
+

+
  * New release.
+

+
 -- Lars Wirzenius <liw@liw.fi>  Tue, 07 Jan 2025 14:05:06 +0200
+

radicle-ci-broker (0.10.0) unstable; urgency=medium

  * New release. See NEWS.md for release notes.