rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood27e2a9428a1d5ebf827b9e85be2c47035a6ebd35
{
"request": "trigger",
"version": 1,
"event_type": "push",
"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"
]
},
"pusher": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": "fintohaps"
},
"before": "27e2a9428a1d5ebf827b9e85be2c47035a6ebd35",
"after": "27e2a9428a1d5ebf827b9e85be2c47035a6ebd35",
"branch": "master",
"commits": [
"27e2a9428a1d5ebf827b9e85be2c47035a6ebd35"
]
}
{
"response": "triggered",
"run_id": {
"id": "b30d70a2-2abb-4488-a8a5-78581b974a71"
},
"info_url": "https://cci.rad.levitte.org//b30d70a2-2abb-4488-a8a5-78581b974a71.html"
}
Started at: 2026-07-15 10:49:04.039906+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/b30d70a2-2abb-4488-a8a5-78581b974a71/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 187 issues · 41 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 27e2a9428a1d5ebf827b9e85be2c47035a6ebd35
HEAD is now at 27e2a942 node: Refactor Tests
Exit code: 0
$ git show 27e2a9428a1d5ebf827b9e85be2c47035a6ebd35
commit 27e2a9428a1d5ebf827b9e85be2c47035a6ebd35
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.dev>
Date: Mon Jun 29 14:06:31 2026 +0200
node: Refactor Tests
The tests in `crates/radicle-node/src/tests/.rs` repeat code quite a
bit, for example, construction of IP addresses. Also, `Peer` is
unnecessarily complex (too many struct members, state indicated via a
boolean, type parameter that is always instantiated for the same type).
Clean up `Peer` by removing multiple struct members, remove the
unnecessary type parameter, and provide convenience functions that make
statement of the actual tests a little less repetitive and more concise.
For test networks, five standard nodes (Amy, Bob, Cid, Dan, Eve) are all
easy to construct. Tests are refactored to make use of these nodes in
lexicgraphic oreder. The order of initialization may differ.
Modification of configuration is done by passing `FnMut`.
In the future, using the builder pattern could be explored.
diff --git a/crates/radicle-node/src/test/peer.rs b/crates/radicle-node/src/test/peer.rs
index 60655e18..97fe7a3a 100644
--- a/crates/radicle-node/src/test/peer.rs
+++ b/crates/radicle-node/src/test/peer.rs
@@ -7,7 +7,7 @@ use std::str::FromStr;
use log::*;
use radicle::Storage;
-use radicle::crypto;
+use radicle::crypto::Signer as _;
use radicle::git::Oid;
use radicle::identity::Visibility;
use radicle::node::Database;
@@ -33,7 +33,7 @@ use crate::service::*;
use crate::storage::git::transport::remote;
use crate::storage::{RemoteId, WriteStorage};
use crate::test::storage::MockStorage;
-use crate::test::{arbitrary, fixtures, simulator};
+use crate::test::{arbitrary, fixtures};
use crate::wire::MessageType;
use crate::{Link, LocalDuration, LocalTime, PROTOCOL_VERSION};
use radicle::node::events::Events;
@@ -42,95 +42,111 @@ use radicle::node::policy::{Scope, SeedingPolicy};
use radicle_protocol::bounded::BoundedVec;
/// Service instantiation used for testing.
-pub type Service<S, G> = service::Service<Database, S, G>;
+pub type Service<S> = service::Service<Database, S, MockSigner>;
+
+pub const AMY: u8 = 0x0A;
+pub const BOB: u8 = 0x0B;
+pub const CID: u8 = 0x0C;
+pub const DAN: u8 = 0x0D;
+pub const EVE: u8 = 0x0E;
#[derive(Debug)]
-pub struct Peer<S, G> {
- pub name: &'static str,
- pub service: Service<S, G>,
- pub id: NodeId,
- pub ip: net::IpAddr,
- pub local_time: LocalTime,
- pub rng: fastrand::Rng,
- pub local_addr: net::SocketAddr,
- pub tempdir: tempfile::TempDir,
-
- initialized: bool,
+pub struct Peer<S> {
+ name: &'static str,
+ service: Service<S>,
+ addr: net::SocketAddr,
+ tempdir: tempfile::TempDir,
}
-impl<S, G> simulator::Peer<S, G> for Peer<S, G>
-where
- S: WriteStorage + 'static,
- G: crypto::signature::Signer<crypto::Signature> + 'static,
-{
- fn init(&mut self) {}
-
- fn addr(&self) -> Address {
- self.address()
+impl<S> Peer<S> {
+ pub fn address(&self) -> Address {
+ Address::from(self.addr)
}
- fn id(&self) -> NodeId {
- self.id
+ pub fn into_service(self) -> Service<S> {
+ self.service
}
}
-impl<S, G> Deref for Peer<S, G> {
- type Target = Service<S, G>;
+impl<S> Deref for Peer<S> {
+ type Target = Service<S>;
fn deref(&self) -> &Self::Target {
&self.service
}
}
-impl<S, G> DerefMut for Peer<S, G> {
+impl<S> DerefMut for Peer<S> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.service
}
}
-impl Peer<MockStorage, MockSigner> {
- pub fn new(name: &'static str, ip: impl Into<net::IpAddr>) -> Self {
- Self::with_storage(name, ip, MockStorage::empty()).initialized()
+impl Peer<MockStorage> {
+ pub fn amy() -> Self {
+ Peer::new_empty_storage("amy", AMY)
}
-}
-impl<S> Peer<S, MockSigner>
-where
- S: WriteStorage + 'static,
-{
- pub fn with_storage(name: &'static str, ip: impl Into<net::IpAddr>, storage: S) -> Self {
- Self::config(name, ip, storage, Config::default()).initialized()
+ pub fn amy_with(f: impl FnOnce(&mut Config)) -> Self {
+ Peer::new_empty_with("amy", AMY, f)
+ }
+
+ pub fn bob() -> Self {
+ Peer::new_empty_storage("bob", BOB)
+ }
+
+ pub fn bob_with(f: impl FnOnce(&mut Config)) -> Self {
+ Peer::new_empty_with("bob", BOB, f)
+ }
+
+ pub fn cid() -> Self {
+ Peer::new_empty_storage("cid", CID)
+ }
+
+ pub fn dan() -> Self {
+ Peer::new_empty_storage("dan", DAN)
+ }
+
+ pub fn eve() -> Self {
+ Peer::new_empty_storage("eve", EVE)
+ }
+
+ pub fn new_empty_storage(name: &'static str, id: u8) -> Self {
+ Self::new_empty_with(name, id, |_| {})
+ }
+
+ pub(crate) fn new_empty_with(name: &'static str, id: u8, f: impl FnOnce(&mut Config)) -> Self {
+ Self::new_with(name, id, MockStorage::empty(), f)
}
}
-pub struct Config<G: crypto::signature::Signer<crypto::Signature> + 'static> {
- pub config: radicle::node::Config,
- pub local_time: LocalTime,
- pub policy: SeedingPolicy,
- pub signer: Device<G>,
- pub rng: fastrand::Rng,
- pub tmp: tempfile::TempDir,
+pub struct Config {
+ pub(crate) config: radicle::node::Config,
+ pub(crate) local_time: LocalTime,
+ pub(crate) policy: SeedingPolicy,
+ pub(crate) signer: MockSigner,
}
-impl Default for Config<MockSigner> {
- fn default() -> Self {
- let mut rng = fastrand::Rng::new();
- let signer = Device::mock_rng(&mut rng);
- let tmp = tempfile::TempDir::new().unwrap();
+impl Config {
+ pub(crate) fn new(id: usize) -> Self {
let config = radicle::node::Config::test(Alias::from_str("mocky").unwrap());
+ let seed = std::iter::repeat_n(id, 32 / std::mem::size_of::<usize>())
+ .flat_map(|i| i.to_le_bytes())
+ .collect::<Vec<_>>()
+ .try_into()
+ .unwrap();
+
Config {
config,
local_time: LocalTime::now(),
policy: SeedingPolicy::default(),
- signer,
- rng,
- tmp,
+ signer: MockSigner::from_seed(seed),
}
}
}
-impl<G: crypto::signature::Signer<crypto::Signature>> Peer<Storage, G> {
+impl Peer<Storage> {
pub fn project(&mut self, name: &str, description: &str) -> RepoId {
radicle::storage::git::transport::local::register(self.storage().clone());
let (repo, _) = fixtures::repository(self.tempdir.path().join(name));
@@ -149,37 +165,49 @@ impl<G: crypto::signature::Signer<crypto::Signature>> Peer<Storage, G> {
}
}
-impl<S, G> Peer<S, G>
+impl<S> Peer<S>
where
S: WriteStorage + 'static,
- G: crypto::signature::Signer<crypto::Signature> + 'static,
{
- pub fn config(
+ pub fn with_storage(name: &'static str, id: u8, storage: S) -> Self {
+ Self::new_with(name, id, storage, |_| {})
+ }
+
+ pub(crate) fn new_with(
name: &'static str,
- ip: impl Into<net::IpAddr>,
+ id: u8,
storage: S,
- mut config: Config<G>,
+ f: impl FnOnce(&mut Config),
) -> Self {
+ let mut config = Config::new(id as usize);
+
let policies = policy::Store::<policy::store::Write>::memory().unwrap();
let mut policies = policy::Config::new(config.policy, policies);
- let id = *config.signer.public_key();
- let ip = ip.into();
- let local_addr = net::SocketAddr::new(ip, config.rng.u16(..));
+ let ip = [198, 18, 0, id].into();
+
+ let addr = net::SocketAddr::new(ip, 58776 + (id as u16));
let inventory = storage.repositories().unwrap();
// Make sure the peer address is advertised.
- config.config.external_addresses.push(local_addr.into());
+ config.config.external_addresses.push(addr.into());
for repo in &inventory {
policies.seed(&repo.rid, Scope::Followed).unwrap();
}
+
+ f(&mut config);
+
+ let tempdir = tempfile::TempDir::with_prefix(name).unwrap();
+
+ let nid = *config.signer.public_key();
+
// Initialize database.
let db = Database::open(
- config.tmp.path().join(node::NODE_DB_FILE),
+ tempdir.path().join(node::NODE_DB_FILE),
node::db::config::Config::default(),
)
.unwrap()
.init(
- &id,
+ &nid,
config.config.features(),
&config.config.alias,
&UserAgent::default(),
@@ -192,73 +220,52 @@ where
let announcement =
service::gossip::node(&config.config, Timestamp::from(config.local_time) + 1);
let emitter: Emitter<Event> = Default::default();
- let service = Service::new(
+
+ let mut service = Service::new(
config.config,
db,
storage,
policies,
- config.signer,
- config.rng.clone(),
+ Device::new(config.signer),
+ fastrand::Rng::with_seed(id as u64),
announcement,
emitter,
);
+ info!(
+ target: "test",
+ "{}: Initializing: id = {}, address = {}",
+ name, nid, addr
+ );
+
+ service.initialize(config.local_time).unwrap();
+
Self {
name,
service,
- id,
- ip,
- local_addr,
- local_time: config.local_time,
- rng: config.rng,
- initialized: false,
- tempdir: config.tmp,
- }
- }
-
- pub fn initialize(&mut self) -> &mut Self {
- if !self.initialized {
- info!(
- target: "test",
- "{}: Initializing: id = {}, address = {}",
- self.name, self.id, self.ip
- );
+ addr,
+ tempdir,
}
- assert_ne!(self.local_time, LocalTime::default());
-
- self.initialized = true;
- self.service.initialize(self.local_time).unwrap();
- self
- }
-
- pub fn initialized(mut self) -> Self {
- self.initialize();
- self
}
pub fn restart(&mut self) {
- assert!(self.initialized);
info!(
target: "test",
"{}: Restarting: id = {}, address = {}",
- self.name, self.id, self.ip
+ self.name, *self.nid(), self.address()
);
self.service.initialize(*self.service.clock()).unwrap();
}
- pub fn address(&self) -> Address {
- Address::from(net::SocketAddr::from((self.ip, 8776)))
- }
-
pub fn import_addresses<'a>(&mut self, peers: impl IntoIterator<Item = &'a Self>) {
- let timestamp = self.timestamp();
+ let timestamp = Timestamp::from(*self.clock());
for peer in peers.into_iter() {
let known_address = node::KnownAddress::new(peer.address(), address::Source::Peer);
self.service
.database_mut()
.addresses_mut()
.insert(
- &peer.node_id(),
+ peer.nid(),
PROTOCOL_VERSION,
radicle::node::Features::default(),
&Alias::from_str(peer.name).unwrap(),
@@ -271,10 +278,6 @@ where
}
}
- pub fn timestamp(&self) -> Timestamp {
- (*self.clock()).into()
- }
-
pub fn inventory(&self) -> HashSet<RepoId> {
self.service
.database()
@@ -285,16 +288,12 @@ where
pub fn git_url(&self, repo: RepoId, namespace: Option<RemoteId>) -> remote::Url {
remote::Url {
- node: self.node_id(),
+ node: *self.nid(),
repo,
namespace,
}
}
- pub fn node_id(&self) -> NodeId {
- self.service.node_id()
- }
-
pub fn receive(&mut self, peer: NodeId, msg: Message) -> &mut Self {
self.service.received_message(peer, msg);
self
@@ -304,7 +303,7 @@ where
Message::inventory(
InventoryAnnouncement {
inventory: arbitrary::vec(3).try_into().unwrap(),
- timestamp: self.timestamp(),
+ timestamp: Timestamp::from(*self.clock()),
},
self.signer(),
)
@@ -315,9 +314,9 @@ where
NodeAnnouncement {
version: PROTOCOL_VERSION,
features: node::Features::SEED,
- timestamp: self.timestamp(),
+ timestamp: Timestamp::from(*self.clock()),
alias: Alias::from_str(self.name).unwrap(),
- addresses: Some(net::SocketAddr::from((self.ip, node::DEFAULT_PORT)).into()).into(),
+ addresses: Some(self.address()).into(),
nonce: 0,
agent: UserAgent::test(),
}
@@ -351,7 +350,7 @@ where
self.announcement(RefsAnnouncement {
rid,
refs,
- timestamp: self.timestamp(),
+ timestamp: Timestamp::from(*self.clock()),
})
}
@@ -366,7 +365,7 @@ where
}
pub fn connect_from(&mut self, peer: &Self) {
- let remote_id = simulator::Peer::<S, G>::id(peer);
+ let remote_id = *peer.nid();
self.service
.connected(remote_id, peer.address(), Link::Inbound);
@@ -386,15 +385,9 @@ where
.expect("`inventory-announcement` must be sent");
}
- pub fn connect_to<
- T: WriteStorage + 'static,
- H: crypto::signature::Signer<crypto::Signature> + 'static,
- >(
- &mut self,
- peer: &Peer<T, H>,
- ) {
- let remote_id = simulator::Peer::<T, H>::id(peer);
- let remote_addr = simulator::Peer::<T, H>::addr(peer);
+ pub fn connect_to<T: WriteStorage + 'static>(&mut self, peer: &Peer<T>) {
+ let remote_id = *peer.nid();
+ let remote_addr = peer.address();
self.service.command(Command::Connect(
remote_id,
@@ -431,7 +424,7 @@ where
}
/// Drain outgoing messages sent from this peer to the remote peer.
- pub fn messages(&mut self, remote: NodeId) -> impl Iterator<Item = Message> + use<S, G> {
+ pub fn messages(&mut self, remote: NodeId) -> impl Iterator<Item = Message> + use<S> {
let mut msgs = Vec::new();
Service::outbox(&mut self.service)
diff --git a/crates/radicle-node/src/test/simulator.rs b/crates/radicle-node/src/test/simulator.rs
index aa95e710..8738c565 100644
--- a/crates/radicle-node/src/test/simulator.rs
+++ b/crates/radicle-node/src/test/simulator.rs
@@ -3,7 +3,7 @@
use std::cell::RefCell;
use std::collections::{BTreeMap, BTreeSet, HashSet, VecDeque};
use std::marker::PhantomData;
-use std::ops::{Deref, DerefMut, Range};
+use std::ops::Range;
use std::rc::Rc;
use std::sync::Arc;
use std::{fmt, io, net};
@@ -12,37 +12,25 @@ use localtime::{LocalDuration, LocalTime};
use log::*;
use radicle::node::NodeId;
use radicle::node::events::Event;
+use radicle_protocol::service::ServiceState as _;
use radicle_protocol::worker::FetchError;
use crate::Link;
-use crate::crypto;
use crate::prelude::{Address, RepoId};
use crate::service::io::Io;
use crate::service::{DisconnectReason, Message, Metrics};
use crate::storage::Namespaces;
use crate::storage::{ReadRepository, WriteStorage};
use crate::test::arbitrary;
-use crate::test::peer::Service;
use crate::worker::fetch;
+use super::peer::Peer;
+
/// Minimum latency between peers.
pub const MIN_LATENCY: LocalDuration = LocalDuration::from_millis(1);
/// Maximum number of events buffered per peer.
pub const MAX_EVENTS: usize = 2048;
-/// A simulated peer. Service instances have to be wrapped in this type to be simulated.
-pub trait Peer<S, G>:
- Deref<Target = Service<S, G>> + DerefMut<Target = Service<S, G>> + 'static
-{
- /// Initialize the peer. This should at minimum initialize the service with the
- /// current time.
- fn init(&mut self);
- /// Get the peer address.
- fn addr(&self) -> Address;
- /// Get the peer id.
- fn id(&self) -> NodeId;
-}
-
/// Simulated service input.
#[derive(Debug, Clone)]
pub enum Input {
@@ -171,7 +159,7 @@ impl Default for Options {
}
/// A peer-to-peer node simulation.
-pub struct Simulation<S, G> {
+pub struct Simulation<S> {
/// Inbox of inputs to be delivered by the simulation.
inbox: Inbox,
/// Events emitted during simulation.
@@ -198,17 +186,19 @@ pub struct Simulation<S, G> {
rng: RefCell<fastrand::Rng>,
/// Storage type.
storage: PhantomData<S>,
- /// Signer type.
- signer: PhantomData<G>,
}
-impl<S, G> Simulation<S, G>
+impl<S> Simulation<S>
where
S: WriteStorage + 'static,
- G: crypto::signature::Signer<crypto::Signature>,
{
/// Create a new simulation.
- pub fn new(time: LocalTime, rng: fastrand::Rng, opts: Options) -> Self {
+ pub fn new(time: LocalTime, opts: Options) -> Self {
+ let rng = fastrand::Rng::new();
+
+ // Log the seed so that we can reproduce the simulation if needed.
+ log::info!(target: "sim", "Seed: {}", rng.get_seed());
+
Self {
inbox: Inbox {
messages: BTreeMap::new(),
@@ -225,7 +215,6 @@ where
time,
rng: RefCell::new(rng),
storage: PhantomData,
- signer: PhantomData,
}
}
@@ -268,26 +257,13 @@ where
.unwrap_or_else(|| MIN_LATENCY)
}
- /// Initialize peers.
- pub fn initialize<'a, P>(self, peers: impl IntoIterator<Item = &'a mut P>) -> Self
- where
- P: Peer<S, G>,
- {
- for peer in peers.into_iter() {
- peer.init();
- }
- self
- }
-
/// Run the simulation while the given predicate holds.
- pub fn run_while<'a, P>(
+ pub fn run_while<'a>(
&mut self,
- peers: impl IntoIterator<Item = &'a mut P>,
+ peers: impl IntoIterator<Item = &'a mut Peer<S>>,
pred: impl Fn(&Self) -> bool,
- ) where
- P: Peer<S, G>,
- {
- let mut nodes: BTreeMap<_, _> = peers.into_iter().map(|p| (p.id(), p)).collect();
+ ) {
+ let mut nodes: BTreeMap<_, _> = peers.into_iter().map(|p| (*p.nid(), p)).collect();
self.messages.clear();
self.events.clear();
@@ -303,12 +279,12 @@ where
/// Process one scheduled input from the inbox, using the provided peers.
/// This function should be called until it returns `false`, or some desired state is reached.
/// Returns `true` if there are more messages to process.
- pub fn step<'a, P: Peer<S, G>>(&mut self, peers: impl IntoIterator<Item = &'a mut P>) -> bool {
- let mut nodes: BTreeMap<_, _> = peers.into_iter().map(|p| (p.id(), p)).collect();
+ pub fn step<'a>(&mut self, peers: impl IntoIterator<Item = &'a mut Peer<S>>) -> bool {
+ let mut nodes: BTreeMap<_, _> = peers.into_iter().map(|p| (*p.nid(), p)).collect();
self.step_(&mut nodes)
}
- fn step_<P: Peer<S, G>>(&mut self, nodes: &mut BTreeMap<NodeId, &mut P>) -> bool {
+ fn step_(&mut self, nodes: &mut BTreeMap<NodeId, &mut Peer<S>>) -> bool {
if !self.opts.latency.is_empty() {
// Configure latencies.
for (i, from) in nodes.keys().enumerate() {
@@ -345,7 +321,7 @@ where
// Schedule any messages in the pipes.
for peer in nodes.values_mut() {
- let id = peer.id();
+ let id = *peer.nid();
while let Some(o) = peer.next() {
self.schedule(&id, o);
@@ -409,7 +385,7 @@ where
p.received_message(from, msg);
}
self.messages
- .extend(msgs.into_iter().map(|m| (from, p.node_id(), m)));
+ .extend(msgs.into_iter().map(|m| (from, *p.nid(), m)));
}
Input::Fetched(rid, nid, result) => {
let mut result = Rc::try_unwrap(result).unwrap();
diff --git a/crates/radicle-node/src/tests.rs b/crates/radicle-node/src/tests.rs
index 10452f3c..5ed13be4 100644
--- a/crates/radicle-node/src/tests.rs
+++ b/crates/radicle-node/src/tests.rs
@@ -8,14 +8,15 @@ use std::sync::Arc;
use std::sync::LazyLock;
use std::time;
+use radicle::node::device::Device;
use radicle::storage::ReadRepository;
use test_log::test;
use radicle::cob;
+use radicle::crypto::test::signer::MockSigner;
use radicle::identity::Visibility;
use radicle::node::Link;
use radicle::node::address::Store as _;
-use radicle::node::device::Device;
use radicle::node::policy;
use radicle::node::refs::Store as _;
use radicle::node::routing::Store as _;
@@ -46,10 +47,10 @@ use crate::test::assert_matches;
use crate::test::fixtures;
#[allow(unused)]
use crate::test::logger;
-use crate::test::peer;
use crate::test::peer::Peer;
+use crate::test::peer::{AMY, BOB, CID};
use crate::test::simulator;
-use crate::test::simulator::{Peer as _, Simulation};
+use crate::test::simulator::Simulation;
use crate::LocalTime;
use crate::test::storage::MockStorage;
@@ -77,7 +78,7 @@ pub static TEST_CASES: LazyLock<usize> = LazyLock::new(|| {
// You may then run the test with eg. `cargo test -- --nocapture` to always show output.
#[test]
-fn test_inventory_decode() {
+fn inventory_decode() {
let inventory: Vec<RepoId> = arbitrary::r#gen(300);
let timestamp: Timestamp = LocalTime::now().into();
@@ -91,198 +92,182 @@ fn test_inventory_decode() {
}
#[test]
-fn test_ping_response() {
- let mut alice = Peer::new("alice", [198, 18, 0, 8]);
- let bob = Peer::new("bob", [198, 18, 0, 9]);
- let eve = Peer::new("eve", [198, 18, 0, 7]);
-
- alice.connect_to(&bob);
- alice.receive(
- bob.id(),
+fn ping_response() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+ let cid = Peer::cid();
+
+ amy.connect_to(&bob);
+ amy.receive(
+ *bob.nid(),
Message::Ping(Ping {
ponglen: Ping::MAX_PONG_ZEROES,
zeroes: ZeroBytes::new(42),
}),
);
assert_matches!(
- alice.messages(bob.id()).next(),
+ amy.messages(*bob.nid()).next(),
Some(Message::Pong { zeroes }) if zeroes.len() == Ping::MAX_PONG_ZEROES as usize,
"respond with correctly formatted pong",
);
- alice.connect_to(&eve);
- alice.receive(
- eve.id(),
+ amy.connect_to(&cid);
+ amy.receive(
+ *cid.nid(),
Message::Ping(Ping {
ponglen: Ping::MAX_PONG_ZEROES + 1,
zeroes: ZeroBytes::new(42),
}),
);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
None,
"ignore unsupported ping message",
);
}
#[test]
-fn test_disconnecting_unresponsive_peer() {
- let mut alice = Peer::new("alice", [198, 18, 0, 8]);
- let bob = Peer::new("bob", [198, 18, 0, 9]);
-
- alice.connect_to(&bob);
- assert_eq!(1, alice.sessions().connected().count(), "bob connects");
- alice.elapse(STALE_CONNECTION_TIMEOUT + LocalDuration::from_secs(1));
- alice
- .outbox()
- .find(|m| matches!(m, &Io::Disconnect(addr, _) if addr == bob.id()))
+fn disconnecting_unresponsive_peer() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+
+ amy.connect_to(&bob);
+ assert_eq!(1, amy.sessions().connected().count(), "bob connects");
+ amy.elapse(STALE_CONNECTION_TIMEOUT + LocalDuration::from_secs(1));
+ amy.outbox()
+ .find(|m| matches!(m, &Io::Disconnect(addr, _) if addr == *bob.nid()))
.expect("disconnect an unresponsive bob");
}
#[test]
-fn test_redundant_connect() {
- let mut alice = Peer::new("alice", [198, 18, 0, 8]);
- let bob = Peer::new("bob", [198, 18, 0, 9]);
+fn redundant_connect() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
let opts = ConnectOptions::default();
- alice.command(Command::Connect(bob.id(), bob.address(), opts.clone()));
- alice.command(Command::Connect(bob.id(), bob.address(), opts.clone()));
- alice.command(Command::Connect(bob.id(), bob.address(), opts));
+ amy.command(Command::Connect(*bob.nid(), bob.address(), opts.clone()));
+ amy.command(Command::Connect(*bob.nid(), bob.address(), opts.clone()));
+ amy.command(Command::Connect(*bob.nid(), bob.address(), opts));
// Only one connection attempt is made.
assert_matches!(
- alice.outbox().filter(|o| matches!(o, Io::Connect { .. })).collect::<Vec<_>>().as_slice(),
+ amy.outbox().filter(|o| matches!(o, Io::Connect { .. })).collect::<Vec<_>>().as_slice(),
[Io::Connect(id, addr)]
- if *id == bob.id() && *addr == bob.addr()
+ if *id == *bob.nid() && *addr == bob.address()
);
}
#[test]
-fn test_connection_kept_alive() {
- let mut alice = Peer::new("alice", [198, 18, 0, 8]);
- let mut bob = Peer::new("bob", [198, 18, 0, 9]);
-
- let mut sim = Simulation::new(
- LocalTime::now(),
- alice.rng.clone(),
- simulator::Options::default(),
- )
- .initialize([&mut alice, &mut bob]);
+fn connection_kept_alive() {
+ let mut amy = Peer::amy();
+ let mut bob = Peer::bob();
- alice.command(service::Command::Connect(
- bob.id(),
+ let mut sim = Simulation::new(LocalTime::now(), simulator::Options::default());
+
+ amy.command(service::Command::Connect(
+ *bob.nid(),
bob.address(),
ConnectOptions::default(),
));
- sim.run_while([&mut alice, &mut bob], |s| !s.is_settled());
- assert_eq!(1, alice.sessions().connected().count(), "bob connects");
+ sim.run_while([&mut amy, &mut bob], |s| !s.is_settled());
+ assert_eq!(1, amy.sessions().connected().count(), "bob connects");
let mut elapsed: LocalDuration = LocalDuration::from_secs(0);
let step: LocalDuration = STALE_CONNECTION_TIMEOUT / 10;
while elapsed < STALE_CONNECTION_TIMEOUT + step {
- alice.elapse(step);
+ amy.elapse(step);
bob.elapse(step);
- sim.run_while([&mut alice, &mut bob], |s| !s.is_settled());
+ sim.run_while([&mut amy, &mut bob], |s| !s.is_settled());
elapsed = elapsed + step;
}
- assert_eq!(1, alice.sessions().len(), "alice remains connected to Bob");
- assert_eq!(1, bob.sessions().len(), "bob remains connected to Alice");
+ assert_eq!(1, amy.sessions().len(), "Amy remains connected to Bob");
+ assert_eq!(1, bob.sessions().len(), "Bob remains connected to Amy");
}
#[test]
-fn test_outbound_connection() {
- let mut alice = Peer::new("alice", [198, 18, 0, 8]);
- let bob = Peer::new("bob", [198, 18, 0, 9]);
- let eve = Peer::new("eve", [198, 18, 0, 7]);
+fn outbound_connection() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+ let cid = Peer::cid();
- alice.connect_to(&bob);
- alice.connect_to(&eve);
+ amy.connect_to(&bob);
+ amy.connect_to(&cid);
- let peers = alice
- .service
+ let peers = amy
.sessions()
.connected()
.map(|(id, _)| *id)
.collect::<Vec<_>>();
- assert!(peers.contains(&eve.id()));
- assert!(peers.contains(&bob.id()));
+ assert!(peers.contains(cid.nid()));
+ assert!(peers.contains(bob.nid()));
}
#[test]
-fn test_inbound_connection() {
- let mut alice = Peer::new("alice", [198, 18, 0, 8]);
- let bob = Peer::new("bob", [198, 18, 0, 9]);
- let eve = Peer::new("eve", [198, 18, 0, 7]);
+fn inbound_connection() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+ let cid = Peer::cid();
- alice.connect_from(&bob);
- alice.connect_from(&eve);
+ amy.connect_from(&bob);
+ amy.connect_from(&cid);
- let peers = alice
- .service
+ let peers = amy
.sessions()
.connected()
.map(|(id, _)| *id)
.collect::<Vec<_>>();
- assert!(peers.contains(&eve.id()));
- assert!(peers.contains(&bob.id()));
+ assert!(peers.contains(cid.nid()));
+ assert!(peers.contains(bob.nid()));
}
#[test]
-fn test_persistent_peer_connect() {
+fn persistent_peer_connect() {
use indexmap::IndexSet;
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
+ let bob = Peer::bob();
+ let cid = Peer::cid();
let connect = IndexSet::<ConnectAddress>::from_iter([
- (bob.id(), bob.address()).into(),
- (eve.id(), eve.address()).into(),
+ (*bob.nid(), bob.address()).into(),
+ (*cid.nid(), cid.address()).into(),
]);
- let mut alice = Peer::config(
- "alice",
- [198, 18, 0, 7],
- MockStorage::empty(),
- peer::Config {
- config: Config {
- connect,
- ..Config::new(node::Alias::new("alice"))
- },
- ..peer::Config::default()
- },
- )
- .initialized();
- let outbox = alice.outbox().collect::<Vec<_>>();
+ let mut amy = Peer::amy_with(move |config| {
+ config.config.connect = connect;
+ });
+
+ let outbox = amy.outbox().collect::<Vec<_>>();
outbox
.iter()
- .find(|o| matches!(o, Io::Connect(a, _) if *a == bob.id()))
+ .find(|o| matches!(o, Io::Connect(a, _) if *a == *bob.nid()))
.unwrap();
outbox
.iter()
- .find(|o| matches!(o, Io::Connect(a, _) if *a == eve.id()))
+ .find(|o| matches!(o, Io::Connect(a, _) if *a == *cid.nid()))
.unwrap();
}
#[test]
-fn test_inventory_sync() {
+fn inventory_sync() {
let tmp = tempfile::tempdir().unwrap();
- let mut alice = Peer::with_storage(
- "alice",
- [198, 18, 0, 7],
- Storage::open(tmp.path().join("alice"), fixtures::user()).unwrap(),
+ let mut amy = Peer::with_storage(
+ "amy",
+ AMY,
+ Storage::open(tmp.path().join("amy"), fixtures::user()).unwrap(),
);
- let bob_signer = Device::mock();
+ let bob_secret = BOB;
+ let bob_signer = Device::mock_from_seed([bob_secret; 32]);
let bob_storage = fixtures::storage(tmp.path().join("bob"), &bob_signer).unwrap();
- let bob = Peer::with_storage("bob", [198, 18, 0, 8], bob_storage);
+ let bob = Peer::with_storage("bob", bob_secret, bob_storage);
let now = LocalTime::now().into();
let repos = bob.inventory().into_iter().collect::<Vec<_>>();
- alice.connect_to(&bob);
- alice.receive(
- bob.id(),
+ amy.connect_to(&bob);
+ amy.receive(
+ *bob.nid(),
Message::inventory(
InventoryAnnouncement {
inventory: repos.clone().try_into().unwrap(),
@@ -293,18 +278,29 @@ fn test_inventory_sync() {
);
for proj in &repos {
- let seeds = alice.database().routing().get(proj).unwrap();
- assert!(seeds.contains(&bob.node_id()));
+ let seeds = amy.database().routing().get(proj).unwrap();
+ assert!(seeds.contains(bob.nid()));
}
}
#[test]
-fn test_inventory_pruning() {
+fn inventory_pruning() {
+ const ONE_WEEK: LocalDuration = LocalDuration::from_mins(7 * 24 * 60);
+ const PROJECTS_PER_ITERATION: usize = 10;
+ const ITERATIONS: usize = 5;
+ const PROJECTS_TOTAL: usize = PROJECTS_PER_ITERATION * ITERATIONS;
+
+ fn one_second_more(duration: LocalDuration) -> LocalDuration {
+ duration + LocalDuration::from_secs(1)
+ }
+
+ assert!(
+ one_second_more(ONE_WEEK) > PRUNE_INTERVAL,
+ "pruning must be triggered"
+ );
+
struct Test {
limits: Limits,
- /// Number of projects by peer
- peer_projects: Vec<usize>,
- wait_time: LocalDuration,
expected_routing_table_size: usize,
}
let tests = [
@@ -315,82 +311,69 @@ fn test_inventory_pruning() {
routing_max_age: LocalDuration::from_secs(0).into(),
..Limits::default()
},
- peer_projects: vec![10; 5],
- wait_time: LocalDuration::from_mins(7 * 24 * 60) + LocalDuration::from_secs(1),
expected_routing_table_size: 0,
},
// All entries are too young to expire.
Test {
limits: Limits {
routing_max_size: 0.into(),
- routing_max_age: LimitRoutingMaxAge::from(LocalDuration::from_mins(7 * 24 * 60)),
+ routing_max_age: ONE_WEEK.into(),
..Limits::default()
},
- peer_projects: vec![10; 5],
- wait_time: LocalDuration::from_mins(7 * 24 * 60) + LocalDuration::from_secs(1),
expected_routing_table_size: 0,
},
- // All entries remain because the table is unconstrained.
+ // Some entries are pruned because the table is constrained.
Test {
limits: Limits {
- routing_max_size: 50.into(),
- routing_max_age: LocalDuration::from_mins(0).into(),
+ routing_max_size: 5.into(),
+ routing_max_age: ONE_WEEK.into(),
..Limits::default()
},
- peer_projects: vec![10; 5],
- wait_time: LocalDuration::from_mins(7 * 24 * 60) + LocalDuration::from_secs(1),
- expected_routing_table_size: 50,
+ expected_routing_table_size: 5,
},
- // Some entries are pruned because the table is constrained.
+ // All entries remain because the table constraints are so lax.
Test {
limits: Limits {
routing_max_size: 25.into(),
- routing_max_age: LocalDuration::from_mins(7 * 24 * 60).into(),
+ routing_max_age: ONE_WEEK.into(),
..Limits::default()
},
- peer_projects: vec![10; 5],
- wait_time: LocalDuration::from_mins(7 * 24 * 60) + LocalDuration::from_secs(1),
expected_routing_table_size: 25,
},
];
for test in tests {
- let mut alice = Peer::config(
- "alice",
- [198, 18, 0, 7],
- MockStorage::empty(),
- peer::Config {
- config: Config {
- limits: test.limits,
- ..Config::new(node::Alias::new("alice"))
- },
- ..peer::Config::default()
- },
- )
- .initialized();
+ let mut amy = Peer::amy_with(move |config| {
+ config.config.limits = test.limits;
+ });
- let bob = Peer::config(
- "bob",
- [198, 18, 0, 8],
- MockStorage::empty(),
- peer::Config {
- local_time: alice.local_time(),
- ..peer::Config::default()
- },
- )
- .initialized();
+ let amy_local_time = amy.local_time();
+ let bob = Peer::bob_with(move |config| {
+ config.local_time = amy_local_time;
+ });
- // Tell Alice about the amazing projects available
- alice.connect_to(&bob);
- for num_projs in test.peer_projects {
- let peer = Peer::new("other", [198, 18, 0, 9]);
+ assert_eq!(bob.local_time(), amy.local_time());
- alice.receive(bob.id(), peer.node_announcement());
- alice.receive(
- bob.id(),
+ let projects: [RepoId; PROJECTS_TOTAL] =
+ test::arbitrary::set::<RepoId>(PROJECTS_TOTAL..=PROJECTS_TOTAL)
+ .into_iter()
+ .collect::<Vec<_>>()
+ .try_into()
+ .unwrap();
+
+ // Tell Amy about the amazing projects available
+ amy.connect_to(&bob);
+ for i in 0..ITERATIONS {
+ let peer = Peer::new_empty_storage("peer", (100 + i) as u8);
+
+ amy.receive(*bob.nid(), peer.node_announcement());
+ amy.receive(
+ *bob.nid(),
Message::inventory(
InventoryAnnouncement {
- inventory: test::arbitrary::vec::<RepoId>(num_projs)
+ inventory: projects
+ [(i * PROJECTS_PER_ITERATION)..((i + 1) * PROJECTS_PER_ITERATION)]
+ .to_owned()
.try_into()
.unwrap(),
timestamp: bob.local_time().into(),
@@ -401,52 +384,51 @@ fn test_inventory_pruning() {
}
// Wait for things to happen
- assert!(test.wait_time > PRUNE_INTERVAL, "pruning must be triggered");
- alice.elapse(test.wait_time);
+ amy.elapse(one_second_more(ONE_WEEK));
assert_eq!(
test.expected_routing_table_size,
- alice.database().routing().len().unwrap()
+ amy.database().routing().len().unwrap()
);
}
}
#[test]
-fn test_seeding() {
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
+fn seeding() {
+ let mut amy = Peer::amy();
let proj_id: identity::RepoId = test::arbitrary::r#gen(1);
let (cmd, receiver) = Command::seed(proj_id, policy::Scope::default());
- alice.command(cmd);
+ amy.command(cmd);
let policy_change = receiver
.recv()
.map_err(runtime::HandleError::from)
.unwrap()
.unwrap();
assert!(policy_change);
- assert!(alice.policies().is_seeding(&proj_id).unwrap());
+ assert!(amy.policies().is_seeding(&proj_id).unwrap());
let (cmd, receiver) = Command::unseed(proj_id);
- alice.command(cmd);
+ amy.command(cmd);
let policy_change = receiver
.recv()
.map_err(runtime::HandleError::from)
.unwrap()
.unwrap();
assert!(policy_change);
- assert!(!alice.policies().is_seeding(&proj_id).unwrap());
+ assert!(!amy.policies().is_seeding(&proj_id).unwrap());
}
#[test]
-fn test_inventory_relay_bad_timestamp() {
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
+fn inventory_relay_bad_timestamp() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
let two_hours = 3600 * 1000 * 2;
- let timestamp = alice.timestamp() + two_hours;
+ let timestamp = Timestamp::from(*amy.clock()) + two_hours;
- alice.connect_to(&bob);
- alice.receive(
- bob.id(),
+ amy.connect_to(&bob);
+ amy.receive(
+ *bob.nid(),
Message::inventory(
InventoryAnnouncement {
inventory: BoundedVec::new(),
@@ -456,31 +438,31 @@ fn test_inventory_relay_bad_timestamp() {
),
);
assert_matches!(
- alice.outbox().next(),
+ amy.outbox().next(),
Some(Io::Disconnect(addr, DisconnectReason::Session(session::Error::InvalidTimestamp(session::InvalidTimestamp::Future { theirs, .. }))))
- if addr == bob.id() && theirs == timestamp
+ if addr == *bob.nid() && theirs == timestamp
);
}
#[test]
-fn test_announcement_rebroadcast() {
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
+fn announcement_rebroadcast() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+ let cid = Peer::cid();
- alice.connect_to(&bob);
- alice.connect_from(&eve);
- alice.outbox().for_each(drop);
+ amy.connect_to(&bob);
+ amy.connect_from(&cid);
+ amy.outbox().for_each(drop);
log::debug!(target: "test", "Receiving gossips..");
- let received = test::gossip::messages(6, alice.local_time(), MAX_TIME_DELTA);
+ let received = test::gossip::messages(6, amy.local_time(), MAX_TIME_DELTA);
for msg in received.iter().cloned() {
- alice.receive(bob.id(), msg);
+ amy.receive(*bob.nid(), msg);
}
- alice.receive(
- eve.id(),
+ amy.receive(
+ *cid.nid(),
Message::Subscribe(Subscribe {
filter: Filter::default(),
since: Timestamp::MIN,
@@ -488,7 +470,7 @@ fn test_announcement_rebroadcast() {
}),
);
- let relayed = alice.messages(eve.id()).collect::<BTreeSet<_>>();
+ let relayed = amy.messages(*cid.nid()).collect::<BTreeSet<_>>();
let received = received
.into_iter()
.chain(Some(bob.node_announcement()))
@@ -499,26 +481,25 @@ fn test_announcement_rebroadcast() {
}
#[test]
-fn test_announcement_rebroadcast_duplicates() {
- let mut carol = Peer::new("carol", [198, 18, 0, 4]);
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
+fn announcement_rebroadcast_duplicates() {
+ let mut cid = Peer::cid();
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+ let dan = Peer::dan();
let rids = arbitrary::set::<RepoId>(3..=3);
- carol.init();
- alice.connect_to(&bob);
- alice.receive(bob.id, carol.node_announcement());
+ amy.connect_to(&bob);
+ amy.receive(*bob.nid(), cid.node_announcement());
// These are not expected to be relayed.
let stale = {
let mut anns = BTreeSet::new();
for _ in 0..5 {
- carol.elapse(LocalDuration::from_mins(1));
+ cid.elapse(LocalDuration::from_mins(1));
- anns.insert(carol.inventory_announcement());
- anns.insert(carol.node_announcement());
+ anns.insert(cid.inventory_announcement());
+ anns.insert(cid.node_announcement());
}
anns
};
@@ -527,14 +508,14 @@ fn test_announcement_rebroadcast_duplicates() {
let expected = {
let mut anns = BTreeSet::new();
- carol.elapse(LocalDuration::from_mins(1));
- anns.insert(carol.inventory_announcement());
- anns.insert(carol.node_announcement());
+ cid.elapse(LocalDuration::from_mins(1));
+ anns.insert(cid.inventory_announcement());
+ anns.insert(cid.node_announcement());
anns.insert(bob.node_announcement());
for rid in rids {
- alice.seed(&rid, policy::Scope::All).unwrap();
- anns.insert(carol.refs_announcement(rid));
+ amy.seed(&rid, policy::Scope::All).unwrap();
+ anns.insert(cid.refs_announcement(rid));
anns.insert(bob.refs_announcement(rid));
}
anns
@@ -543,15 +524,15 @@ fn test_announcement_rebroadcast_duplicates() {
let mut all = stale.iter().chain(expected.iter()).collect::<Vec<_>>();
fastrand::shuffle(&mut all);
- // Alice receives all messages out of order.
+ // Amy receives all messages out of order.
for ann in all {
- alice.receive(bob.id, ann.clone());
+ amy.receive(*bob.nid(), ann.clone());
}
- // Alice relays just the expected ones back to Eve.
- alice.connect_from(&eve);
- alice.receive(
- eve.id(),
+ // Amy relays just the expected ones back to Dan.
+ amy.connect_from(&dan);
+ amy.receive(
+ *dan.nid(),
Message::Subscribe(Subscribe {
filter: Filter::default(),
since: Timestamp::MIN,
@@ -559,47 +540,47 @@ fn test_announcement_rebroadcast_duplicates() {
}),
);
- let relayed = alice.messages(eve.id()).collect::<BTreeSet<_>>();
+ let relayed = amy.messages(*dan.nid()).collect::<BTreeSet<_>>();
assert_eq!(relayed.len(), 9);
assert_eq!(relayed, expected);
}
#[test]
-fn test_announcement_rebroadcast_timestamp_filtered() {
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
+fn announcement_rebroadcast_timestamp_filtered() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+ let cid = Peer::cid();
- alice.connect_to(&bob);
+ amy.connect_to(&bob);
let delta = LocalDuration::from_mins(10);
- let first = test::gossip::messages(3, alice.local_time() - delta, LocalDuration::from_secs(0));
- let second = test::gossip::messages(3, alice.local_time(), LocalDuration::from_secs(0));
- let third = test::gossip::messages(3, alice.local_time() + delta, LocalDuration::from_secs(0));
+ let first = test::gossip::messages(3, amy.local_time() - delta, LocalDuration::from_secs(0));
+ let second = test::gossip::messages(3, amy.local_time(), LocalDuration::from_secs(0));
+ let third = test::gossip::messages(3, amy.local_time() + delta, LocalDuration::from_secs(0));
- // Alice receives three batches of messages.
+ // Amy receives three batches of messages.
for msg in first
.iter()
.chain(second.iter())
.chain(third.iter())
.cloned()
{
- alice.receive(bob.id(), msg);
+ amy.receive(*bob.nid(), msg);
}
- // Eve subscribes to messages within the period of the second batch only.
- alice.connect_from(&eve);
- alice.receive(
- eve.id(),
+ // Cid subscribes to messages within the period of the second batch only.
+ amy.connect_from(&cid);
+ amy.receive(
+ *cid.nid(),
Message::Subscribe(Subscribe {
filter: Filter::default(),
- since: alice.local_time().into(),
- until: (alice.local_time() + delta).into(),
+ since: amy.local_time().into(),
+ until: (amy.local_time() + delta).into(),
}),
);
- let relayed = alice.relayed(eve.id()).collect::<BTreeSet<_>>();
+ let relayed = amy.relayed(*cid.nid()).collect::<BTreeSet<_>>();
let second = second
.into_iter()
.chain(Some(bob.node_announcement()))
@@ -610,118 +591,104 @@ fn test_announcement_rebroadcast_timestamp_filtered() {
}
#[test]
-fn test_announcement_relay() {
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let mut bob = Peer::new("bob", [198, 18, 0, 8]);
- let mut eve = Peer::new("eve", [198, 18, 0, 9]);
-
- alice.connect_to(&bob);
- alice.connect_to(&eve);
- alice
- .receive(bob.id(), bob.inventory_announcement())
+fn announcement_relay() {
+ let mut amy = Peer::amy();
+ let mut bob = Peer::bob();
+ let mut cid = Peer::cid();
+
+ amy.connect_to(&bob);
+ amy.connect_to(&cid);
+ amy.receive(*bob.nid(), bob.inventory_announcement())
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
Some(Message::Announcement(_))
);
- alice.receive(bob.id(), bob.inventory_announcement());
+ amy.receive(*bob.nid(), bob.inventory_announcement());
assert!(
- alice.messages(eve.id()).next().is_none(),
+ amy.messages(*cid.nid()).next().is_none(),
"Another inventory with the same timestamp is ignored"
);
bob.elapse(LocalDuration::from_mins(1));
- alice
- .receive(bob.id(), bob.inventory_announcement())
+ amy.receive(*bob.nid(), bob.inventory_announcement())
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
Some(Message::Announcement(_)),
"Another inventory with a fresher timestamp is relayed"
);
- alice
- .receive(bob.id(), bob.node_announcement())
+ amy.receive(*bob.nid(), bob.node_announcement())
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
Some(Message::Announcement(_)),
"A node announcement with the same timestamp as the inventory is relayed"
);
- alice
- .receive(bob.id(), bob.node_announcement())
+ amy.receive(*bob.nid(), bob.node_announcement())
.elapse(service::GOSSIP_INTERVAL);
- assert!(alice.messages(eve.id()).next().is_none(), "Only once");
+ assert!(amy.messages(*cid.nid()).next().is_none(), "Only once");
- alice
- .receive(eve.id(), eve.node_announcement())
+ amy.receive(*cid.nid(), cid.node_announcement())
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(bob.id()).next(),
+ amy.messages(*bob.nid()).next(),
Some(Message::Announcement(_)),
- "A node announcement from Eve is relayed to Bob"
+ "A node announcement from Cid is relayed to Bob"
);
assert!(
- alice.messages(eve.id()).next().is_none(),
- "But not back to Eve"
+ amy.messages(*cid.nid()).next().is_none(),
+ "But not back to Cid"
);
- eve.elapse(LocalDuration::from_mins(1));
- alice
- .receive(bob.id(), eve.node_announcement())
+ cid.elapse(LocalDuration::from_mins(1));
+ amy.receive(*bob.nid(), cid.node_announcement())
.elapse(service::GOSSIP_INTERVAL);
assert!(
- alice.messages(bob.id()).next().is_none(),
+ amy.messages(*bob.nid()).next().is_none(),
"Bob already know about this message, since he sent it"
);
assert!(
- alice.messages(eve.id()).next().is_none(),
- "Eve already know about this message, since she signed it"
+ amy.messages(*cid.nid()).next().is_none(),
+ "Cid already know about this message, since she signed it"
);
}
#[test]
-fn test_refs_announcement_relay_public() {
+fn refs_announcement_relay_public() {
let tmp = tempfile::tempdir().unwrap();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], MockStorage::empty());
- let eve = Peer::with_storage(
- "eve",
- [198, 18, 0, 8],
- Storage::open(tmp.path().join("eve"), fixtures::user()).unwrap(),
+ let mut amy = Peer::amy();
+ let cid = Peer::with_storage(
+ "cid",
+ CID,
+ Storage::open(tmp.path().join("cid"), fixtures::user()).unwrap(),
);
let bob = {
- let mut rng = fastrand::Rng::new();
- let signer = Device::mock_rng(&mut rng);
- let storage = fixtures::storage(tmp.path().join("bob"), &signer).unwrap();
+ const ID: u8 = BOB;
+ let secret_key = MockSigner::from_seed([ID; 32]);
+ let storage =
+ fixtures::storage(tmp.path().join("bob"), &Device::new(secret_key.clone())).unwrap();
- Peer::config(
- "bob",
- [198, 18, 0, 9],
- storage,
- peer::Config {
- signer,
- rng,
- ..peer::Config::default()
- },
- )
- .initialized()
+ Peer::new_with("bob", ID, storage, move |config| {
+ config.signer = secret_key;
+ })
};
let bob_inv = bob.inventory().into_iter().collect::<Vec<_>>();
- alice.seed(&bob_inv[0], policy::Scope::All).unwrap();
- alice.seed(&bob_inv[1], policy::Scope::All).unwrap();
- alice.seed(&bob_inv[2], policy::Scope::All).unwrap();
- alice.connect_to(&bob);
- alice.connect_to(&eve);
- alice.receive(eve.id(), Message::Subscribe(Subscribe::all()));
- alice
- .receive(bob.id(), bob.refs_announcement(bob_inv[0]))
+ amy.seed(&bob_inv[0], policy::Scope::All).unwrap();
+ amy.seed(&bob_inv[1], policy::Scope::All).unwrap();
+ amy.seed(&bob_inv[2], policy::Scope::All).unwrap();
+ amy.connect_to(&bob);
+ amy.connect_to(&cid);
+ amy.receive(*cid.nid(), Message::Subscribe(Subscribe::all()));
+ amy.receive(*bob.nid(), bob.refs_announcement(bob_inv[0]))
.elapse(service::GOSSIP_INTERVAL);
- // Pretend Alice cloned Bob's repos.
+ // Pretend Amy cloned Bob's repos.
let repos = r#gen::<[MockRepository; 3]>(1);
for (i, mut repo) in repos.into_iter().enumerate() {
repo.doc.doc = repo
@@ -731,77 +698,65 @@ fn test_refs_announcement_relay_public() {
doc.visibility = Visibility::Public; // Public repos are always gossiped.
})
.unwrap();
- alice.storage_mut().repos.insert(bob_inv[i], repo);
+ amy.storage_mut().repos.insert(bob_inv[i], repo);
}
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
Some(Message::Announcement(_)),
- "A refs announcement from Bob is relayed to Eve"
+ "A refs announcement from Bob is relayed to Cid"
);
- alice
- .receive(bob.id(), bob.refs_announcement(bob_inv[0]))
+ amy.receive(*bob.nid(), bob.refs_announcement(bob_inv[0]))
.elapse(service::GOSSIP_INTERVAL);
assert!(
- alice.messages(eve.id()).next().is_none(),
+ amy.messages(*cid.nid()).next().is_none(),
"The same ref announcement is not relayed"
);
- alice
- .receive(bob.id(), bob.refs_announcement(bob_inv[1]))
+ amy.receive(*bob.nid(), bob.refs_announcement(bob_inv[1]))
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
Some(Message::Announcement(_)),
"But a different one is"
);
- alice
- .receive(bob.id(), bob.refs_announcement(bob_inv[2]))
+ amy.receive(*bob.nid(), bob.refs_announcement(bob_inv[2]))
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
Some(Message::Announcement(_)),
"And a third one is as well"
);
}
#[test]
-fn test_refs_announcement_relay_private() {
+fn refs_announcement_relay_private() {
let tmp = tempfile::tempdir().unwrap();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], MockStorage::empty());
- let eve = Peer::with_storage(
- "eve",
- [198, 18, 0, 8],
- Storage::open(tmp.path().join("eve"), fixtures::user()).unwrap(),
+ let mut amy = Peer::amy();
+ let cid = Peer::with_storage(
+ "cid",
+ CID,
+ Storage::open(tmp.path().join("cid"), fixtures::user()).unwrap(),
);
let bob = {
- let mut rng = fastrand::Rng::new();
- let signer = Device::mock_rng(&mut rng);
- let storage = fixtures::storage(tmp.path().join("bob"), &signer).unwrap();
+ let signer = MockSigner::from_seed([BOB; 32]);
- Peer::config(
- "bob",
- [198, 18, 0, 9],
- storage,
- peer::Config {
- signer,
- rng,
- ..peer::Config::default()
- },
- )
- .initialized()
+ let storage =
+ fixtures::storage(tmp.path().join("bob"), &Device::new(signer.clone())).unwrap();
+
+ Peer::with_storage("bob", BOB, storage)
};
let bob_inv = bob.inventory().into_iter().collect::<Vec<_>>();
- alice.seed(&bob_inv[0], policy::Scope::All).unwrap();
- alice.seed(&bob_inv[1], policy::Scope::All).unwrap();
- alice.connect_to(&bob);
- alice.connect_to(&eve);
- alice.receive(eve.id(), Message::Subscribe(Subscribe::all()));
+ amy.seed(&bob_inv[0], policy::Scope::All).unwrap();
+ amy.seed(&bob_inv[1], policy::Scope::All).unwrap();
+ amy.connect_to(&bob);
+ amy.connect_to(&cid);
+ amy.receive(*cid.nid(), Message::Subscribe(Subscribe::all()));
- // The first repo is not visible to Eve.
+ // The first repo is not visible to Cid.
let repo1 = {
let mut repo = r#gen::<MockRepository>(1);
repo.doc.doc = repo
@@ -813,9 +768,9 @@ fn test_refs_announcement_relay_private() {
.unwrap();
repo
};
- alice.storage_mut().repos.insert(bob_inv[0], repo1);
+ amy.storage_mut().repos.insert(bob_inv[0], repo1);
- // The second repo is visible to Eve.
+ // The second repo is visible to Cid.
let repo2 = {
let mut repo = r#gen::<MockRepository>(1);
repo.doc.doc = repo
@@ -823,93 +778,82 @@ fn test_refs_announcement_relay_private() {
.doc
.with_edits(|doc| {
doc.visibility = Visibility::Private {
- allow: [eve.id.into()].into(),
+ allow: [(*cid.nid()).into()].into(),
};
})
.unwrap();
repo
};
- alice.storage_mut().repos.insert(bob_inv[1], repo2);
- alice.elapse(service::GOSSIP_INTERVAL);
- alice.messages(eve.id()).for_each(drop);
- alice
- .receive(bob.id(), bob.refs_announcement(bob_inv[0]))
+ amy.storage_mut().repos.insert(bob_inv[1], repo2);
+ amy.elapse(service::GOSSIP_INTERVAL);
+ amy.messages(*cid.nid()).for_each(drop);
+ amy.receive(*bob.nid(), bob.refs_announcement(bob_inv[0]))
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
None,
- "The first ref announcement is not relayed to Eve"
+ "The first ref announcement is not relayed to Cid"
);
- alice
- .receive(bob.id(), bob.refs_announcement(bob_inv[1]))
+ amy.receive(*bob.nid(), bob.refs_announcement(bob_inv[1]))
.elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.messages(eve.id()).next(),
+ amy.messages(*cid.nid()).next(),
Some(Message::Announcement(Announcement {
message: AnnouncementMessage::Refs(_),
..
})),
- "The second ref announcement is relayed to Eve"
+ "The second ref announcement is relayed to Cid"
);
}
-/// Even if Alice is not tracking Bob, Alice will fetch Bob's refs for a repo she doesn't have.
+/// Even if Amy is not tracking Bob, Amy will fetch Bob's refs for a repo she doesn't have.
#[test]
-fn test_refs_announcement_fetch_trusted_no_inventory() {
+fn refs_announcement_fetch_trusted_no_inventory() {
let tmp = tempfile::tempdir().unwrap();
- let mut alice = Peer::with_storage(
- "alice",
- [198, 18, 0, 7],
- Storage::open(tmp.path().join("alice"), fixtures::user()).unwrap(),
+ let mut amy = Peer::with_storage(
+ "amy",
+ AMY,
+ Storage::open(tmp.path().join("amy"), fixtures::user()).unwrap(),
);
let bob = {
let mut rng = fastrand::Rng::new();
- let signer = Device::mock_rng(&mut rng);
- let storage = fixtures::storage(tmp.path().join("bob"), &signer).unwrap();
+ let id = rng.u8(100..200);
+ let secret_key = Device::mock_from_seed([id; 32]);
+ let storage = fixtures::storage(tmp.path().join("bob"), &secret_key).unwrap();
- Peer::config(
- "bob",
- [198, 18, 0, 9],
- storage,
- peer::Config {
- signer,
- rng,
- ..peer::Config::default()
- },
- )
- .initialized()
+ Peer::with_storage("bob", id, storage)
};
let bob_inv = bob.inventory();
let rid = bob_inv.iter().next().unwrap();
- alice.seed(rid, policy::Scope::Followed).unwrap();
- alice.connect_to(&bob);
+ amy.seed(rid, policy::Scope::Followed).unwrap();
+ amy.connect_to(&bob);
- // Alice receives Bob's refs.
- alice.receive(bob.id(), bob.refs_announcement(*rid));
+ // Amy receives Bob's refs.
+ amy.receive(*bob.nid(), bob.refs_announcement(*rid));
- // Alice fetches Bob's refs as this is a new repo.
- assert_matches!(alice.outbox().next(), Some(Io::Fetch { .. }));
+ // Amy fetches Bob's refs as this is a new repo.
+ assert_matches!(amy.outbox().next(), Some(Io::Fetch { .. }));
}
-/// Alice and Bob both have the same repo.
+/// Amy and Bob both have the same repo.
///
-/// First, Alice will not fetch from Bob's `RefsAnnouncement` as Alice does not
+/// First, Amy will not fetch from Bob's `RefsAnnouncement` as Amy does not
/// track Bob as `Followed`.
///
-/// Later Alice follows Bob, and will be able to fetch Bob's refs.
+/// Later Amy follows Bob, and will be able to fetch Bob's refs.
#[test]
-fn test_refs_announcement_followed() {
- // Create MockStorage for Alice and Bob. Both will have repo with `rid`.
- let storage_alice = arbitrary::nonempty_storage(1);
- let rid = *storage_alice.repos.keys().next().unwrap();
- let storage_bob = storage_alice.clone();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], storage_alice);
- let mut bob = Peer::with_storage("bob", [198, 18, 0, 8], storage_bob);
-
- let node_id = alice.id;
- let repo = alice.storage_mut().repo_mut(&rid);
+fn refs_announcement_followed() {
+ // Create MockStorage for Amy and Bob. Both will have repo with `rid`.
+ let storage_amy = arbitrary::nonempty_storage(1);
+ let rid = *storage_amy.repos.keys().next().unwrap();
+ let storage_bob = storage_amy.clone();
+ let mut amy = Peer::with_storage("amy", AMY, storage_amy);
+ let mut bob = Peer::with_storage("bob", BOB, storage_bob);
+
+ let node_id = *amy.nid();
+ let repo = amy.storage_mut().repo_mut(&rid);
let root = repo.identity_root().unwrap();
let sigrefs_at = bob.signed_refs_at(root);
@@ -917,29 +861,28 @@ fn test_refs_announcement_followed() {
// Generate some refs for Bob under their own node_id.
let sigrefs_at = bob.signed_refs_at(root);
- let node_id = bob.id;
- bob.init();
+ let node_id = *bob.nid();
bob.storage_mut()
.repo_mut(&rid)
.remotes
.insert(node_id, sigrefs_at);
- // Alice uses Scope::Followed, and did not track Bob yet.
- alice.connect_to(&bob);
- alice.seed(&rid, policy::Scope::Followed).unwrap();
+ // Amy uses Scope::Followed, and did not track Bob yet.
+ amy.connect_to(&bob);
+ amy.seed(&rid, policy::Scope::Followed).unwrap();
- // Alice receives Bob's refs
- alice.receive(bob.id(), bob.refs_announcement(rid));
+ // Amy receives Bob's refs
+ amy.receive(*bob.nid(), bob.refs_announcement(rid));
- // Alice does not fetch as Alice is not tracking Bob.
+ // Amy does not fetch as Amy is not tracking Bob.
assert!(
- alice.messages(bob.id()).next().is_none(),
- "Alice is not tracking bob yet."
+ amy.messages(*bob.nid()).next().is_none(),
+ "Amy is not tracking bob yet."
);
- // Alice starts to track Bob.
- let (cmd, receiver) = Command::follow(bob.id, Some(node::Alias::new("bob")));
- alice.command(cmd);
+ // Amy starts to track Bob.
+ let (cmd, receiver) = Command::follow(*bob.nid(), Some(node::Alias::new("bob")));
+ amy.command(cmd);
let policy_change = receiver
.recv()
.map_err(runtime::HandleError::from)
@@ -949,61 +892,52 @@ fn test_refs_announcement_followed() {
// Bob announces refs again.
bob.elapse(LocalDuration::from_mins(1)); // Make sure our announcement is fresh.
- alice.receive(bob.id(), bob.refs_announcement(rid));
- assert_matches!(alice.outbox().next(), Some(Io::Fetch { .. }));
+ amy.receive(*bob.nid(), bob.refs_announcement(rid));
+ assert_matches!(amy.outbox().next(), Some(Io::Fetch { .. }));
}
#[test]
-fn test_refs_announcement_no_subscribe() {
+fn refs_announcement_no_subscribe() {
let storage = arbitrary::nonempty_storage(1);
let rid = *storage.repos.keys().next().unwrap();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], storage);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
+ let mut amy = Peer::with_storage("amy", AMY, storage);
+ let bob = Peer::bob();
+ let cid = Peer::cid();
let id = arbitrary::r#gen(1);
- alice.seed(&id, policy::Scope::All).unwrap();
- alice.connect_to(&bob);
- alice.connect_to(&eve);
- alice.receive(bob.id(), bob.refs_announcement(rid));
+ amy.seed(&id, policy::Scope::All).unwrap();
+ amy.connect_to(&bob);
+ amy.connect_to(&cid);
+ amy.receive(*bob.nid(), bob.refs_announcement(rid));
- assert!(alice.messages(eve.id()).next().is_none());
+ assert!(amy.messages(*cid.nid()).next().is_none());
}
#[test]
-fn test_refs_announcement_offline() {
+fn refs_announcement_offline() {
let tmp = tempfile::tempdir().unwrap();
- let mut alice = {
- let signer = Device::mock();
- let storage = fixtures::storage(tmp.path().join("alice"), &signer).unwrap();
-
- Peer::config(
- "alice",
- [198, 18, 0, 7],
- storage,
- peer::Config {
- signer,
- ..peer::Config::default()
- },
- )
+ let mut amy = {
+ const ID: u8 = AMY;
+ let signer = MockSigner::from_seed([ID; 32]);
+ let secret_key = Device::new(signer.clone());
+ let storage = fixtures::storage(tmp.path().join("amy"), &secret_key).unwrap();
+ Peer::new_with("amy", ID, storage, move |config| {
+ config.signer = signer;
+ })
};
- let mut bob = Peer::new("bob", [198, 18, 0, 8]);
-
- // Make sure alice's service wasn't initialized before.
- assert_eq!(*alice.clock(), LocalTime::default());
+ let mut bob = Peer::bob();
- alice.initialize();
- alice.connect_to(&bob);
- alice.receive(bob.id, Message::Subscribe(Subscribe::all()));
+ amy.connect_to(&bob);
+ amy.receive(*bob.nid(), Message::Subscribe(Subscribe::all()));
- let mut inv = alice.inventory();
+ let mut inv = amy.inventory();
let rid = *inv.iter().next().unwrap();
bob.seed(&rid, policy::Scope::All).unwrap();
- // Alice announces the refs of all projects since she hasn't announced refs for these projects
+ // Amy announces the refs of all projects since she hasn't announced refs for these projects
// yet.
- for msg in alice.messages(bob.id()) {
+ for msg in amy.messages(*bob.nid()) {
assert_matches!(
msg,
Message::Announcement(Announcement {
@@ -1014,14 +948,14 @@ fn test_refs_announcement_offline() {
}),
..
})
- if node == alice.id && inv.remove(&rid)
+ if node == *amy.nid() && inv.remove(&rid)
);
}
// Create an issue without telling the node.
- let repo = alice.storage().repository(rid).unwrap();
- let old_refs = RefsAt::new(&repo, alice.id).unwrap();
- let mut issues = radicle::issue::Cache::no_cache(&repo, alice.signer()).unwrap();
+ let repo = amy.storage().repository(rid).unwrap();
+ let old_refs = RefsAt::new(&repo, *amy.nid()).unwrap();
+ let mut issues = radicle::issue::Cache::no_cache(&repo, amy.signer()).unwrap();
issues
.create(
cob::Title::new("Issue while offline!").unwrap(),
@@ -1031,35 +965,34 @@ fn test_refs_announcement_offline() {
[],
)
.unwrap();
- let new_refs = RefsAt::new(&repo, alice.id).unwrap();
+ let new_refs = RefsAt::new(&repo, *amy.nid()).unwrap();
assert_ne!(old_refs, new_refs);
- // Now we restart Alice's node. It should pick up that something's changed in storage.
- alice.elapse(LocalDuration::from_secs(60));
- alice
- .database_mut()
+ // Now we restart Amy's node. It should pick up that something's changed in storage.
+ amy.elapse(LocalDuration::from_secs(60));
+ amy.database_mut()
.addresses_mut()
- .remove(&bob.id)
+ .remove(bob.nid())
.unwrap(); // Make sure we don't reconnect automatically.
- alice.disconnected(
- bob.id,
+ amy.disconnected(
+ *bob.nid(),
Link::Outbound,
&DisconnectReason::Session(session::Error::Timeout),
);
- alice.outbox().for_each(drop);
- alice.restart();
- alice.connect_to(&bob);
- alice.receive(
- bob.id,
+ amy.outbox().for_each(drop);
+ amy.restart();
+ amy.connect_to(&bob);
+ amy.receive(
+ *bob.nid(),
Message::Subscribe(Subscribe {
filter: Filter::default(),
- since: alice.timestamp(),
+ since: Timestamp::from(*amy.clock()),
until: Timestamp::MAX,
}),
);
- let anns = alice
- .messages(bob.id())
+ let anns = amy
+ .messages(*bob.nid())
.filter_map(|m| match m {
Message::Announcement(Announcement {
message: AnnouncementMessage::Refs(ann),
@@ -1071,158 +1004,140 @@ fn test_refs_announcement_offline() {
assert_eq!(anns.len(), 1);
assert_eq!(anns.first().unwrap().rid, rid);
+ assert_ne!(anns.first().unwrap().refs.first().unwrap().at, old_refs.at);
assert_eq!(anns.first().unwrap().refs.first().unwrap().at, new_refs.at);
}
#[test]
-fn test_inventory_relay() {
- // Topology is eve <-> alice <-> bob
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
+fn inventory_relay() {
+ // Topology is cid <-> amy <-> bob
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
+ let cid = Peer::cid();
let inv = BoundedVec::try_from(arbitrary::vec(1)).unwrap();
let now = LocalTime::now().into();
- // Inventory from Bob relayed to Eve.
- alice.init();
- alice.wake(); // Run all periodic tasks now so they don't trigger later.
- alice.connect_to(&bob);
- alice.connect_from(&eve);
- alice
- .receive(
- bob.id(),
- Message::inventory(
- InventoryAnnouncement {
- inventory: inv.clone(),
- timestamp: now,
- },
- bob.signer(),
- ),
- )
- .elapse(service::GOSSIP_INTERVAL);
+ // Inventory from Bob relayed to Cid.
+ amy.wake(); // Run all periodic tasks now so they don't trigger later.
+ amy.connect_to(&bob);
+ amy.connect_from(&cid);
+ amy.receive(
+ *bob.nid(),
+ Message::inventory(
+ InventoryAnnouncement {
+ inventory: inv.clone(),
+ timestamp: now,
+ },
+ bob.signer(),
+ ),
+ )
+ .elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.inventory_announcements(eve.id()).next(),
+ amy.inventory_announcements(*cid.nid()).next(),
Some(Message::Announcement(Announcement {
node,
message: AnnouncementMessage::Inventory(InventoryAnnouncement { timestamp, .. }),
..
}))
- if node == bob.node_id() && timestamp == now
+ if node == *bob.nid() && timestamp == now
);
assert_matches!(
- alice.inventory_announcements(bob.id()).next(),
+ amy.inventory_announcements(*bob.nid()).next(),
None,
"The inventory is not sent back to Bob"
);
- alice
- .receive(
- bob.id(),
- Message::inventory(
- InventoryAnnouncement {
- inventory: inv.clone(),
- timestamp: now,
- },
- bob.signer(),
- ),
- )
- .elapse(service::GOSSIP_INTERVAL);
+ amy.receive(
+ *bob.nid(),
+ Message::inventory(
+ InventoryAnnouncement {
+ inventory: inv.clone(),
+ timestamp: now,
+ },
+ bob.signer(),
+ ),
+ )
+ .elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.inventory_announcements(eve.id()).next(),
+ amy.inventory_announcements(*cid.nid()).next(),
None,
"Sending the same inventory again doesn't trigger a relay"
);
- alice
- .receive(
- bob.id(),
- Message::inventory(
- InventoryAnnouncement {
- inventory: inv.clone(),
- timestamp: now + 1,
- },
- bob.signer(),
- ),
- )
- .elapse(service::GOSSIP_INTERVAL);
+ amy.receive(
+ *bob.nid(),
+ Message::inventory(
+ InventoryAnnouncement {
+ inventory: inv.clone(),
+ timestamp: now + 1,
+ },
+ bob.signer(),
+ ),
+ )
+ .elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.inventory_announcements(eve.id()).next(),
+ amy.inventory_announcements(*cid.nid()).next(),
Some(Message::Announcement(Announcement {
node,
message: AnnouncementMessage::Inventory(InventoryAnnouncement { timestamp, .. }),
..
}))
- if node == bob.node_id() && timestamp == now + 1,
+ if node == *bob.nid() && timestamp == now + 1,
"Sending a new inventory does trigger the relay"
);
- // Inventory from Eve relayed to Bob.
- alice
- .receive(
- eve.id(),
- Message::inventory(
- InventoryAnnouncement {
- inventory: inv,
- timestamp: now,
- },
- eve.signer(),
- ),
- )
- .elapse(service::GOSSIP_INTERVAL);
+ // Inventory from Cid relayed to Bob.
+ amy.receive(
+ *cid.nid(),
+ Message::inventory(
+ InventoryAnnouncement {
+ inventory: inv,
+ timestamp: now,
+ },
+ cid.signer(),
+ ),
+ )
+ .elapse(service::GOSSIP_INTERVAL);
assert_matches!(
- alice.inventory_announcements(bob.id()).next(),
+ amy.inventory_announcements(*bob.nid()).next(),
Some(Message::Announcement(Announcement {
node,
message: AnnouncementMessage::Inventory(InventoryAnnouncement { timestamp, .. }),
..
}))
- if node == eve.node_id() && timestamp == now
+ if node == *cid.nid() && timestamp == now
);
}
#[test]
-fn test_persistent_peer_reconnect_attempt() {
+fn persistent_peer_reconnect_attempt() {
use indexmap::IndexSet;
- let mut bob = Peer::new("bob", [198, 18, 0, 8]);
- let mut eve = Peer::new("eve", [198, 18, 0, 9]);
- let mut alice = Peer::config(
- "alice",
- [198, 18, 0, 7],
- MockStorage::empty(),
- peer::Config {
- config: Config {
- connect: IndexSet::from_iter([
- (bob.id(), bob.address()).into(),
- (eve.id(), eve.address()).into(),
- ]),
- ..Config::new(node::Alias::new("alice"))
- },
- ..peer::Config::default()
- },
- )
- .initialized();
+ let mut bob = Peer::bob();
+ let mut cid = Peer::cid();
- let mut sim = Simulation::new(
- LocalTime::now(),
- alice.rng.clone(),
- simulator::Options::default(),
- )
- .initialize([&mut alice, &mut bob, &mut eve]);
+ let bob_connect = (*bob.nid(), bob.address()).into();
+ let cid_connect = (*cid.nid(), cid.address()).into();
+
+ let mut amy = Peer::amy_with(move |config| {
+ config.config.connect = IndexSet::from_iter([bob_connect, cid_connect])
+ });
+
+ let mut sim = Simulation::new(LocalTime::now(), simulator::Options::default());
- sim.run_while([&mut alice, &mut bob, &mut eve], |s| !s.is_settled());
+ sim.run_while([&mut amy, &mut bob, &mut cid], |s| !s.is_settled());
- let ips = alice
+ let ips = amy
.sessions()
.connected()
.map(|(id, _)| *id)
.collect::<Vec<_>>();
- assert!(ips.contains(&bob.id()));
- assert!(ips.contains(&eve.id()));
+ assert!(ips.contains(bob.nid()));
+ assert!(ips.contains(cid.nid()));
// … Negotiated …
//
@@ -1233,248 +1148,236 @@ fn test_persistent_peer_reconnect_attempt() {
let reason = DisconnectReason::Session(session::Error::Misbehavior);
for _ in 0..3 {
- alice.disconnected(bob.id(), Link::Outbound, &reason);
- alice.elapse(service::MAX_RECONNECTION_DELTA);
- alice
- .outbox()
- .find(|io| matches!(io, Io::Connect(a, _) if a == &bob.id()))
+ amy.disconnected(*bob.nid(), Link::Outbound, &reason);
+ amy.elapse(service::MAX_RECONNECTION_DELTA);
+ amy.outbox()
+ .find(|io| matches!(io, Io::Connect(a, _) if a == bob.nid()))
.unwrap();
- alice.attempted(bob.id(), bob.address());
+ amy.attempted(*bob.nid(), bob.address());
}
}
#[test]
-fn test_persistent_peer_reconnect_success() {
+fn persistent_peer_reconnect_success() {
use indexmap::IndexSet;
- let bob = Peer::with_storage("bob", [198, 18, 0, 9], MockStorage::empty());
- let mut alice = Peer::config(
- "alice",
- [198, 18, 0, 7],
- MockStorage::empty(),
- peer::Config {
- config: Config {
- connect: IndexSet::from_iter([(bob.id, bob.addr()).into()]),
- ..Config::new(node::Alias::new("alice"))
- },
- ..peer::Config::default()
- },
- )
- .initialized();
- alice.connect_to(&bob);
+ let bob = Peer::bob();
- // A transient error such as this will cause Alice to attempt a reconnection.
+ let bob_connect = (*bob.nid(), bob.address()).into();
+
+ let mut amy =
+ Peer::amy_with(move |config| config.config.connect = IndexSet::from_iter([bob_connect]));
+ amy.connect_to(&bob);
+
+ // A transient error such as this will cause Amy to attempt a reconnection.
let error = Arc::new(io::Error::from(io::ErrorKind::ConnectionReset));
- alice.disconnected(
- bob.id(),
+ amy.disconnected(
+ *bob.nid(),
Link::Outbound,
&DisconnectReason::Connection(error),
);
- alice.elapse(service::MIN_RECONNECTION_DELTA);
- alice.elapse(service::MIN_RECONNECTION_DELTA); // Trigger a second wakeup to test idempotence.
+ amy.elapse(service::MIN_RECONNECTION_DELTA);
+ amy.elapse(service::MIN_RECONNECTION_DELTA); // Trigger a second wakeup to test idempotence.
- alice
- .outbox()
+ amy.outbox()
.find_map(|o| match o {
Io::Connect(id, _) => Some(id),
_ => None,
})
- .expect("Alice attempts a re-connection");
+ .expect("Amy attempts a re-connection");
- alice.attempted(bob.id(), bob.addr());
- alice.connected(bob.id(), bob.addr(), Link::Outbound);
+ amy.attempted(*bob.nid(), bob.address());
+ amy.connected(*bob.nid(), bob.address(), Link::Outbound);
}
#[test]
-fn test_maintain_connections() {
- // Peers alice starts out connected to.
+fn maintain_connections() {
+ // Peers Amy starts out connected to.
let connected = [
- Peer::new("connected", [198, 18, 0, 81]),
- Peer::new("connected", [198, 18, 0, 82]),
- Peer::new("connected", [198, 18, 0, 83]),
+ Peer::new_empty_storage("connected", 0x11),
+ Peer::new_empty_storage("connected", 0x12),
+ Peer::new_empty_storage("connected", 0x13),
];
- // Peers alice will connect to once the others disconnect.
+ // Peers Amy will connect to once the others disconnect.
let mut unconnected = vec![
- Peer::new("unconnected", [198, 18, 0, 91]),
- Peer::new("unconnected", [198, 18, 0, 92]),
- Peer::new("unconnected", [198, 18, 0, 93]),
+ Peer::new_empty_storage("unconnected", 0x21),
+ Peer::new_empty_storage("unconnected", 0x22),
+ Peer::new_empty_storage("unconnected", 0x23),
];
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
+ let mut amy = Peer::amy();
for peer in connected.iter() {
- alice.connect_to(peer);
+ amy.connect_to(peer);
}
assert_eq!(
connected.len(),
- alice.sessions().len(),
- "alice should be connected to the first set of peers"
+ amy.sessions().len(),
+ "amy should be connected to the first set of peers"
);
// We now import the other addresses.
- alice.import_addresses(&unconnected);
+ amy.import_addresses(&unconnected);
- // A non-transient error such as this will cause Alice to attempt a different peer.
+ // A non-transient error such as this will cause Amy to attempt a different peer.
let error = session::Error::Misbehavior;
for peer in connected.iter() {
- alice.disconnected(peer.id(), Link::Outbound, &DisconnectReason::Session(error));
+ amy.disconnected(
+ *peer.nid(),
+ Link::Outbound,
+ &DisconnectReason::Session(error),
+ );
- let id = alice
+ let id = amy
.outbox()
.find_map(|o| match o {
Io::Connect(id, _) => Some(id),
_ => None,
})
- .expect("Alice connects to a new peer");
- assert_ne!(id, peer.id());
- unconnected.retain(|p| p.id() != id);
+ .expect("Amy connects to a new peer");
+ assert_ne!(id, *peer.nid());
+ unconnected.retain(|p| *p.nid() != id);
}
assert!(
unconnected.is_empty(),
- "alice should connect to all unconnected peers"
+ "Amy should connect to all unconnected peers"
);
}
#[test]
-fn test_maintain_connections_transient() {
- // Peers alice starts out connected to.
+fn maintain_connections_transient() {
+ // Peers Amy starts out connected to.
let connected = [
- Peer::new("connected", [198, 18, 0, 81]),
- Peer::new("connected", [198, 18, 0, 82]),
- Peer::new("connected", [198, 18, 0, 83]),
+ Peer::new_empty_storage("connected", 0x11),
+ Peer::new_empty_storage("connected", 0x12),
+ Peer::new_empty_storage("connected", 0x13),
];
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
+ let mut amy = Peer::amy();
for peer in connected.iter() {
- alice.connect_to(peer);
+ amy.connect_to(peer);
}
- // A transient error such as this will cause Alice to attempt a reconnection.
+ // A transient error such as this will cause Amy to attempt a reconnection.
let error = Arc::new(io::Error::from(io::ErrorKind::ConnectionReset));
for peer in connected.iter() {
- alice.disconnected(
- peer.id(),
+ amy.disconnected(
+ *peer.nid(),
Link::Outbound,
&DisconnectReason::Connection(error.clone()),
);
- alice
- .outbox()
- .find(|o| matches!(o, Io::Connect(id, _) if id == &peer.id()))
+ amy.outbox()
+ .find(|o| matches!(o, Io::Connect(id, _) if id == peer.nid()))
.unwrap();
}
}
#[test]
-fn test_maintain_connections_failed_attempt() {
- let eve = Peer::new("eve", [198, 18, 0, 9]);
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
+fn maintain_connections_failed_attempt() {
+ let cid = Peer::cid();
+ let mut amy = Peer::amy();
let reason =
DisconnectReason::Connection(Arc::new(io::Error::from(io::ErrorKind::ConnectionReset)));
- // Make sure Alice knows about Eve.
- alice.connect_to(&eve);
- alice.disconnected(eve.id(), Link::Outbound, &reason);
- alice
- .outbox()
- .find(|o| matches!(o, Io::Connect(id, _) if id == &eve.id))
- .expect("Alice attempts Eve");
- alice.attempted(eve.id, eve.addr());
+ // Make sure Amy knows about Cid.
+ amy.connect_to(&cid);
+ amy.disconnected(*cid.nid(), Link::Outbound, &reason);
+ amy.outbox()
+ .find(|o| matches!(o, Io::Connect(id, _) if id == cid.nid()))
+ .expect("Amy attempts Cid");
+ amy.attempted(*cid.nid(), cid.address());
- // Disconnect Eve and make sure Alice doesn't try to re-connect immediately.
- alice.disconnected(eve.id(), Link::Outbound, &reason);
- assert_matches!(
- alice.outbox().find(|o| matches!(o, Io::Connect(_, _))),
- None
- );
+ // Disconnect Cid and make sure Amy doesn't try to re-connect immediately.
+ amy.disconnected(*cid.nid(), Link::Outbound, &reason);
+ assert_matches!(amy.outbox().find(|o| matches!(o, Io::Connect(_, _))), None);
// Now pass some time and try again.
- alice.elapse(MAX_RECONNECTION_DELTA);
- alice
- .outbox()
- .find(|o| matches!(o, Io::Connect(id, _) if id == &eve.id))
- .expect("Alice attempts Eve again");
-
- // Disconnect Eve and make sure Alice doesn't try to re-connect immediately.
- alice.disconnected(eve.id(), Link::Outbound, &reason);
- assert!(!alice.outbox().any(|o| matches!(o, Io::Connect(_, _))));
+ amy.elapse(MAX_RECONNECTION_DELTA);
+ amy.outbox()
+ .find(|o| matches!(o, Io::Connect(id, _) if id == cid.nid()))
+ .expect("Amy attempts Cid again");
+
+ // Disconnect Cid and make sure Amy doesn't try to re-connect immediately.
+ amy.disconnected(*cid.nid(), Link::Outbound, &reason);
+ assert!(!amy.outbox().any(|o| matches!(o, Io::Connect(_, _))));
// Or even after some short time..
- alice.elapse(MIN_RECONNECTION_DELTA);
- assert!(!alice.outbox().any(|o| matches!(o, Io::Connect(_, _))));
+ amy.elapse(MIN_RECONNECTION_DELTA);
+ assert!(!amy.outbox().any(|o| matches!(o, Io::Connect(_, _))));
}
#[test]
-fn test_maintain_connections_same_second_loop() {
+fn maintain_connections_same_second_loop() {
use std::io;
use std::sync::Arc;
- let eve = Peer::new("eve", [198, 18, 0, 9]);
- let mut alice = Peer::new("alice", [192, 19, 0, 7]);
+ let bob = Peer::bob();
+ let mut amy = Peer::amy();
let reason = DisconnectReason::Dial(Arc::new(io::Error::from(io::ErrorKind::HostUnreachable)));
- alice.connect_to(&eve);
+ amy.connect_to(&bob);
// Advance clock to make the connection stable.
// This triggers `idle_connections` which sets `last_success` in the DB to the current time (T).
- alice.elapse(session::CONNECTION_STABLE_THRESHOLD);
+ amy.elapse(session::CONNECTION_STABLE_THRESHOLD);
- // Eve disconnects.
+ // Bob disconnects.
// This triggers `maintain_connections`.
- alice.disconnected(eve.id(), Link::Outbound, &reason);
+ amy.disconnected(*bob.nid(), Link::Outbound, &reason);
- let connects = alice
+ let connects = amy
.outbox()
- .filter(|o| matches!(o, Io::Connect(id, _) if id == &eve.id))
+ .filter(|o| matches!(o, Io::Connect(id, _) if id == bob.nid()))
.count();
- assert_eq!(connects, 1, "Alice should attempt to reconnect once");
+ assert_eq!(connects, 1, "Amy should attempt to reconnect once");
// Simulate the dial failing instantly.
// We DO NOT advance the clock. We just call disconnected again.
// This triggers `maintain_connections` again.
// Now `last_success` is T, and `last_attempt` is T.
- alice.disconnected(eve.id(), Link::Outbound, &reason);
+ amy.disconnected(*bob.nid(), Link::Outbound, &reason);
- // Check if Alice tries to connect again in the exact same second.
- let immediate_retry = alice
+ // Check if Amy tries to connect again in the exact same second.
+ let immediate_retry = amy
.outbox()
- .any(|o| matches!(o, Io::Connect(id, _) if id == eve.id));
+ .any(|o| matches!(o, Io::Connect(id, _) if id == *bob.nid()));
assert!(
!immediate_retry,
- "Alice immediately retried a connection when last_success == last_attempt"
+ "Amy immediately retried a connection when last_success == last_attempt"
);
}
#[test]
-fn test_seed_repo_subscribe() {
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
+fn seed_repo_subscribe() {
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
let rid = arbitrary::r#gen::<RepoId>(1);
- alice.connect_to(&bob);
+ amy.connect_to(&bob);
let (cmd, recv) = Command::seed(rid, policy::Scope::default());
- alice.command(cmd);
+ amy.command(cmd);
assert!(recv.recv().unwrap().unwrap());
assert_matches!(
- alice.messages(bob.id).next(),
+ amy.messages(*bob.nid()).next(),
Some(Message::Subscribe(Subscribe {
filter,
since,
..
- })) if since == alice.timestamp() && filter.contains(&rid)
+ })) if since == Timestamp::from(*amy.clock()) && filter.contains(&rid)
);
}
#[test]
-fn test_fetch_missing_inventory_on_gossip() {
+fn fetch_missing_inventory_on_gossip() {
let rid = arbitrary::r#gen::<RepoId>(1);
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
let now = LocalTime::now();
- alice.seed(&rid, node::policy::Scope::All).unwrap();
- alice.connect_to(&bob);
- alice.receive(
- bob.id(),
+ amy.seed(&rid, node::policy::Scope::All).unwrap();
+ amy.connect_to(&bob);
+ amy.receive(
+ *bob.nid(),
Message::inventory(
InventoryAnnouncement {
inventory: vec![rid].try_into().unwrap(),
@@ -1483,23 +1386,22 @@ fn test_fetch_missing_inventory_on_gossip() {
bob.signer(),
),
);
- alice
- .outbox()
+ amy.outbox()
.find(|m| matches!(m, Io::Fetch { rid: other, .. } if other == &rid))
.unwrap();
}
#[test]
-fn test_fetch_missing_inventory_on_schedule() {
+fn fetch_missing_inventory_on_schedule() {
let rid = arbitrary::r#gen::<RepoId>(1);
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
+ let mut amy = Peer::amy();
+ let bob = Peer::bob();
let now = LocalTime::now();
- alice.seed(&rid, node::policy::Scope::All).unwrap();
- alice.connect_to(&bob);
- alice.receive(
- bob.id(),
+ amy.seed(&rid, node::policy::Scope::All).unwrap();
+ amy.connect_to(&bob);
+ amy.receive(
+ *bob.nid(),
Message::inventory(
InventoryAnnouncement {
inventory: vec![rid].try_into().unwrap(),
@@ -1508,66 +1410,65 @@ fn test_fetch_missing_inventory_on_schedule() {
bob.signer(),
),
);
- alice.fetched(
+ amy.fetched(
rid,
- bob.id,
+ *bob.nid(),
Err(radicle_protocol::worker::FetchError::Io(
io::ErrorKind::ConnectionReset.into(),
)),
);
- alice.outbox().for_each(drop);
- alice.elapse(service::SYNC_INTERVAL);
- alice
- .outbox()
+ amy.outbox().for_each(drop);
+ amy.elapse(service::SYNC_INTERVAL);
+ amy.outbox()
.find(|m| matches!(m, Io::Fetch { rid: other, .. } if other == &rid))
.unwrap();
}
#[test]
-fn test_queued_fetch_max_capacity() {
+fn queued_fetch_max_capacity() {
let storage = arbitrary::nonempty_storage(3);
let mut repo_keys = storage.repos.keys();
let rid1 = *repo_keys.next().unwrap();
let rid2 = *repo_keys.next().unwrap();
let rid3 = *repo_keys.next().unwrap();
let doc = storage.repos.get(&rid1).unwrap().doc.clone();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], storage);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
+ let mut amy = Peer::with_storage("amy", AMY, storage);
+ let bob = Peer::bob();
- alice.connect_to(&bob);
+ amy.connect_to(&bob);
// Send the first fetch.
- let (cmd, _recv1) = Command::fetch(rid1, bob.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
+ let (cmd, _recv1) = Command::fetch(rid1, *bob.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
// Send the 2nd fetch that will be queued.
- let (cmd, _recv2) = Command::fetch(rid2, bob.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
+ let (cmd, _recv2) = Command::fetch(rid2, *bob.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
// Send the 3rd fetch that will be queued.
- let (cmd, _recv3) = Command::fetch(rid3, bob.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
+ let (cmd, _recv3) = Command::fetch(rid3, *bob.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
// The first fetch is initiated.
- assert_matches!(alice.fetches().next(), Some((rid, _)) if rid == rid1);
+ assert_matches!(amy.fetches().next(), Some((rid, _)) if rid == rid1);
// We shouldn't send out the 2nd, 3rd fetch while we're doing the 1st fetch.
- assert_matches!(alice.outbox().next(), None);
+ assert_matches!(amy.outbox().next(), None);
- // Have enough time pass that Alice sends a "ping" to Bob.
- alice.elapse(KEEP_ALIVE_DELTA);
+ // Have enough time pass that Amy sends a "ping" to Bob.
+ amy.elapse(KEEP_ALIVE_DELTA);
// Finish the 1st fetch.
- alice.fetched(rid1, bob.id, Ok(fetch::FetchResult::new(doc.clone())));
+ amy.fetched(rid1, *bob.nid(), Ok(fetch::FetchResult::new(doc.clone())));
// Now the 1st fetch is done, the 2nd fetch is dequeued.
- assert_eq!(alice.fetches().next(), Some((rid2, bob.id)));
+ assert_eq!(amy.fetches().next(), Some((rid2, *bob.nid())));
// … but not the third.
- assert_matches!(alice.fetches().next(), None);
+ assert_matches!(amy.fetches().next(), None);
// Finish the 2nd fetch.
- alice.fetched(rid2, bob.id, Ok(fetch::FetchResult::new(doc)));
+ amy.fetched(rid2, *bob.nid(), Ok(fetch::FetchResult::new(doc)));
// Now the 2nd fetch is done, the 3rd fetch is dequeued.
- assert_eq!(alice.fetches().next(), Some((rid3, bob.id)));
+ assert_eq!(amy.fetches().next(), Some((rid3, *bob.nid())));
}
// Reproduces the orphaned-fetch failure mode: a fetch is started, but on
@@ -1577,30 +1478,30 @@ fn test_queued_fetch_max_capacity() {
// `wire::Wire::worker_result` (discards the result when the peer isn't
// `Connected`) and `Service::disconnected` (skips `cancel` on a link mismatch).
#[test]
-fn test_orphaned_fetch_blocks_repo_from_all_nodes() {
+fn orphaned_fetch_blocks_repo_from_all_nodes() {
let storage = arbitrary::nonempty_storage(1);
let rid = *storage.repos.keys().next().unwrap();
let doc = storage.repos.get(&rid).unwrap().doc.clone();
- let mut alice = Peer::with_storage("alice", [7, 7, 7, 7], storage);
- let bob = Peer::new("bob", [8, 8, 8, 8]);
- let eve = Peer::new("eve", [9, 9, 9, 9]);
+ let mut amy = Peer::with_storage("amy", AMY, storage);
+ let bob = Peer::bob();
+ let cid = Peer::cid();
- // Alice dials Bob (outbound) and starts fetching the repo, occupying
+ // Amy dials Bob (outbound) and starts fetching the repo, occupying
// `active[rid]`.
- alice.connect_to(&bob);
- let (cmd, _recv) = Command::fetch(rid, bob.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
- assert_matches!(alice.fetches().next(), Some((r, n)) if r == rid && n == bob.id);
+ amy.connect_to(&bob);
+ let (cmd, _recv) = Command::fetch(rid, *bob.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
+ assert_matches!(amy.fetches().next(), Some((r, n)) if r == rid && n == *bob.nid());
- // Bob dials Alice (inbound) while the outbound session is still up: a
+ // Bob dials Amy (inbound) while the outbound session is still up: a
// connection conflict. The service overwrites the session's link to inbound.
- alice.connect_from(&bob);
+ amy.connect_from(&bob);
// The outbound transport, the one the fetch is running over, drops. Because
// the session's link is now inbound, `Service::disconnected` early-returns
// without cancelling the fetch, so `active[rid]` survives.
- alice.disconnected(
- bob.id,
+ amy.disconnected(
+ *bob.nid(),
Link::Outbound,
&DisconnectReason::Session(session::Error::Timeout),
);
@@ -1608,178 +1509,182 @@ fn test_orphaned_fetch_blocks_repo_from_all_nodes() {
// Meanwhile the fetch result is never delivered (the `worker_result` discard).
// The entry is now orphaned: nothing will ever clear it.
assert!(
- alice.fetcher().active_fetches().contains_key(&rid),
+ amy.fetcher().active_fetches().contains_key(&rid),
"active fetch should be orphaned"
);
// A different seed offers the same repo. It must not be fetched: the
// orphaned entry blocks the repo from every node.
- alice.connect_to(&eve);
- let (cmd, _recv) = Command::fetch(rid, eve.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
- assert_matches!(alice.fetches().next(), None);
+ amy.connect_to(&cid);
+ let (cmd, _recv) = Command::fetch(rid, *cid.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
+ assert_matches!(amy.fetches().next(), None);
// Delivering the missing result (what the fix guarantees) clears the entry
// and the queued fetch from the other node proceeds.
- alice.fetched(rid, bob.id, Ok(fetch::FetchResult::new(doc)));
- assert_eq!(alice.fetches().next(), Some((rid, eve.id)));
+ amy.fetched(rid, *bob.nid(), Ok(fetch::FetchResult::new(doc)));
+ assert_eq!(amy.fetches().next(), Some((rid, *cid.nid())));
}
#[test]
-fn test_queued_fetch_from_ann_same_rid() {
+fn queued_fetch_from_ann_same_rid() {
let storage = arbitrary::nonempty_storage(1); // We're testing both public and private repos.
let mut repo_keys = storage.repos.keys();
let rid = *repo_keys.next().unwrap();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], storage);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
- let carol = Peer::new("carol", [198, 18, 0, 10]);
+
+ let mut amy = Peer::with_storage("amy", AMY, storage);
+ let bob = Peer::bob();
+ let cid = Peer::cid();
+ let dan = Peer::dan();
+
let oid = arbitrary::oid();
let ann = RefsAnnouncement {
rid,
refs: vec![RefsAt {
- remote: carol.id(),
+ remote: *cid.nid(),
at: oid,
}]
.try_into()
.unwrap(),
- timestamp: bob.timestamp(),
+ timestamp: Timestamp::from(*bob.clock()),
};
- alice.seed(&rid, policy::Scope::All).unwrap();
- alice.connect_to(&bob);
- alice.connect_to(&eve);
- alice.connect_to(&carol);
+ amy.seed(&rid, policy::Scope::All).unwrap();
+ amy.connect_to(&bob);
+ amy.connect_to(&dan);
+ amy.connect_to(&cid);
// Send the first announcement.
- alice.receive(bob.id, bob.announcement(ann.clone()));
+ amy.receive(*bob.nid(), bob.announcement(ann.clone()));
// Send the 2nd announcement that will be queued.
- alice.receive(eve.id, eve.announcement(ann.clone()));
+ amy.receive(*dan.nid(), dan.announcement(ann.clone()));
// Send the 3rd announcement that will be queued.
- alice.receive(carol.id, carol.announcement(ann));
+ amy.receive(*cid.nid(), cid.announcement(ann));
// The first fetch is initiated.
- assert_matches!(alice.fetches().next(), Some((rid_, nid_)) if rid_ == rid && nid_ == bob.id);
+ assert_matches!(amy.fetches().next(), Some((rid_, nid_)) if rid_ == rid && nid_ == *bob.nid());
// We shouldn't send out the 2nd, 3rd fetch while we're doing the 1st fetch.
- assert_matches!(alice.fetches().next(), None);
+ assert_matches!(amy.fetches().next(), None);
- // Have enough time pass that Alice sends a "ping" to Bob.
- alice.elapse(KEEP_ALIVE_DELTA);
+ // Have enough time pass that Amy sends a "ping" to Bob.
+ amy.elapse(KEEP_ALIVE_DELTA);
- let refname = carol
- .id()
+ let refname = cid
+ .nid()
.to_namespace()
.join(git::fmt::refname!("refs/sigrefs"));
// Finish the 1st fetch.
// Ensure the ref is in the storage and cache.
- let repo = alice.storage_mut().repo_mut(&rid);
- let sigrefs_at = carol.signed_refs_at(repo.identity_root().unwrap());
- repo.remotes.insert(carol.id(), sigrefs_at);
- alice
- .database_mut()
+ let repo = amy.storage_mut().repo_mut(&rid);
+ let sigrefs_at = cid.signed_refs_at(repo.identity_root().unwrap());
+ repo.remotes.insert(*cid.nid(), sigrefs_at);
+ amy.database_mut()
.refs_mut()
- .set(&rid, &carol.id, &SIGREFS_BRANCH, oid, LocalTime::now())
+ .set(&rid, cid.nid(), &SIGREFS_BRANCH, oid, LocalTime::now())
.unwrap();
- alice.fetched(
+ amy.fetched(
rid,
- bob.id,
+ *bob.nid(),
Ok(fetch::FetchResult {
updated: vec![RefUpdate::Created {
name: refname.clone(),
oid,
}],
canonical: fetch::UpdatedCanonicalRefs::default(),
- namespaces: [carol.id()].into_iter().collect(),
+ namespaces: [*cid.nid()].into_iter().collect(),
clone: false,
doc: arbitrary::r#gen(1),
}),
);
// Now the 1st fetch is done, but the 2nd and 3rd fetches are redundant.
- assert_matches!(alice.fetches().next(), None);
+ assert_matches!(amy.fetches().next(), None);
}
#[test]
-fn test_queued_fetch_from_command_same_rid() {
+fn queued_fetch_from_command_same_rid() {
let storage = arbitrary::nonempty_storage(3);
let mut repo_keys = storage.repos.keys();
let rid1 = *repo_keys.next().unwrap();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], storage);
- let bob = Peer::new("bob", [198, 18, 0, 8]);
- let eve = Peer::new("eve", [198, 18, 0, 9]);
- let carol = Peer::new("carol", [198, 18, 0, 10]);
- alice.connect_to(&bob);
- alice.connect_to(&eve);
- alice.connect_to(&carol);
+ let mut amy = Peer::with_storage("amy", AMY, storage);
+ let bob = Peer::bob();
+ let cid = Peer::cid();
+ let dan = Peer::dan();
+
+ amy.connect_to(&bob);
+ amy.connect_to(&dan);
+ amy.connect_to(&cid);
// Send the first fetch.
- let (cmd, _recv1) = Command::fetch(rid1, bob.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
+ let (cmd, _recv1) = Command::fetch(rid1, *bob.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
// Send the 2nd fetch that will be queued.
- let (cmd, _recv2) = Command::fetch(rid1, eve.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
+ let (cmd, _recv2) = Command::fetch(rid1, *dan.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
// Send the 3rd fetch that will be queued.
- let (cmd, _recv3) = Command::fetch(rid1, carol.id, DEFAULT_TIMEOUT, None);
- alice.command(cmd);
+ let (cmd, _recv3) = Command::fetch(rid1, *cid.nid(), DEFAULT_TIMEOUT, None);
+ amy.command(cmd);
- // Peers Alice will fetch from.
- let mut peers = [bob.id, eve.id, carol.id]
+ // Peers Amy will fetch from.
+ let mut peers = [*bob.nid(), *dan.nid(), *cid.nid()]
.into_iter()
.collect::<BTreeSet<_>>();
// The first fetch is initiated.
- let (rid, nid) = alice.fetches().next().unwrap();
+ let (rid, nid) = amy.fetches().next().unwrap();
assert_eq!(rid, rid1);
assert!(peers.remove(&nid));
// We shouldn't send out the 2nd, 3rd fetch while we're doing the 1st fetch.
- assert_matches!(alice.outbox().next(), None);
+ assert_matches!(amy.outbox().next(), None);
- // Have enough time pass that Alice sends a "ping" to Bob.
- alice.elapse(KEEP_ALIVE_DELTA);
+ // Have enough time pass that Amy sends a "ping" to Bob.
+ amy.elapse(KEEP_ALIVE_DELTA);
// Finish the 1st fetch.
- alice.fetched(rid1, nid, Ok(arbitrary::r#gen::<fetch::FetchResult>(1)));
+ amy.fetched(rid1, nid, Ok(arbitrary::r#gen::<fetch::FetchResult>(1)));
// Now the 1st fetch is done, the 2nd fetch is dequeued.
- let (rid, nid) = alice.fetches().next().unwrap();
+ let (rid, nid) = amy.fetches().next().unwrap();
assert_eq!(rid, rid1);
assert!(peers.remove(&nid));
// … but not the third.
- assert_matches!(alice.fetches().next(), None);
+ assert_matches!(amy.fetches().next(), None);
// Finish the 2nd fetch.
- alice.fetched(rid1, nid, Ok(arbitrary::r#gen::<fetch::FetchResult>(1)));
+ amy.fetched(rid1, nid, Ok(arbitrary::r#gen::<fetch::FetchResult>(1)));
// Now the 2nd fetch is done, the 3rd fetch is dequeued.
- assert_matches!(alice.fetches().next(), Some((rid, nid)) if rid == rid1 && peers.remove(&nid));
+ assert_matches!(amy.fetches().next(), Some((rid, nid)) if rid == rid1 && peers.remove(&nid));
// All fetches were initiated.
assert!(peers.is_empty());
}
#[test]
-fn test_refs_synced_event() {
+fn refs_synced_event() {
let temp = tempfile::tempdir().unwrap();
let storage = Storage::open(temp.path(), fixtures::user()).unwrap();
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 8], storage.clone());
- let bob = Peer::new("bob", [198, 18, 0, 9]);
- let eve = Peer::with_storage("eve", [198, 18, 0, 7], storage);
- let acme = alice.project("acme", "");
- let events = alice.events();
+
+ let mut amy = Peer::with_storage("amy", AMY, storage.clone());
+ let bob = Peer::bob();
+ let cid = Peer::with_storage("cid", CID, storage);
+
+ let acme = amy.project("acme", "");
+ let events = amy.events();
let ann = AnnouncementMessage::from(RefsAnnouncement {
rid: acme,
- refs: vec![RefsAt::new(&alice.storage().repository(acme).unwrap(), alice.id).unwrap()]
+ refs: vec![RefsAt::new(&amy.storage().repository(acme).unwrap(), *amy.nid()).unwrap()]
.try_into()
.unwrap(),
- timestamp: bob.timestamp(),
+ timestamp: Timestamp::from(*bob.clock()),
});
let msg = ann.signed(bob.signer());
- alice.seed(&acme, policy::Scope::All).unwrap();
- alice.connect_to(&bob);
- alice.receive(bob.id, Message::Announcement(msg));
+ amy.seed(&acme, policy::Scope::All).unwrap();
+ amy.connect_to(&bob);
+ amy.receive(*bob.nid(), Message::Announcement(msg));
events
.wait(
@@ -1787,7 +1692,7 @@ fn test_refs_synced_event() {
matches!(
e,
Event::RefsSynced { remote, rid, .. }
- if rid == &acme && remote == &bob.id
+ if rid == &acme && remote == bob.nid()
)
.then_some(())
},
@@ -1796,148 +1701,140 @@ fn test_refs_synced_event() {
.unwrap();
// Now a relayed announcement.
- alice.receive(bob.id, eve.node_announcement());
- alice.receive(bob.id, eve.refs_announcement(acme));
+ amy.receive(*bob.nid(), cid.node_announcement());
+ amy.receive(*bob.nid(), cid.refs_announcement(acme));
events
.wait(
- |e| matches!(e, Event::RefsSynced { remote, .. } if remote == &eve.id).then_some(()),
+ |e| matches!(e, Event::RefsSynced { remote, .. } if remote == cid.nid()).then_some(()),
time::Duration::from_secs(3),
)
.unwrap();
}
#[test]
-fn test_init_and_seed() {
+fn init_and_seed() {
let tempdir = tempfile::tempdir().unwrap();
- let storage_alice = Storage::open(
- tempdir.path().join("alice").join("storage"),
- fixtures::user(),
- )
- .unwrap();
+ let storage_amy =
+ Storage::open(tempdir.path().join("amy").join("storage"), fixtures::user()).unwrap();
let (repo, _) = fixtures::repository(tempdir.path().join("working"));
- let mut alice = Peer::with_storage("alice", [198, 18, 0, 7], storage_alice);
+ let mut amy = Peer::with_storage("amy", AMY, storage_amy);
let storage_bob =
Storage::open(tempdir.path().join("bob").join("storage"), fixtures::user()).unwrap();
- let mut bob = Peer::with_storage("bob", [198, 18, 0, 8], storage_bob);
+ let mut bob = Peer::with_storage("bob", BOB, storage_bob);
- let storage_eve =
- Storage::open(tempdir.path().join("eve").join("storage"), fixtures::user()).unwrap();
- let mut eve = Peer::with_storage("eve", [198, 18, 0, 9], storage_eve);
+ let storage_cid =
+ Storage::open(tempdir.path().join("cid").join("storage"), fixtures::user()).unwrap();
+ let mut cid = Peer::with_storage("cid", CID, storage_cid);
- remote::mock::register(&alice.node_id(), alice.storage().path());
- remote::mock::register(&eve.node_id(), eve.storage().path());
- remote::mock::register(&bob.node_id(), bob.storage().path());
- local::register(alice.storage().clone());
+ remote::mock::register(amy.nid(), amy.storage().path());
+ remote::mock::register(cid.nid(), cid.storage().path());
+ remote::mock::register(bob.nid(), bob.storage().path());
+ local::register(amy.storage().clone());
- // Alice and Bob connect to Eve.
- alice.command(service::Command::Connect(
- eve.id(),
- eve.address(),
+ // Amy and Bob connect to Cid.
+ amy.command(service::Command::Connect(
+ *cid.nid(),
+ cid.address(),
ConnectOptions::default(),
));
bob.command(service::Command::Connect(
- eve.id(),
- eve.address(),
+ *cid.nid(),
+ cid.address(),
ConnectOptions::default(),
));
- // Alice creates a new project.
+ // Amy creates a new project.
let (proj_id, _, _) = rad::init(
&repo,
- "alice".try_into().unwrap(),
- "alice's repo",
+ "amy".try_into().unwrap(),
+ "amy's repo",
git::fmt::refname!("master"),
Visibility::default(),
- alice.signer(),
- alice.storage(),
+ amy.signer(),
+ amy.storage(),
)
.unwrap();
- let mut sim = Simulation::new(
- LocalTime::now(),
- alice.rng.clone(),
- simulator::Options::default(),
- )
- .initialize([&mut alice, &mut bob, &mut eve]);
+ let mut sim = Simulation::new(LocalTime::now(), simulator::Options::default());
let bob_events = bob.events();
- // Neither Eve nor Bob have Alice's project for now.
- assert!(eve.get(proj_id).unwrap().is_none());
+ // Neither Eve nor Bob have Amy's project for now.
+ assert!(cid.get(proj_id).unwrap().is_none());
assert!(bob.get(proj_id).unwrap().is_none());
- // Bob seeds Alice's project.
+ // Bob seeds Amy's project.
let (cmd, receiver) = service::Command::seed(proj_id, policy::Scope::default());
bob.command(cmd);
assert!(receiver.recv().unwrap().unwrap());
- // Eve seeds Alice's project.
+ // Cid seeds Amy's project.
let (cmd, receiver) = service::Command::seed(proj_id, policy::Scope::default());
- eve.command(cmd);
+ cid.command(cmd);
assert!(receiver.recv().unwrap().unwrap());
- // We now expect Eve to fetch Alice's project from Alice.
- // Then we expect Bob to fetch Alice's project from Eve.
- alice.elapse(LocalDuration::from_secs(1)); // Make sure our announcement is fresh.
+ // We now expect Cid to fetch Amy's project from Amy.
+ // Then we expect Bob to fetch Amy's project from Cid.
+ amy.elapse(LocalDuration::from_secs(1)); // Make sure our announcement is fresh.
let (cmd, _) = service::Command::add_inventory(proj_id);
- alice.command(cmd);
+ amy.command(cmd);
- sim.run_while([&mut alice, &mut bob, &mut eve], |s| !s.is_settled());
+ sim.run_while([&mut amy, &mut bob, &mut cid], |s| !s.is_settled());
log::debug!(target: "test", "Simulation is over");
// TODO: Refs should be compared between the two peers.
- log::debug!(target: "test", "Waiting for {} to fetch {} from {}..", bob.id, proj_id,eve.id);
+ log::debug!(target: "test", "Waiting for {} to fetch {} from {}..", *bob.nid(), proj_id,*cid.nid());
bob_events
.iter()
.find(|e| {
matches!(
e,
radicle::node::events::Event::RefsFetched { remote, .. }
- if *remote == eve.node_id()
+ if *remote == *cid.nid()
)
})
- .expect("Bob fetched from Eve");
+ .expect("Bob fetched from Cid");
- assert!(eve.storage().get(proj_id).unwrap().is_some());
+ assert!(cid.storage().get(proj_id).unwrap().is_some());
assert!(bob.storage().get(proj_id).unwrap().is_some());
}
#[test]
fn prop_inventory_exchange_dense() {
- fn property(alice_inv: MockStorage, bob_inv: MockStorage, eve_inv: MockStorage) {
+ fn property(amy_inv: MockStorage, bob_inv: MockStorage, cid_inv: MockStorage) {
let rng = fastrand::Rng::new();
- let alice = Peer::with_storage(
- "alice",
- [198, 18, 0, 7],
- alice_inv
+ let amy = Peer::with_storage(
+ "amy",
+ AMY,
+ amy_inv
.clone()
.map(|doc| doc.visibility = Visibility::Public),
);
let mut bob = Peer::with_storage(
"bob",
- [198, 18, 0, 8],
+ BOB,
bob_inv
.clone()
.map(|doc| doc.visibility = Visibility::Public),
);
- let mut eve = Peer::with_storage(
- "eve",
- [198, 18, 0, 9],
- eve_inv
+ let mut cid = Peer::with_storage(
+ "cid",
+ CID,
+ cid_inv
.clone()
.map(|doc| doc.visibility = Visibility::Public),
);
let mut routing = RandomMap::with_hasher(rng.clone().into());
for (inv, peer) in &[
- (alice_inv.repos, alice.node_id()),
- (bob_inv.repos, bob.node_id()),
- (eve_inv.repos, eve.node_id()),
+ (amy_inv.repos, *amy.nid()),
+ (bob_inv.repos, *bob.nid()),
+ (cid_inv.repos, *cid.nid()),
] {
for id in inv.keys() {
routing
@@ -1949,30 +1846,25 @@ fn prop_inventory_exchange_dense() {
// Fully-connected.
bob.command(Command::Connect(
- alice.id(),
- alice.address(),
+ *amy.nid(),
+ amy.address(),
ConnectOptions::default(),
));
bob.command(Command::Connect(
- eve.id(),
- eve.address(),
+ *cid.nid(),
+ cid.address(),
ConnectOptions::default(),
));
- eve.command(Command::Connect(
- alice.id(),
- alice.address(),
+ cid.command(Command::Connect(
+ *amy.nid(),
+ amy.address(),
ConnectOptions::default(),
));
- let mut peers: RandomMap<_, _> = [
- (alice.node_id(), alice),
- (bob.node_id(), bob),
- (eve.node_id(), eve),
- ]
- .into_iter()
- .collect();
- let mut simulator = Simulation::new(LocalTime::now(), rng, simulator::Options::default())
- .initialize(peers.values_mut());
+ let mut peers: RandomMap<_, _> = [(*amy.nid(), amy), (*bob.nid(), bob), (*cid.nid(), cid)]
+ .into_iter()
+ .collect();
+ let mut simulator = Simulation::new(LocalTime::now(), simulator::Options::default());
simulator.run_while(peers.values_mut(), |s| !s.is_settled());
@@ -2011,19 +1903,18 @@ fn prop_inventory_exchange_dense() {
}
#[test]
-fn test_announcement_message_amplification() {
+fn announcement_message_amplification() {
let mut results = Vec::new();
let mut rng = fastrand::Rng::new();
while results.len() < *TEST_CASES {
- let mut alice = Peer::new("alice", [198, 18, 0, 7]);
- let mut bob = Peer::new("bob", [198, 18, 0, 8]);
- let mut eve = Peer::new("eve", [198, 18, 0, 9]);
- let mut zod = Peer::new("zod", [198, 18, 0, 5]);
- let mut tom = Peer::new("tom", [198, 18, 0, 4]);
+ let mut amy = Peer::amy();
+ let mut bob = Peer::bob();
+ let mut cid = Peer::cid();
+ let mut dan = Peer::dan();
+ let mut eve = Peer::eve();
let mut sim = Simulation::new(
LocalTime::now(),
- alice.rng.clone(),
simulator::Options {
latency: 0..1, // 0 - 1s
failure_rate: 0.,
@@ -2032,121 +1923,119 @@ fn test_announcement_message_amplification() {
let rid = r#gen::<RepoId>(1);
// Make sure the node gossip intervals are not accidentally synchronized.
- alice.elapse(LocalDuration::from_millis(
+ amy.elapse(LocalDuration::from_millis(
rng.u128(0..=service::GOSSIP_INTERVAL.as_millis()),
));
bob.elapse(LocalDuration::from_millis(
rng.u128(0..=service::GOSSIP_INTERVAL.as_millis()),
));
- eve.elapse(LocalDuration::from_millis(
+ cid.elapse(LocalDuration::from_millis(
rng.u128(0..=service::GOSSIP_INTERVAL.as_millis()),
));
- zod.elapse(LocalDuration::from_millis(
+ dan.elapse(LocalDuration::from_millis(
rng.u128(0..=service::GOSSIP_INTERVAL.as_millis()),
));
- tom.elapse(LocalDuration::from_millis(
+ eve.elapse(LocalDuration::from_millis(
rng.u128(0..=service::GOSSIP_INTERVAL.as_millis()),
));
// Fully-connected network.
- alice.command(Command::Connect(
- bob.id,
+ amy.command(Command::Connect(
+ *bob.nid(),
bob.address(),
ConnectOptions::default(),
));
- alice.command(Command::Connect(
- eve.id,
- eve.address(),
+ amy.command(Command::Connect(
+ *cid.nid(),
+ cid.address(),
ConnectOptions::default(),
));
- alice.command(Command::Connect(
- zod.id,
- zod.address(),
+ amy.command(Command::Connect(
+ *dan.nid(),
+ dan.address(),
ConnectOptions::default(),
));
- alice.command(Command::Connect(
- tom.id,
- tom.address(),
+ amy.command(Command::Connect(
+ *eve.nid(),
+ eve.address(),
ConnectOptions::default(),
));
bob.command(Command::Connect(
- eve.id,
- eve.address(),
+ *cid.nid(),
+ cid.address(),
ConnectOptions::default(),
));
bob.command(Command::Connect(
- zod.id,
- zod.address(),
+ *dan.nid(),
+ dan.address(),
ConnectOptions::default(),
));
bob.command(Command::Connect(
- tom.id,
- tom.address(),
+ *eve.nid(),
+ eve.address(),
ConnectOptions::default(),
));
- eve.command(Command::Connect(
- zod.id,
- zod.address(),
+ cid.command(Command::Connect(
+ *dan.nid(),
+ dan.address(),
ConnectOptions::default(),
));
- eve.command(Command::Connect(
- tom.id,
- tom.address(),
+ cid.command(Command::Connect(
+ *eve.nid(),
+ eve.address(),
ConnectOptions::default(),
));
- zod.command(Command::Connect(
- tom.id,
- tom.address(),
+ dan.command(Command::Connect(
+ *eve.nid(),
+ eve.address(),
ConnectOptions::default(),
));
// Let the nodes connect to each other.
- sim.run_while([&mut alice, &mut bob, &mut eve, &mut zod, &mut tom], |s| {
+ sim.run_while([&mut amy, &mut bob, &mut cid, &mut dan, &mut eve], |s| {
s.elapsed() < LocalDuration::from_mins(3)
});
// Ensure nodes are all connected; otherwise, skip this test run.
- if alice.sessions().connected().count() != 4 {
+ if amy.sessions().connected().count() != 4 {
continue;
}
if bob.sessions().connected().count() != 4 {
continue;
}
- if eve.sessions().connected().count() != 4 {
+ if cid.sessions().connected().count() != 4 {
continue;
}
- if zod.sessions().connected().count() != 4 {
+ if dan.sessions().connected().count() != 4 {
continue;
}
- if tom.sessions().connected().count() != 4 {
+ if eve.sessions().connected().count() != 4 {
continue;
}
- let timestamp = (*alice.clock()).into();
- alice
- .storage_mut()
+ let timestamp = (*amy.clock()).into();
+ amy.storage_mut()
.repos
.insert(rid, r#gen::<MockRepository>(1));
let (cmd, _) = Command::add_inventory(rid);
- alice.command(cmd);
+ amy.command(cmd);
- sim.run_while([&mut alice, &mut bob, &mut eve, &mut zod, &mut tom], |s| {
+ sim.run_while([&mut amy, &mut bob, &mut cid, &mut dan, &mut eve], |s| {
s.elapsed() < LocalDuration::from_mins(3)
});
// Make sure they have the routing table entry.
- for node in [&bob, &eve, &zod, &tom] {
+ for node in [&bob, &cid, &dan, &eve] {
assert!(
- node.service
- .database()
+ node.database()
.routing()
.get(&rid)
.unwrap()
- .contains(&alice.id)
+ .contains(amy.nid())
);
}
- // Count how many copies of Alice's inventory message have been received by peers.
+ // Count how many copies of Amy's inventory message have been received by peers.
let received = sim.messages().iter().filter(|m| {
matches!(
m,
@@ -2155,7 +2044,7 @@ fn test_announcement_message_amplification() {
message: AnnouncementMessage::Inventory(i),
..
}))
- if node == &alice.id && i.inventory.to_vec() == vec![rid] && i.timestamp == timestamp
+ if node == amy.nid() && i.inventory.to_vec() == vec![rid] && i.timestamp == timestamp
)
});
results.push(received.count());
diff --git a/crates/radicle-node/src/wire.rs b/crates/radicle-node/src/wire.rs
index 213333a1..2691626f 100644
--- a/crates/radicle-node/src/wire.rs
+++ b/crates/radicle-node/src/wire.rs
@@ -1288,6 +1288,9 @@ mod logger {
mod test {
use super::*;
use crate::crypto::test::signer::MockSigner;
+
+ use radicle_protocol::service::ServiceState as _;
+
use crate::identity::RepoId;
use crate::node;
use crate::service::{Message, ZeroBytes};
@@ -1434,9 +1437,9 @@ mod test {
let storage = crate::test::arbitrary::nonempty_storage(1);
let rid = *storage.repos.keys().next().unwrap();
- let mut alice = TestPeer::with_storage("alice", [7, 7, 7, 7], storage);
- let bob = TestPeer::new("bob", [8, 8, 8, 8]);
- let bob_id = bob.id;
+ let mut alice = TestPeer::with_storage("alice", 7, storage);
+ let bob = TestPeer::bob();
+ let bob_id = *bob.nid();
let bob_addr = NetAddr {
host: HostName::Ip(net::IpAddr::from([8, 8, 8, 8])),
port: node::DEFAULT_PORT,
@@ -1454,7 +1457,7 @@ mod test {
assert!(alice.fetcher().active_fetches().contains_key(&rid));
let (worker_tx, _worker_rx) = chan::unbounded::<Task>();
- let wire = Wire::new(alice.service, worker_tx, Device::mock());
+ let wire = Wire::new(alice.into_service(), worker_tx, Device::mock());
(wire, rid, bob_id, bob_addr)
}
diff --git a/crates/radicle/src/node/device.rs b/crates/radicle/src/node/device.rs
index 8daab7c4..76a71575 100644
--- a/crates/radicle/src/node/device.rs
+++ b/crates/radicle/src/node/device.rs
@@ -39,12 +39,17 @@ impl<S: crypto::Signer + Default> Default for Device<S> {
}
}
-impl<S> Device<S> {
+impl<S: crypto::Signer> Device<S> {
/// Construct a new `Device`.
- pub fn new(node: NodeId, signer: S) -> Self {
- Self { node, signer }
+ pub fn new(signer: S) -> Self {
+ Self {
+ node: *signer.public_key(),
+ signer,
+ }
}
+}
+impl<S> Device<S> {
/// Return the [`NodeId`] of the `Device.`
pub fn node_id(&self) -> &NodeId {
&self.node
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 b30d70a2-2abb-4488-a8a5-78581b974a71 -v /opt/radcis/ci.rad.levitte.org/cci/state/b30d70a2-2abb-4488-a8a5-78581b974a71/s:/b30d70a2-2abb-4488-a8a5-78581b974a71/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/b30d70a2-2abb-4488-a8a5-78581b974a71/w:/b30d70a2-2abb-4488-a8a5-78581b974a71/w -w /b30d70a2-2abb-4488-a8a5-78581b974a71/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /b30d70a2-2abb-4488-a8a5-78581b974a71/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 ecdsa v0.16.9
Downloaded displaydoc v0.2.5
Downloaded aho-corasick v1.1.4
Downloaded matchers v0.2.0
Downloaded cypheraddr v0.4.1
Downloaded bit-set v0.8.0
Downloaded gix-revwalk v0.31.0
Downloaded base32 v0.4.0
Downloaded anstyle-query v1.1.5
Downloaded flate2 v1.1.9
Downloaded gix-error v0.2.3
Downloaded ed25519 v2.2.3
Downloaded colorchoice v1.0.5
Downloaded block-padding v0.3.3
Downloaded ct-codecs v1.1.6
Downloaded gix-negotiate v0.31.0
Downloaded gix-refspec v0.41.0
Downloaded getrandom v0.4.2
Downloaded iana-time-zone v0.1.65
Downloaded maybe-async v0.2.10
Downloaded once_cell v1.21.4
Downloaded icu_provider v2.1.1
Downloaded gix-diff v0.63.0
Downloaded quick-error v1.2.3
Downloaded num-bigint-dig v0.8.6
Downloaded memmap2 v0.9.10
Downloaded num-iter v0.1.45
Downloaded pbkdf2 v0.12.2
Downloaded gix-trace v0.1.19
Downloaded phf_shared v0.11.3
Downloaded opaque-debug v0.3.1
Downloaded ed25519-dalek v2.2.0
Downloaded gix-quote v0.7.1
Downloaded phf v0.11.3
Downloaded proc-macro-error-attr2 v2.0.0
Downloaded radicle-git-ext v0.12.0
Downloaded rand_chacha v0.3.1
Downloaded ref-cast-impl v1.0.25
Downloaded polyval v0.6.2
Downloaded poly1305 v0.8.0
Downloaded signature v1.6.4
Downloaded same-file v1.0.6
Downloaded rustversion v1.0.22
Downloaded gix-packetline v0.21.3
Downloaded scopeguard v1.2.0
Downloaded mio v1.1.1
Downloaded signal-hook-mio v0.2.5
Downloaded prodash v31.0.0
Downloaded socks5-client v0.4.3
Downloaded rand v0.8.5
Downloaded siphasher v0.3.11
Downloaded ssh-encoding v0.2.0
Downloaded stable_deref_trait v1.2.1
Downloaded gix-credentials v0.38.0
Downloaded spin v0.9.8
Downloaded sval_fmt v2.17.0
Downloaded streaming-iterator v0.1.9
Downloaded socket2 v0.5.10
Downloaded signals_receipts v0.2.5
Downloaded systemd-journal-logger v2.2.2
Downloaded sem_safe v0.2.1
Downloaded serde v1.0.228
Downloaded sval_nested v2.17.0
Downloaded thiserror-impl v2.0.18
Downloaded thread_local v1.1.9
Downloaded sval_serde v2.17.0
Downloaded sval_ref v2.17.0
Downloaded test-log v0.2.19
Downloaded unicode-display-width v0.3.0
Downloaded structured-logger v1.0.5
Downloaded tracing-log v0.2.0
Downloaded thiserror v1.0.69
Downloaded utf8_iter v1.0.4
Downloaded sval_buffer v2.17.0
Downloaded typeid v1.0.3
Downloaded tree-sitter-language v0.1.7
Downloaded zerofrom v0.1.6
Downloaded indicatif v0.18.4
Downloaded zerofrom-derive v0.1.6
Downloaded xattr v1.6.1
Downloaded utf8parse v0.2.2
Downloaded tracing-core v0.1.36
Downloaded yoke-derive v0.8.1
Downloaded zmij v1.0.21
Downloaded proc-macro2 v1.0.106
Downloaded tree-sitter-css v0.23.2
Downloaded typenum v1.19.0
Downloaded value-bag v1.12.0
Downloaded zeroize v1.8.2
Downloaded unicode-ident v1.0.24
Downloaded walkdir v2.5.0
Downloaded url v2.5.8
Downloaded zerovec-derive v0.11.2
Downloaded writeable v0.6.2
Downloaded zerotrie v0.2.3
Downloaded indexmap v2.13.0
Downloaded unicode-normalization v0.1.25
Downloaded yoke v0.8.1
Downloaded sharded-slab v0.1.7
Downloaded thiserror v2.0.18
Downloaded tree-sitter-python v0.23.6
Downloaded yansi v1.0.1
Downloaded object v0.37.3
Downloaded uuid v1.22.0
Downloaded zlib-rs v0.6.5
Downloaded zerovec v0.11.5
Downloaded vcpkg v0.2.15
Downloaded syn v2.0.117
Downloaded rustix v1.1.4
Downloaded libm v0.2.16
Downloaded git2 v0.20.4
Downloaded tree-sitter-rust v0.23.3
Downloaded tracing-subscriber v0.3.23
Downloaded gimli v0.32.3
Downloaded zerocopy v0.8.42
Downloaded tree-sitter-md v0.3.2
Downloaded tracing v0.1.44
Downloaded regex-syntax v0.8.10
Downloaded unicode-width v0.2.2
Downloaded tree-sitter-ruby v0.23.1
Downloaded tree-sitter-bash v0.23.3
Downloaded tree-sitter-c v0.23.4
Downloaded p521 v0.13.3
Downloaded icu_properties_data v2.1.2
Downloaded unicode-segmentation v1.12.0
Downloaded syn v1.0.109
Downloaded idna v1.1.0
Downloaded jsonschema v0.30.0
Downloaded sysinfo v0.37.2
Downloaded gix-pack v0.70.0
Downloaded tree-sitter v0.24.7
Downloaded regex-automata v0.4.14
Downloaded sval v2.17.0
Downloaded itertools v0.14.0
Downloaded num-bigint v0.4.6
Downloaded jiff v0.2.23
Downloaded tree-sitter-typescript v0.23.2
Downloaded toml v0.9.12+spec-1.1.0
Downloaded rsa v0.9.10
Downloaded gix-ref v0.63.0
Downloaded sha1-checked v0.10.0
Downloaded libc v0.2.183
Downloaded fraction v0.15.3
Downloaded tree-sitter-go v0.23.4
Downloaded libz-sys v1.1.25
Downloaded tokio v1.50.0
Downloaded serde_derive v1.0.228
Downloaded sha3 v0.10.8
Downloaded jiff-static v0.2.23
Downloaded inquire v0.9.4
Downloaded fancy-regex v0.14.0
Downloaded timeago v0.4.2
Downloaded bloomy v1.2.0
Downloaded tinyvec v1.11.0
Downloaded tar v0.4.45
Downloaded serde_json v1.0.149
Downloaded sqlite3-sys v0.18.0
Downloaded vsimd v0.8.0
Downloaded version_check v0.9.5
Downloaded icu_normalizer_data v2.1.1
Downloaded serde_core v1.0.228
Downloaded icu_collections v2.1.1
Downloaded test-log-macros v0.2.19
Downloaded ssh-key v0.6.7
Downloaded value-bag-serde1 v1.12.0
Downloaded sha2 v0.10.9
Downloaded ryu v1.0.23
Downloaded gix-protocol v0.61.0
Downloaded wait-timeout v0.2.1
Downloaded value-bag-sval2 v1.12.0
Downloaded uuid-simd v0.8.0
Downloaded toml_writer v1.0.7+spec-1.1.0
Downloaded tinyvec_macros v0.1.1
Downloaded smallvec v1.15.1
Downloaded tree-sitter-html v0.23.2
Downloaded proptest v1.10.0
Downloaded curve25519-dalek v4.1.3
Downloaded snapbox v1.2.2
Downloaded p384 v0.13.1
Downloaded gix-odb v0.80.0
Downloaded gix-object v0.60.0
Downloaded universal-hash v0.5.1
Downloaded unit-prefix v0.5.2
Downloaded unarray v0.1.4
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded tree-sitter-json v0.24.8
Downloaded tree-sitter-highlight v0.24.7
Downloaded toml_datetime v0.7.5+spec-1.1.0
Downloaded tinystr v0.8.2
Downloaded thiserror-impl v1.0.69
Downloaded synstructure v0.13.2
Downloaded similar v3.1.1
Downloaded regex v1.12.3
Downloaded radicle-surf v0.27.1
Downloaded libgit2-sys v0.18.3+1.9.2
Downloaded hmac v0.12.1
Downloaded rand_core v0.6.4
Downloaded gix-revision v0.45.0
Downloaded subtle v2.6.1
Downloaded siphasher v1.0.2
Downloaded gix-features v0.48.0
Downloaded sqlite v0.37.0
Downloaded tempfile v3.27.0
Downloaded ssh-agent-lib v0.6.0
Downloaded strsim v0.11.1
Downloaded ssh-cipher v0.2.0
Downloaded shell-words v1.1.1
Downloaded portable-atomic v1.13.1
Downloaded hashbrown v0.16.1
Downloaded chrono v0.4.44
Downloaded litrs v1.0.0
Downloaded getrandom v0.3.4
Downloaded sval_json v2.17.0
Downloaded sval_dynamic v2.17.0
Downloaded spki v0.7.3
Downloaded sec1 v0.7.3
Downloaded rand_core v0.9.5
Downloaded litemap v0.8.1
Downloaded icu_properties v2.1.2
Downloaded group v0.13.0
Downloaded qcheck v1.0.0
Downloaded simd-adler32 v0.3.8
Downloaded snapbox-macros v1.1.0
Downloaded gix-utils v0.3.2
Downloaded rand_xorshift v0.4.0
Downloaded gix-path v0.12.0
Downloaded rand_chacha v0.9.0
Downloaded num-rational v0.4.2
Downloaded humantime v2.3.0
Downloaded human-panic v2.0.6
Downloaded gix-url v0.36.0
Downloaded bstr v1.12.1
Downloaded signal-hook v0.3.18
Downloaded serde_derive_internals v0.29.1
Downloaded rand v0.9.2
Downloaded signal-hook-registry v1.4.8
Downloaded sha1 v0.10.6
Downloaded serde_spanned v1.0.4
Downloaded secrecy v0.10.3
Downloaded salsa20 v0.10.2
Downloaded filetime v0.2.27
Downloaded signature v2.2.0
Downloaded shlex v1.3.0
Downloaded scrypt v0.11.0
Downloaded rfc6979 v0.4.0
Downloaded nu-ansi-term v0.50.3
Downloaded sqlite3-src v0.7.0
Downloaded normalize-line-endings v0.3.0
Downloaded jobserver v0.1.34
Downloaded pretty_assertions v1.4.1
Downloaded pkcs1 v0.7.5
Downloaded num v0.4.3
Downloaded escargot v0.5.15
Downloaded clap_builder v4.6.0
Downloaded serde_fmt v1.1.0
Downloaded serde-untagged v0.1.9
Downloaded semver v1.0.27
Downloaded schemars v1.2.1
Downloaded rusty-fork v0.3.1
Downloaded rustc-demangle v0.1.27
Downloaded referencing v0.30.0
Downloaded ref-cast v1.0.25
Downloaded radicle-std-ext v0.2.0
Downloaded qcheck-macros v1.0.0
Downloaded lexopt v0.3.2
Downloaded icu_locale_core v2.1.1
Downloaded linux-raw-sys v0.12.1
Downloaded gix-commitgraph v0.37.0
Downloaded git-ref-format-macro v0.6.0
Downloaded gix-config-value v0.18.0
Downloaded git-ref-format-core v0.6.0
Downloaded schemars_derive v1.2.1
Downloaded cyphernet v0.5.4
Downloaded parking_lot_core v0.9.12
Downloaded itoa v1.0.17
Downloaded proc-macro-error2 v2.0.1
Downloaded primeorder v0.13.6
Downloaded derive_more v2.1.1
Downloaded rustc_version v0.4.1
Downloaded quote v1.0.45
Downloaded ppv-lite86 v0.2.21
Downloaded parking_lot v0.12.5
Downloaded nonempty v0.12.0
Downloaded num-traits v0.2.19
Downloaded derive_more-impl v2.1.1
Downloaded pkg-config v0.3.32
Downloaded pin-project-lite v0.2.17
Downloaded num-complex v0.4.6
Downloaded crossbeam-channel v0.5.15
Downloaded potential_utf v0.1.4
Downloaded pkcs8 v0.10.2
Downloaded pem-rfc7468 v0.7.0
Downloaded pastey v0.2.1
Downloaded gix-shallow v0.12.0
Downloaded keccak v0.1.6
Downloaded gix-lock v23.0.0
Downloaded generic-array v0.14.7
Downloaded der v0.7.10
Downloaded percent-encoding v2.3.2
Downloaded gix-validate v0.11.1
Downloaded emojis v0.6.4
Downloaded faster-hex v0.10.0
Downloaded crossterm v0.29.0
Downloaded aes v0.8.4
Downloaded nonempty v0.9.0
Downloaded miniz_oxide v0.8.9
Downloaded memchr v2.8.0
Downloaded crypto-bigint v0.5.5
Downloaded num-cmp v0.1.0
Downloaded noise-framework v0.4.1
Downloaded multibase v0.9.2
Downloaded inout v0.1.4
Downloaded gix-command v0.9.0
Downloaded gix-chunk v0.7.1
Downloaded fnv v1.0.7
Downloaded chacha20poly1305 v0.10.1
Downloaded anstream v1.0.0
Downloaded outref v0.5.2
Downloaded elliptic-curve v0.13.8
Downloaded dyn-clone v1.0.20
Downloaded digest v0.10.7
Downloaded clap_complete v4.6.0
Downloaded num-integer v0.1.46
Downloaded log v0.4.29
Downloaded is_terminal_polyfill v1.70.2
Downloaded document-features v0.2.12
Downloaded data-encoding-macro v0.1.19
Downloaded crc32fast v1.5.0
Downloaded ascii v1.1.0
Downloaded amplify v4.9.0
Downloaded lock_api v0.4.14
Downloaded idna_adapter v1.2.1
Downloaded heck v0.5.0
Downloaded fastrand v2.3.0
Downloaded diff v0.1.13
Downloaded cc v1.2.57
Downloaded bit-vec v0.8.0
Downloaded colored v2.2.0
Downloaded base64 v0.21.7
Downloaded aead v0.5.2
Downloaded p256 v0.13.2
Downloaded icu_normalizer v2.1.1
Downloaded gix-transport v0.57.0
Downloaded gix-tempfile v23.0.0
Downloaded gix-hashtable v0.15.0
Downloaded git-ref-format v0.6.0
Downloaded ghash v0.5.1
Downloaded base64 v0.22.1
Downloaded amplify_syn v2.0.1
Downloaded gix-actor v0.41.0
Downloaded console v0.16.3
Downloaded clap v4.6.0
Downloaded cipher v0.4.4
Downloaded heapless v0.8.0
Downloaded gix-traverse v0.57.0
Downloaded env_filter v1.0.0
Downloaded dunce v1.0.5
Downloaded data-encoding v2.10.0
Downloaded cpufeatures v0.2.17
Downloaded arc-swap v1.9.1
Downloaded match-lookup v0.1.2
Downloaded lazy_static v1.5.0
Downloaded form_urlencoded v1.2.2
Downloaded env_logger v0.11.9
Downloaded ec25519 v0.1.0
Downloaded base16ct v0.2.0
Downloaded gix-sec v0.14.0
Downloaded gix-glob v0.26.0
Downloaded fast-glob v0.3.3
Downloaded errno v0.3.14
Downloaded either v1.15.0
Downloaded curve25519-dalek-derive v0.1.1
Downloaded hash32 v0.3.1
Downloaded gix-hash v0.25.0
Downloaded gix-fs v0.21.1
Downloaded gix-date v0.15.3
Downloaded equivalent v1.0.2
Downloaded cyphergraphy v0.3.1
Downloaded crypto-common v0.1.7
Downloaded bitflags v2.11.0
Downloaded ctr v0.9.2
Downloaded clap_lex v1.1.0
Downloaded borrow-or-share v0.2.4
Downloaded fluent-uri v0.3.2
Downloaded ed25519 v1.5.3
Downloaded anstyle v1.0.14
Downloaded email_address v0.2.9
Downloaded data-encoding-macro-internal v0.1.17
Downloaded convert_case v0.10.0
Downloaded chacha20 v0.9.1
Downloaded bytesize v2.3.1
Downloaded byteorder v1.5.0
Downloaded autocfg v1.5.0
Downloaded adler2 v2.0.1
Downloaded base256emoji v1.0.2
Downloaded amplify_derive v4.0.1
Downloaded aes-gcm v0.10.3
Downloaded const-oid v0.9.6
Downloaded bytes v1.11.1
Downloaded base64ct v1.8.3
Downloaded base-x v0.2.11
Downloaded anyhow v1.0.102
Downloaded amplify_num v0.5.3
Downloaded erased-serde v0.4.10
Downloaded const-str v0.4.3
Downloaded clap_derive v4.6.0
Downloaded bytecount v0.6.9
Downloaded blowfish v0.9.1
Downloaded bcrypt-pbkdf v0.10.0
Downloaded backtrace v0.3.76
Downloaded cbc v0.1.2
Downloaded block-buffer v0.10.4
Downloaded anstyle-parse v0.2.7
Downloaded gix-prompt v0.15.0
Downloaded getrandom v0.2.17
Downloaded find-msvc-tools v0.1.9
Downloaded ff v0.13.1
Downloaded crossbeam-utils v0.8.21
Downloaded anstream v0.6.21
Downloaded cfg-if v1.0.4
Downloaded anstyle-parse v1.0.0
Downloaded ahash v0.8.12
Compiling libc v0.2.183
Compiling proc-macro2 v1.0.106
Compiling unicode-ident v1.0.24
Compiling quote v1.0.45
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 shlex v1.3.0
Compiling find-msvc-tools v0.1.9
Compiling cc v1.2.57
Checking crypto-common v0.1.7
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 cpufeatures v0.2.17
Checking stable_deref_trait v1.2.1
Compiling thiserror v2.0.18
Checking fastrand v2.3.0
Checking regex-automata v0.4.14
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
Compiling erased-serde v0.4.10
Compiling crc32fast v1.5.0
Checking gix-trace v0.1.19
Checking tinyvec_macros v0.1.1
Checking tinyvec v1.11.0
Compiling serde v1.0.228
Checking unicode-normalization v0.1.25
Checking byteorder v1.5.0
Checking itoa v1.0.17
Checking gix-utils v0.3.2
Checking serde_fmt v1.1.0
Checking hashbrown v0.16.1
Checking value-bag-serde1 v1.12.0
Compiling synstructure v0.13.2
Compiling thiserror-impl v2.0.18
Checking bstr v1.12.1
Compiling serde_derive v1.0.228
Checking gix-validate v0.11.1
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.5
Compiling heapless v0.8.0
Compiling rustix v1.1.4
Checking yoke v0.8.1
Compiling pkg-config v0.3.32
Compiling zerovec-derive v0.11.2
Checking hash32 v0.3.1
Compiling libm v0.2.16
Checking gix-features v0.48.0
Checking linux-raw-sys v0.12.1
Compiling autocfg v1.5.0
Compiling num-traits v0.2.19
Checking zerovec v0.11.5
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 sha2 v0.10.9
Checking sha1 v0.10.6
Checking sha1-checked v0.10.0
Checking cipher v0.4.4
Checking tinystr v0.8.2
Checking once_cell v1.21.4
Checking percent-encoding v2.3.2
Checking writeable v0.6.2
Checking litemap v0.8.1
Checking gix-hash v0.25.0
Checking icu_locale_core v2.1.1
Checking zerotrie v0.2.3
Checking potential_utf v0.1.4
Compiling icu_normalizer_data v2.1.1
Compiling icu_properties_data v2.1.2
Compiling zmij v1.0.21
Checking icu_provider v2.1.1
Checking icu_collections v2.1.1
Checking der v0.7.10
Compiling serde_json v1.0.149
Checking equivalent v1.0.2
Checking indexmap v2.13.0
Compiling ref-cast v1.0.25
Compiling vcpkg v0.2.15
Compiling syn v1.0.109
Compiling thiserror v1.0.69
Checking icu_normalizer v2.1.1
Compiling libz-sys v1.1.25
Checking icu_properties v2.1.2
Checking tempfile v3.27.0
Compiling ref-cast-impl v1.0.25
Checking ppv-lite86 v0.2.21
Compiling thiserror-impl v1.0.69
Checking spin v0.9.8
Checking lazy_static v1.5.0
Checking num-integer v0.1.46
Checking idna_adapter v1.2.1
Checking hmac v0.12.1
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Checking dyn-clone v1.0.20
Compiling tree-sitter-language v0.1.7
Checking utf8_iter v1.0.4
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 sec1 v0.7.3
Checking group v0.13.0
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 url v2.5.8
Checking rand v0.8.5
Checking num-iter v0.1.45
Checking aead v0.5.2
Compiling semver v1.0.27
Checking signature v1.6.4
Checking ed25519 v1.5.3
Compiling rustc_version v0.4.1
Compiling amplify_derive v4.0.1
Checking schemars v1.2.1
Checking poly1305 v0.8.0
Checking rfc6979 v0.4.0
Checking chacha20 v0.9.1
Checking ascii v1.1.0
Checking amplify_num v0.5.3
Checking ct-codecs v1.1.6
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 primeorder v0.13.6
Checking amplify v4.9.0
Checking polyval v0.6.2
Compiling num-bigint-dig v0.8.6
Checking base64ct v1.8.3
Checking ghash v0.5.1
Checking cyphergraphy v0.3.1
Checking pkcs8 v0.10.2
Checking pem-rfc7468 v0.7.0
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 sha3 v0.10.8
Checking aes-gcm v0.10.3
Checking ssh-encoding v0.2.0
Checking pkcs1 v0.7.5
Checking ed25519 v2.2.3
Checking blowfish v0.9.1
Checking cbc v0.1.2
Checking base32 v0.4.0
Compiling crossbeam-utils v0.8.21
Compiling data-encoding v2.10.0
Checking rsa v0.9.10
Checking cypheraddr v0.4.1
Compiling data-encoding-macro-internal v0.1.17
Checking ssh-cipher v0.2.0
Checking bcrypt-pbkdf v0.10.0
Checking ed25519-dalek v2.2.0
Checking p384 v0.13.1
Checking p521 v0.13.3
Checking p256 v0.13.2
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 noise-framework v0.4.1
Checking ssh-key v0.6.7
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 utf8parse v0.2.2
Checking jiff v0.2.23
Checking nonempty v0.9.0
Checking siphasher v1.0.2
Checking radicle-localtime v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-localtime)
Checking radicle-git-metadata v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-metadata)
Checking radicle-dag v0.10.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-dag)
Checking colorchoice v1.0.5
Checking anstyle v1.0.14
Checking is_terminal_polyfill v1.70.2
Checking radicle-git-ref-format v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-ref-format)
Checking gix-hashtable v0.15.0
Compiling unicode-segmentation v1.12.0
Checking base64 v0.21.7
Compiling radicle v0.24.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle)
Compiling signal-hook v0.3.18
Compiling convert_case v0.10.0
Checking signal-hook-registry v1.4.8
Checking gix-date v0.15.3
Checking serde-untagged v0.1.9
Checking gix-actor v0.41.0
Checking bytesize v2.3.1
Checking gix-object v0.60.0
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
Checking unicode-width v0.2.2
Compiling litrs v1.0.0
Compiling portable-atomic v1.13.1
Checking signals_receipts v0.2.5
Compiling document-features v0.2.12
Checking derive_more v2.1.1
Checking signal-hook-mio v0.2.5
Checking gix-commitgraph v0.37.0
Checking anstyle-parse v1.0.0
Checking anstream v1.0.0
Checking gix-revwalk v0.31.0
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 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-signals)
Checking gix-quote v0.7.1
Checking shell-words v1.1.1
Checking either v1.15.0
Checking iana-time-zone v0.1.65
Checking chrono v0.4.44
Checking gix-command v0.9.0
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-traverse v0.57.0
Checking gix-revision v0.45.0
Checking gix-diff v0.63.0
Checking anstyle-parse v0.2.7
Checking gix-packetline v0.21.3
Checking gix-glob v0.26.0
Compiling tree-sitter v0.24.7
Compiling anyhow v1.0.102
Checking rustc-demangle v0.1.27
Checking backtrace v0.3.76
Checking gix-refspec v0.41.0
Checking gix-transport v0.57.0
Checking anstream v0.6.21
Checking gix-pack v0.70.0
Checking arc-swap v1.9.1
Checking gix-credentials v0.38.0
Checking gix-shallow v0.12.0
Checking gix-ref v0.63.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 uuid v1.22.0
Checking bytes v1.11.1
Compiling flate2 v1.1.9
Compiling tar v0.4.45
Compiling git-ref-format-macro v0.6.0
Checking snapbox-macros v1.1.0
Checking salsa20 v0.10.2
Checking siphasher v0.3.11
Compiling heck v0.5.0
Checking strsim v0.11.1
Checking similar v3.1.1
Checking normalize-line-endings v0.3.0
Checking streaming-iterator v0.1.9
Checking clap_lex v1.1.0
Checking clap_builder v4.6.0
Checking snapbox v1.2.2
Compiling clap_derive v4.6.0
Checking bloomy v1.2.0
Checking scrypt v0.11.0
Compiling radicle-surf v0.27.1
Checking git-ref-format v0.6.0
Checking systemd-journal-logger v2.2.2
Checking serde_spanned v1.0.4
Checking toml_datetime v0.7.5+spec-1.1.0
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-c v0.23.4
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-css v0.23.2
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-python v0.23.6
Compiling tree-sitter-rust v0.23.3
Compiling tree-sitter-html v0.23.2
Checking radicle-std-ext v0.2.0
Checking pin-project-lite v0.2.17
Checking toml_writer v1.0.7+spec-1.1.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 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-crypto)
Checking clap v4.6.0
Checking sysinfo v0.37.2
Checking diff v0.1.13
Compiling radicle-cli v0.21.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cli)
Compiling radicle-node v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-node)
Checking yansi v1.0.1
Checking human-panic v2.0.6
Checking pretty_assertions v1.4.1
Checking clap_complete v4.6.0
Checking structured-logger v1.0.5
Checking radicle-systemd v0.13.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/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
Checking timeago v0.4.2
Compiling escargot v0.5.15
Checking lexopt v0.3.2
Checking humantime v2.3.0
Checking bit-vec v0.8.0
Checking bit-set v0.8.0
Checking rand_core v0.9.5
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 num-rational v0.4.2
Checking wait-timeout v0.2.1
Checking quick-error v1.2.3
Checking outref v0.5.2
Checking vsimd v0.8.0
Checking num v0.4.3
Compiling radicle-remote-helper v0.17.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-remote-helper)
Checking fnv v1.0.7
Checking rusty-fork v0.3.1
Checking fraction v0.15.3
Checking uuid-simd v0.8.0
Checking test-log v0.2.19
Checking phf v0.11.3
Checking referencing v0.30.0
Checking rand_chacha v0.9.0
Checking rand v0.9.2
Checking rand_xorshift v0.4.0
Checking fancy-regex v0.14.0
Checking email_address v0.2.9
Checking base64 v0.22.1
Checking unarray v0.1.4
Checking num-cmp v0.1.0
Checking bytecount v0.6.9
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 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-windows)
Checking git2 v0.20.4
Checking radicle-oid v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-oid)
Checking radicle-term v0.18.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-term)
Checking radicle-git-ext v0.12.0
Checking radicle-core v0.3.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-core)
Checking radicle-cob v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cob)
Checking radicle-log v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-log)
Checking radicle-fetch v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-fetch)
Checking radicle-cli-test v0.13.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cli-test)
Checking radicle-schemars v0.8.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-schemars)
Checking radicle-protocol v0.8.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-protocol)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.63s
+ cargo build --all-targets --workspace
Compiling libc v0.2.183
Compiling cfg-if v1.0.4
Compiling zeroize v1.8.2
Compiling typenum v1.19.0
Compiling memchr v2.8.0
Compiling shlex v1.3.0
Compiling subtle v2.6.1
Compiling regex-syntax v0.8.10
Compiling generic-array v0.14.7
Compiling getrandom v0.2.17
Compiling jobserver v0.1.34
Compiling rand_core v0.6.4
Compiling crypto-common v0.1.7
Compiling cc v1.2.57
Compiling aho-corasick v1.1.4
Compiling serde_core v1.0.228
Compiling const-oid v0.9.6
Compiling regex-automata v0.4.14
Compiling smallvec v1.15.1
Compiling block-buffer v0.10.4
Compiling cpufeatures v0.2.17
Compiling digest v0.10.7
Compiling stable_deref_trait v1.2.1
Compiling fastrand v2.3.0
Compiling bitflags v2.11.0
Compiling thiserror v2.0.18
Compiling scopeguard v1.2.0
Compiling parking_lot_core v0.9.12
Compiling tinyvec_macros v0.1.1
Compiling lock_api v0.4.14
Compiling gix-trace v0.1.19
Compiling tinyvec v1.11.0
Compiling parking_lot v0.12.5
Compiling typeid v1.0.3
Compiling erased-serde v0.4.10
Compiling unicode-normalization v0.1.25
Compiling itoa v1.0.17
Compiling byteorder v1.5.0
Compiling serde v1.0.228
Compiling gix-utils v0.3.2
Compiling crc32fast v1.5.0
Compiling serde_fmt v1.1.0
Compiling hashbrown v0.16.1
Compiling value-bag-serde1 v1.12.0
Compiling same-file v1.0.6
Compiling value-bag v1.12.0
Compiling walkdir v2.5.0
Compiling bstr v1.12.1
Compiling log v0.4.29
Compiling zerofrom v0.1.6
Compiling prodash v31.0.0
Compiling zlib-rs v0.6.5
Compiling gix-validate v0.11.1
Compiling yoke v0.8.1
Compiling gix-path v0.12.0
Compiling hash32 v0.3.1
Compiling linux-raw-sys v0.12.1
Compiling zerovec v0.11.5
Compiling heapless v0.8.0
Compiling faster-hex v0.10.0
Compiling rustix v1.1.4
Compiling libm v0.2.16
Compiling block-padding v0.3.3
Compiling inout v0.1.4
Compiling num-traits v0.2.19
Compiling getrandom v0.4.2
Compiling sha2 v0.10.9
Compiling sha1 v0.10.6
Compiling sha1-checked v0.10.0
Compiling cipher v0.4.4
Compiling zerocopy v0.8.42
Compiling tinystr v0.8.2
Compiling writeable v0.6.2
Compiling gix-features v0.48.0
Compiling litemap v0.8.1
Compiling once_cell v1.21.4
Compiling percent-encoding v2.3.2
Compiling icu_locale_core v2.1.1
Compiling gix-hash v0.25.0
Compiling zerotrie v0.2.3
Compiling potential_utf v0.1.4
Compiling der v0.7.10
Compiling icu_collections v2.1.1
Compiling icu_provider v2.1.1
Compiling equivalent v1.0.2
Compiling zmij v1.0.21
Compiling indexmap v2.13.0
Compiling icu_normalizer_data v2.1.1
Compiling icu_properties_data v2.1.2
Compiling libz-sys v1.1.25
Compiling icu_properties v2.1.2
Compiling serde_json v1.0.149
Compiling icu_normalizer v2.1.1
Compiling ppv-lite86 v0.2.21
Compiling tempfile v3.27.0
Compiling spin v0.9.8
Compiling lazy_static v1.5.0
Compiling ref-cast v1.0.25
Compiling idna_adapter v1.2.1
Compiling num-integer v0.1.46
Compiling hmac v0.12.1
Compiling universal-hash v0.5.1
Compiling opaque-debug v0.3.1
Compiling dyn-clone v1.0.20
Compiling utf8_iter v1.0.4
Compiling thiserror v1.0.69
Compiling idna v1.1.0
Compiling spki v0.7.3
Compiling libgit2-sys v0.18.3+1.9.2
Compiling signature v2.2.0
Compiling ff v0.13.1
Compiling base16ct v0.2.0
Compiling sec1 v0.7.3
Compiling group v0.13.0
Compiling rand_chacha v0.3.1
Compiling form_urlencoded v1.2.2
Compiling crypto-bigint v0.5.5
Compiling rand v0.8.5
Compiling url v2.5.8
Compiling num-iter v0.1.45
Compiling aead v0.5.2
Compiling signature v1.6.4
Compiling ed25519 v1.5.3
Compiling elliptic-curve v0.13.8
Compiling schemars v1.2.1
Compiling poly1305 v0.8.0
Compiling rfc6979 v0.4.0
Compiling chacha20 v0.9.1
Compiling ct-codecs v1.1.6
Compiling ascii v1.1.0
Compiling amplify_num v0.5.3
Compiling ec25519 v0.1.0
Compiling ecdsa v0.16.9
Compiling primeorder v0.13.6
Compiling amplify v4.9.0
Compiling git-ref-format-core v0.6.0
Compiling polyval v0.6.2
Compiling base64ct v1.8.3
Compiling cyphergraphy v0.3.1
Compiling ghash v0.5.1
Compiling pem-rfc7468 v0.7.0
Compiling pkcs8 v0.10.2
Compiling pbkdf2 v0.12.2
Compiling ctr v0.9.2
Compiling aes v0.8.4
Compiling sqlite3-src v0.7.0
Compiling gix-error v0.2.3
Compiling keccak v0.1.6
Compiling curve25519-dalek v4.1.3
Compiling aes-gcm v0.10.3
Compiling sha3 v0.10.8
Compiling pkcs1 v0.7.5
Compiling ssh-encoding v0.2.0
Compiling num-bigint-dig v0.8.6
Compiling ed25519 v2.2.3
Compiling blowfish v0.9.1
Compiling cbc v0.1.2
Compiling base32 v0.4.0
Compiling cypheraddr v0.4.1
Compiling rsa v0.9.10
Compiling ssh-cipher v0.2.0
Compiling bcrypt-pbkdf v0.10.0
Compiling ed25519-dalek v2.2.0
Compiling p256 v0.13.2
Compiling p384 v0.13.1
Compiling p521 v0.13.3
Compiling chacha20poly1305 v0.10.1
Compiling qcheck v1.0.0
Compiling const-str v0.4.3
Compiling data-encoding v2.10.0
Compiling base256emoji v1.0.2
Compiling data-encoding-macro v0.1.19
Compiling ssh-key v0.6.7
Compiling noise-framework v0.4.1
Compiling crossbeam-utils v0.8.21
Compiling socks5-client v0.4.3
Compiling secrecy v0.10.3
Compiling base-x v0.2.11
Compiling multibase v0.9.2
Compiling ssh-agent-lib v0.6.0
Compiling cyphernet v0.5.4
Compiling crossbeam-channel v0.5.15
Compiling anstyle-query v1.1.5
Compiling errno v0.3.14
Compiling utf8parse v0.2.2
Compiling jiff v0.2.23
Compiling nonempty v0.9.0
Compiling siphasher v1.0.2
Compiling radicle-localtime v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-localtime)
Compiling radicle-git-metadata v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-metadata)
Compiling radicle-dag v0.10.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-dag)
Compiling colorchoice v1.0.5
Compiling anstyle v1.0.14
Compiling is_terminal_polyfill v1.70.2
Compiling unicode-segmentation v1.12.0
Compiling radicle-git-ref-format v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-ref-format)
Compiling gix-hashtable v0.15.0
Compiling radicle v0.24.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle)
Compiling base64 v0.21.7
Compiling convert_case v0.10.0
Compiling signal-hook-registry v1.4.8
Compiling gix-date v0.15.3
Compiling gix-actor v0.41.0
Compiling gix-object v0.60.0
Compiling tree-sitter-language v0.1.7
Compiling serde-untagged v0.1.9
Compiling bytesize v2.3.1
Compiling memmap2 v0.9.10
Compiling fast-glob v0.3.3
Compiling nonempty v0.12.0
Compiling dunce v1.0.5
Compiling signal-hook v0.3.18
Compiling derive_more-impl v2.1.1
Compiling gix-chunk v0.7.1
Compiling mio v1.1.1
Compiling regex v1.12.3
Compiling sem_safe v0.2.1
Compiling unicode-width v0.2.2
Compiling signals_receipts v0.2.5
Compiling signal-hook-mio v0.2.5
Compiling derive_more v2.1.1
Compiling gix-commitgraph v0.37.0
Compiling anstyle-parse v1.0.0
Compiling adler2 v2.0.1
Compiling anstream v1.0.0
Compiling gix-revwalk v0.31.0
Compiling crossterm v0.29.0
Compiling console v0.16.3
Compiling portable-atomic v1.13.1
Compiling gix-fs v0.21.1
Compiling unit-prefix v0.5.2
Compiling gix-tempfile v23.0.0
Compiling indicatif v0.18.4
Compiling inquire v0.9.4
Compiling radicle-signals v0.11.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-signals)
Compiling unicode-display-width v0.3.0
Compiling gix-quote v0.7.1
Compiling either v1.15.0
Compiling shell-words v1.1.1
Compiling iana-time-zone v0.1.65
Compiling chrono v0.4.44
Compiling gix-command v0.9.0
Compiling colored v2.2.0
Compiling gix-lock v23.0.0
Compiling gix-url v0.36.0
Compiling gix-config-value v0.18.0
Compiling gix-sec v0.14.0
Compiling gimli v0.32.3
Compiling gix-prompt v0.15.0
Compiling object v0.37.3
Compiling addr2line v0.25.1
Compiling gix-traverse v0.57.0
Compiling gix-revision v0.45.0
Compiling miniz_oxide v0.8.9
Compiling gix-diff v0.63.0
Compiling anstyle-parse v0.2.7
Compiling gix-glob v0.26.0
Compiling gix-packetline v0.21.3
Compiling tree-sitter v0.24.7
Compiling rustc-demangle v0.1.27
Compiling backtrace v0.3.76
Compiling gix-transport v0.57.0
Compiling sqlite3-sys v0.18.0
Compiling sqlite v0.37.0
Compiling gix-refspec v0.41.0
Compiling radicle-crypto v0.17.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-crypto)
Compiling anstream v0.6.21
Compiling gix-pack v0.70.0
Compiling arc-swap v1.9.1
Compiling gix-credentials v0.38.0
Compiling gix-shallow v0.12.0
Compiling gix-ref v0.63.0
Compiling gix-negotiate v0.31.0
Compiling gix-protocol v0.61.0
Compiling gix-odb v0.80.0
Compiling xattr v1.6.1
Compiling uuid v1.22.0
Compiling filetime v0.2.27
Compiling bytes v1.11.1
Compiling tar v0.4.45
Compiling git-ref-format-macro v0.6.0
Compiling getrandom v0.3.4
Compiling anyhow v1.0.102
Compiling flate2 v1.1.9
Compiling snapbox-macros v1.1.0
Compiling salsa20 v0.10.2
Compiling streaming-iterator v0.1.9
Compiling clap_lex v1.1.0
Compiling strsim v0.11.1
Compiling siphasher v0.3.11
Compiling normalize-line-endings v0.3.0
Compiling similar v3.1.1
Compiling bloomy v1.2.0
Compiling clap_builder v4.6.0
Compiling snapbox v1.2.2
Compiling radicle-surf v0.27.1
Compiling scrypt v0.11.0
Compiling git-ref-format v0.6.0
Compiling systemd-journal-logger v2.2.2
Compiling toml_datetime v0.7.5+spec-1.1.0
Compiling serde_spanned v1.0.4
Compiling tree-sitter-python v0.23.6
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-rust v0.23.3
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-c v0.23.4
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-css v0.23.2
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-toml-ng v0.6.0
Compiling toml_writer v1.0.7+spec-1.1.0
Compiling radicle-std-ext v0.2.0
Compiling pin-project-lite v0.2.17
Compiling toml v0.9.12+spec-1.1.0
Compiling tokio v1.50.0
Compiling clap v4.6.0
Compiling sysinfo v0.37.2
Compiling yansi v1.0.1
Compiling diff v0.1.13
Compiling radicle-node v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-node)
Compiling radicle-cli v0.21.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cli)
Compiling pretty_assertions v1.4.1
Compiling human-panic v2.0.6
Compiling clap_complete v4.6.0
Compiling structured-logger v1.0.5
Compiling radicle-systemd v0.13.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-systemd)
Compiling tree-sitter-highlight v0.24.7
Compiling itertools v0.14.0
Compiling socket2 v0.5.10
Compiling lexopt v0.3.2
Compiling humantime v2.3.0
Compiling timeago v0.4.2
Compiling bit-vec v0.8.0
Compiling escargot v0.5.15
Compiling bit-set v0.8.0
Compiling rand_core v0.9.5
Compiling num-bigint v0.4.6
Compiling num-complex v0.4.6
Compiling env_filter v1.0.0
Compiling borrow-or-share v0.2.4
Compiling fluent-uri v0.3.2
Compiling num-rational v0.4.2
Compiling num v0.4.3
Compiling env_logger v0.11.9
Compiling ahash v0.8.12
Compiling phf_shared v0.11.3
Compiling wait-timeout v0.2.1
Compiling vsimd v0.8.0
Compiling radicle-remote-helper v0.17.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-remote-helper)
Compiling fnv v1.0.7
Compiling quick-error v1.2.3
Compiling outref v0.5.2
Compiling rusty-fork v0.3.1
Compiling uuid-simd v0.8.0
Compiling test-log v0.2.19
Compiling phf v0.11.3
Compiling git2 v0.20.4
Compiling referencing v0.30.0
Compiling fraction v0.15.3
Compiling rand_xorshift v0.4.0
Compiling rand_chacha v0.9.0
Compiling rand v0.9.2
Compiling fancy-regex v0.14.0
Compiling email_address v0.2.9
Compiling base64 v0.22.1
Compiling num-cmp v0.1.0
Compiling bytecount v0.6.9
Compiling unarray v0.1.4
Compiling proptest v1.10.0
Compiling jsonschema v0.30.0
Compiling emojis v0.6.4
Compiling radicle-oid v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-oid)
Compiling radicle-cob v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cob)
Compiling radicle-core v0.3.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-core)
Compiling radicle-term v0.18.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-term)
Compiling radicle-git-ext v0.12.0
Compiling radicle-log v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-log)
Compiling radicle-windows v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-windows)
Compiling radicle-fetch v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-fetch)
Compiling radicle-protocol v0.8.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-protocol)
Compiling radicle-cli-test v0.13.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cli-test)
Compiling radicle-schemars v0.8.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.82s
+ cargo doc --workspace --no-deps --all-features
Downloading crates ...
Downloaded rustc-hash v1.1.0
Downloaded mintex v0.1.4
Downloaded thousands v0.2.0
Downloaded dhat v0.3.3
Checking regex-automata v0.4.14
Compiling num-traits v0.2.19
Checking once_cell v1.21.4
Compiling syn v1.0.109
Checking tempfile v3.27.0
Checking idna v1.1.0
Checking url v2.5.8
Checking num-integer v0.1.46
Checking git2 v0.20.4
Checking num-iter v0.1.45
Checking num-bigint-dig v0.8.6
Compiling amplify_syn v2.0.1
Checking bstr v1.12.1
Checking rsa v0.9.10
Compiling amplify_derive v4.0.1
Checking gix-validate v0.11.1
Checking gix-path v0.12.0
Checking git-ref-format-core v0.6.0
Checking gix-features v0.48.0
Checking gix-error v0.2.3
Checking ssh-key v0.6.7
Checking gix-hash v0.25.0
Checking radicle-git-ref-format v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-ref-format)
Checking gix-date v0.15.3
Checking radicle-oid v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-oid)
Checking rusty-fork v0.3.1
Checking gix-actor v0.41.0
Checking gix-hashtable v0.15.0
Checking proptest v1.10.0
Checking gix-object v0.60.0
Checking ssh-agent-lib v0.6.0
Checking radicle-localtime v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-localtime)
Checking amplify v4.9.0
Checking radicle-git-metadata v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-metadata)
Checking radicle-dag v0.10.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-dag)
Checking gix-chunk v0.7.1
Checking gix-fs v0.21.1
Checking gix-commitgraph v0.37.0
Checking cyphergraphy v0.3.1
Checking gix-tempfile v23.0.0
Checking cypheraddr v0.4.1
Checking noise-framework v0.4.1
Checking gix-revwalk v0.31.0
Checking gix-quote v0.7.1
Checking regex v1.12.3
Checking inquire v0.9.4
Checking socks5-client v0.4.3
Checking cyphernet v0.5.4
Checking radicle-signals v0.11.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-signals)
Checking radicle-crypto v0.17.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-crypto)
Checking gix-command v0.9.0
Checking chrono v0.4.44
Checking gix-lock v23.0.0
Checking radicle-core v0.3.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-core)
Checking radicle-cob v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cob)
Checking radicle-term v0.18.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-term)
Checking gix-config-value v0.18.0
Checking gix-url v0.36.0
Checking gix-prompt v0.15.0
Checking gix-traverse v0.57.0
Checking radicle v0.24.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle)
Checking gix-revision v0.45.0
Checking gix-diff v0.63.0
Checking gix-glob v0.26.0
Checking gix-packetline v0.21.3
Checking tree-sitter v0.24.7
Checking gix-transport v0.57.0
Checking gix-refspec v0.41.0
Checking gix-pack v0.70.0
Checking gix-credentials v0.38.0
Checking radicle-log v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-log)
Checking git-ref-format v0.6.0
Checking gix-shallow v0.12.0
Checking gix-ref v0.63.0
Checking gix-negotiate v0.31.0
Checking radicle-git-ext v0.12.0
Checking uuid v1.22.0
Checking gix-protocol v0.61.0
Compiling radicle-cli v0.21.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cli)
Checking human-panic v2.0.6
Checking gix-odb v0.80.0
Checking radicle-surf v0.27.1
Checking tree-sitter-toml-ng v0.6.0
Checking tree-sitter-highlight v0.24.7
Checking mintex v0.1.4
Compiling radicle-node v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-node)
Checking thousands v0.2.0
Checking rustc-hash v1.1.0
Checking radicle-systemd v0.13.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-systemd)
Checking dhat v0.3.3
Documenting radicle-systemd v0.13.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-systemd)
Documenting radicle-log v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-log)
Documenting radicle v0.24.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle)
Documenting radicle-term v0.18.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-term)
Documenting radicle-core v0.3.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-core)
Documenting radicle-cob v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cob)
Documenting radicle-crypto v0.17.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-crypto)
Documenting radicle-signals v0.11.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-signals)
Documenting radicle-oid v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-oid)
Documenting radicle-git-ref-format v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-ref-format)
Documenting radicle-localtime v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-localtime)
Documenting radicle-git-metadata v0.2.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-git-metadata)
Documenting radicle-dag v0.10.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-dag)
Documenting radicle-windows v0.1.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-windows)
Checking radicle-fetch v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-fetch)
Documenting radicle-cli v0.21.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cli)
Documenting radicle-fetch v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-fetch)
Checking radicle-protocol v0.8.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-protocol)
Documenting radicle-node v0.20.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-node)
Documenting radicle-protocol v0.8.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-protocol)
Documenting radicle-cli-test v0.13.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-cli-test)
Documenting radicle-remote-helper v0.17.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-remote-helper)
Documenting radicle-schemars v0.8.0 (/b30d70a2-2abb-4488-a8a5-78581b974a71/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.75s
Generated /b30d70a2-2abb-4488-a8a5-78581b974a71/w/target/doc/radicle/index.html and 21 other files
+ cargo test --workspace --no-fail-fast
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s
Running unittests src/lib.rs (target/debug/deps/radicle-55dc6cec5f13596f)
running 400 tests
test canonical::formatter::test::ascii_control_characters ... ok
test canonical::formatter::test::ordered_nested_object ... ok
test canonical::formatter::test::securesystemslib_asserts ... ok
test cob::cache::migrations::_2::tests::test_patch_json_deserialization ... ok
test cob::cache::tests::test_migrate_to ... ok
test cob::cache::tests::test_check_version ... ok
test cob::common::test::test_color ... ok
test cob::cache::migrations::_2::tests::test_migration_2 ... ok
test cob::common::test::test_title ... ok
test cob::common::test::test_emojis ... ok
test cob::identity::test::accepted_sibling_causes_rejection ... ok
test cob::identity::test::accept_rejects_sibling_accept ... ok
test cob::identity::test::cannot_redact_previously_accepted_revision ... ok
test cob::identity::test::authorization_based_on_parent_not_current ... ok
test cob::identity::test::concurrent_redact_and_accept_converge ... ok
test cob::identity::test::concurrent_accept_before_redact_converge ... ok
test cob::identity::test::evaluates_queued_children ... ok
test cob::identity::test::cascading_rejections ... ok
test cob::identity::test::evaluation_skips_sibling_accept_in_old_history ... ok
test cob::identity::test::has_accepted_active_sibling_returns_true_when_sibling_accepted ... ok
test cob::identity::test::evaluation_strips_author_accept_for_sibling_creation ... ok
test cob::identity::test::evaluates_queued_children_with_new_delegate ... ok
test cob::identity::test::prop_json_eq_str ... ok
test cob::identity::test::redact_parent_cascades ... ok
test cob::identity::test::reject_concurrent ... ok
test cob::identity::test::remove_delegate_concurrent ... ok
test cob::identity::test::test_identity_redact_revision ... ok
test cob::identity::test::terminal_states_concurrent ... ok
test cob::identity::test::test_identity_updates ... ok
test cob::identity::test::test_identity_update_rejected ... ok
test cob::identity::test::test_identity_cannot_redact_terminal_states ... ok
test cob::identity::test::test_identity_updates_concurrent ... ok
test cob::identity::test::test_valid_identity ... ok
test cob::issue::cache::tests::test_counts ... ok
test cob::identity::test::test_identity_updates_concurrent_outdated ... ok
test cob::issue::cache::tests::test_get ... ok
test cob::issue::cache::tests::test_is_empty ... ok
test cob::issue::cache::tests::test_list_by_status ... ok
test cob::issue::cache::tests::test_list ... ok
test cob::issue::cache::tests::test_remove ... ok
test cob::identity::test::update_rejects_second_sibling_proposal ... ok
test cob::issue::test::test_embeds ... ok
test cob::issue::test::test_embeds_edit ... ok
test cob::issue::test::test_invalid_actions ... ok
test cob::issue::test::test_invalid_cob ... ok
test cob::issue::test::test_invalid_tx ... ok
test cob::issue::test::test_invalid_tx_reference ... ok
test cob::issue::test::test_concurrency ... ok
test cob::issue::test::test_issue_all ... ok
test cob::issue::test::test_issue_comment ... ok
test cob::issue::test::test_issue_comment_redact ... ok
test cob::issue::test::test_issue_create_and_assign ... ok
test cob::issue::test::test_issue_create_and_change_state ... ok
test cob::issue::test::test_issue_create_and_get ... ok
test cob::issue::test::test_issue_create_and_reassign ... ok
test cob::issue::test::test_issue_create_and_unassign ... ok
test cob::issue::test::test_issue_edit ... ok
test cob::issue::test::test_issue_edit_description ... ok
test cob::issue::test::test_issue_label ... ok
test cob::issue::test::test_issue_multilines ... ok
test cob::issue::test::test_issue_state_serde ... ok
test cob::issue::test::test_ordering ... ok
test cob::patch::actions::test::test_review_edit ... ok
test cob::issue::test::test_issue_react ... ok
test cob::issue::test::test_issue_reply ... ok
test cob::patch::cache::tests::test_counts ... ok
test cob::patch::cache::tests::test_is_empty ... ok
test cob::patch::cache::tests::test_get ... ok
test cob::patch::cache::tests::test_list ... ok
test cob::patch::cache::tests::test_remove ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_null_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_with_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_migration_without_summary ... ok
test cob::patch::encoding::review::test::test_review_deserialize_summary_v2 ... ok
test cob::patch::encoding::review::test::test_review_summary ... ok
test cob::patch::test::test_json ... ok
test cob::patch::test::test_json_serialisation_target ... ok
test cob::patch::test::test_json_serialization ... ok
test cob::patch::test::test_merge_target_resolution ... ok
test cob::patch::test::test_patch_create_and_get ... ok
test cob::patch::cache::tests::test_list_by_status ... ok
test cob::patch::test::test_patch_discussion ... ok
test cob::patch::test::test_patch_merge_authorization_ref_formats ... ok
test cob::patch::test::test_patch_merge_custom_destination_authorized ... ok
test cob::patch::test::test_patch_merge_custom_destination_unauthorized ... ok
test cob::patch::test::test_patch_merge ... ok
test cob::patch::test::test_patch_review ... ok
test cob::patch::test::test_patch_redact ... ok
test cob::patch::test::test_patch_review_duplicate ... ok
test cob::patch::test::test_patch_review_comment ... ok
test cob::patch::test::test_patch_review_edit ... ok
test cob::patch::test::test_patch_review_edit_comment ... ok
test cob::patch::test::test_patch_review_remove_summary ... ok
test cob::patch::test::test_patch_review_revision_redact ... ok
test cob::patch::test::test_reactions_json_serialization ... ok
test cob::patch::test::test_revision_edit_redact ... ok
test cob::patch::test::test_revision_reaction ... ok
test cob::patch::test::test_revision_review_merge_redacted ... ok
test cob::patch::test::test_target_branch ... ok
test cob::stream::tests::test_all_from ... ok
test cob::patch::test::test_patch_update ... ok
test cob::stream::tests::test_all_from_until ... ok
test cob::stream::tests::test_all_until ... ok
test cob::stream::tests::test_regression_from_until ... ok
test cob::stream::tests::test_from_until ... ok
test cob::thread::tests::test_comment_edit_missing ... ok
test cob::thread::tests::test_comment_edit_redacted ... ok
test cob::thread::tests::test_comment_redact_missing ... ok
test cob::thread::tests::test_duplicate_comments ... ok
test cob::thread::tests::test_edit_comment ... ok
test cob::thread::tests::test_redact_comment ... ok
test cob::thread::tests::test_timeline ... ok
test git::canonical::protect::tests::refs_rad ... ok
test git::canonical::protect::tests::refs_rad_id ... ok
test git::canonical::protect::tests::refs_radieschen ... ok
test git::canonical::quorum::test::merge_base_commutative ... ok
test git::canonical::quorum::test::test_merge_bases ... ok
test git::canonical::rules::test::canonical ... ok
test git::canonical::rules::test::deserialization ... ok
test git::canonical::rules::test::deserialize_extensions ... ok
test git::canonical::rules::test::matches_exactly_curly_braces ... ok
test git::canonical::rules::test::matches_expands_globs_appropriately ... ok
test git::canonical::rules::test::ordering ... ok
test git::canonical::rules::test::property::identity ... ok
test git::canonical::rules::test::property::prefix ... ok
test git::canonical::rules::test::property::prefix_negative ... ok
test git::canonical::rules::test::property::suffix ... ok
test git::canonical::rules::test::property::suffix_negative ... ok
test git::canonical::rules::test::property::trailing_asterisk_partial_component ... ok
test git::canonical::rules::test::roundtrip ... ok
test cob::patch::cache::tests::test_find_by_revision ... ok
test git::canonical::rules::test::rule_validate_success ... ok
test git::canonical::rules::test::special_branches ... ok
test git::canonical::symbolic::test::deserialize_infinite ... ok
test git::canonical::symbolic::test::deserialize_order ... ok
test git::canonical::symbolic::test::deserialize_valid ... ok
test git::canonical::symbolic::test::infinite_extend ... ok
test git::canonical::symbolic::test::infinite_multi ... ok
test git::canonical::symbolic::test::infinite_single ... ok
test git::canonical::symbolic::test::reclassification_combine ... ok
test git::canonical::symbolic::test::reclassification_combine_reverse ... ok
test git::canonical::symbolic::test::reclassification_diamond ... ok
test git::canonical::symbolic::test::reclassification_order_invariant ... ok
test git::canonical::symbolic::test::reclassification_reverse_chain ... ok
test git::canonical::symbolic::test::resolve_two_hop_chain ... ok
test git::canonical::symbolic::test::target_classification ... ok
test git::canonical::symbolic::test::target_classification_symbolic ... ok
test git::canonical::symbolic::test::target_reclassification ... ok
test git::canonical::symbolic::test::target_reclassification_commutative ... ok
test git::canonical::tests::test_commit_quorum_fork_of_a_fork ... ok
test git::canonical::tests::test_commit_quorum_forked_merge_commits ... ok
test git::canonical::tests::test_commit_quorum_groups ... ok
test git::canonical::tests::test_commit_quorum_linear ... ok
test git::canonical::tests::test_commit_quorum_merges ... ok
test git::canonical::tests::test_commit_quorum_single ... ok
test git::canonical::tests::test_commit_quorum_three_way_fork ... ok
test git::canonical::tests::test_commit_quorum_two_way_fork ... ok
test git::canonical::tests::test_quorum_different_types ... ok
test git::canonical::rules::test::rule_validate_failures ... ok
test git::canonical::tests::test_tag_quorum ... ok
test git::test::test_version_from_str ... ok
test git::test::test_version_ord ... ok
test identity::crefs::tests::invalid_clash ... ok
test identity::crefs::tests::invalid_clash_asterisk_name ... ok
test identity::crefs::tests::invalid_dangling ... ok
test identity::crefs::tests::omit_symbolic ... ok
test identity::crefs::tests::valid ... ok
test identity::crefs::tests::valid_asterisk_target ... ok
test identity::did::test::test_did_encode_decode ... ok
test identity::did::test::test_did_vectors ... ok
test identity::doc::test::default_branch_clash ... ok
test identity::doc::test::default_branch_without_project ... ok
test cob::thread::tests::prop_ordering ... ok
test git::canonical::tests::test_quorum_properties ... ok
test identity::doc::test::test_canonical_doc ... ok
test identity::doc::test::test_duplicate_dids ... ok
test identity::doc::test::test_future_version_error ... ok
test identity::doc::test::test_is_valid_version ... ok
test identity::doc::test::test_canonical_example ... ok
test identity::doc::test::test_not_found ... ok
test identity::doc::test::test_parse_version ... ok
test identity::doc::test::test_visibility_json ... ok
test identity::doc::update::test::test_can_update_crefs ... ok
test identity::doc::update::test::test_cannot_include_default_branch_rule ... ok
test identity::doc::update::test::test_default_branch_rule_exists_after_verification ... ok
test identity::project::test::test_project_name ... ok
test node::address::store::test::skip_invalid_address_type ... ok
test node::address::store::test::skip_mismatched_address_type ... ok
test node::address::store::test::test_alias ... ok
test node::address::store::test::test_disconnected ... ok
test node::address::store::test::test_disconnected_ban ... ok
test node::address::store::test::test_empty ... ok
test node::address::store::test::test_entries ... ok
test node::address::store::test::test_entries_skips_unparsable_address ... ok
test node::address::store::test::test_get_none ... ok
test node::address::store::test::test_insert_and_get ... ok
test node::address::store::test::test_insert_and_remove ... ok
test identity::doc::test::test_max_delegates ... ok
test node::address::store::test::test_insert_and_update ... ok
test node::address::store::test::test_insert_duplicate ... ok
test node::address::store::test::test_remove_nothing ... ok
test node::command::test::command_result ... ok
test node::config::test::deserialize_migrating_scope ... ok
test node::config::test::fetch_level_min ... ok
test node::config::test::onion_absent ... ok
test node::config::test::onion_null ... ok
test node::config::test::partial ... ok
test node::config::test::regression_ipv6_address_brackets ... ok
test node::config::test::regression_ipv6_address_no_brackets ... ok
test node::config::test::serialize_migrating_scope ... ok
test node::config::test::user_agent_custom ... ok
test node::config::test::user_agent_default ... ok
test node::config::test::user_agent_default_explicit ... ok
test node::config::test::user_agent_opt_out ... ok
test node::db::config::test::database_config_valid_combinations ... ok
test node::db::config::test::invalid ... ok
test node::address::store::test::test_node_aliases ... ok
test node::db::test::migration_8::all_ipv6_formatted_dns_addresses_are_retyped ... ok
test node::db::test::migration_8::dns_address_starting_with_bracket_but_missing_closing_bracket_colon_is_unaffected ... ok
test node::db::test::migration_8::dns_address_with_bracket_not_at_start_is_unaffected ... ok
test node::db::test::migration_8::ipv4_address_is_unaffected ... ok
test node::db::test::migration_8::ipv6_formatted_dns_address_is_deleted_when_correct_ipv6_row_already_exists ... ok
test node::db::test::migration_8::ipv6_formatted_dns_address_is_retyped_to_ipv6 ... ok
test node::db::test::migration_8::migration_applies_to_all_nodes ... ok
test node::db::test::migration_8::plain_dns_hostname_without_brackets_is_unaffected ... ok
test node::db::test::migration_8::retype_preserves_address_metadata ... ok
test node::db::test::migration_9::bracketed_non_ipv6_garbage_is_deleted ... ok
test node::db::test::migration_9::dns_row_is_unaffected_even_when_inner_part_has_no_colon ... ok
test node::db::test::migration_9::empty_brackets_ipv6_row_is_deleted ... ok
test node::db::test::migration_9::full_ipv6_address_is_kept ... ok
test node::db::test::migration_9::ipv4_row_is_unaffected ... ok
test node::db::test::migration_9::loopback_address_is_kept ... ok
test node::db::test::migration_9::unspecified_address_is_kept ... ok
test node::db::test::test_version ... ok
test node::features::test::test_operations ... ok
test node::notifications::store::test::test_branch_notifications ... ok
test node::notifications::store::test::test_clear ... ok
test node::notifications::store::test::test_cob_notifications ... ok
test node::notifications::store::test::test_counts_by_repo ... ok
test node::notifications::store::test::test_duplicate_notifications ... ok
test node::notifications::store::test::test_notification_status ... ok
test node::policy::store::test::test_follow_and_unfollow_node ... ok
test node::policy::store::test::test_node_policies ... ok
test node::policy::store::test::test_node_policy ... ok
test node::policy::store::test::test_repo_policies ... ok
test node::policy::store::test::test_repo_policy ... ok
test node::policy::store::test::test_node_aliases ... ok
test node::policy::store::test::test_seed_and_unseed_repo ... ok
test node::policy::store::test::test_update_scope ... ok
test node::policy::store::test::test_update_alias ... ok
test node::refs::store::test::test_count ... ok
test node::refs::store::test::test_set_and_get ... ok
test node::refs::store::test::test_set_and_delete ... ok
test node::routing::test::test_count ... ok
test node::routing::test::test_entries ... ok
test node::routing::test::test_insert_and_get ... ok
test node::routing::test::test_insert_and_get_resources ... ok
test node::routing::test::test_insert_duplicate ... ok
test node::routing::test::test_insert_existing_updated_time ... ok
test node::routing::test::test_len ... ok
test node::routing::test::test_insert_and_remove ... ok
test node::routing::test::test_remove_many ... ok
test node::routing::test::test_remove_redundant ... ok
test node::routing::test::test_update_existing_multi ... ok
test node::routing::test::test_prune ... ok
test node::sync::announce::test::all_synced_nodes_are_preferred_seeds ... ok
test node::sync::announce::test::announcer_adapts_target_to_reach ... ok
test node::sync::announce::test::announcer_preferred_seeds_or_replica_factor ... ok
test node::sync::announce::test::announcer_reached_max_replication_target ... ok
test node::sync::announce::test::announcer_reached_min_replication_target ... ok
test node::sync::announce::test::announcer_synced_with_unknown_node ... ok
test node::sync::announce::test::announcer_reached_preferred_seeds ... ok
test node::sync::announce::test::announcer_timed_out ... ok
test node::sync::announce::test::announcer_with_replication_factor_zero_and_preferred_seeds ... ok
test node::sync::announce::test::construct_node_appears_in_multiple_input_sets ... ok
test node::sync::announce::test::construct_only_preferred_seeds_provided ... ok
test node::sync::announce::test::cannot_construct_announcer ... ok
test node::sync::announce::test::invariant_progress_should_match_state ... ok
test node::sync::announce::test::local_node_in_preferred_seeds ... ok
test node::sync::announce::test::local_node_in_synced_set ... ok
test node::sync::announce::test::local_node_in_multiple_sets ... ok
test node::sync::announce::test::local_node_in_unsynced_set ... ok
test node::sync::announce::test::local_node_only_in_all_sets_results_in_no_seeds_error ... ok
test node::sync::announce::test::preferred_seeds_already_synced ... ok
test node::sync::announce::test::synced_with_local_node_is_ignored ... ok
test node::sync::announce::test::synced_with_same_node_multiple_times ... ok
test node::sync::announce::test::timed_out_after_reaching_success ... ok
test node::sync::fetch::test::all_nodes_are_candidates ... ok
test node::sync::fetch::test::could_not_reach_target ... ok
test node::sync::fetch::test::all_nodes_are_fetchable ... ok
test node::sync::fetch::test::ignores_duplicates_and_local_node ... ok
test node::sync::fetch::test::preferred_seeds_target_returned_over_replicas ... ok
test node::sync::fetch::test::reaches_target_of_max_replicas ... ok
test node::sync::fetch::test::reaches_target_of_preferred_seeds ... ok
test node::sync::test::ensure_replicas_construction ... ok
test node::sync::test::replicas_constrain_to ... ok
test node::test::test_address ... ok
test node::test::test_alias ... ok
test node::test::test_command_result ... ok
test node::sync::fetch::test::reaches_target_of_replicas ... ok
test node::test::test_user_agent ... ok
test node::timestamp::tests::test_timestamp_max ... ok
test profile::test::canonicalize_home ... ok
test profile::test::test_config ... ok
test rad::tests::test_checkout ... ok
test rad::tests::test_fork ... ok
test profile::config::test::schema ... ok
test rad::tests::test_init ... ok
test storage::git::tests::test_references_of ... ok
test storage::git::transport::local::url::test::test_url_parse ... ok
test storage::git::transport::local::url::test::test_url_to_string ... ok
test storage::git::transport::remote::url::test::test_url_parse ... ok
test storage::git::tests::test_sign_refs ... ok
test identity::doc::test::prop_encode_decode ... ok
test cob::identity::test::property::prop_invariants ... ok
test storage::refs::sigrefs::git::properties::idempotent_write ... ok
test storage::refs::sigrefs::git::properties::initial_commit_roundtrip ... ok
test storage::refs::sigrefs::read::test::commit_reader::identity_root_error ... ok
test storage::refs::sigrefs::read::test::commit_reader::missing_commit ... ok
test storage::refs::sigrefs::read::test::commit_reader::read_ok ... ok
test storage::refs::sigrefs::read::test::commit_reader::too_many_parents ... ok
test storage::refs::sigrefs::read::test::commit_reader::tree_error ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::doc_blob_error ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::missing_identity ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::read_ok_none ... ok
test storage::refs::sigrefs::read::test::identity_root_reader::read_ok_some ... ok
test storage::refs::sigrefs::read::test::resolve_tip::find_reference_error ... ok
test storage::refs::sigrefs::read::test::resolve_tip::missing_sigrefs ... ok
test storage::refs::sigrefs::read::test::resolve_tip::resolve_tip_ok ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::detect_parent::root_without_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::detect_parent::root_without_root ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::restore ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::root ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::downgrade::root_with_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::head_commit_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::head_verify_mismatched_identity_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::head_verify_signature_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::invalid_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::read_ok_no_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::read_ok_parent ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::read_ok_root ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::alternating ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::chain ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::multiple ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::replay::root_at_head ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::single_commit ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::two_commits ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::walk_commit_error ... ok
test storage::refs::sigrefs::read::test::signed_refs_reader::walk_verify_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::missing_both ... ok
test storage::refs::sigrefs::read::test::tree_reader::missing_refs ... ok
test storage::refs::sigrefs::read::test::tree_reader::missing_signature ... ok
test storage::refs::sigrefs::read::test::tree_reader::parse_refs_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::parse_signature_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::read_ok ... ok
test storage::refs::sigrefs::read::test::tree_reader::read_refs_error ... ok
test storage::refs::sigrefs::read::test::tree_reader::read_signature_error ... ok
test storage::refs::sigrefs::write::test::commit_writer::tree_error ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_commit_error ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_empty_refs ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_root_ok ... ok
test storage::refs::sigrefs::write::test::commit_writer::write_with_parent_ok ... ok
test storage::refs::sigrefs::write::test::head_reader::no_head ... ok
test storage::refs::sigrefs::write::test::head_reader::read_ok ... ok
test storage::refs::sigrefs::write::test::head_reader::reference_error ... ok
test storage::refs::sigrefs::write::test::head_reader::refs_blob_error ... ok
test storage::refs::sigrefs::write::test::head_reader::refs_blob_missing ... ok
test storage::refs::sigrefs::write::test::head_reader::refs_parse_error ... ok
test storage::refs::sigrefs::write::test::head_reader::signature_blob_error ... ok
test storage::refs::sigrefs::write::test::head_reader::signature_blob_missing ... ok
test storage::refs::sigrefs::write::test::head_reader::signature_parse_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::commit_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::head_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::never_write_rad_sigrefs ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::reference_error ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::unchanged ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::unchanged_force_writes_new_commit ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::write_empty_refs ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::write_root_ok ... ok
test storage::refs::sigrefs::write::test::signed_refs_writer::write_with_parent_ok ... ok
test storage::refs::sigrefs::write::test::tree_writer::sign_error ... ok
test storage::refs::sigrefs::write::test::tree_writer::write_ok ... ok
test storage::refs::sigrefs::write::test::tree_writer::write_tree_error ... ok
test storage::refs::tests::prop_canonical_roundtrip ... ok
test storage::refs::tests::test_rid_verification ... ok
test storage::tests::test_storage ... ok
test test::assert::test::assert_with_message ... ok
test test::assert::test::test_assert_no_move ... ok
test test::assert::test::test_assert_panic_0 - should panic ... ok
test test::assert::test::test_assert_panic_1 - should panic ... ok
test test::assert::test::test_assert_panic_2 - should panic ... ok
test test::assert::test::test_assert_succeed ... ok
test test::assert::test::test_panic_message ... ok
test version::test::test_version ... ok
test web::test::description_only ... ok
test web::test::pinned_empty ... ok
test storage::refs::sigrefs::property::idempotent ... ok
test storage::refs::sigrefs::property::roundtrip ... ok
test storage::refs::sigrefs::git::properties::chain_roundtrip ... ok
test result: ok. 400 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.64s
Running unittests src/lib.rs (target/debug/deps/radicle_cli-b260279e2b48ef2c)
running 46 tests
test commands::block::args::test::should_parse_rid ... ok
test commands::block::args::test::should_not_parse ... ok
test commands::block::args::test::should_parse_nid ... ok
test commands::clone::args::test::should_parse_rid_non_urn ... ok
test commands::clone::args::test::should_parse_rid_url ... ok
test commands::clone::args::test::should_parse_rid_urn ... ok
test commands::cob::args::test::should_allow_log_pretty_format ... ok
test commands::cob::args::test::should_allow_log_json_format ... ok
test commands::cob::args::test::should_not_allow_show_pretty_format ... ok
test commands::cob::args::test::should_allow_update_json_format ... ok
test commands::cob::args::test::should_allow_show_json_format ... ok
test commands::fork::args::test::should_not_parse_rid_url ... ok
test commands::cob::args::test::should_not_allow_update_pretty_format ... ok
test commands::fork::args::test::should_parse_rid_non_urn ... ok
test commands::fork::args::test::should_parse_rid_urn ... ok
test commands::id::args::test::should_not_parse_into_payload - should panic ... ok
test commands::id::args::test::should_not_parse_single_payload ... ok
test commands::id::args::test::should_not_clobber_payload_args ... ok
test commands::id::args::test::should_not_parse_single_payloads ... ok
test commands::id::args::test::should_parse_into_payload ... ok
test commands::init::args::test::should_not_parse_rid_url ... ok
test commands::id::args::test::should_parse_single_payload ... ok
test commands::init::args::test::should_parse_rid_non_urn ... ok
test commands::id::args::test::should_parse_multiple_payloads ... ok
test commands::patch::review::builder::tests::test_review_comments_basic ... ok
test commands::inspect::test::test_tree ... ok
test commands::patch::review::builder::tests::test_review_comments_before ... ok
test commands::patch::review::builder::tests::test_review_comments_multiline ... ok
test commands::init::args::test::should_parse_rid_urn ... ok
test commands::patch::review::builder::tests::test_review_comments_split_hunk ... ok
test commands::publish::args::test::should_parse_rid_non_urn ... ok
test commands::publish::args::test::should_not_parse_rid_url ... ok
test git::ddiff::tests::diff_encode_decode_ddiff_hunk ... ok
test commands::publish::args::test::should_parse_rid_urn ... ok
test commands::watch::args::test::should_parse_ref_str ... ok
test git::pretty_diff::test::test_pretty ... ignored
test git::unified_diff::test::test_diff_content_encode_decode_content ... ok
test git::unified_diff::test::test_diff_encode_decode_diff ... ok
test terminal::args::test::should_not_parse ... ok
test terminal::args::test::should_parse_nid ... ok
test terminal::args::test::should_parse_rid ... ok
test terminal::patch::test::test_edit_display_message ... ok
test terminal::format::test::test_strip_comments ... ok
test terminal::format::test::test_bytes ... ok
test terminal::patch::test::test_create_display_message ... ok
test terminal::patch::test::test_update_display_message ... ok
test result: ok. 45 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/main.rs (target/debug/deps/rad-e619290cf7e599df)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running tests/commands.rs (target/debug/deps/commands-0fd4365a430e1ace)
running 126 tests
test commands::clone::rad_clone_bare ... ok
test commands::checkout::rad_checkout ... ok
test commands::clone::rad_clone ... ok
test commands::clone::rad_clone_all ... ok
test commands::clone::rad_clone_scope ... ok
test commands::clone::rad_clone_unknown ... ok
test commands::clone::rad_clone_directory ... ok
test commands::clone::rad_clone_partial_fail ... ok
test commands::clone::rad_clone_connect ... ok
test commands::cob::rad_cob_multiset ... ok
test commands::clone::test_clone_without_seeds ... ok
test commands::cob::rad_cob_log ... ok
test commands::cob::rad_cob_migrate ... ok
test commands::cob::rad_cob_operations ... ok
test commands::cob::rad_cob_show ... ok
test commands::cob::rad_cob_update_identity ... ok
test commands::cob::rad_cob_update ... ok
test commands::cob::test_cob_deletion ... ok
test commands::cob::test_cob_replication ... ok
test commands::git::git_push_amend ... ok
test commands::git::git_push_and_fetch ... ok
test commands::git::git_push_canonical_lightweight_tags ... ok
test commands::git::git_push_diverge ... ok
test commands::git::git_push_force_with_lease ... ok
test commands::git::git_push_canonical ... ok
test commands::git::git_push_converge ... ok
test commands::id::rad_id_collaboration ... ignored, slow
test commands::id::rad_id ... ok
test commands::git::git_tag ... ok
test commands::git::git_push_rollback ... ok
test commands::id::rad_id_private ... ok
test commands::id::rad_id_conflict ... ok
test commands::id::rad_id_threshold_soft_fork ... ok
test commands::id::rad_id_threshold ... ok
test commands::id::rad_id_unknown_field ... ok
test commands::id::rad_id_update_delete_field ... ok
test commands::init::rad_init ... ignored, part of many other tests
test commands::id::rad_id_unauthorized_delegate ... ok
test commands::init::rad_init_detached_head ... ok
test commands::init::rad_init_bare ... ok
test commands::id::rad_id_multi_delegate ... ok
test commands::init::rad_init_existing ... ok
test commands::init::rad_init_existing_bare ... ok
test commands::init::rad_init_no_git ... ok
test commands::init::rad_init_no_seed ... ok
test commands::init::rad_init_private ... ok
test commands::init::rad_init_private_no_seed ... ok
test commands::init::rad_init_private_clone ... ok
test commands::inbox::rad_inbox ... ok
test commands::init::rad_init_private_clone_seed ... ok
test commands::init::rad_init_private_seed ... ok
test commands::init::rad_init_sync_not_connected ... ok
test commands::init::rad_init_sync_preferred ... ok
test commands::init::rad_init_with_existing_remote ... ok
test commands::init::rad_publish ... ok
test commands::issue::rad_issue ... ok
test commands::jj::rad_jj_bare ... ignored, the bare repository does not have a `rad` remote, and so it cannot determine the RID of the repository
test commands::jj::rad_jj_colocated_patch ... ok
test commands::issue::rad_issue_list ... ok
test commands::node::rad_node_connect ... ok
test commands::node::rad_node_connect_without_address ... ok
test commands::patch::rad_merge_after_update ... ok
test commands::node::rad_node ... ok
test commands::patch::rad_merge_no_ff ... ok
test commands::patch::rad_merge_via_push ... ok
test commands::patch::rad_patch ... ok
test commands::patch::rad_patch_ahead_behind ... ok
test commands::patch::rad_patch_change_base ... ok
test commands::patch::rad_patch_checkout ... ok
test commands::init::rad_init_sync_timeout ... ok
test commands::init::rad_init_sync_and_clone ... ok
test commands::patch::rad_patch_detached_head ... ok
test commands::patch::rad_patch_checkout_revision ... ok
test commands::patch::rad_patch_diff ... ok
test commands::patch::rad_patch_draft ... ok
test commands::patch::rad_patch_checkout_force ... ok
test commands::patch::rad_patch_edit ... ok
test commands::patch::rad_patch_fetch_2 ... ok
test commands::patch::rad_patch_merge_draft ... ok
test commands::patch::rad_patch_fetch_1 ... ok
test commands::patch::rad_patch_magic_push ... ok
test commands::patch::rad_patch_delete ... ok
test commands::patch::rad_patch_merge_into_canonical_ref_branch ... ok
test commands::patch::rad_patch_merge_wrong_branch ... ok
test commands::patch::rad_patch_merge_on_first_push ... ok
test commands::patch::rad_patch_merge_unauthorized_branch ... ok
test commands::patch::rad_patch_open_explore ... ok
test commands::patch::rad_patch_revert_merge ... ok
test commands::patch::rad_patch_revert_custom_branch ... ok
test commands::patch::rad_patch_update ... ok
test commands::patch::rad_patch_review_no_options ... ok
test commands::patch::rad_patch_via_push ... ok
test commands::patch::rad_review_by_hunk ... ok
test commands::policy::rad_block ... ok
test commands::policy::rad_seed_and_follow ... ok
test commands::policy::rad_seed_policy_allow_no_scope ... ok
test commands::policy::rad_seed_scope ... ok
test commands::policy::rad_unseed ... ok
test commands::policy::rad_seed_many ... ok
test commands::policy::rad_unseed_many ... ok
test commands::sigpipe::config ... ok
test commands::sigpipe::help ... ok
test commands::sigpipe::rad_self ... ok
test commands::patch::rad_push_and_pull_patches ... ok
test commands::remote::rad_remote ... ok
test commands::sync::rad_sync_without_node ... ok
test commands::sync::rad_sync ... ok
test commands::utility::framework_home ... ok
test commands::utility::rad_auth ... ok
test commands::utility::rad_auth_errors ... ok
test commands::patch::rad_patch_pull_update ... ok
test commands::utility::rad_config ... ok
test commands::utility::rad_diff ... ok
test commands::utility::rad_clean ... ok
test commands::utility::rad_help ... ok
test commands::utility::rad_inspect ... ok
test commands::utility::rad_key_mismatch ... ok
test commands::utility::rad_self ... ok
test commands::utility::rad_warn_ipv6 ... ok
test commands::utility::rad_warn_old_nodes ... ok
test commands::watch::rad_watch ... ok
test commands::sync::rad_fetch ... ok
test rad_remote ... ok
test commands::sync::test_replication_via_seed ... ok
test commands::workflow::rad_workflow ... ok
test commands::utility::rad_fork ... ok
test result: ok. 123 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 75.10s
Running unittests src/lib.rs (target/debug/deps/radicle_cli_test-0f84e04a8baf6958)
running 3 tests
test tests::test_parse ... ok
test tests::test_run ... ok
test tests::test_example_spaced_brackets ... ok
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_cob-392ff6d095449664)
running 9 tests
test object::tests::test_serde ... ok
test tests::git::roundtrip ... ok
test tests::git::list_cobs ... ok
test tests::invalid_parse_refstr ... ok
test type_name::test::invalid_typenames ... ok
test type_name::test::valid_typenames ... ok
test tests::git::update_cob ... ok
test tests::parse_refstr ... ok
test tests::git::traverse_cobs ... ok
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
Running unittests src/lib.rs (target/debug/deps/radicle_core-52c2d0f8c19c6524)
running 4 tests
test repo::test::invalid ... ok
test repo::test::valid ... ok
test repo::test::assert_prop_roundtrip_parse ... ok
test repo::serde_impls::test::assert_prop_roundtrip_serde_json ... ok
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_crypto-296ceac40b7fe69b)
running 11 tests
test ssh::agent::test::test_agent_encoding_remove ... ok
test ssh::agent::test::test_agent_encoding_sign ... ok
test ssh::fmt::test::test_key ... ok
test ssh::fmt::test::test_fingerprint ... ok
test ssh::keystore::tests::test_init_no_passphrase ... ok
test tests::prop_encode_decode ... ok
test tests::test_e25519_dh ... ok
test tests::test_encode_decode ... ok
test tests::prop_key_equality ... ok
test ssh::keystore::tests::test_signer ... ok
test ssh::keystore::tests::test_init_passphrase ... ok
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.82s
Running unittests src/lib.rs (target/debug/deps/radicle_dag-e10cdde88570a8e0)
running 20 tests
test tests::test_contains ... ok
test tests::test_cycle ... ok
test tests::test_dependencies ... ok
test tests::test_diamond ... ok
test tests::test_fold_diamond ... ok
test tests::test_fold_multiple_roots ... ok
test tests::test_fold_reject ... ok
test tests::test_fold_sorting_1 ... ok
test tests::test_fold_sorting_2 ... ok
test tests::test_complex ... ok
test tests::test_get ... ok
test tests::test_is_empty ... ok
test tests::test_len ... ok
test tests::test_merge_1 ... ok
test tests::test_prune_1 ... ok
test tests::test_merge_2 ... ok
test tests::test_prune_2 ... ok
test tests::test_prune_by_sorting ... ok
test tests::test_remove ... ok
test tests::test_siblings ... ok
test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_fetch-e17694dc2fcafc83)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_git_metadata-41b02b9ef3e2236d)
running 24 tests
test commit::parse::test::error::invalid_committer ... ok
test commit::parse::test::error::invalid_author ... ok
test commit::parse::test::error::invalid_format_continuation_without_preceding_header ... ok
test commit::parse::test::error::invalid_parent ... ok
test commit::parse::test::error::missing_header_body_separator ... ok
test commit::parse::test::error::missing_author ... ok
test commit::parse::test::error::invalid_tree ... ok
test commit::parse::test::error::missing_committer ... ok
test commit::parse::test::error::missing_tree_empty_header ... ok
test commit::parse::test::error::missing_tree_wrong_first_line ... ok
test commit::parse::test::success::commit_gpgsig_is_preserved_and_strip_removes_it ... ok
test commit::parse::test::success::commit_last_paragraph_kept_in_message_when_not_all_trailers ... ok
test commit::parse::test::success::commit_with_extra_headers ... ok
test commit::parse::test::success::commit_with_multiline_gpgsig ... ok
test commit::parse::test::success::commit_with_single_parent ... ok
test commit::parse::test::success::commit_with_trailers ... ok
test commit::parse::test::success::merge_commit ... ok
test commit::parse::test::success::root_commit ... ok
test commit::parse::test::success::roundtrip ... ok
test commit::parse::test::unit::body_last_paragraph_not_trailers_stays_in_message ... ok
test commit::parse::test::unit::body_no_paragraph_separator_means_no_trailers ... ok
test commit::parse::test::unit::trailers_accepts_empty_input ... ok
test commit::parse::test::unit::trailers_rejects_invalid_token_chars ... ok
test commit::parse::test::unit::trailers_rejects_line_without_separator ... ok
test result: ok. 24 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_git_ref_format-2868a65b3ff2c590)
running 9 tests
test test::component ... ok
test test::component_invalid - should panic ... ok
test test::pattern ... ok
test test::qualified ... ok
test test::qualified_invalid - should panic ... ok
test test::refname ... ok
test test::qualified_pattern ... ok
test test::refname_invalid - should panic ... ok
test test::qualified_pattern_invalid - should panic ... ok
test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_localtime-ec55a7767b981c91)
running 1 test
test serde_impls::test::test_localtime ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_log-aa8a5607eeb05b0d)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_node-c9b6378e712e7c83)
running 84 tests
test reactor::timer::tests::test_next ... ok
test reactor::timer::tests::test_wake ... ok
test reactor::timer::tests::test_wake_exact ... ok
test control::tests::test_control_socket ... ok
test control::tests::test_seed_unseed ... ok
test fingerprint::tests::matching ... ok
test tests::announcement_rebroadcast ... ok
test tests::announcement_rebroadcast_timestamp_filtered ... ok
test tests::announcement_rebroadcast_duplicates ... ok
test tests::connection_kept_alive ... ok
test tests::announcement_relay ... ok
test tests::disconnecting_unresponsive_peer ... ok
test tests::e2e::fetch_does_not_contain_rad_sigrefs_parent ... ok
test tests::e2e::missing_default_branch ... ok
test tests::e2e::missing_delegate_default_branch ... ok
test tests::e2e::test_block_prevents_connection ... ok
test tests::e2e::test_block_active_connection ... ok
test tests::e2e::test_block_prevents_fetch ... ok
test tests::e2e::test_background_foreground_fetch ... ok
test tests::e2e::test_catchup_on_refs_announcements ... ok
test tests::e2e::test_channel_reader_limit ... ok
test tests::e2e::test_clone ... ok
test tests::e2e::test_connection_crossing ... ok
test tests::e2e::test_dont_fetch_owned_refs ... ok
test tests::e2e::test_fetch_emits_canonical_ref_update_partial_glob ... ok
test tests::e2e::test_concurrent_fetches ... ok
test tests::e2e::test_fetch_followed_remotes ... ok
test tests::e2e::test_fetch_preserve_owned_refs ... ok
test tests::e2e::test_fetch_unseeded ... ok
test tests::e2e::test_fetch_up_to_date ... ok
test tests::announcement_message_amplification ... ok
test tests::e2e::test_fetch_emits_canonical_ref_update ... ok
test tests::e2e::test_inventory_sync_basic ... ok
test tests::e2e::test_large_fetch ... ok
test tests::e2e::test_migrated_clone ... ok
test tests::e2e::test_missing_remote ... ok
test tests::e2e::test_multiple_offline_inits ... ok
test tests::e2e::test_non_fast_forward_identity_doc ... ok
test tests::e2e::test_non_fast_forward_sigrefs ... ok
test tests::e2e::test_outdated_delegate_sigrefs ... ok
test tests::e2e::test_outdated_sigrefs ... ok
test tests::e2e::test_replication ... ok
test tests::e2e::test_replication_invalid ... ok
test tests::e2e::test_inventory_sync_bridge ... ok
test tests::e2e::test_inventory_sync_ring ... ok
test tests::fetch_missing_inventory_on_gossip ... ok
test tests::fetch_missing_inventory_on_schedule ... ok
test tests::e2e::test_inventory_sync_star ... ok
test tests::inventory_decode ... ok
test tests::inbound_connection ... ok
test tests::e2e::test_replication_ref_in_sigrefs ... ok
test tests::init_and_seed ... ok
test tests::inventory_relay ... ok
test tests::inventory_relay_bad_timestamp ... ok
test tests::inventory_sync ... ok
test tests::maintain_connections_failed_attempt ... ok
test tests::maintain_connections_same_second_loop ... ok
test tests::maintain_connections_transient ... ok
test tests::maintain_connections ... ok
test tests::orphaned_fetch_blocks_repo_from_all_nodes ... ok
test tests::outbound_connection ... ok
test tests::persistent_peer_connect ... ok
test tests::persistent_peer_reconnect_attempt ... ok
test tests::persistent_peer_reconnect_success ... ok
test tests::ping_response ... ok
test tests::queued_fetch_from_ann_same_rid ... ok
test tests::queued_fetch_from_command_same_rid ... ok
test tests::queued_fetch_max_capacity ... ok
test tests::redundant_connect ... ok
test tests::refs_announcement_fetch_trusted_no_inventory ... ok
test tests::refs_announcement_followed ... ok
test tests::refs_announcement_no_subscribe ... ok
test tests::refs_announcement_offline ... ok
test tests::inventory_pruning ... ok
test tests::refs_synced_event ... ok
test tests::refs_announcement_relay_private ... ok
test tests::refs_announcement_relay_public ... ok
test wire::test::test_inventory_ann_with_extension ... ok
test wire::test::test_pong_message_with_extension ... ok
test tests::seeding ... ok
test tests::seed_repo_subscribe ... ok
test wire::test::worker_result_clears_active_when_peer_connected ... ok
test wire::test::worker_result_clears_active_when_peer_disconnecting ... ok
test tests::prop_inventory_exchange_dense ... ok
test result: ok. 84 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.44s
Running unittests src/main.rs (target/debug/deps/radicle_node-f7d71377112a14d2)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_oid-d77c438957c24183)
running 10 tests
test fmt::test::fixture ... ok
test fmt::test::zero ... ok
test fmt::test::git2 ... ok
test fmt::test::gix ... ok
test git2::test::zero ... ok
test gix::test::zero ... ok
test str::test::fixture ... ok
test str::test::zero ... ok
test str::test::git2_roundtrip ... ok
test str::test::gix_roundtrip ... ok
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_protocol-50f543c547460309)
running 100 tests
test deserializer::test::test_decode_next ... ok
test deserializer::test::test_unparsed ... ok
test deserializer::test::prop_decode_next ... ok
test fetcher::service::tests::test_fetch_coalescing_different_refs ... ok
test fetcher::test::queue::properties::capacity::bounded ... ok
test fetcher::test::queue::properties::capacity::rejection ... ok
test fetcher::test::queue::properties::dequeue::empty_queue_returns_none ... ok
test fetcher::test::queue::properties::dequeue::enables_reenqueue ... ok
test fetcher::test::queue::properties::dequeue::drained_queue_returns_none ... ok
test fetcher::test::queue::properties::capacity::capacity_reached_returns_same_item ... ok
test fetcher::test::queue::properties::capacity::restored_after_dequeue ... ok
test fetcher::test::queue::properties::fifo::interleaved_operations ... ok
test fetcher::test::queue::properties::fifo::ordering ... ok
test fetcher::test::queue::properties::equality::reflexive ... ok
test fetcher::test::queue::properties::merge::different_rid_accepted ... ok
test fetcher::test::queue::properties::merge::combines_refs ... ok
test fetcher::test::queue::properties::equality::transitive ... ok
test fetcher::test::queue::properties::merge::longer_timeout_preserved ... ok
test fetcher::test::queue::properties::merge::does_not_increase_queue_length ... ok
test fetcher::test::queue::properties::equality::symmetric ... ok
test fetcher::test::queue::unit::capacity_takes_precedence_over_merge_for_new_items ... ok
test fetcher::test::queue::unit::empty_refs_items_can_be_equal ... ok
test fetcher::test::queue::unit::max_timeout_accepted ... ok
test fetcher::test::queue::unit::merge_preserves_position_in_queue ... ok
test fetcher::test::queue::unit::zero_timeout_accepted ... ok
test fetcher::test::state::command::cancel::cancellation_is_isolated ... ok
test fetcher::test::state::command::cancel::non_existent_returns_unexpected ... ok
test fetcher::test::state::command::cancel::ongoing_and_queued ... ok
test fetcher::test::state::command::cancel::single_ongoing ... ok
test fetcher::test::state::command::fetch::fetch_after_previous_completed ... ok
test fetcher::test::state::command::fetch::fetch_at_capacity_enqueues ... ok
test fetcher::test::state::command::fetch::fetch_different_repo_same_node_within_capacity ... ok
test fetcher::test::state::command::fetch::fetch_duplicate_returns_already_fetching ... ok
test fetcher::test::state::command::fetch::fetch_queue_merge_empty_refs_fetches_all ... ok
test fetcher::test::state::command::fetch::fetch_queue_merge_takes_longer_timeout ... ok
test fetcher::test::state::command::fetch::fetch_queue_merges_already_queued ... ok
test fetcher::test::state::command::fetch::fetch_queue_rejected_capacity_reached ... ok
test fetcher::test::state::command::fetch::fetch_same_repo_different_nodes_queues_second ... ok
test fetcher::test::state::command::fetch::fetch_same_repo_different_refs_enqueues ... ok
test fetcher::test::state::command::fetch::fetch_start_first_fetch_for_node ... ok
test fetcher::test::state::command::fetched::complete_one_of_multiple ... ok
test fetcher::test::state::command::fetched::complete_single_ongoing ... ok
test fetcher::test::state::command::fetched::complete_then_dequeue_fifo ... ok
test fetcher::test::state::command::fetched::non_existent_returns_not_found ... ok
test fetcher::test::state::command::fetched::stale_from_does_not_clear_active ... ok
test fetcher::test::state::concurrent::fetched_then_cancel ... ok
test fetcher::test::state::concurrent::interleaved_operations ... ok
test fetcher::test::queue::properties::merge::succeed_when_at_capacity ... ok
test fetcher::test::state::config::min_queue_size ... ok
test fetcher::test::state::dequeue::cannot_dequeue_while_node_at_capacity ... ok
test fetcher::test::state::dequeue::empty_queue_returns_none ... ok
test fetcher::test::state::dequeue::maintains_fifo_order ... ok
test fetcher::test::state::invariant::queue_integrity_after_merge ... ok
test fetcher::test::queue::properties::merge::empty_refs_fetches_all ... ok
test fetcher::test::state::multinode::independent_queues ... ok
test service::filter::test::compatible ... ok
test service::filter::test::test_parameters ... ok
test fetcher::test::queue::properties::merge::same_rid_merges_anywhere_in_queue ... ok
test service::gossip::store::test::test_announced ... ok
test service::limiter::test::test_limiter_different_rates ... ok
test service::filter::test::test_sizes ... ok
test service::limiter::test::test_limiter_multi ... ok
test service::limiter::test::test_limiter_refill ... ok
test fetcher::test::state::config::high_concurrency ... ok
test service::message::tests::test_inventory_limit ... ok
test service::message::tests::test_ref_remote_limit ... ok
test wire::frame::test::test_encode_git_large ... ok
test wire::frame::test::test_stream_id ... ok
test fetcher::test::state::multinode::high_count ... ok
test wire::message::tests::prop_roundtrip_address ... ok
test service::message::tests::prop_refs_announcement_signing ... ok
test wire::message::tests::prop_zero_bytes_encode_decode ... ok
test wire::message::tests::test_inv_ann_max_size ... ok
test wire::message::tests::test_node_ann_max_size ... ok
test wire::message::tests::test_ping_encode_size_overflow - should panic ... ok
test wire::message::tests::test_pingpong_encode_max_size ... ok
test wire::message::tests::test_pong_encode_size_overflow - should panic ... ok
test service::message::tests::test_node_announcement_validate ... ok
test wire::tests::prop_oid ... ok
test wire::tests::prop_roundtrip_filter ... ok
test wire::message::tests::prop_roundtrip_message ... ok
test wire::tests::prop_roundtrip_refs ... ok
test wire::tests::prop_roundtrip_repoid ... ok
test wire::tests::prop_roundtrip_tuple ... ok
test wire::tests::prop_roundtrip_u16 ... ok
test wire::tests::prop_roundtrip_u32 ... ok
test wire::tests::prop_roundtrip_u64 ... ok
test wire::tests::prop_roundtrip_vec ... ok
test wire::tests::prop_signature ... ok
test wire::tests::prop_string ... ok
test wire::tests::test_alias ... ok
test wire::tests::test_bounded_vec_limit ... ok
test wire::tests::test_filter_invalid ... ok
test wire::tests::test_string ... ok
test wire::varint::test::prop_roundtrip_varint ... ok
test wire::varint::test::test_encode_overflow - should panic ... ok
test wire::varint::test::test_encoding ... ok
test wire::tests::prop_roundtrip_publickey ... ok
test wire::message::tests::test_refs_ann_max_size ... ok
test wire::message::tests::prop_message_decoder ... ok
test result: ok. 100 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.96s
Running unittests src/main.rs (target/debug/deps/git_remote_rad-55b21a579ee821af)
running 12 tests
test protocol::tests::test_capabilities ... ok
test protocol::tests::test_fetch ... ok
test protocol::tests::test_empty ... ok
test protocol::tests::test_fetch_whitespace ... ok
test protocol::tests::test_invalid ... ok
test protocol::tests::test_list ... ok
test protocol::tests::test_list_for_push ... ok
test protocol::tests::test_option ... ok
test protocol::tests::test_option_whitespace_preservation ... ok
test protocol::tests::test_push ... ok
test protocol::tests::test_push_delete ... ok
test protocol::tests::test_push_force ... ok
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/main.rs (target/debug/deps/radicle_schemars-e05437f3e490439a)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_signals-e91beff5378165d8)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_systemd-77e26f6a607513aa)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_term-afa03b1828121040)
running 22 tests
test ansi::tests::colors_disabled ... ok
test ansi::tests::no_color_disables_colors_not_styles ... ok
test ansi::tests::colors_enabled ... ok
test cell::test::test_width ... ok
test ansi::tests::wrapping ... ok
test element::test::test_spaced ... ok
test element::test::test_truncate ... ok
test table::test::test_table_border ... ok
test element::test::test_width ... ok
test table::test::test_table ... ok
test table::test::test_table_truncate ... ok
test table::test::test_table_border_truncated ... ok
test table::test::test_table_unicode ... ok
test table::test::test_table_border_maximized ... ok
test table::test::test_truncate ... ok
test table::test::test_table_unicode_truncate ... ok
test textarea::test::test_wrapping_code_block ... ok
test textarea::test::test_wrapping ... ok
test vstack::test::test_vstack ... ok
test vstack::test::test_vstack_maximize ... ok
test textarea::test::test_wrapping_fenced_block ... ok
test textarea::test::test_wrapping_paragraphs ... ok
test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_windows-942926f7348a8563)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle
running 1 test
test crates/radicle/src/cob/patch/encoding/review.rs - cob::patch::encoding::review::Review (line 23) ... ignored
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cli
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cli_test
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_cob
running 1 test
test crates/radicle-cob/src/backend/stable.rs - backend::stable::with_advanced_timestamp (line 56) ... ignored
test result: ok. 0 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.00s
all doctests ran in 0.08s; merged doctests compilation took 0.08s
Doc-tests radicle_core
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_crypto
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_dag
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_fetch
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_git_metadata
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_git_ref_format
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_localtime
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_log
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_node
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_oid
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_protocol
running 6 tests
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::truncate (line 50) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::push (line 122) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::max (line 96) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::collect_from (line 30) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::with_capacity (line 66) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::unbound (line 149) ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
all doctests ran in 0.38s; merged doctests compilation took 0.37s
Doc-tests radicle_signals
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_systemd
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Doc-tests radicle_term
running 1 test
test crates/radicle-term/src/table.rs - table (line 4) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
all doctests ran in 0.18s; merged doctests compilation took 0.17s
Doc-tests radicle_windows
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Exit code: 0
{
"response": "finished",
"result": "success"
}