Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
chore: prepare release 0.4.0
Lars Wirzenius committed 1 year ago
commit 81a9a7b3b044f2bc3df6cc503c2335be2f7620e3
parent 13ce97b1f0ed902076fc6c81d6c84a9b9b790701
3 files changed +167 -69
modified Cargo.lock
@@ -260,12 +260,6 @@ dependencies = [

[[package]]
name = "bitflags"
-
version = "1.3.2"
-
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
-

-
[[package]]
-
name = "bitflags"
version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
@@ -331,12 +325,13 @@ dependencies = [

[[package]]
name = "cc"
-
version = "1.1.7"
+
version = "1.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc"
+
checksum = "72db2f7947ecee9b03b510377e8bb9077afa27176fdbff55c51027e976fdcc48"
dependencies = [
 "jobserver",
 "libc",
+
 "shlex",
]

[[package]]
@@ -374,9 +369,9 @@ dependencies = [

[[package]]
name = "clap"
-
version = "4.5.13"
+
version = "4.5.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "0fbb260a053428790f3de475e304ff84cdbc4face759ea7a3e64c1edd938a7fc"
+
checksum = "ed6719fffa43d0d87e5fd8caeab59be1554fb028cd30edc88fc4369b17971019"
dependencies = [
 "clap_builder",
 "clap_derive",
@@ -384,9 +379,9 @@ dependencies = [

[[package]]
name = "clap_builder"
-
version = "4.5.13"
+
version = "4.5.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "64b17d7ea74e9f833c7dbf2cbe4fb12ff26783eda4782a8975b72f895c9b4d99"
+
checksum = "216aec2b177652e3846684cbfe25c9964d18ec45234f0f5da5157b207ed1aab6"
dependencies = [
 "anstream",
 "anstyle",
@@ -404,7 +399,7 @@ dependencies = [
 "heck",
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
@@ -427,9 +422,9 @@ checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"

[[package]]
name = "cpufeatures"
-
version = "0.2.12"
+
version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504"
+
checksum = "51e852e6dc9a5bed1fae92dd2375037bf2b768725bf3be87811edee3249d09ad"
dependencies = [
 "libc",
]
@@ -531,7 +526,7 @@ checksum = "1234e1717066d3c71dcf89b75e7b586299e41204d361db56ec51e6ded5014279"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
@@ -783,14 +778,14 @@ checksum = "31a7a908b8f32538a2143e59a6e4e2508988832d5d4d6f7c156b3cbc762643a5"

[[package]]
name = "filetime"
-
version = "0.2.23"
+
version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd"
+
checksum = "bf401df4a4e3872c4fe8151134cf483738e74b67fc934d6532c882b3d24a4550"
dependencies = [
 "cfg-if",
 "libc",
-
 "redox_syscall",
-
 "windows-sys 0.52.0",
+
 "libredox",
+
 "windows-sys 0.59.0",
]

[[package]]
@@ -940,7 +935,7 @@ dependencies = [
 "log",
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
 "time",
]

@@ -950,7 +945,7 @@ version = "0.18.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "232e6a7bfe35766bf715e55a88b39a700596c0ccfd88cd3680b4cdb40d66ef70"
dependencies = [
-
 "bitflags 2.6.0",
+
 "bitflags",
 "libc",
 "libgit2-sys",
 "log",
@@ -982,7 +977,7 @@ version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757"
dependencies = [
-
 "bitflags 2.6.0",
+
 "bitflags",
 "ignore",
 "walkdir",
]
@@ -1034,9 +1029,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"

[[package]]
name = "hermit-abi"
-
version = "0.3.9"
+
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
+
checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"

[[package]]
name = "hmac"
@@ -1108,9 +1103,9 @@ dependencies = [

[[package]]
name = "indexmap"
-
version = "2.3.0"
+
version = "2.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "de3fc2e30ba82dd1b3911c8de1ffc143c74a914a14e99514d7637e3099df5ea0"
+
checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c"
dependencies = [
 "equivalent",
 "hashbrown",
@@ -1128,9 +1123,9 @@ dependencies = [

[[package]]
name = "is-terminal"
-
version = "0.4.12"
+
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b"
+
checksum = "261f68e344040fbd0edea105bef17c66edf46f984ddb1115b775ce31be948f4b"
dependencies = [
 "hermit-abi",
 "libc",
@@ -1178,9 +1173,9 @@ dependencies = [

[[package]]
name = "libc"
-
version = "0.2.155"
+
version = "0.2.158"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
+
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"

[[package]]
name = "libgit2-sys"
@@ -1201,6 +1196,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"

[[package]]
+
name = "libredox"
+
version = "0.1.3"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
+
dependencies = [
+
 "bitflags",
+
 "libc",
+
 "redox_syscall",
+
]
+

+
[[package]]
name = "libyml"
version = "0.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -1208,9 +1214,9 @@ checksum = "64804cc6a5042d4f05379909ba25b503ec04e2c082151d62122d5dcaa274b961"

[[package]]
name = "libz-sys"
-
version = "1.1.18"
+
version = "1.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "c15da26e5af7e25c90b37a2d75cdbf940cf4a55316de9d84c679c9b8bfabf82e"
+
checksum = "fdc53a7799a7496ebc9fd29f31f7df80e83c9bda5299768af5f9e59eeea74647"
dependencies = [
 "cc",
 "libc",
@@ -1314,7 +1320,7 @@ version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46"
dependencies = [
-
 "bitflags 2.6.0",
+
 "bitflags",
 "cfg-if",
 "cfg_aliases",
 "libc",
@@ -1518,7 +1524,7 @@ dependencies = [
 "pest_meta",
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
@@ -1661,7 +1667,7 @@ version = "0.9.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57206b407293d2bcd3af849ce869d52068623f19e1b5ff8e8778e3309439682b"
dependencies = [
-
 "bitflags 2.6.0",
+
 "bitflags",
 "getopts",
 "memchr",
 "unicase",
@@ -1719,7 +1725,7 @@ dependencies = [

[[package]]
name = "radicle-ci-broker"
-
version = "0.3.0"
+
version = "0.4.0"
dependencies = [
 "anyhow",
 "clap",
@@ -1876,11 +1882,11 @@ dependencies = [

[[package]]
name = "redox_syscall"
-
version = "0.4.1"
+
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
+
checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4"
dependencies = [
-
 "bitflags 1.3.2",
+
 "bitflags",
]

[[package]]
@@ -1993,7 +1999,7 @@ version = "0.38.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"
dependencies = [
-
 "bitflags 2.6.0",
+
 "bitflags",
 "errno",
 "libc",
 "linux-raw-sys",
@@ -2043,9 +2049,9 @@ dependencies = [

[[package]]
name = "serde"
-
version = "1.0.204"
+
version = "1.0.208"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12"
+
checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2"
dependencies = [
 "serde_derive",
]
@@ -2062,20 +2068,20 @@ dependencies = [

[[package]]
name = "serde_derive"
-
version = "1.0.204"
+
version = "1.0.208"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222"
+
checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
name = "serde_json"
-
version = "1.0.122"
+
version = "1.0.125"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "784b6203951c57ff748476b126ccb5e8e2959a5c19e5c617ab1956be3dbc68da"
+
checksum = "83c8e735a073ccf5be70aa8066aa984eaf2fa000db6c8d0100ae605b366d31ed"
dependencies = [
 "indexmap",
 "itoa",
@@ -2161,6 +2167,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24188a676b6ae68c3b2cb3a01be17fbf7240ce009799bb56d5b1409051e78fde"

[[package]]
+
name = "shlex"
+
version = "1.3.0"
+
source = "registry+https://github.com/rust-lang/crates.io-index"
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
+

+
[[package]]
name = "signature"
version = "1.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2184,9 +2196,9 @@ checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"

[[package]]
name = "slug"
-
version = "0.1.5"
+
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "3bd94acec9c8da640005f8e135a39fc0372e74535e6b368b7a04b875f784c8c4"
+
checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724"
dependencies = [
 "deunicode",
 "wasm-bindgen",
@@ -2405,7 +2417,7 @@ dependencies = [
 "culpa",
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
@@ -2427,9 +2439,9 @@ dependencies = [

[[package]]
name = "syn"
-
version = "2.0.72"
+
version = "2.0.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af"
+
checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9"
dependencies = [
 "proc-macro2",
 "quote",
@@ -2538,7 +2550,7 @@ checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
@@ -2616,7 +2628,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
@@ -2852,34 +2864,35 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"

[[package]]
name = "wasm-bindgen"
-
version = "0.2.92"
+
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
+
checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5"
dependencies = [
 "cfg-if",
+
 "once_cell",
 "wasm-bindgen-macro",
]

[[package]]
name = "wasm-bindgen-backend"
-
version = "0.2.92"
+
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
+
checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b"
dependencies = [
 "bumpalo",
 "log",
 "once_cell",
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
 "wasm-bindgen-shared",
]

[[package]]
name = "wasm-bindgen-macro"
-
version = "0.2.92"
+
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
+
checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf"
dependencies = [
 "quote",
 "wasm-bindgen-macro-support",
@@ -2887,22 +2900,22 @@ dependencies = [

[[package]]
name = "wasm-bindgen-macro-support"
-
version = "0.2.92"
+
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
+
checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
 "wasm-bindgen-backend",
 "wasm-bindgen-shared",
]

[[package]]
name = "wasm-bindgen-shared"
-
version = "0.2.92"
+
version = "0.2.93"
source = "registry+https://github.com/rust-lang/crates.io-index"
-
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
+
checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484"

[[package]]
name = "winapi"
@@ -3132,7 +3145,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
dependencies = [
 "proc-macro2",
 "quote",
-
 "syn 2.0.72",
+
 "syn 2.0.75",
]

[[package]]
modified Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "radicle-ci-broker"
-
version = "0.3.0"
+
version = "0.4.0"
edition = "2021"
rust-version = "1.77"
authors = ["Lars Wirzenius <liw@liw.fi", "cloudhead <cloudhead@radicle.xyz>"]
modified NEWS.md
@@ -4,6 +4,91 @@ This file summarizes the user-visible changes to `radicle-ci-broker`
between releases.


+
## Version 0.4.0, released 2024-08-19
+

+
This is the fourth release. In breaking with tradition, it does not
+
have significant breaking changes.
+

+
## Breaking changes
+

+
* The `cibtool run list` command now lists only the identifiers of CI
+
  runs, one per line, by default. An option `--json` was added to get
+
  all the information in a format that's easy to parse with a program.
+
  This is a breaking change if you parse the output of the command
+
  with another command.
+

+
* The `cibtool run add` command no longer has a `--finished` option.
+
  It is now enough to use `--successful` or `--failure`. The dropped
+
  option was always used with one of those two, and those two were
+
  always used with the dropped option, so the dropped one was
+
  pointless and provided no extra information. It was just extra work
+
  for the user.
+

+
### Bug fixes
+

+
* The CI broker handles errors without panicking now. Instead of a
+
  stack trace, an actual error message is shown. This may be more
+
  friendly to most people.
+

+
* The CI broker now depends on Radicle 0.12.0, to say more current
+
  with changes in Radicle.
+

+
* The `cibtool run add` command sets the state correctly if the run
+
  has finished. Previously it was set to "triggered".
+

+
* Several instances of "CI" being spelled as "Ci" have been fixed, in
+
  log messages and help texts.
+

+

+
### New or changed features
+

+
* The HTML report pages produced by the CI broker are now a little
+
  more readable.
+

+
* The various parts of the running CI broker now notify each other
+
  that there have been changes so that the other parts can do what
+
  they need to do at once, instead of checking on a fixed schedule.
+
  This means, for example, that the HTML report pages for a run are
+
  updated at once, instead of once a minute.
+

+
* The `cib` and `cibtool` commands now both have an option `--version`
+
  to show the version number of the program.
+

+
* The `cibtool trigger` command makes it easier to trigger a CI run.
+
  This duplicates the functionality of `cibtool event add`, but is a
+
  little simpler to remember, and a little safer to use. The trigger
+
  command makes sure the base commit is always set in the event it
+
  creates. (The command to add an event does not, in cases users
+
  really want that behavior.)
+

+
* Each CI run now has two identifiers: one invented by the CI broker
+
  itself, guaranteed to be unique, and one chosen by the adapter,
+
  meant to reflect the identifier used by an external CI system, and
+
  guaranteed to be unique. Everywhere the user refers to a CI run,
+
  either ID is accepted, as long as the adapter one is unambiguous.
+
  When a run ID is shown, both kinds are shown.
+

+
* During a CI run, when anything happens, the information about the
+
  run  is updated in the database at once, instead of at the end of
+
  the run. This means the change is not lost in case the CI broker is
+
  terminated before the run finishes.
+

+
* New commands `cibtool run show` and `cibtool run update` to show
+
  information about a run, and update it. The updating is probably
+
  mostly only relevant to those writing test suites for the CI broker.
+

+
* Started documenting the acceptance criteria for logging in the CI
+
  broker, and how to verify that the criteria are met. This will
+
  probably continue over the next few releases. As part of this, the
+
  stakeholders are documented. In this release the list of
+
  stakeholders is quite rudimentary and the CI broker developers would
+
  like to hear from you if you have any wants or needs about the CI
+
  broker, whether about logging or otherwise.
+

+
  Additionally, this takes the first small steps towards having
+
  structured logging.
+

+

## Version 0.3.0, released 2024-07-18

This is the third release. It breaks all existing installations.