Commit Graph
24 Commits
Author SHA1 Message Date
Fintan Halpenny fd69685db8 fix: Use loop in FindByCommit::next to avoid stack overflow
Use an iterative loop with `return` and `continue` to avoid stack overflow.
A stack overflow could have occurred due to the recursion, and
potentially many jobs.
2026-03-06 08:30:58 +00:00
Fintan Halpenny 57f2ad0757 chore: update to radicle to 0.21.0
Update the `radicle` crate to 0.21.0.

This requires the MSRV to be updated to 1.85.0.
2026-03-04 17:51:15 +00:00
Fintan Halpenny e37ff3447e cli: add timestamp to output
With the Run storing the timestamp, it can be added to the CLI output
as well.

When pretty printing the timestamp, `chrono` is used to have a
date-time format.
2025-12-28 15:16:29 +00:00
Fintan Halpenny c2697d7854 lib: add timestamp to Run
For each Run, the timestamp can be easily tracked using the
operation's timestamp. This field is added to Run to provide more
information to end users.
2025-12-28 15:15:18 +00:00
Defelo 1ac2251ac8 feat: add --version flag 2025-10-08 14:53:43 +01:00
Sebastian Martinez 8935de56d3 chore: update radicle 0.20.0 2025-10-08 15:46:12 +02:00
Lars Wirzenius 6a23756c2e fix(src/bin/radicle-job.rs): add missing elided hidden lifetime
The elided hidden lifetime in the return type can lead to confusion,
and from Rust 1.89.0 the compiler warns about it by default. Avoid the
warning by making the elided lifetime explicit.

The release blog post explains this:
https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/#mismatched-lifetime-syntaxes-lint

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-08-19 15:51:08 +01:00
Richard Levitte 8530300d04 feat: add --pretty to 'rad-job show'
This involves moving pretty-printing of individual jobs from
display::Jobs to display::Job.

Signed-off-by: Richard Levitte <richard@levitte.org>
2025-07-18 10:35:40 +01:00
Fintan Halpenny 841ea446c0 feat: add program to manipulate and inspect job COBs 2025-07-18 10:35:18 +01:00
Fintan Halpenny 4e85d1cef3 feat: display module
Adds a `display` module to hold types that are useful in tools that can display
data, e.g. a `rad-job` CLI
2025-07-18 08:39:11 +01:00
Fintan Halpenny 0c82a9a934 feat: add FindByCommit iterator
Introducing a `FindByCommit` iterator, which can be constructed using
`Jobs::find_by_commit`.

This allows the caller to supply a `git::Oid` and get back an `Iterator` of all
`Job`s that are running for that commit.
2025-07-18 08:39:11 +01:00
Lars Wirzenius 574129a2d0 fix: inline variable in format string
This is now considered idiomatic Rust style. Found by clippy in Rust
1.88, but will work with Rust 1.84.1.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-06-30 09:37:08 +03:00
Lars Wirzenius 0ce659a60b fix: allow accessing the log URL for a run
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-06-11 16:08:28 +02:00
Lars Wirzenius 4512b1091f fix: make JobId (de)serializable
This makes it easier to embed in a struct that gets serialized.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-06-11 16:05:54 +02:00
Lars Wirzenius 6fef4ae530 fix: drop unused type parameter C from Jobs::get_mut
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-06-11 10:44:52 +03:00
Lars WirzeniusandFintan Halpenny 524dfdb12a docs: document Jobs::get and Jobs::get_mut
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2025-06-11 08:30:25 +02:00
Fintan Halpenny 1ce12295c2 refactor: introduce JobId
Introduce a newtype `JobId` to differentiate it from the more general
`ObjectId`.
2025-06-11 08:29:10 +02:00
Fintan Halpenny e917ef069e fix: infallible action
The `action` method does not actually return any errors.

Change the return type to unit, and remove the unneccessary error handling.
2025-06-10 10:47:26 +02:00
Fintan Halpenny f9d9f1f182 fix: make Transaction private
For the time being, it is better to hide the `Transaction` type since actions
might need to stay fine-grained.
2025-06-10 10:47:26 +02:00
Lars WirzeniusandFintan Halpenny 24750667f0 docs: add documentation comments to all public items that lack them
Some public items of the crate were undocumented. These items are now better
described in detail, and the missing docs pragma is added to catch further
missing items in the future.

Signed-off-by: Lars Wirzenius <liw@liw.fi>
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2025-06-10 10:46:18 +02:00
Fintan Halpenny 256242f1ff chore: radicle 0.15
Update the `radicle` dependency to `0.15`, fixing the required API changes.
2025-06-03 15:55:55 +02:00
Lars Wirzenius 7cd8b06c07 docs: add a doc test to library, for documetation
Signed-off-by: Lars Wirzenius <liw@liw.fi>
2025-05-15 14:42:35 +02:00
Fintan Halpenny 8b8cb49458 chore: update to latest radicle
Use `refs/heads/master` to ensure the latest updates – including the
`Transaction::initial` changes. This is a stop-gap until a new version of
`radicle` is published to crates.io.
2025-05-14 14:03:12 +02:00
Fintan Halpenny d5685cb755 radicle-job
The genesis of the `Job` collaborative object
2025-03-26 14:52:20 +00:00