rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwoodfb4d84927c228d59d48afb997ff35385a2898f95
{
"request": "trigger",
"version": 1,
"event_type": "patch",
"repository": {
"id": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"name": "heartwood",
"description": "Radicle Heartwood Protocol & Stack",
"private": false,
"default_branch": "master",
"delegates": [
"did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT",
"did:key:z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Updated",
"patch": {
"id": "43e58eadac2d669bf21e723e96f82b7269a8eca7",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"title": "First Refactor of Canonical Logic",
"state": {
"status": "open",
"conflicts": []
},
"before": "2d5e5ec70cbea37c1439f997083fd4f0b00fc89c",
"after": "fb4d84927c228d59d48afb997ff35385a2898f95",
"commits": [
"fb4d84927c228d59d48afb997ff35385a2898f95",
"5b4da8a660884c7d5b486e4a6580512b1c347b80",
"4bfb04aed08820690cf927c6ae5620e08a40b219",
"3a6785419cab8139fe998cc7d47ba7b1bdc8c727"
],
"target": "a65ac048cbda3473e7b372375d33e3a357965492",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "43e58eadac2d669bf21e723e96f82b7269a8eca7",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "This is the first pass at refactoring the canonical logic using the\nnewly defined Git repository traits.\n\nThe refactor essentially delegates the old \"effects\" to the new traits.\nNo other logic is changed.",
"base": "47c8447f16922c49141e30bd50c7c9b6bec56cc9",
"oid": "ab3c64ddf2b1fd2985c0e380039ae44f5348fa26",
"timestamp": 1778760184
},
{
"id": "3875a959e891df58b9a1644d623936dc28b4398f",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "Changes:\n- Reword commits",
"base": "9158df5067429282cbec60292316c13b3d965c5a",
"oid": "8787796de041765ae1b53d358474079924f99494",
"timestamp": 1778944459
},
{
"id": "a3672bfcd536e6c395bcd078ffaffa05b79ede27",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"description": "Rebase",
"base": "2d5e5ec70cbea37c1439f997083fd4f0b00fc89c",
"oid": "fb4d84927c228d59d48afb997ff35385a2898f95",
"timestamp": 1780126898
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "c1898256-beae-4898-b6d8-844199c29e6e"
},
"info_url": "https://cci.rad.levitte.org//c1898256-beae-4898-b6d8-844199c29e6e.html"
}
Started at: 2026-05-30 09:45:43.743836+02:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW added
✓ Remote-tracking branch cloudhead@z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW/master created for z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ Remote erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz added
✓ Remote-tracking branch erikli@z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz/master created for z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz
✓ Remote lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz added
✓ Remote-tracking branch lorenz@z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz/master created for z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz
✓ Repository successfully cloned under /opt/radcis/ci.rad.levitte.org/cci/state/c1898256-beae-4898-b6d8-844199c29e6e/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 175 issues · 42 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 43e58eadac2d669bf21e723e96f82b7269a8eca7
✓ Switched to branch patch/43e58ea at revision a3672bf
✓ Branch patch/43e58ea setup to track rad/patches/43e58eadac2d669bf21e723e96f82b7269a8eca7
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout fb4d84927c228d59d48afb997ff35385a2898f95
HEAD is now at fb4d8492 canonical: Replace FindObjects trait with struct
Exit code: 0
$ rad patch show 43e58eadac2d669bf21e723e96f82b7269a8eca7 -p
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Title First Refactor of Canonical Logic │
│ Patch 43e58eadac2d669bf21e723e96f82b7269a8eca7 │
│ Author fintohaps z6Mkire…SQZ3voM │
│ Head fb4d84927c228d59d48afb997ff35385a2898f95 │
│ Base 2d5e5ec70cbea37c1439f997083fd4f0b00fc89c │
│ Branches patch/43e58ea │
│ Commits ahead 17, behind 0 │
│ Status open │
│ │
│ This is the first pass at refactoring the canonical logic using the │
│ newly defined Git repository traits. │
│ │
│ The refactor essentially delegates the old "effects" to the new traits. │
│ No other logic is changed. │
├──────────────────────────────────────────────────────────────────────────────────┤
│ fb4d849 canonical: Replace FindObjects trait with struct │
│ 5b4da8a radicle/git/repository: Add object_kind to ObjectReader │
│ 4bfb04a canonical: replace FindMergeBase with repository::Ancestry │
│ 3a67854 canonical: replace effects::Ancestry with repository::Ancestry │
├──────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 43e58ea @ 47c8447..ab3c64d by fintohaps z6Mkire…SQZ3voM 2 weeks ago │
│ ↑ Revision 3875a95 @ 9158df5..8787796 by fintohaps z6Mkire…SQZ3voM 1 week ago │
│ ↑ Revision a3672bf @ 2d5e5ec..fb4d849 by fintohaps z6Mkire…SQZ3voM 4 minutes ago │
╰──────────────────────────────────────────────────────────────────────────────────╯
commit fb4d84927c228d59d48afb997ff35385a2898f95
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Tue Apr 14 15:36:06 2026 +0000
canonical: Replace FindObjects trait with struct
Convert `FindObjects` from an effect trait into a struct parameterised
over `RefReader` and `ObjectReader`.
The struct provides a `FindObjects::resolve` method for determining
the objects, same as before.
diff --git a/crates/radicle-remote-helper/src/push/canonical.rs b/crates/radicle-remote-helper/src/push/canonical.rs
index be603f6e2..c58f540dd 100644
--- a/crates/radicle-remote-helper/src/push/canonical.rs
+++ b/crates/radicle-remote-helper/src/push/canonical.rs
@@ -1,9 +1,10 @@
use radicle::git;
use radicle::git::canonical;
use radicle::git::canonical::QuorumWithConvergence;
-use radicle::git::canonical::effects;
use radicle::git::canonical::error::QuorumError;
use radicle::git::repository;
+use radicle::git::repository::object;
+use radicle::git::repository::reference;
use radicle::prelude::Did;
/// Validates a vote to update a canonical reference during push.
@@ -13,7 +14,7 @@ pub(crate) struct Canonical<'a, 'b, 'r, R> {
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R>
where
- R: repository::Ancestry + effects::FindObjects,
+ R: repository::Ancestry + reference::Reader + object::Reader,
{
pub(super) fn new(
me: Did,
diff --git a/crates/radicle/src/git/canonical.rs b/crates/radicle/src/git/canonical.rs
index 06d15eb2d..322f01436 100644
--- a/crates/radicle/src/git/canonical.rs
+++ b/crates/radicle/src/git/canonical.rs
@@ -95,7 +95,7 @@ impl<'a, 'b, 'r, R> AsRef<Canonical<'a, 'b, 'r, R, ObjectsFound>>
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R, Initial>
where
- R: repository::Ancestry + effects::FindObjects,
+ R: repository::Ancestry + repository::reference::Reader + repository::object::Reader,
{
/// Construct a new [`Canonical`] with the given [`Qualified`] reference, a
/// canonical reference [`ValidRule`] for that reference, and the Git
@@ -116,13 +116,12 @@ where
pub fn find_objects(
self,
) -> Result<Canonical<'a, 'b, 'r, R, ObjectsFound>, effects::FindObjectsError> {
+ let allowed: Vec<_> = self.rule.allowed().iter().copied().collect();
let FoundObjects {
objects,
missing_refs,
missing_objects,
- } = self
- .repo
- .find_objects(&self.refname, self.rule.allowed().iter())?;
+ } = effects::FindObjects::new(self.repo, &self.refname, &allowed).resolve()?;
let missing = Missing {
refs: missing_refs,
objects: missing_objects,
@@ -140,7 +139,7 @@ where
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R, ObjectsFound>
where
- R: repository::Ancestry + effects::FindObjects,
+ R: repository::Ancestry + repository::reference::Reader + repository::object::Reader,
{
/// Adds the check for convergence before finding the quorum.
pub fn with_convergence(
@@ -243,7 +242,7 @@ where
impl<'a, 'b, 'r, R> CanonicalWithConvergence<'a, 'b, 'r, R>
where
- R: repository::Ancestry + effects::FindObjects,
+ R: repository::Ancestry + repository::reference::Reader + repository::object::Reader,
{
/// Find the [`QuorumWithConvergence`] for the canonical computation.
pub fn quorum(mut self) -> Result<QuorumWithConvergence<'a>, QuorumError> {
@@ -405,6 +404,19 @@ impl Object {
})
}
+ /// Construct an [`Object`] from an [`Oid`] and its [`ObjectKind`].
+ ///
+ /// Returns `None` if the kind is not a commit or tag.
+ ///
+ /// [`ObjectKind`]: repository::ObjectKind
+ pub fn from_kind(id: Oid, kind: repository::ObjectKind) -> Option<Self> {
+ match kind {
+ repository::ObjectKind::Commit => Some(Self::Commit { id }),
+ repository::ObjectKind::Tag => Some(Self::Tag { id }),
+ _ => None,
+ }
+ }
+
/// The [`Oid`] of the [`Object`]
pub fn id(&self) -> Oid {
match self {
diff --git a/crates/radicle/src/git/canonical/effects.rs b/crates/radicle/src/git/canonical/effects.rs
index 334b654ed..39f8959c5 100644
--- a/crates/radicle/src/git/canonical/effects.rs
+++ b/crates/radicle/src/git/canonical/effects.rs
@@ -3,51 +3,94 @@ use std::collections::{BTreeMap, BTreeSet};
use crate::git;
use crate::git::Oid;
use crate::git::fmt::Qualified;
-use crate::git::raw::ErrorExt as _;
+use crate::git::repository::object;
+use crate::git::repository::reference;
use crate::prelude::Did;
use super::{FoundObjects, Object};
-/// Find objects for the canonical computation.
-///
-/// Typically implemented by a Git repository.
-pub trait FindObjects {
- /// Find the objects for the given [`Qualified`] reference name, for each
- /// [`Did`]'s namespace.
- ///
- /// The resulting [`FoundObjects`] includes all objects that were found, the
- /// references that were missing, and the objects that were missing (if the
- /// reference was found).
- fn find_objects<'a, 'b, I>(
- &self,
- refname: &Qualified<'a>,
- dids: I,
- ) -> Result<FoundObjects, FindObjectsError>
- where
- I: Iterator<Item = &'b Did>;
+/// Finds objects for the canonical computation by resolving namespaced
+/// references and determining their object types.
+pub struct FindObjects<'a, 'b, R> {
+ repository: &'a R,
+ refname: &'b Qualified<'b>,
+ dids: &'b [Did],
}
-/// Error produced by the [`FindObjects::find_objects`] method.
+impl<'a, 'b, R> FindObjects<'a, 'b, R>
+where
+ R: reference::Reader + object::Reader,
+{
+ /// Construct a new [`FindObjects`] query.
+ pub fn new(repository: &'a R, refname: &'b Qualified<'b>, dids: &'b [Did]) -> Self {
+ Self {
+ repository,
+ refname,
+ dids,
+ }
+ }
+
+ /// Resolve all references and produce the [`FoundObjects`].
+ pub fn resolve(self) -> Result<FoundObjects, FindObjectsError> {
+ let mut objects = BTreeMap::new();
+ let mut missing_refs = BTreeSet::new();
+ let mut missing_objects = BTreeMap::new();
+
+ for did in self.dids {
+ let name = self.refname.with_namespace(did.as_key().into());
+
+ let oid = match self.repository.ref_target(&name) {
+ Ok(Some(oid)) => oid,
+ Ok(None) => {
+ missing_refs.insert(name.to_owned());
+ continue;
+ }
+ Err(e) => {
+ return Err(FindObjectsError::find_reference(name.to_owned(), e));
+ }
+ };
+
+ let kind = match self.repository.object_kind(oid) {
+ Ok(Some(kind)) => kind,
+ Ok(None) => {
+ missing_objects.insert(*did, oid);
+ continue;
+ }
+ Err(e) => return Err(FindObjectsError::find_object(oid, e)),
+ };
+
+ let object = Object::from_kind(oid, kind).ok_or_else(|| {
+ FindObjectsError::invalid_object_type(*did, oid, Some(kind.to_string()))
+ })?;
+
+ objects.insert(*did, object);
+ }
+
+ Ok(FoundObjects {
+ objects,
+ missing_refs,
+ missing_objects,
+ })
+ }
+}
+
+/// Error produced by [`FindObjects::resolve`].
#[derive(Debug, thiserror::Error)]
pub enum FindObjectsError {
#[error(transparent)]
InvalidObjectType(#[from] InvalidObjectType),
#[error(transparent)]
MissingObject(#[from] MissingObject),
- #[error("failed to find object {oid} due to: {source}")]
+ #[error("failed to find object {oid}: {source}")]
FindObject {
oid: Oid,
source: Box<dyn std::error::Error + Send + Sync + 'static>,
},
- #[error("failed to find reference {refname} due to: {source}")]
+ #[error("failed to find reference {refname}: {source}")]
FindReference {
refname: git::fmt::Namespaced<'static>,
source: Box<dyn std::error::Error + Send + Sync + 'static>,
},
- #[error("failed to find objects")]
- Other {
- source: Box<dyn std::error::Error + Send + Sync + 'static>,
- },
}
impl FindObjectsError {
@@ -86,15 +129,6 @@ impl FindObjectsError {
pub fn invalid_object_type(did: Did, oid: Oid, kind: Option<String>) -> Self {
InvalidObjectType { did, oid, kind }.into()
}
-
- pub fn other<E>(err: E) -> Self
- where
- E: std::error::Error + Send + Sync + 'static,
- {
- Self::Other {
- source: Box::new(err),
- }
- }
}
#[derive(Debug, thiserror::Error)]
@@ -112,59 +146,3 @@ pub struct MissingObject {
commit: Oid,
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
-
-// ===========================================
-// `git2` implementations of the above effects
-// ===========================================
-
-impl FindObjects for git::raw::Repository {
- fn find_objects<'a, 'b, I>(
- &self,
- refname: &Qualified,
- dids: I,
- ) -> Result<FoundObjects, FindObjectsError>
- where
- I: Iterator<Item = &'b Did>,
- {
- let mut objects = BTreeMap::new();
- let mut missing_refs = BTreeSet::new();
- let mut missing_objects = BTreeMap::new();
- for did in dids {
- let name = &refname.with_namespace(did.as_key().into());
- let reference = match self.find_reference(name.as_str()) {
- Ok(reference) => reference,
- Err(e) if e.is_not_found() => {
- missing_refs.insert(name.to_owned());
- continue;
- }
- Err(e) => {
- return Err(FindObjectsError::find_reference(name.to_owned(), e));
- }
- };
- let Some(oid) = reference.target().map(Oid::from) else {
- log::warn!(target: "radicle", "Missing target for reference `{name}`");
- continue;
- };
- let object = match self.find_object(oid.into(), None) {
- Ok(object) => Object::new(&object).ok_or_else(|| {
- FindObjectsError::invalid_object_type(
- *did,
- oid,
- object.kind().map(|kind| kind.to_string()),
- )
- }),
- Err(err) if err.is_not_found() => {
- missing_objects.insert(*did, oid);
- continue;
- }
- Err(err) => Err(FindObjectsError::find_object(oid, err)),
- };
- objects.insert(*did, object?);
- }
- Ok(FoundObjects {
- objects,
- missing_refs,
- missing_objects,
- })
- }
-}
diff --git a/crates/radicle/src/git/canonical/rules.rs b/crates/radicle/src/git/canonical/rules.rs
index 8760af8f6..e9f4e94bb 100644
--- a/crates/radicle/src/git/canonical/rules.rs
+++ b/crates/radicle/src/git/canonical/rules.rs
@@ -20,11 +20,12 @@ use serde::{Deserialize, Serialize};
use serde_json as json;
use thiserror::Error;
+use crate::git;
use crate::git::canonical;
use crate::git::canonical::Canonical;
use crate::git::fmt::Qualified;
use crate::git::fmt::refspec::QualifiedPattern;
-use crate::git::{self, repository};
+use crate::git::repository;
use crate::identity::{Did, doc};
use super::protect;
@@ -547,7 +548,7 @@ impl Rules {
repo: &'r R,
) -> Option<Canonical<'b, 'a, 'r, R, canonical::Initial>>
where
- R: repository::Ancestry + canonical::effects::FindObjects,
+ R: repository::Ancestry + repository::reference::Reader + repository::object::Reader,
{
self.matches(&refname)
.next()
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index 8fe2c75de..d85ed2d38 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -308,19 +308,6 @@ impl AsRef<Repository> for Repository {
}
}
-impl git::canonical::effects::FindObjects for Repository {
- fn find_objects<'a, 'b, I>(
- &self,
- refname: &Qualified<'a>,
- dids: I,
- ) -> Result<git::canonical::FoundObjects, git::canonical::effects::FindObjectsError>
- where
- I: Iterator<Item = &'b crate::prelude::Did>,
- {
- git::canonical::effects::FindObjects::find_objects(&self.backend, refname, dids)
- }
-}
-
/// A set of [`Validation`] errors that a caller **must use**.
#[must_use]
#[derive(Debug, Default)]
commit 5b4da8a660884c7d5b486e4a6580512b1c347b80
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Tue Apr 14 16:31:30 2026 +0100
radicle/git/repository: Add object_kind to ObjectReader
Add another method, `ObjectReader::object_kind`, to inspect the kind
of object for a give `Oid`, if it exists.
This is useful if a caller wants to inspect the kind of the object
without loading the whole object itself.
diff --git a/crates/radicle/src/git/repository/adapter/git2/object.rs b/crates/radicle/src/git/repository/adapter/git2/object.rs
index af63908f7..aa80f7b5a 100644
--- a/crates/radicle/src/git/repository/adapter/git2/object.rs
+++ b/crates/radicle/src/git/repository/adapter/git2/object.rs
@@ -65,6 +65,15 @@ impl object::Reader for raw::Repository {
.map(|odb| odb.exists(oid.into()))
.map_err(error::read::Exists::backend)
}
+
+ fn object_kind(&self, oid: Oid) -> Result<Option<ObjectKind>, read::ObjectKind> {
+ let odb = self.odb().map_err(read::ObjectKind::backend)?;
+ match odb.read(oid.into()) {
+ Ok(obj) => Ok(Some(object_kind(obj.kind()))),
+ Err(e) if matches!(e.code(), git2::ErrorCode::NotFound) => Ok(None),
+ Err(e) => Err(read::ObjectKind::backend(e)),
+ }
+ }
}
impl object::Writer for raw::Repository {
diff --git a/crates/radicle/src/git/repository/object.rs b/crates/radicle/src/git/repository/object.rs
index b4983855a..b7e701d62 100644
--- a/crates/radicle/src/git/repository/object.rs
+++ b/crates/radicle/src/git/repository/object.rs
@@ -10,7 +10,7 @@ use std::path::Path;
use radicle_oid::Oid;
-use super::types::{Blob, Commit, TreeEntry};
+use super::types::{Blob, Commit, ObjectKind, TreeEntry};
/// A handle for reading Git objects from the Git object database.
pub trait Reader {
@@ -129,6 +129,17 @@ pub trait Reader {
///
/// [`Backend`]: error::read::Exists::Backend
fn exists(&self, oid: Oid) -> Result<bool, error::read::Exists>;
+
+ /// Determine the kind of an object without reading its full content.
+ ///
+ /// Returns `None` if the object does not exist.
+ ///
+ /// # Errors
+ ///
+ /// - [`Backend`]: An unexpected error from the underlying git library.
+ ///
+ /// [`Backend`]: error::read::ObjectKind::Backend
+ fn object_kind(&self, oid: Oid) -> Result<Option<ObjectKind>, error::read::ObjectKind>;
}
/// Write Git objects to the Git object database.
diff --git a/crates/radicle/src/git/repository/object/error/read.rs b/crates/radicle/src/git/repository/object/error/read.rs
index f61ada570..175b3b529 100644
--- a/crates/radicle/src/git/repository/object/error/read.rs
+++ b/crates/radicle/src/git/repository/object/error/read.rs
@@ -121,3 +121,20 @@ impl Exists {
Self::Backend(Box::new(err))
}
}
+
+/// Error returned by [`ObjectReader::object_kind`].
+///
+/// [`ObjectReader::object_kind`]: super::super::Reader::object_kind
+#[derive(Debug, Error)]
+#[non_exhaustive]
+pub enum ObjectKind {
+ /// An error from the underlying git library.
+ #[error(transparent)]
+ Backend(Box<dyn std::error::Error + Send + Sync + 'static>),
+}
+
+impl ObjectKind {
+ pub fn backend<E: std::error::Error + Send + Sync + 'static>(err: E) -> Self {
+ Self::Backend(Box::new(err))
+ }
+}
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index 525e366f1..8fe2c75de 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -1089,6 +1089,13 @@ impl object::Reader for Repository {
fn exists(&self, oid: Oid) -> Result<bool, object::error::read::Exists> {
object::Reader::exists(&self.backend, oid)
}
+
+ fn object_kind(
+ &self,
+ oid: Oid,
+ ) -> Result<Option<git::repository::ObjectKind>, object::error::read::ObjectKind> {
+ object::Reader::object_kind(&self.backend, oid)
+ }
}
impl object::Writer for Repository {
diff --git a/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs b/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs
index ae1aec026..dbdb4a895 100644
--- a/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/read/test/mock.rs
@@ -213,6 +213,13 @@ impl object::Reader for MockRepository {
fn exists(&self, _oid: Oid) -> Result<bool, object::error::read::Exists> {
unimplemented!("MockRepository::exists")
}
+
+ fn object_kind(
+ &self,
+ _oid: Oid,
+ ) -> Result<Option<crate::git::repository::ObjectKind>, object::error::read::ObjectKind> {
+ unimplemented!("MockRepository::object_kind")
+ }
}
impl reference::Reader for MockRepository {
diff --git a/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs b/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs
index 9054dee2a..7d2917548 100644
--- a/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs
+++ b/crates/radicle/src/storage/refs/sigrefs/write/test/mock.rs
@@ -240,6 +240,13 @@ impl object::Reader for MockRepository {
fn exists(&self, _oid: Oid) -> Result<bool, object::error::read::Exists> {
unimplemented!("MockRepository::exists")
}
+
+ fn object_kind(
+ &self,
+ _oid: Oid,
+ ) -> Result<Option<crate::git::repository::ObjectKind>, object::error::read::ObjectKind> {
+ unimplemented!("MockRepository::object_kind")
+ }
}
impl reference::Reader for MockRepository {
commit 4bfb04aed08820690cf927c6ae5620e08a40b219
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Tue Apr 14 16:11:40 2026 +0100
canonical: replace FindMergeBase with repository::Ancestry
Remove the FindMergeBase effect trait entirely. The canonical quorum
code now calls repository::Ancestry::merge_base directly.
diff --git a/crates/radicle-remote-helper/src/push/canonical.rs b/crates/radicle-remote-helper/src/push/canonical.rs
index 70748d628..be603f6e2 100644
--- a/crates/radicle-remote-helper/src/push/canonical.rs
+++ b/crates/radicle-remote-helper/src/push/canonical.rs
@@ -13,7 +13,7 @@ pub(crate) struct Canonical<'a, 'b, 'r, R> {
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R>
where
- R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindObjects,
{
pub(super) fn new(
me: Did,
diff --git a/crates/radicle/src/git/canonical.rs b/crates/radicle/src/git/canonical.rs
index a49e1466c..06d15eb2d 100644
--- a/crates/radicle/src/git/canonical.rs
+++ b/crates/radicle/src/git/canonical.rs
@@ -95,7 +95,7 @@ impl<'a, 'b, 'r, R> AsRef<Canonical<'a, 'b, 'r, R, ObjectsFound>>
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R, Initial>
where
- R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindObjects,
{
/// Construct a new [`Canonical`] with the given [`Qualified`] reference, a
/// canonical reference [`ValidRule`] for that reference, and the Git
@@ -140,7 +140,7 @@ where
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R, ObjectsFound>
where
- R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindObjects,
{
/// Adds the check for convergence before finding the quorum.
pub fn with_convergence(
@@ -161,7 +161,10 @@ where
while let ControlFlow::Continue(pairs) = finder.find_merge_bases() {
let mut bases = Vec::with_capacity(pairs.size_hint().0);
for (a, b) in pairs {
- bases.push(effects::FindMergeBase::merge_base(self.repo, a, b)?);
+ let base = repository::Ancestry::merge_base(self.repo, a, b)
+ .map_err(|e| MergeBaseError::new(a, b, e))?
+ .ok_or_else(|| MergeBaseError::no_common_ancestor(a, b))?;
+ bases.push(MergeBase { a, b, base });
}
finder.found_merge_bases(bases.into_iter());
}
@@ -232,11 +235,7 @@ where
head: candidate,
},
(CommitQuorumFailure::NoMergeBase { a, b }, _) => {
- #[derive(thiserror::Error, Debug)]
- #[error("no existing merge base found for commit quorum")]
- struct NoMergeBase;
-
- effects::MergeBaseError::new(a, b, NoMergeBase).into()
+ MergeBaseError::no_merge_base(a, b).into()
}
}
}
@@ -244,7 +243,7 @@ where
impl<'a, 'b, 'r, R> CanonicalWithConvergence<'a, 'b, 'r, R>
where
- R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindObjects,
{
/// Find the [`QuorumWithConvergence`] for the canonical computation.
pub fn quorum(mut self) -> Result<QuorumWithConvergence<'a>, QuorumError> {
diff --git a/crates/radicle/src/git/canonical/effects.rs b/crates/radicle/src/git/canonical/effects.rs
index dbbbfcafc..334b654ed 100644
--- a/crates/radicle/src/git/canonical/effects.rs
+++ b/crates/radicle/src/git/canonical/effects.rs
@@ -6,7 +6,7 @@ use crate::git::fmt::Qualified;
use crate::git::raw::ErrorExt as _;
use crate::prelude::Did;
-use super::{FoundObjects, MergeBase, Object};
+use super::{FoundObjects, Object};
/// Find objects for the canonical computation.
///
@@ -113,55 +113,10 @@ pub struct MissingObject {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
-/// Find the merge base of two commits.
-///
-/// Typically implemented by a Git repository.
-pub trait FindMergeBase {
- /// Produce the [`MergeBase`] of commits `a` and `b`.
- fn merge_base(&self, a: Oid, b: Oid) -> Result<MergeBase, MergeBaseError>;
-}
-
-#[derive(Debug, thiserror::Error)]
-#[error("failed to find merge base for {a} and {b} due to: {source}")]
-pub struct MergeBaseError {
- a: Oid,
- b: Oid,
- source: Box<dyn std::error::Error + Send + Sync + 'static>,
-}
-
-impl MergeBaseError {
- pub fn new<E>(a: Oid, b: Oid, source: E) -> Self
- where
- E: std::error::Error + Send + Sync + 'static,
- {
- Self {
- a,
- b,
- source: Box::new(source),
- }
- }
-}
-
// ===========================================
// `git2` implementations of the above effects
// ===========================================
-impl FindMergeBase for git::raw::Repository {
- fn merge_base(&self, a: Oid, b: Oid) -> Result<MergeBase, MergeBaseError> {
- self.merge_base(a.into(), b.into())
- .map_err(|err| MergeBaseError {
- a,
- b,
- source: Box::new(err),
- })
- .map(|base| MergeBase {
- a,
- b,
- base: base.into(),
- })
- }
-}
-
impl FindObjects for git::raw::Repository {
fn find_objects<'a, 'b, I>(
&self,
diff --git a/crates/radicle/src/git/canonical/error.rs b/crates/radicle/src/git/canonical/error.rs
index b80f9a814..5fb268549 100644
--- a/crates/radicle/src/git/canonical/error.rs
+++ b/crates/radicle/src/git/canonical/error.rs
@@ -5,7 +5,47 @@ use crate::git::Oid;
use crate::git::repository::ancestry;
use super::{ObjectType, effects};
-pub use effects::{FindObjectsError, MergeBaseError};
+pub use effects::FindObjectsError;
+
+/// An error that occurred while computing a merge base.
+///
+/// Carries the two commit OIDs for context.
+#[derive(Debug, thiserror::Error)]
+#[error("failed to find merge base for {a} and {b}: {source}")]
+pub struct MergeBaseError {
+ a: Oid,
+ b: Oid,
+ source: Box<dyn std::error::Error + Send + Sync + 'static>,
+}
+
+#[derive(thiserror::Error, Debug)]
+#[error("no existing merge base found for commit quorum")]
+struct NoMergeBase;
+
+#[derive(thiserror::Error, Debug)]
+#[error("no common ancestor")]
+struct NoCommonAncestor;
+
+impl MergeBaseError {
+ pub fn new<E>(a: Oid, b: Oid, source: E) -> Self
+ where
+ E: std::error::Error + Send + Sync + 'static,
+ {
+ Self {
+ a,
+ b,
+ source: Box::new(source),
+ }
+ }
+
+ pub(super) fn no_merge_base(a: Oid, b: Oid) -> Self {
+ Self::new(a, b, NoMergeBase)
+ }
+
+ pub(super) fn no_common_ancestor(a: Oid, b: Oid) -> Self {
+ Self::new(a, b, NoCommonAncestor)
+ }
+}
#[derive(Debug, Error)]
pub enum QuorumError {
diff --git a/crates/radicle/src/git/canonical/rules.rs b/crates/radicle/src/git/canonical/rules.rs
index d44b3adb6..8760af8f6 100644
--- a/crates/radicle/src/git/canonical/rules.rs
+++ b/crates/radicle/src/git/canonical/rules.rs
@@ -547,9 +547,7 @@ impl Rules {
repo: &'r R,
) -> Option<Canonical<'b, 'a, 'r, R, canonical::Initial>>
where
- R: repository::Ancestry
- + canonical::effects::FindMergeBase
- + canonical::effects::FindObjects,
+ R: repository::Ancestry + canonical::effects::FindObjects,
{
self.matches(&refname)
.next()
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index ad5403b49..525e366f1 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -308,16 +308,6 @@ impl AsRef<Repository> for Repository {
}
}
-impl git::canonical::effects::FindMergeBase for Repository {
- fn merge_base(
- &self,
- a: Oid,
- b: Oid,
- ) -> Result<git::canonical::MergeBase, git::canonical::effects::MergeBaseError> {
- git::canonical::effects::FindMergeBase::merge_base(&self.backend, a, b)
- }
-}
-
impl git::canonical::effects::FindObjects for Repository {
fn find_objects<'a, 'b, I>(
&self,
commit 3a6785419cab8139fe998cc7d47ba7b1bdc8c727
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Tue Apr 14 15:10:20 2026 +0000
canonical: replace effects::Ancestry with repository::Ancestry
Replace the canonical-specific effects::Ancestry trait with the shared
git::repository::Ancestry trait.
This is the first step to remove the need for individual effects for
canonical computation.
diff --git a/crates/radicle-remote-helper/src/push/canonical.rs b/crates/radicle-remote-helper/src/push/canonical.rs
index 63331646e..70748d628 100644
--- a/crates/radicle-remote-helper/src/push/canonical.rs
+++ b/crates/radicle-remote-helper/src/push/canonical.rs
@@ -3,6 +3,7 @@ use radicle::git::canonical;
use radicle::git::canonical::QuorumWithConvergence;
use radicle::git::canonical::effects;
use radicle::git::canonical::error::QuorumError;
+use radicle::git::repository;
use radicle::prelude::Did;
/// Validates a vote to update a canonical reference during push.
@@ -12,7 +13,7 @@ pub(crate) struct Canonical<'a, 'b, 'r, R> {
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R>
where
- R: effects::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
{
pub(super) fn new(
me: Did,
diff --git a/crates/radicle/src/git/canonical.rs b/crates/radicle/src/git/canonical.rs
index ce49a0e48..a49e1466c 100644
--- a/crates/radicle/src/git/canonical.rs
+++ b/crates/radicle/src/git/canonical.rs
@@ -22,6 +22,7 @@ use std::marker::PhantomData;
use std::ops::ControlFlow;
use crate::git::fmt::Namespaced;
+use crate::git::repository;
use crate::prelude::Did;
@@ -94,7 +95,7 @@ impl<'a, 'b, 'r, R> AsRef<Canonical<'a, 'b, 'r, R, ObjectsFound>>
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R, Initial>
where
- R: effects::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
{
/// Construct a new [`Canonical`] with the given [`Qualified`] reference, a
/// canonical reference [`ValidRule`] for that reference, and the Git
@@ -139,7 +140,7 @@ where
impl<'a, 'b, 'r, R> Canonical<'a, 'b, 'r, R, ObjectsFound>
where
- R: effects::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
{
/// Adds the check for convergence before finding the quorum.
pub fn with_convergence(
@@ -160,7 +161,7 @@ where
while let ControlFlow::Continue(pairs) = finder.find_merge_bases() {
let mut bases = Vec::with_capacity(pairs.size_hint().0);
for (a, b) in pairs {
- bases.push(self.repo.merge_base(a, b)?);
+ bases.push(effects::FindMergeBase::merge_base(self.repo, a, b)?);
}
finder.found_merge_bases(bases.into_iter());
}
@@ -243,7 +244,7 @@ where
impl<'a, 'b, 'r, R> CanonicalWithConvergence<'a, 'b, 'r, R>
where
- R: effects::Ancestry + effects::FindMergeBase + effects::FindObjects,
+ R: repository::Ancestry + effects::FindMergeBase + effects::FindObjects,
{
/// Find the [`QuorumWithConvergence`] for the canonical computation.
pub fn quorum(mut self) -> Result<QuorumWithConvergence<'a>, QuorumError> {
@@ -450,28 +451,6 @@ impl fmt::Display for ObjectType {
}
}
-/// The result of checking the relationship between two commits in the commit graph.
-#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
-pub struct GraphAheadBehind {
- /// The number of commits the given commit is ahead of the other.
- pub ahead: usize,
- /// The number of commits the given commit is behind the other.
- pub behind: usize,
-}
-
-impl GraphAheadBehind {
- /// Whether self represents a linear history between two commits.
- ///
- /// The following three conditions are equivalent characterizations of
- /// a linear history:
- /// 1. One commit is ahead and not behind of the other.
- /// 2. One commit is behind and not ahead of the other.
- /// 3. One commit can be "fast-forwarded" to the other.
- pub fn is_linear(&self) -> bool {
- self.ahead * self.behind == 0
- }
-}
-
/// The result of finding a set of objects in a Git repository.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct FoundObjects {
diff --git a/crates/radicle/src/git/canonical/convergence.rs b/crates/radicle/src/git/canonical/convergence.rs
index 90fcba226..5cf16e1fe 100644
--- a/crates/radicle/src/git/canonical/convergence.rs
+++ b/crates/radicle/src/git/canonical/convergence.rs
@@ -3,7 +3,9 @@ use std::{fmt, ops::ControlFlow};
use crate::git::Oid;
use crate::prelude::Did;
-use super::{Object, effects, error};
+use crate::git::repository;
+
+use super::{Object, error};
/// Checks for convergence and ensures that compared objects are of the same
/// type, i.e. commit or tag, to the [`Candidate`].
@@ -22,7 +24,7 @@ impl<'r, R> fmt::Debug for Convergence<'r, R> {
impl<'r, R> Convergence<'r, R>
where
- R: effects::Ancestry,
+ R: repository::Ancestry,
{
pub fn new(repo: &'r R, candidate: Did, object: Object) -> Self {
Self {
@@ -50,7 +52,7 @@ where
match self.checker.compare_to_candidate(did, *object) {
ControlFlow::Continue(c) => match c {
Effect::GraphCheck { commit, upstream } => {
- converges |= self.repo.graph_ahead_behind(commit, upstream)?.is_linear();
+ converges |= self.repo.ahead_behind(commit, upstream)?.is_linear();
}
Effect::TagConverges => {
converges = true;
diff --git a/crates/radicle/src/git/canonical/effects.rs b/crates/radicle/src/git/canonical/effects.rs
index b63a8118e..dbbbfcafc 100644
--- a/crates/radicle/src/git/canonical/effects.rs
+++ b/crates/radicle/src/git/canonical/effects.rs
@@ -6,7 +6,7 @@ use crate::git::fmt::Qualified;
use crate::git::raw::ErrorExt as _;
use crate::prelude::Did;
-use super::{FoundObjects, GraphAheadBehind, MergeBase, Object};
+use super::{FoundObjects, MergeBase, Object};
/// Find objects for the canonical computation.
///
@@ -142,29 +142,6 @@ impl MergeBaseError {
}
}
-/// Calculate the ancestry of two commits.
-///
-/// Typically implemented by a Git repository.
-pub trait Ancestry {
- /// Produce the [`GraphAheadBehind`] of `commit` and `upstream`.
- ///
- /// The result should provide how many commits are ahead and behind when
- /// comparing the `commit` and `upstream`.
- fn graph_ahead_behind(
- &self,
- commit: Oid,
- upstream: Oid,
- ) -> Result<GraphAheadBehind, GraphDescendant>;
-}
-
-#[derive(Debug, thiserror::Error)]
-#[error("failed to check if {commit} is an ancestor of {upstream} due to: {source}")]
-pub struct GraphDescendant {
- commit: Oid,
- upstream: Oid,
- source: Box<dyn std::error::Error + Send + Sync + 'static>,
-}
-
// ===========================================
// `git2` implementations of the above effects
// ===========================================
@@ -185,22 +162,6 @@ impl FindMergeBase for git::raw::Repository {
}
}
-impl Ancestry for git::raw::Repository {
- fn graph_ahead_behind(
- &self,
- commit: Oid,
- upstream: Oid,
- ) -> Result<GraphAheadBehind, GraphDescendant> {
- self.graph_ahead_behind(commit.into(), upstream.into())
- .map_err(|err| GraphDescendant {
- commit,
- upstream,
- source: Box::new(err),
- })
- .map(|(ahead, behind)| GraphAheadBehind { ahead, behind })
- }
-}
-
impl FindObjects for git::raw::Repository {
fn find_objects<'a, 'b, I>(
&self,
diff --git a/crates/radicle/src/git/canonical/error.rs b/crates/radicle/src/git/canonical/error.rs
index b482f32d3..b80f9a814 100644
--- a/crates/radicle/src/git/canonical/error.rs
+++ b/crates/radicle/src/git/canonical/error.rs
@@ -2,6 +2,8 @@ use thiserror::Error;
use crate::git::Oid;
+use crate::git::repository::ancestry;
+
use super::{ObjectType, effects};
pub use effects::{FindObjectsError, MergeBaseError};
@@ -50,7 +52,7 @@ pub struct MismatchedObject {
#[derive(Debug, Error)]
pub enum ConvergesError {
#[error(transparent)]
- GraphDescendant(#[from] effects::GraphDescendant),
+ AheadBehind(#[from] ancestry::error::AheadBehind),
#[error(transparent)]
MismatchedObject(#[from] MismatchedObject),
}
diff --git a/crates/radicle/src/git/canonical/rules.rs b/crates/radicle/src/git/canonical/rules.rs
index 1df5e4e03..d44b3adb6 100644
--- a/crates/radicle/src/git/canonical/rules.rs
+++ b/crates/radicle/src/git/canonical/rules.rs
@@ -20,11 +20,11 @@ use serde::{Deserialize, Serialize};
use serde_json as json;
use thiserror::Error;
-use crate::git;
use crate::git::canonical;
use crate::git::canonical::Canonical;
use crate::git::fmt::Qualified;
use crate::git::fmt::refspec::QualifiedPattern;
+use crate::git::{self, repository};
use crate::identity::{Did, doc};
use super::protect;
@@ -547,7 +547,7 @@ impl Rules {
repo: &'r R,
) -> Option<Canonical<'b, 'a, 'r, R, canonical::Initial>>
where
- R: canonical::effects::Ancestry
+ R: repository::Ancestry
+ canonical::effects::FindMergeBase
+ canonical::effects::FindObjects,
{
diff --git a/crates/radicle/src/git/repository/ancestry.rs b/crates/radicle/src/git/repository/ancestry.rs
index ca5f353e5..660f09ed4 100644
--- a/crates/radicle/src/git/repository/ancestry.rs
+++ b/crates/radicle/src/git/repository/ancestry.rs
@@ -15,6 +15,19 @@ pub struct AheadBehind {
pub behind: usize,
}
+impl AheadBehind {
+ /// Whether `self` represents a linear history between two commits.
+ ///
+ /// The following three conditions are equivalent characterisations of
+ /// a linear history:
+ /// 1. One commit is ahead and not behind of the other.
+ /// 2. One commit is behind and not ahead of the other.
+ /// 3. One commit can be "fast-forwarded" to the other.
+ pub fn is_linear(&self) -> bool {
+ self.ahead * self.behind == 0
+ }
+}
+
/// Git commit graph operations.
///
/// Provides merge-base computation and ancestor checks.
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index 743b43b29..ad5403b49 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -308,16 +308,6 @@ impl AsRef<Repository> for Repository {
}
}
-impl git::canonical::effects::Ancestry for Repository {
- fn graph_ahead_behind(
- &self,
- commit: Oid,
- upstream: Oid,
- ) -> Result<git::canonical::GraphAheadBehind, git::canonical::effects::GraphDescendant> {
- git::canonical::effects::Ancestry::graph_ahead_behind(&self.backend, commit, upstream)
- }
-}
-
impl git::canonical::effects::FindMergeBase for Repository {
fn merge_base(
&self,
Exit code: 0
shell: 'export RUSTDOCFLAGS=''-D warnings'' cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- --deny warnings cargo build --all-targets --workspace cargo doc --workspace --no-deps --all-features cargo test --workspace --no-fail-fast '
Commands:
$ podman run --name c1898256-beae-4898-b6d8-844199c29e6e -v /opt/radcis/ci.rad.levitte.org/cci/state/c1898256-beae-4898-b6d8-844199c29e6e/s:/c1898256-beae-4898-b6d8-844199c29e6e/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/c1898256-beae-4898-b6d8-844199c29e6e/w:/c1898256-beae-4898-b6d8-844199c29e6e/w -w /c1898256-beae-4898-b6d8-844199c29e6e/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /c1898256-beae-4898-b6d8-844199c29e6e/s/script.sh
+ export 'RUSTDOCFLAGS=-D warnings'
+ RUSTDOCFLAGS='-D warnings'
+ cargo --version
info: syncing channel updates for '1.95-x86_64-unknown-linux-gnu'
info: latest update on 2026-04-16, rust version 1.95.0 (59807616e 2026-04-14)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
info: installing component 'rust-src'
info: installing component 'rust-std'
info: installing component 'rustc'
info: installing component 'rustfmt'
cargo 1.95.0 (f2d3ce0bd 2026-03-21)
+ rustc --version
rustc 1.95.0 (59807616e 2026-04-14)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded addr2line v0.25.1
Downloaded ed25519 v1.5.3
Downloaded data-encoding-macro-internal v0.1.17
Downloaded convert_case v0.10.0
Downloaded console v0.16.3
Downloaded idna_adapter v1.2.1
Downloaded fraction v0.15.3
Downloaded gix-credentials v0.38.0
Downloaded flate2 v1.1.9
Downloaded gix-commitgraph v0.37.0
Downloaded generic-array v0.14.7
Downloaded gix-utils v0.3.2
Downloaded gix-lock v23.0.0
Downloaded getrandom v0.2.17
Downloaded icu_properties_data v2.1.2
Downloaded keccak v0.1.6
Downloaded getrandom v0.4.2
Downloaded radicle-git-ext v0.12.0
Downloaded lazy_static v1.5.0
Downloaded lock_api v0.4.14
Downloaded noise-framework v0.4.1
Downloaded num-cmp v0.1.0
Downloaded normalize-line-endings v0.3.0
Downloaded jobserver v0.1.34
Downloaded opaque-debug v0.3.1
Downloaded displaydoc v0.2.5
Downloaded ref-cast v1.0.25
Downloaded pkcs8 v0.10.2
Downloaded pkg-config v0.3.32
Downloaded pin-project-lite v0.2.17
Downloaded serde_fmt v1.1.0
Downloaded pastey v0.2.1
Downloaded proc-macro-error-attr2 v2.0.0
Downloaded proc-macro-error2 v2.0.1
Downloaded rand_xorshift v0.4.0
Downloaded proc-macro2 v1.0.106
Downloaded shell-words v1.1.1
Downloaded rfc6979 v0.4.0
Downloaded signature v1.6.4
Downloaded scrypt v0.11.0
Downloaded signature v2.2.0
Downloaded signal-hook-registry v1.4.8
Downloaded ssh-cipher v0.2.0
Downloaded sval_buffer v2.17.0
Downloaded siphasher v1.0.2
Downloaded strsim v0.11.1
Downloaded cyphernet v0.5.4
Downloaded sqlite3-sys v0.18.0
Downloaded sval_json v2.17.0
Downloaded sval_fmt v2.17.0
Downloaded subtle v2.6.1
Downloaded socket2 v0.5.10
Downloaded typeid v1.0.3
Downloaded sha1 v0.10.6
Downloaded synstructure v0.13.2
Downloaded test-log-macros v0.2.19
Downloaded rand v0.8.5
Downloaded toml_datetime v0.7.5+spec-1.1.0
Downloaded rustversion v1.0.22
Downloaded tree-sitter-language v0.1.7
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded tree-sitter-html v0.23.2
Downloaded universal-hash v0.5.1
Downloaded icu_provider v2.1.1
Downloaded yoke-derive v0.8.1
Downloaded rustc-demangle v0.1.27
Downloaded xattr v1.6.1
Downloaded utf8parse v0.2.2
Downloaded tar v0.4.45
Downloaded zeroize v1.8.2
Downloaded litrs v1.0.0
Downloaded zerovec-derive v0.11.2
Downloaded zerofrom-derive v0.1.6
Downloaded zerofrom v0.1.6
Downloaded jsonschema v0.30.0
Downloaded zmij v1.0.21
Downloaded regex v1.12.3
Downloaded yansi v1.0.1
Downloaded tree-sitter-go v0.23.4
Downloaded url v2.5.8
Downloaded smallvec v1.15.1
Downloaded zerotrie v0.2.3
Downloaded yoke v0.8.1
Downloaded thiserror-impl v2.0.18
Downloaded thiserror v1.0.69
Downloaded tree-sitter v0.24.7
Downloaded tree-sitter-css v0.23.2
Downloaded sysinfo v0.37.2
Downloaded ryu v1.0.23
Downloaded zlib-rs v0.6.3
Downloaded unicode-width v0.2.2
Downloaded tracing-core v0.1.36
Downloaded zerocopy v0.8.42
Downloaded typenum v1.19.0
Downloaded schemars v1.2.1
Downloaded indexmap v2.13.0
Downloaded ssh-key v0.6.7
Downloaded unicode-segmentation v1.12.0
Downloaded zerovec v0.11.5
Downloaded tree-sitter-bash v0.23.3
Downloaded unicode-normalization v0.1.25
Downloaded tree-sitter-python v0.23.6
Downloaded regex-automata v0.4.14
Downloaded git2 v0.20.4
Downloaded proptest v1.10.0
Downloaded gimli v0.32.3
Downloaded tree-sitter-c v0.23.4
Downloaded portable-atomic v1.13.1
Downloaded serde_json v1.0.149
Downloaded tree-sitter-md v0.3.2
Downloaded tracing v0.1.44
Downloaded tree-sitter-rust v0.23.3
Downloaded rustix v1.1.4
Downloaded libm v0.2.16
Downloaded hashbrown v0.16.1
Downloaded num-bigint v0.4.6
Downloaded idna v1.1.0
Downloaded tree-sitter-typescript v0.23.2
Downloaded mio v1.1.1
Downloaded tree-sitter-ruby v0.23.1
Downloaded sha3 v0.10.8
Downloaded syn v2.0.117
Downloaded itertools v0.14.0
Downloaded gix-pack v0.70.0
Downloaded regex-syntax v0.8.10
Downloaded vcpkg v0.2.15
Downloaded icu_collections v2.1.1
Downloaded pretty_assertions v1.4.1
Downloaded syn v1.0.109
Downloaded similar v2.7.0
Downloaded signal-hook v0.3.18
Downloaded jiff v0.2.23
Downloaded object v0.37.3
Downloaded sha1-checked v0.10.0
Downloaded libc v0.2.183
Downloaded tracing-subscriber v0.3.23
Downloaded libz-sys v1.1.25
Downloaded ssh-agent-lib v0.6.0
Downloaded tokio v1.50.0
Downloaded jiff-static v0.2.23
Downloaded miniz_oxide v0.8.9
Downloaded gix-odb v0.80.0
Downloaded walkdir v2.5.0
Downloaded vsimd v0.8.0
Downloaded gix-transport v0.57.0
Downloaded snapbox v0.4.17
Downloaded p384 v0.13.1
Downloaded icu_normalizer_data v2.1.1
Downloaded chrono v0.4.44
Downloaded value-bag v1.12.0
Downloaded uuid v1.22.0
Downloaded unicode-ident v1.0.24
Downloaded thread_local v1.1.9
Downloaded thiserror-impl v1.0.69
Downloaded thiserror v2.0.18
Downloaded pem-rfc7468 v0.7.0
Downloaded writeable v0.6.2
Downloaded wait-timeout v0.2.1
Downloaded version_check v0.9.5
Downloaded sval_serde v2.17.0
Downloaded nu-ansi-term v0.50.3
Downloaded bloomy v1.2.0
Downloaded value-bag-sval2 v1.12.0
Downloaded sval v2.17.0
Downloaded value-bag-serde1 v1.12.0
Downloaded uuid-simd v0.8.0
Downloaded utf8_iter v1.0.4
Downloaded unicode-display-width v0.3.0
Downloaded toml v0.9.12+spec-1.1.0
Downloaded sha2 v0.10.9
Downloaded gix-ref v0.63.0
Downloaded unit-prefix v0.5.2
Downloaded unarray v0.1.4
Downloaded tree-sitter-json v0.24.8
Downloaded tinyvec v1.11.0
Downloaded rsa v0.9.10
Downloaded tree-sitter-highlight v0.24.7
Downloaded tracing-log v0.2.0
Downloaded toml_writer v1.0.7+spec-1.1.0
Downloaded tinystr v0.8.2
Downloaded semver v1.0.27
Downloaded sem_safe v0.2.1
Downloaded rand_chacha v0.9.0
Downloaded primeorder v0.13.6
Downloaded polyval v0.6.2
Downloaded litemap v0.8.1
Downloaded inquire v0.9.4
Downloaded iana-time-zone v0.1.65
Downloaded gix-path v0.12.0
Downloaded tinyvec_macros v0.1.1
Downloaded tempfile v3.27.0
Downloaded systemd-journal-logger v2.2.2
Downloaded libgit2-sys v0.18.3+1.9.2
Downloaded sval_ref v2.17.0
Downloaded serde v1.0.228
Downloaded curve25519-dalek v4.1.3
Downloaded timeago v0.4.2
Downloaded structured-logger v1.0.5
Downloaded schemars_derive v1.2.1
Downloaded memmap2 v0.9.10
Downloaded test-log v0.2.19
Downloaded aho-corasick v1.1.4
Downloaded sval_nested v2.17.0
Downloaded stable_deref_trait v1.2.1
Downloaded ssh-encoding v0.2.0
Downloaded serde_core v1.0.228
Downloaded same-file v1.0.6
Downloaded rand_core v0.6.4
Downloaded radicle-surf v0.27.1
Downloaded prodash v31.0.0
Downloaded icu_locale_core v2.1.1
Downloaded serde_spanned v1.0.4
Downloaded rand v0.9.2
Downloaded sharded-slab v0.1.7
Downloaded clap_builder v4.6.0
Downloaded spki v0.7.3
Downloaded simd-adler32 v0.3.8
Downloaded gix-diff v0.63.0
Downloaded sval_dynamic v2.17.0
Downloaded serde_derive v1.0.228
Downloaded streaming-iterator v0.1.9
Downloaded sqlite v0.37.0
Downloaded signals_receipts v0.2.5
Downloaded shlex v1.3.0
Downloaded num-bigint-dig v0.8.6
Downloaded spin v0.9.8
Downloaded siphasher v0.3.11
Downloaded signal-hook-mio v0.2.5
Downloaded referencing v0.30.0
Downloaded socks5-client v0.4.3
Downloaded rusty-fork v0.3.1
Downloaded qcheck v1.0.0
Downloaded sqlite3-src v0.7.0
Downloaded serde-untagged v0.1.9
Downloaded rustc_version v0.4.1
Downloaded snapbox-macros v0.3.10
Downloaded serde_derive_internals v0.29.1
Downloaded ref-cast-impl v1.0.25
Downloaded qcheck-macros v1.0.0
Downloaded secrecy v0.10.3
Downloaded sec1 v0.7.3
Downloaded scopeguard v1.2.0
Downloaded crossterm v0.29.0
Downloaded rand_core v0.9.5
Downloaded ppv-lite86 v0.2.21
Downloaded pkcs1 v0.7.5
Downloaded num-rational v0.4.2
Downloaded lexopt v0.3.2
Downloaded gix-negotiate v0.31.0
Downloaded cc v1.2.57
Downloaded salsa20 v0.10.2
Downloaded rand_chacha v0.3.1
Downloaded quote v1.0.45
Downloaded potential_utf v0.1.4
Downloaded linux-raw-sys v0.12.1
Downloaded poly1305 v0.8.0
Downloaded percent-encoding v2.3.2
Downloaded parking_lot_core v0.9.12
Downloaded once_cell v1.21.4
Downloaded emojis v0.6.4
Downloaded phf v0.11.3
Downloaded p256 v0.13.2
Downloaded memchr v2.8.0
Downloaded gix-features v0.48.0
Downloaded derive_more v2.1.1
Downloaded radicle-std-ext v0.2.0
Downloaded p521 v0.13.3
Downloaded is_terminal_polyfill v1.70.2
Downloaded gix-url v0.36.0
Downloaded icu_normalizer v2.1.1
Downloaded ed25519-dalek v2.2.0
Downloaded parking_lot v0.12.5
Downloaded num-traits v0.2.19
Downloaded group v0.13.0
Downloaded gix-glob v0.26.0
Downloaded gix-error v0.2.3
Downloaded clap v4.6.0
Downloaded chacha20poly1305 v0.10.1
Downloaded aes v0.8.4
Downloaded quick-error v1.2.3
Downloaded gix-validate v0.11.1
Downloaded derive_more-impl v2.1.1
Downloaded crossbeam-channel v0.5.15
Downloaded backtrace v0.3.76
Downloaded num-iter v0.1.45
Downloaded nonempty v0.12.0
Downloaded log v0.4.29
Downloaded anyhow v1.0.102
Downloaded nonempty v0.9.0
Downloaded maybe-async v0.2.10
Downloaded indicatif v0.18.4
Downloaded clap_complete v4.6.0
Downloaded pbkdf2 v0.12.2
Downloaded num-integer v0.1.46
Downloaded num-complex v0.4.6
Downloaded gix-sec v0.14.0
Downloaded gix-packetline v0.21.3
Downloaded gix-fs v0.21.1
Downloaded git-ref-format-macro v0.6.0
Downloaded ecdsa v0.16.9
Downloaded data-encoding v2.10.0
Downloaded crypto-bigint v0.5.5
Downloaded crossbeam-utils v0.8.21
Downloaded arc-swap v1.9.1
Downloaded anstyle-parse v0.2.7
Downloaded phf_shared v0.11.3
Downloaded outref v0.5.2
Downloaded num v0.4.3
Downloaded match-lookup v0.1.2
Downloaded heck v0.5.0
Downloaded email_address v0.2.9
Downloaded elliptic-curve v0.13.8
Downloaded either v1.15.0
Downloaded cypheraddr v0.4.1
Downloaded gix-traverse v0.57.0
Downloaded git-ref-format v0.6.0
Downloaded equivalent v1.0.2
Downloaded gix-trace v0.1.19
Downloaded autocfg v1.5.0
Downloaded anstyle-parse v1.0.0
Downloaded anstream v0.6.21
Downloaded matchers v0.2.0
Downloaded env_logger v0.11.9
Downloaded inout v0.1.4
Downloaded gix-object v0.60.0
Downloaded gix-hashtable v0.15.0
Downloaded gix-hash v0.25.0
Downloaded gix-chunk v0.7.1
Downloaded data-encoding-macro v0.1.19
Downloaded colorchoice v1.0.5
Downloaded clap_lex v1.1.0
Downloaded amplify_syn v2.0.1
Downloaded gix-actor v0.41.0
Downloaded ed25519 v2.2.3
Downloaded ec25519 v0.1.0
Downloaded dunce v1.0.5
Downloaded anstream v1.0.0
Downloaded multibase v0.9.2
Downloaded humantime v2.3.0
Downloaded gix-shallow v0.12.0
Downloaded gix-prompt v0.15.0
Downloaded digest v0.10.7
Downloaded cyphergraphy v0.3.1
Downloaded const-str v0.4.3
Downloaded cipher v0.4.4
Downloaded ascii v1.1.0
Downloaded amplify v4.9.0
Downloaded fnv v1.0.7
Downloaded fluent-uri v0.3.2
Downloaded crypto-common v0.1.7
Downloaded base32 v0.4.0
Downloaded itoa v1.0.17
Downloaded icu_properties v2.1.2
Downloaded human-panic v2.0.6
Downloaded hmac v0.12.1
Downloaded hash32 v0.3.1
Downloaded gix-tempfile v23.0.0
Downloaded gix-revwalk v0.31.0
Downloaded gix-revision v0.45.0
Downloaded gix-quote v0.7.1
Downloaded gix-protocol v0.61.0
Downloaded erased-serde v0.4.10
Downloaded env_filter v1.0.0
Downloaded dyn-clone v1.0.20
Downloaded ct-codecs v1.1.6
Downloaded cpufeatures v0.2.17
Downloaded const-oid v0.9.6
Downloaded colored v2.2.0
Downloaded cbc v0.1.2
Downloaded bytes v1.11.1
Downloaded anstyle-query v1.1.5
Downloaded gix-refspec v0.41.0
Downloaded git-ref-format-core v0.6.0
Downloaded document-features v0.2.12
Downloaded diff v0.1.13
Downloaded clap_derive v4.6.0
Downloaded bstr v1.12.1
Downloaded der v0.7.10
Downloaded fastrand v2.3.0
Downloaded fancy-regex v0.14.0
Downloaded errno v0.3.14
Downloaded ctr v0.9.2
Downloaded block-padding v0.3.3
Downloaded base64ct v1.8.3
Downloaded anstyle v1.0.14
Downloaded gix-date v0.15.3
Downloaded getrandom v0.3.4
Downloaded find-msvc-tools v0.1.9
Downloaded fast-glob v0.3.3
Downloaded crc32fast v1.5.0
Downloaded bit-vec v0.8.0
Downloaded base64 v0.22.1
Downloaded base256emoji v1.0.2
Downloaded amplify_derive v4.0.1
Downloaded ahash v0.8.12
Downloaded aes-gcm v0.10.3
Downloaded gix-command v0.9.0
Downloaded ghash v0.5.1
Downloaded form_urlencoded v1.2.2
Downloaded chacha20 v0.9.1
Downloaded byteorder v1.5.0
Downloaded bytecount v0.6.9
Downloaded borrow-or-share v0.2.4
Downloaded block-buffer v0.10.4
Downloaded bcrypt-pbkdf v0.10.0
Downloaded base64 v0.21.7
Downloaded base16ct v0.2.0
Downloaded amplify_num v0.5.3
Downloaded adler2 v2.0.1
Downloaded escargot v0.5.15
Downloaded cfg-if v1.0.4
Downloaded blowfish v0.9.1
Downloaded bitflags v2.11.0
Downloaded aead v0.5.2
Downloaded gix-config-value v0.18.0
Downloaded ff v0.13.1
Downloaded bytesize v2.3.1
Downloaded bit-set v0.8.0
Downloaded base-x v0.2.11
Downloaded heapless v0.8.0
Downloaded filetime v0.2.27
Downloaded faster-hex v0.10.0
Downloaded curve25519-dalek-derive v0.1.1
Compiling libc v0.2.183
Compiling proc-macro2 v1.0.106
Compiling quote v1.0.45
Compiling unicode-ident v1.0.24
Checking cfg-if v1.0.4
Checking zeroize v1.8.2
Compiling version_check v0.9.5
Compiling typenum v1.19.0
Compiling generic-array v0.14.7
Checking getrandom v0.2.17
Compiling syn v2.0.117
Checking rand_core v0.6.4
Checking memchr v2.8.0
Compiling jobserver v0.1.34
Compiling find-msvc-tools v0.1.9
Compiling shlex v1.3.0
Checking crypto-common v0.1.7
Compiling cc v1.2.57
Checking subtle v2.6.1
Compiling serde_core v1.0.228
Checking regex-syntax v0.8.10
Checking aho-corasick v1.1.4
Checking const-oid v0.9.6
Checking smallvec v1.15.1
Checking block-buffer v0.10.4
Checking digest v0.10.7
Checking regex-automata v0.4.14
Checking cpufeatures v0.2.17
Checking stable_deref_trait v1.2.1
Compiling thiserror v2.0.18
Checking fastrand v2.3.0
Compiling parking_lot_core v0.9.12
Checking scopeguard v1.2.0
Checking lock_api v0.4.14
Checking bitflags v2.11.0
Checking parking_lot v0.12.5
Compiling typeid v1.0.3
Checking gix-trace v0.1.19
Compiling crc32fast v1.5.0
Checking tinyvec_macros v0.1.1
Compiling erased-serde v0.4.10
Checking tinyvec v1.11.0
Compiling serde v1.0.228
Checking unicode-normalization v0.1.25
Checking itoa v1.0.17
Checking byteorder v1.5.0
Checking gix-utils v0.3.2
Checking serde_fmt v1.1.0
Checking hashbrown v0.16.1
Checking bstr v1.12.1
Checking value-bag-serde1 v1.12.0
Compiling synstructure v0.13.2
Compiling thiserror-impl v2.0.18
Checking gix-validate v0.11.1
Compiling serde_derive v1.0.228
Checking value-bag v1.12.0
Compiling zerofrom-derive v0.1.6
Checking log v0.4.29
Checking same-file v1.0.6
Checking walkdir v2.5.0
Compiling yoke-derive v0.8.1
Checking gix-path v0.12.0
Checking prodash v31.0.0
Checking zerofrom v0.1.6
Checking zlib-rs v0.6.3
Compiling pkg-config v0.3.32
Checking yoke v0.8.1
Compiling heapless v0.8.0
Compiling rustix v1.1.4
Compiling zerovec-derive v0.11.2
Checking hash32 v0.3.1
Checking gix-features v0.48.0
Compiling autocfg v1.5.0
Checking linux-raw-sys v0.12.1
Compiling libm v0.2.16
Checking zerovec v0.11.5
Compiling num-traits v0.2.19
Compiling displaydoc v0.2.5
Compiling getrandom v0.4.2
Checking faster-hex v0.10.0
Checking block-padding v0.3.3
Compiling zerocopy v0.8.42
Checking inout v0.1.4
Checking sha1 v0.10.6
Checking sha2 v0.10.9
Checking sha1-checked v0.10.0
Checking cipher v0.4.4
Checking tinystr v0.8.2
Checking litemap v0.8.1
Checking once_cell v1.21.4
Checking percent-encoding v2.3.2
Checking writeable v0.6.2
Checking icu_locale_core v2.1.1
Checking gix-hash v0.25.0
Checking zerotrie v0.2.3
Checking potential_utf v0.1.4
Compiling zmij v1.0.21
Compiling icu_properties_data v2.1.2
Compiling icu_normalizer_data v2.1.1
Checking icu_provider v2.1.1
Checking icu_collections v2.1.1
Checking der v0.7.10
Checking equivalent v1.0.2
Compiling serde_json v1.0.149
Checking indexmap v2.13.0
Compiling ref-cast v1.0.25
Compiling syn v1.0.109
Compiling vcpkg v0.2.15
Compiling thiserror v1.0.69
Checking icu_properties v2.1.2
Compiling libz-sys v1.1.25
Checking ppv-lite86 v0.2.21
Checking icu_normalizer v2.1.1
Checking tempfile v3.27.0
Compiling thiserror-impl v1.0.69
Compiling ref-cast-impl v1.0.25
Checking spin v0.9.8
Checking idna_adapter v1.2.1
Checking lazy_static v1.5.0
Checking num-integer v0.1.46
Checking hmac v0.12.1
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Compiling tree-sitter-language v0.1.7
Checking utf8_iter v1.0.4
Checking dyn-clone v1.0.20
Checking idna v1.1.0
Checking spki v0.7.3
Compiling libgit2-sys v0.18.3+1.9.2
Checking signature v2.2.0
Checking ff v0.13.1
Checking base16ct v0.2.0
Checking group v0.13.0
Checking sec1 v0.7.3
Checking rand_chacha v0.3.1
Checking form_urlencoded v1.2.2
Compiling serde_derive_internals v0.29.1
Checking crypto-bigint v0.5.5
Compiling schemars_derive v1.2.1
Checking elliptic-curve v0.13.8
Compiling amplify_syn v2.0.1
Checking rand v0.8.5
Checking url v2.5.8
Checking num-iter v0.1.45
Checking aead v0.5.2
Compiling semver v1.0.27
Checking signature v1.6.4
Checking schemars v1.2.1
Checking ed25519 v1.5.3
Compiling amplify_derive v4.0.1
Compiling rustc_version v0.4.1
Checking poly1305 v0.8.0
Checking rfc6979 v0.4.0
Checking chacha20 v0.9.1
Checking amplify_num v0.5.3
Checking ct-codecs v1.1.6
Checking ascii v1.1.0
Checking ec25519 v0.1.0
Checking ecdsa v0.16.9
Compiling curve25519-dalek v4.1.3
Checking git-ref-format-core v0.6.0
Checking amplify v4.9.0
Checking primeorder v0.13.6
Checking polyval v0.6.2
Checking base64ct v1.8.3
Compiling num-bigint-dig v0.8.6
Checking cyphergraphy v0.3.1
Checking ghash v0.5.1
Checking pem-rfc7468 v0.7.0
Checking pkcs8 v0.10.2
Checking pbkdf2 v0.12.2
Checking ctr v0.9.2
Checking aes v0.8.4
Compiling sqlite3-src v0.7.0
Checking gix-error v0.2.3
Compiling curve25519-dalek-derive v0.1.1
Checking keccak v0.1.6
Checking aes-gcm v0.10.3
Checking sha3 v0.10.8
Checking ssh-encoding v0.2.0
Checking pkcs1 v0.7.5
Checking ed25519 v2.2.3
Checking cbc v0.1.2
Checking blowfish v0.9.1
Checking base32 v0.4.0
Compiling data-encoding v2.10.0
Compiling crossbeam-utils v0.8.21
Checking rsa v0.9.10
Checking cypheraddr v0.4.1
Compiling data-encoding-macro-internal v0.1.17
Checking bcrypt-pbkdf v0.10.0
Checking ssh-cipher v0.2.0
Checking ed25519-dalek v2.2.0
Checking p521 v0.13.3
Checking p256 v0.13.2
Checking p384 v0.13.1
Checking chacha20poly1305 v0.10.1
Checking qcheck v1.0.0
Compiling match-lookup v0.1.2
Checking const-str v0.4.3
Checking base256emoji v1.0.2
Checking data-encoding-macro v0.1.19
Checking ssh-key v0.6.7
Checking noise-framework v0.4.1
Checking socks5-client v0.4.3
Checking secrecy v0.10.3
Checking base-x v0.2.11
Checking multibase v0.9.2
Checking ssh-agent-lib v0.6.0
Checking crossbeam-channel v0.5.15
Checking cyphernet v0.5.4
Checking anstyle-query v1.1.5
Checking errno v0.3.14
Checking jiff v0.2.23
Checking utf8parse v0.2.2
Checking nonempty v0.9.0
Checking siphasher v1.0.2
Checking radicle-localtime v0.1.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-localtime)
Checking radicle-git-metadata v0.2.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-git-metadata)
Checking radicle-dag v0.10.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-dag)
Checking colorchoice v1.0.5
Checking is_terminal_polyfill v1.70.2
Checking anstyle v1.0.14
Checking radicle-git-ref-format v0.1.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-git-ref-format)
Checking gix-hashtable v0.15.0
Checking base64 v0.21.7
Compiling radicle v0.24.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle)
Compiling signal-hook v0.3.18
Compiling unicode-segmentation v1.12.0
Compiling convert_case v0.10.0
Checking gix-date v0.15.3
Checking signal-hook-registry v1.4.8
Checking gix-actor v0.41.0
Checking gix-object v0.60.0
Checking serde-untagged v0.1.9
Checking bytesize v2.3.1
Checking memmap2 v0.9.10
Checking dunce v1.0.5
Checking fast-glob v0.3.3
Checking nonempty v0.12.0
Compiling derive_more-impl v2.1.1
Checking gix-chunk v0.7.1
Checking mio v1.1.1
Checking regex v1.12.3
Checking sem_safe v0.2.1
Compiling litrs v1.0.0
Checking unicode-width v0.2.2
Compiling portable-atomic v1.13.1
Compiling document-features v0.2.12
Checking signals_receipts v0.2.5
Checking derive_more v2.1.1
Checking signal-hook-mio v0.2.5
Checking gix-commitgraph v0.37.0
Checking anstyle-parse v0.2.7
Checking gix-revwalk v0.31.0
Checking anstream v0.6.21
Checking crossterm v0.29.0
Checking console v0.16.3
Checking gix-fs v0.21.1
Checking unit-prefix v0.5.2
Checking gix-tempfile v23.0.0
Checking indicatif v0.18.4
Checking inquire v0.9.4
Checking unicode-display-width v0.3.0
Checking radicle-signals v0.11.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-signals)
Checking gix-quote v0.7.1
Checking iana-time-zone v0.1.65
Checking shell-words v1.1.1
Checking either v1.15.0
Checking gix-command v0.9.0
Checking chrono v0.4.44
Checking colored v2.2.0
Compiling object v0.37.3
Compiling rustversion v1.0.22
Checking gix-lock v23.0.0
Checking gix-url v0.36.0
Checking gix-config-value v0.18.0
Checking gix-sec v0.14.0
Checking adler2 v2.0.1
Checking gimli v0.32.3
Checking miniz_oxide v0.8.9
Checking gix-prompt v0.15.0
Checking addr2line v0.25.1
Checking gix-revision v0.45.0
Checking gix-traverse v0.57.0
Checking gix-diff v0.63.0
Checking gix-packetline v0.21.3
Checking gix-glob v0.26.0
Compiling tree-sitter v0.24.7
Checking rustc-demangle v0.1.27
Compiling anyhow v1.0.102
Checking backtrace v0.3.76
Checking gix-refspec v0.41.0
Checking gix-transport v0.57.0
Checking gix-pack v0.70.0
Checking arc-swap v1.9.1
Checking gix-credentials v0.38.0
Checking gix-ref v0.63.0
Checking gix-shallow v0.12.0
Checking gix-negotiate v0.31.0
Compiling maybe-async v0.2.10
Compiling proc-macro-error-attr2 v2.0.0
Compiling simd-adler32 v0.3.8
Compiling getrandom v0.3.4
Checking gix-protocol v0.61.0
Compiling proc-macro-error2 v2.0.1
Checking gix-odb v0.80.0
Compiling xattr v1.6.1
Compiling filetime v0.2.27
Checking anstyle-parse v1.0.0
Checking uuid v1.22.0
Checking bytes v1.11.1
Checking anstream v1.0.0
Compiling tar v0.4.45
Compiling flate2 v1.1.9
Compiling git-ref-format-macro v0.6.0
Checking snapbox-macros v0.3.10
Checking salsa20 v0.10.2
Checking similar v2.7.0
Checking clap_lex v1.1.0
Checking strsim v0.11.1
Checking streaming-iterator v0.1.9
Checking normalize-line-endings v0.3.0
Compiling heck v0.5.0
Checking siphasher v0.3.11
Compiling clap_derive v4.6.0
Checking bloomy v1.2.0
Checking snapbox v0.4.17
Checking clap_builder v4.6.0
Compiling radicle-surf v0.27.1
Checking scrypt v0.11.0
Checking git-ref-format v0.6.0
Checking systemd-journal-logger v2.2.2
Checking toml_datetime v0.7.5+spec-1.1.0
Checking serde_spanned v1.0.4
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-rust v0.23.3
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-python v0.23.6
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-css v0.23.2
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-c v0.23.4
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-go v0.23.4
Checking pin-project-lite v0.2.17
Checking toml_writer v1.0.7+spec-1.1.0
Checking radicle-std-ext v0.2.0
Checking tokio v1.50.0
Checking toml v0.9.12+spec-1.1.0
Checking sqlite3-sys v0.18.0
Checking sqlite v0.37.0
Checking radicle-crypto v0.17.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-crypto)
Checking clap v4.6.0
Checking sysinfo v0.37.2
Compiling radicle-node v0.20.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-node)
Compiling radicle-cli v0.21.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-cli)
Checking diff v0.1.13
Checking yansi v1.0.1
Checking pretty_assertions v1.4.1
Checking human-panic v2.0.6
Checking clap_complete v4.6.0
Checking structured-logger v1.0.5
Checking radicle-systemd v0.13.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-systemd)
Checking tree-sitter-highlight v0.24.7
Checking itertools v0.14.0
Compiling qcheck-macros v1.0.0
Checking socket2 v0.5.10
Compiling escargot v0.5.15
Checking humantime v2.3.0
Checking timeago v0.4.2
Checking lexopt v0.3.2
Checking bit-vec v0.8.0
Checking rand_core v0.9.5
Checking bit-set v0.8.0
Checking num-bigint v0.4.6
Compiling ahash v0.8.12
Checking num-complex v0.4.6
Checking env_filter v1.0.0
Checking borrow-or-share v0.2.4
Checking fluent-uri v0.3.2
Checking env_logger v0.11.9
Checking phf_shared v0.11.3
Compiling test-log-macros v0.2.19
Checking wait-timeout v0.2.1
Checking num-rational v0.4.2
Compiling radicle-remote-helper v0.17.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-remote-helper)
Checking vsimd v0.8.0
Checking num v0.4.3
Checking fnv v1.0.7
Checking quick-error v1.2.3
Checking outref v0.5.2
Checking rusty-fork v0.3.1
Checking uuid-simd v0.8.0
Checking fraction v0.15.3
Checking test-log v0.2.19
Checking phf v0.11.3
Checking referencing v0.30.0
Checking fancy-regex v0.14.0
Checking rand v0.9.2
Checking rand_xorshift v0.4.0
Checking rand_chacha v0.9.0
Checking email_address v0.2.9
Checking bytecount v0.6.9
Checking num-cmp v0.1.0
Checking unarray v0.1.4
Checking base64 v0.22.1
Checking proptest v1.10.0
Checking emojis v0.6.4
Checking jsonschema v0.30.0
Compiling pastey v0.2.1
Checking radicle-windows v0.1.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-windows)
Checking git2 v0.20.4
Checking radicle-oid v0.2.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-oid)
Checking radicle-term v0.18.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-term)
Checking radicle-git-ext v0.12.0
Checking radicle-core v0.3.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-core)
Checking radicle-cob v0.20.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-cob)
Checking radicle-log v0.1.0 (/c1898256-beae-4898-b6d8-844199c29e6e/w/crates/radicle-log)
error[E0433]: cannot find module or crate `read` in this scope
--> crates/radicle/src/git/repository/adapter/git2/object.rs:69:67
|
69 | fn object_kind(&self, oid: Oid) -> Result<Option<ObjectKind>, read::ObjectKind> {
| ^^^^ use of unresolved module or unlinked crate `read`
|
= help: if you wanted to use a crate named `read`, use `cargo add read` to add it to your `Cargo.toml`
note: module `crate::storage::git::trailers::object::error::read` exists but is inaccessible
--> crates/radicle/src/git/repository/object/error.rs:3:1
|
3 | pub mod read;
| ^^^^^^^^^^^^^ not accessible
error[E0433]: cannot find module or crate `read` in this scope
--> crates/radicle/src/git/repository/adapter/git2/object.rs:70:38
|
70 | let odb = self.odb().map_err(read::ObjectKind::backend)?;
| ^^^^ use of unresolved module or unlinked crate `read`
|
= help: if you wanted to use a crate named `read`, use `cargo add read` to add it to your `Cargo.toml`
note: these enums exist but are inaccessible
--> crates/radicle/src/git/repository/object/error/read.rs:130:1
|
130 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::trailers::object::error::read::ObjectKind`: not accessible
|
::: crates/radicle/src/git/repository/types.rs:19:1
|
19 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::trailers::repository::ObjectKind`: not accessible
error[E0433]: cannot find module or crate `read` in this scope
--> crates/radicle/src/git/repository/adapter/git2/object.rs:74:27
|
74 | Err(e) => Err(read::ObjectKind::backend(e)),
| ^^^^ use of unresolved module or unlinked crate `read`
|
= help: if you wanted to use a crate named `read`, use `cargo add read` to add it to your `Cargo.toml`
note: these enums exist but are inaccessible
--> crates/radicle/src/git/repository/object/error/read.rs:130:1
|
130 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::trailers::object::error::read::ObjectKind`: not accessible
|
::: crates/radicle/src/git/repository/types.rs:19:1
|
19 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::trailers::repository::ObjectKind`: not accessible
error[E0433]: cannot find module or crate `read` in this scope
--> crates/radicle/src/git/repository/adapter/git2/object.rs:69:67
|
69 | fn object_kind(&self, oid: Oid) -> Result<Option<ObjectKind>, read::ObjectKind> {
| ^^^^ use of unresolved module or unlinked crate `read`
|
= help: if you wanted to use a crate named `read`, use `cargo add read` to add it to your `Cargo.toml`
note: module `crate::storage::git::tests::object::error::read` exists but is inaccessible
--> crates/radicle/src/git/repository/object/error.rs:3:1
|
3 | pub mod read;
| ^^^^^^^^^^^^^ not accessible
error[E0433]: cannot find module or crate `read` in this scope
--> crates/radicle/src/git/repository/adapter/git2/object.rs:70:38
|
70 | let odb = self.odb().map_err(read::ObjectKind::backend)?;
| ^^^^ use of unresolved module or unlinked crate `read`
|
= help: if you wanted to use a crate named `read`, use `cargo add read` to add it to your `Cargo.toml`
note: these enums exist but are inaccessible
--> crates/radicle/src/git/repository/object/error/read.rs:130:1
|
130 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::tests::object::error::read::ObjectKind`: not accessible
|
::: crates/radicle/src/git/repository/types.rs:19:1
|
19 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::tests::repository::ObjectKind`: not accessible
error[E0433]: cannot find module or crate `read` in this scope
--> crates/radicle/src/git/repository/adapter/git2/object.rs:74:27
|
74 | Err(e) => Err(read::ObjectKind::backend(e)),
| ^^^^ use of unresolved module or unlinked crate `read`
|
= help: if you wanted to use a crate named `read`, use `cargo add read` to add it to your `Cargo.toml`
note: these enums exist but are inaccessible
--> crates/radicle/src/git/repository/object/error/read.rs:130:1
|
130 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::tests::object::error::read::ObjectKind`: not accessible
|
::: crates/radicle/src/git/repository/types.rs:19:1
|
19 | pub enum ObjectKind {
| ^^^^^^^^^^^^^^^^^^^ `crate::storage::git::tests::repository::ObjectKind`: not accessible
For more information about this error, try `rustc --explain E0433`.
error: could not compile `radicle` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `radicle` (lib test) due to 3 previous errors
Exit code: 101
{
"response": "finished",
"result": "failure"
}