rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood3f81e83d3624dda5ab162cc1ce1a107a7b9960bf
{
"request": "trigger",
"version": 1,
"event_type": "patch",
"repository": {
"id": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"name": "heartwood",
"description": "Radicle Heartwood Protocol & Stack",
"private": false,
"default_branch": "master",
"delegates": [
"did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT",
"did:key:z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Updated",
"patch": {
"id": "63b4e1d9046a2af75401f74234d7fc18b447109d",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"title": "Canonical Symbolic References",
"state": {
"status": "open",
"conflicts": []
},
"before": "080790d84eb64504406e8f4d309e9049bdfa89ad",
"after": "3f81e83d3624dda5ab162cc1ce1a107a7b9960bf",
"commits": [
"3f81e83d3624dda5ab162cc1ce1a107a7b9960bf"
],
"target": "080790d84eb64504406e8f4d309e9049bdfa89ad",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "63b4e1d9046a2af75401f74234d7fc18b447109d",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Extend the payload `xyz.radicle.crefs` to additionally support creating symbolic references via the member \"symbolic\".",
"base": "86472fdccbf95d08d0184776ee1ca75d01caf2c8",
"oid": "0d8ccb51101df44aa643c14e421f0a8f5a1aca53",
"timestamp": 1758036727
},
{
"id": "a8f4547661b3e0c0ae87a7b2bf10bac784529d42",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "First working revision.",
"base": "86472fdccbf95d08d0184776ee1ca75d01caf2c8",
"oid": "4910c5f03beefe20d7a1dea9e0c986de867987b5",
"timestamp": 1758063904
},
{
"id": "4728a5335d735afa5c6a0427bd88a35f93c7b8fa",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "REVIEW\n\nSuper nice set of changes, and seems to fit so nicely into the canonical\nreference system!\n\nAppreciate the type safety too :)\n\nLeft some bits of feedback, but all-in-all I'm very happy with these changes.",
"base": "86472fdccbf95d08d0184776ee1ca75d01caf2c8",
"oid": "cc99c8cc509107757916307fdc5f29210ef70114",
"timestamp": 1758111930
},
{
"id": "61f41e3e3bf3469acd72b9b3f237bb29356f328f",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Work in Fintan's review.",
"base": "86472fdccbf95d08d0184776ee1ca75d01caf2c8",
"oid": "72584651f1818dfc2e9759d4f4afa60ad0ada357",
"timestamp": 1758117424
},
{
"id": "4f8b72024cc6e070f6e8324292b8205536f6f924",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Rebase",
"base": "7b00bf2e3ac5e83eab262182bf51a5ede656145c",
"oid": "3324ebbb01151e6f0db951155d342a1782c27f95",
"timestamp": 1758120326
},
{
"id": "e4e142e1b405905ca7219e1d2534619408104095",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Handle interactions between rules and symrefs, and cyclic symrefs.",
"base": "e70850cb36c5f08d2d8714017d5404dde34deefa",
"oid": "902d99f2131f8420f2a8a9c70f645f69e13cfbf1",
"timestamp": 1758459092
},
{
"id": "6a1155bceb7d3ca55b39311848111f8fdc1f1552",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "REVIEW\n\nSee commits for review suggestions.\n\nLooking really good and clean still!",
"base": "e70850cb36c5f08d2d8714017d5404dde34deefa",
"oid": "ce4864fc46c4463b6aeabb79b0712bcaf9987bdf",
"timestamp": 1758559598
},
{
"id": "52de3142d005a0d934cf6d84f3dab33f2b94dcc0",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Squash in Fintan's review, rename tests as mentioned on Zulip, improve docs on `Doc::canonical_refs`.",
"base": "e70850cb36c5f08d2d8714017d5404dde34deefa",
"oid": "0891ad955e8a68b689b56a1b5e1a9e1077147586",
"timestamp": 1758614851
},
{
"id": "d76a072ff1259a4a1e584e93d5e4eb47a1ff3d27",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Rebase",
"base": "ed8b086045ee5d7bd1327f579de7861a1cf49e3b",
"oid": "0b0f73d2b39088bbfeb30c496e870b27c915a81b",
"timestamp": 1758725112
},
{
"id": "17797c5586de8002dbd28d8c647ebc9268430ee0",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Rebase",
"base": "4787b53b1e85d8052744fc77e4160e4d90e46d0f",
"oid": "d02c4c127a1ff0a8a2d56c8dcad3d815b6cd9427",
"timestamp": 1759255430
},
{
"id": "9956ae65550991f8b8bed09349588e828e8099c1",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Rebase",
"base": "ee49e28766ce7c703b95e22d177cce046072f03d",
"oid": "79f3230dd0d29fbf79d931a9adea19855d5f7448",
"timestamp": 1759333073
},
{
"id": "785d6bf241783c872f468b25c030686ecc9f812b",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Push broken rebase. Will fix in future revision.",
"base": "c06b00e330d82c8b8221cc8f8776c883208d159f",
"oid": "b438d5e5cb8e13817aa6db3b6e2e1b2915f71c43",
"timestamp": 1771121329
},
{
"id": "80f4aaecdea67b0d1588f7ad6de8b4c6e62d375e",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Rebase",
"base": "d9915d275fd07d20db08cf7d3488f8650e66b88a",
"oid": "50d1ef9c3e793ad084b63719869e915d7bdfa539",
"timestamp": 1773957804
},
{
"id": "9336db89237741cf36ac82b899c3daabe35d0fde",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Fixes, stricter validation.",
"base": "80c1bba76f432e70d6e766fe750bea70554cfe86",
"oid": "3dc532fd4038ec5179e642dd6f132cce5667626d",
"timestamp": 1775764455
},
{
"id": "84b9f1f4eb20bb10d78e70c5a108a52b185533e0",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Rebase and add a CLI test.",
"base": "547a753768b73f0a375f9648ba3e057a4f650e3a",
"oid": "259b4d37257e5b886696b3b976544529cfceccf6",
"timestamp": 1776275398
},
{
"id": "e7649fcac7abefbe21efb751812f83e72b53f89b",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "REVIEW",
"base": "547a753768b73f0a375f9648ba3e057a4f650e3a",
"oid": "18342392a0b51acb997b2769db6fbcf27471f229",
"timestamp": 1776331835
},
{
"id": "b1884c93eec154fac23aaef2a58bca38c96715b1",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "REVIEW: Tidy line endings and drop superfluous 'default'\n\n\nREVIEW: dropped 'and'",
"base": "547a753768b73f0a375f9648ba3e057a4f650e3a",
"oid": "c7f566d65d2b71a96fb36e0d6bb6b998570a50fa",
"timestamp": 1776351326
},
{
"id": "9ae34251f951f65c3a53979afbb1be8374e3379e",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "REVIEW\n\nFurther improve the API so that callers do not need to think about\nRefString vs Qualified.",
"base": "547a753768b73f0a375f9648ba3e057a4f650e3a",
"oid": "91e80949a430cc69d529edda08764aec4221c25e",
"timestamp": 1776425629
},
{
"id": "a61288c6cdab19a6e685528358a48915dd249aa8",
"author": {
"id": "did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz",
"alias": "lorenz"
},
"description": "Squash Fintan's review, polish just slightly, rebase.",
"base": "080790d84eb64504406e8f4d309e9049bdfa89ad",
"oid": "3f81e83d3624dda5ab162cc1ce1a107a7b9960bf",
"timestamp": 1778093748
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "ffadd987-7052-4a0f-8dfd-4bffe319d638"
},
"info_url": "https://cci.rad.levitte.org//ffadd987-7052-4a0f-8dfd-4bffe319d638.html"
}
Started at: 2026-05-06 20:55:54.458103+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/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 161 issues · 42 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 63b4e1d9046a2af75401f74234d7fc18b447109d
✓ Switched to branch patch/63b4e1d at revision a61288c
✓ Branch patch/63b4e1d setup to track rad/patches/63b4e1d9046a2af75401f74234d7fc18b447109d
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 3f81e83d3624dda5ab162cc1ce1a107a7b9960bf
HEAD is now at 3f81e83d radicle/crefs: Support Symbolic References
Exit code: 0
$ rad patch show 63b4e1d9046a2af75401f74234d7fc18b447109d -p
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Title Canonical Symbolic References │
│ Patch 63b4e1d9046a2af75401f74234d7fc18b447109d │
│ Author lorenz z6MkkPv…WX5sTEz │
│ Head 3f81e83d3624dda5ab162cc1ce1a107a7b9960bf │
│ Base 080790d84eb64504406e8f4d309e9049bdfa89ad │
│ Branches patch/63b4e1d │
│ Commits ahead 1, behind 0 │
│ Status open │
│ │
│ Extend the payload `xyz.radicle.crefs` to additionally support creating symbolic │
│ references via the member "symbolic". │
├──────────────────────────────────────────────────────────────────────────────────┤
│ 3f81e83 radicle/crefs: Support Symbolic References │
├──────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 63b4e1d @ 0d8ccb5 by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision a8f4547 @ 4910c5f by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision 4728a53 @ cc99c8c by fintohaps z6Mkire…SQZ3voM 7 months ago │
│ ↑ Revision 61f41e3 @ 7258465 by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision 4f8b720 @ 3324ebb by fintohaps z6Mkire…SQZ3voM 7 months ago │
│ ↑ Revision e4e142e @ 902d99f by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision 6a1155b @ ce4864f by fintohaps z6Mkire…SQZ3voM 7 months ago │
│ ↑ Revision 52de314 @ 0891ad9 by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision d76a072 @ 0b0f73d by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision 17797c5 @ d02c4c1 by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision 9956ae6 @ 79f3230 by lorenz z6MkkPv…WX5sTEz 7 months ago │
│ ↑ Revision 785d6bf @ b438d5e by lorenz z6MkkPv…WX5sTEz 2 months ago │
│ ↑ Revision 80f4aae @ 50d1ef9 by lorenz z6MkkPv…WX5sTEz 1 month ago │
│ ↑ Revision 9336db8 @ 3dc532f by lorenz z6MkkPv…WX5sTEz 3 weeks ago │
│ ↑ Revision 84b9f1f @ 259b4d3 by lorenz z6MkkPv…WX5sTEz 3 weeks ago │
│ ↑ Revision e7649fc @ 1834239 by fintohaps z6Mkire…SQZ3voM 2 weeks ago │
│ ↑ Revision b1884c9 @ c7f566d by ade z6MkwGo…yS2aagA 2 weeks ago │
│ ↑ Revision 9ae3425 @ 91e8094 by fintohaps z6Mkire…SQZ3voM 2 weeks ago │
│ ↑ Revision a61288c @ 3f81e83 by lorenz z6MkkPv…WX5sTEz 8 seconds ago │
╰──────────────────────────────────────────────────────────────────────────────────╯
commit 3f81e83d3624dda5ab162cc1ce1a107a7b9960bf
Author: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
Date: Tue Sep 16 22:02:09 2025 +0200
radicle/crefs: Support Symbolic References
Canonical references can not be used to model symbolic references.
Relax this restriction by adding another member to the payload, named
"symbolic". Its key-value/name-target pairs then translate directly to
canonical symbolic references.
Care is taken to not allow circular references, and that there always
is a rule that could generate the target of a symbolic reference
(or a chain of symbolic references). Still, a symbolic reference may
dangle (for example when its target reference cannot be computed
because of divergence), but at least it can be prevented that a
symref *always* dangles, because there is no rule that would produce
its target.
Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb9920d1c..c3b0b56f3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -326,6 +326,8 @@ With the introduction of `clap`, this helped with the introduction of a command
environment variable `RAD_PASSPHRASE` (lower priority than the
credential). The identifier of the credential is
"xyz.radicle.node.passphrase".
+- Symbolic references can now be handled by canonical references by coding them
+ in the payload `xyz.radicle.crefs` under the key `symbolic`.
## Fixed Bugs
diff --git a/crates/radicle-cli/examples/git/git-push-canonical-branch.md b/crates/radicle-cli/examples/git/git-push-canonical-branch.md
new file mode 100644
index 000000000..25c51f39b
--- /dev/null
+++ b/crates/radicle-cli/examples/git/git-push-canonical-branch.md
@@ -0,0 +1,90 @@
+``` ~alice
+$ rad id update --title "Add canonical branch for releases" --payload xyz.radicle.crefs rules '{ "refs/heads/releases/*": { "threshold": 1, "allow": [ "did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk" ] }, "refs/tags/*": { "threshold": 1, "allow": "delegates" }, "refs/tags/qa/*": { "threshold": 1, "allow": "delegates" }}'
+✓ Identity revision [..] created
+╭────────────────────────────────────────────────────────────────────────╮
+│ Title Add canonical branch for releases │
+│ Revision 37a1aad231100cd206c49aed79e405ea2da9204b │
+│ Blob bbefd77cfeb456e500ad868c3b4effe1f7f818e2 │
+│ Author did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi │
+│ State active │
+│ Quorum no │
+├────────────────────────────────────────────────────────────────────────┤
+│ ✓ did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi alice (you) │
+│ ? did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk bob │
+╰────────────────────────────────────────────────────────────────────────╯
+
+@@ -1,26 +1,32 @@
+ {
+ "payload": {
+ "xyz.radicle.crefs": {
+ "rules": {
++ "refs/heads/releases/*": {
++ "allow": [
++ "did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk"
++ ],
++ "threshold": 1
++ },
+ "refs/tags/*": {
+ "allow": "delegates",
+- "threshold": 2
++ "threshold": 1
+ },
+ "refs/tags/qa/*": {
+ "allow": "delegates",
+ "threshold": 1
+ }
+ }
+ },
+ "xyz.radicle.project": {
+ "defaultBranch": "master",
+ "description": "Radicle Heartwood Protocol & Stack",
+ "name": "heartwood"
+ }
+ },
+ "delegates": [
+ "did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ "did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk"
+ ],
+ "threshold": 1
+ }
+```
+
+``` ~bob
+$ cd heartwood
+$ rad sync -f
+Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from the network, found 1 potential seed(s).
+✓ Target met: 1 seed(s)
+🌱 Fetched from z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
+$ rad id accept 37a1aad231100cd206c49aed79e405ea2da9204b -q
+```
+
+Bob immediately pushes a branch that matches the rule, thus populating and
+modifying the canonical namespace.
+
+``` ~bob
+$ git checkout -b releases/2
+$ git commit --allow-empty --message "Release notes for version 2"
+[releases/2 afec366] Release notes for version 2
+```
+
+``` ~bob (stderr)
+$ git push -u rad releases/2
+✓ Canonical reference refs/heads/releases/2 updated to target commit afec366785ed3651cdc66975c0fec41866c9ce62
+✓ Synced with 1 seed(s)
+To rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji/z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
+ * [new branch] releases/2 -> releases/2
+```
+
+``` ~alice
+$ rad sync -f
+Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from the network, found 1 potential seed(s).
+✓ Target met: 1 seed(s)
+🌱 Fetched from z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
+$ git ls-remote rad
+f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 HEAD
+f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/heads/master
+afec366785ed3651cdc66975c0fec41866c9ce62 refs/heads/releases/2
+f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/tags/qa/v2.1
+ac51a0746a5e8311829bc481202909a1e3acc0c2 refs/tags/v1.0-hotfix
+89f935f27a16f8ed97915ade4accab8fe48057aa refs/tags/v2.0
+```
diff --git a/crates/radicle-cli/examples/git/git-push-canonical-symbolic-ref.md b/crates/radicle-cli/examples/git/git-push-canonical-symbolic-ref.md
new file mode 100644
index 000000000..e14fb0ff3
--- /dev/null
+++ b/crates/radicle-cli/examples/git/git-push-canonical-symbolic-ref.md
@@ -0,0 +1,130 @@
+Bob overhears that the new name for the default branch is "main", not "master"
+as it used to be. To make tooling that expect "main" work, without the hassle
+of having to push to such branch manually, he opts to create a symbolic
+reference.
+
+``` ~bob
+$ cd heartwood
+$ rad id update --title "Add canonical symbolic ref" --payload xyz.radicle.crefs symbolic '{ "refs/heads/main": "refs/heads/master" }'
+✓ Identity revision [..] created
+╭────────────────────────────────────────────────────────────────────────╮
+│ Title Add canonical symbolic ref │
+│ Revision 62e2cb60c6df9ad9908b6697b5d126760a855484 │
+│ Blob b20de7b184673eb0d9227be17640c923d8ef3f3e │
+│ Author did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk │
+│ State active │
+│ Quorum no │
+├────────────────────────────────────────────────────────────────────────┤
+│ ✓ did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk bob (you) │
+│ ? did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi alice │
+╰────────────────────────────────────────────────────────────────────────╯
+
+@@ -1,32 +1,35 @@
+ {
+ "payload": {
+ "xyz.radicle.crefs": {
+ "rules": {
+ "refs/heads/releases/*": {
+ "allow": [
+ "did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk"
+ ],
+ "threshold": 1
+ },
+ "refs/tags/*": {
+ "allow": "delegates",
+ "threshold": 1
+ },
+ "refs/tags/qa/*": {
+ "allow": "delegates",
+ "threshold": 1
+ }
++ },
++ "symbolic": {
++ "refs/heads/main": "refs/heads/master"
+ }
+ },
+ "xyz.radicle.project": {
+ "defaultBranch": "master",
+ "description": "Radicle Heartwood Protocol & Stack",
+ "name": "heartwood"
+ }
+ },
+ "delegates": [
+ "did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi",
+ "did:key:z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk"
+ ],
+ "threshold": 1
+ }
+```
+
+Alice is happy with the new revision and accepts it.
+
+``` ~alice
+$ rad sync -f
+Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from the network, found 1 potential seed(s).
+✓ Target met: 1 seed(s)
+🌱 Fetched from z6Mkt67GdsW7715MEfRuP4pSZxJRJh6kj6Y48WRqVv4N1tRk
+$ rad id accept 62e2cb60c6df9ad9908b6697b5d126760a855484 -q
+```
+
+As usual, alice works on "master".
+
+``` ~alice
+$ git commit --allow-empty --message "Whew, new feature!"
+[master 4dc510d] Whew, new feature!
+```
+
+And updating the canonical reference for "master" also works as usual.
+
+``` ~alice (stderr)
+$ git push rad
+✓ Canonical reference refs/heads/master updated to target commit 4dc510ddea5fd66499d1d2e996b8a97c8d57be54
+✓ Synced with 1 seed(s)
+To rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji/z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
+ f2de534..4dc510d master -> master
+```
+
+Then, Alice is curious about the new symbolic reference.
+She inspects the remote and sees that indeed a new branch named "main" now exists.
+
+``` ~alice
+$ git ls-remote rad
+4dc510ddea5fd66499d1d2e996b8a97c8d57be54 HEAD
+4dc510ddea5fd66499d1d2e996b8a97c8d57be54 refs/heads/main
+4dc510ddea5fd66499d1d2e996b8a97c8d57be54 refs/heads/master
+afec366785ed3651cdc66975c0fec41866c9ce62 refs/heads/releases/2
+f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/tags/qa/v2.1
+ac51a0746a5e8311829bc481202909a1e3acc0c2 refs/tags/v1.0-hotfix
+89f935f27a16f8ed97915ade4accab8fe48057aa refs/tags/v2.0
+```
+
+Of course, she can also fetch it to her working copy as usual.
+
+``` ~alice (stderr)
+$ git fetch rad
+From rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji
+ * [new branch] main -> rad/main
+ * [new branch] releases/2 -> rad/releases/2
+ * [new tag] qa/v2.1 -> rad/tags/qa/v2.1
+ * [new tag] qa/v2.1 -> qa/v2.1
+```
+
+Bob fetches Alice's changes.
+
+``` ~bob
+$ rad sync -f
+Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from the network, found 1 potential seed(s).
+✓ Target met: 1 seed(s)
+🌱 Fetched from z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
+```
+
+And, sure enough, there is the new branch just as he wanted it.
+
+``` ~bob (stderr)
+$ git fetch rad
+From rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji
+ * [new branch] main -> rad/main
+ f2de534..4dc510d master -> rad/master
+```
+
+Note that neither Alice nor Bob pushed directly to "main".
diff --git a/crates/radicle-cli/tests/commands/git.rs b/crates/radicle-cli/tests/commands/git.rs
index a8b3c58c8..9ab6eb1e5 100644
--- a/crates/radicle-cli/tests/commands/git.rs
+++ b/crates/radicle-cli/tests/commands/git.rs
@@ -301,8 +301,12 @@ fn git_push_canonical_lightweight_tags() {
.unwrap();
}
+/// This test exercises a large surface of the "Canonical References" feature:
+/// - Annotated Tags
+/// - Branches
+/// - Symbolic References
#[test]
-fn git_push_canonical_annotated_tags() {
+fn git_push_canonical() {
let mut environment = Environment::new();
let alice = environment.node("alice");
let bob = environment.node("bob");
@@ -341,4 +345,40 @@ fn git_push_canonical_annotated_tags() {
)
.run()
.unwrap();
+
+ formula(
+ &environment.tempdir(),
+ "examples/git/git-push-canonical-branch.md",
+ )
+ .unwrap()
+ .home(
+ "alice",
+ environment.work(&alice),
+ [("RAD_HOME", alice.home.path().display())],
+ )
+ .home(
+ "bob",
+ environment.work(&bob),
+ [("RAD_HOME", bob.home.path().display())],
+ )
+ .run()
+ .unwrap();
+
+ formula(
+ &environment.tempdir(),
+ "examples/git/git-push-canonical-symbolic-ref.md",
+ )
+ .unwrap()
+ .home(
+ "alice",
+ environment.work(&alice),
+ [("RAD_HOME", alice.home.path().display())],
+ )
+ .home(
+ "bob",
+ environment.work(&bob),
+ [("RAD_HOME", bob.home.path().display())],
+ )
+ .run()
+ .unwrap();
}
diff --git a/crates/radicle-node/src/worker/fetch.rs b/crates/radicle-node/src/worker/fetch.rs
index 9e6ab905c..e51649e10 100644
--- a/crates/radicle-node/src/worker/fetch.rs
+++ b/crates/radicle-node/src/worker/fetch.rs
@@ -14,8 +14,7 @@ use radicle::prelude::RepoId;
use radicle::storage::git::Repository;
use radicle::storage::refs::RefsAt;
use radicle::storage::{
- ReadRepository, ReadStorage as _, RefUpdate, RemoteRepository, RepositoryError,
- WriteRepository as _,
+ ReadRepository, ReadStorage as _, RefUpdate, RemoteRepository, WriteRepository as _,
};
use radicle::{Storage, cob, git, node};
use radicle_fetch::git::refs::Applied;
@@ -128,15 +127,6 @@ impl Handle {
// points to a repository that is temporary and gets moved by [`mv`].
let repo = storage.repository(rid)?;
repo.set_identity_head()?;
- match repo.set_head_to_default_branch() {
- Ok(()) => {
- log::trace!(target: "worker", "Set HEAD successfully");
- }
- Err(RepositoryError::Quorum(e)) => {
- log::warn!(target: "worker", "Fetch could not set HEAD for {rid}: {e}")
- }
- Err(e) => return Err(e.into()),
- }
let canonical = match set_canonical_refs(&repo, &applied) {
Ok(updates) => updates.unwrap_or_default(),
@@ -346,8 +336,21 @@ fn set_canonical_refs(
repo: &Repository,
applied: &Applied,
) -> Result<Option<UpdatedCanonicalRefs>, error::Canonical> {
+ const LOG_MESSAGE: &str = "set-canonical-reference from fetch (radicle)";
+
let identity = repo.identity()?;
- let rules = identity.doc().canonical_refs()?.rules().clone();
+ let crefs = identity.doc().canonical_refs()?;
+
+ for (name, target) in crefs.symbolic().iter() {
+ if let Err(e) = repo.set_symbolic_ref(name, target, LOG_MESSAGE) {
+ log::warn!(
+ target: "worker",
+ "Failed to set canonical symbolic reference '{name}' → '{target}': {e}"
+ );
+ }
+ }
+
+ let rules = crefs.rules().clone();
let mut updated_refs = UpdatedCanonicalRefs::default();
let refnames = applied
@@ -389,12 +392,10 @@ fn set_canonical_refs(
refname, object, ..
}) => {
let oid = object.id();
- if let Err(e) = repo.backend.reference(
- refname.clone().as_str(),
- oid.into(),
- true,
- "set-canonical-reference from fetch (radicle)",
- ) {
+ if let Err(e) =
+ repo.backend
+ .reference(refname.clone().as_str(), oid.into(), true, LOG_MESSAGE)
+ {
log::warn!(
target: "worker",
"Failed to set canonical reference {refname}->{oid}: {e}"
diff --git a/crates/radicle-remote-helper/src/push.rs b/crates/radicle-remote-helper/src/push.rs
index 52eb8263f..1b264bd4b 100644
--- a/crates/radicle-remote-helper/src/push.rs
+++ b/crates/radicle-remote-helper/src/push.rs
@@ -258,6 +258,8 @@ pub(super) fn run(
git: &impl GitService,
node: &mut impl NodeSession,
) -> Result<Vec<String>, Error> {
+ const LOG_MESSAGE: &str = "set-canonical-reference from git-push (radicle)";
+
// Don't allow push if either of these conditions is true:
//
// 1. Our key is not in ssh-agent, which means we won't be able to sign the refs.
@@ -290,9 +292,6 @@ pub(super) fn run(
}
}
let delegates = stored.delegates()?;
- let identity = stored.identity()?;
- let project = identity.project()?;
- let canonical_ref = git::refs::branch(project.default_branch());
let mut set_canonical_refs: Vec<(git::fmt::Qualified, git::canonical::Object)> =
Vec::with_capacity(specs.len());
@@ -407,6 +406,8 @@ pub(super) fn run(
if !ok.is_empty() {
let _ = stored.sign_refs(&signer)?;
+ stored.set_canonical_symbolic_refs(LOG_MESSAGE)?;
+
for (refname, object) in &set_canonical_refs {
let oid = object.id();
let kind = object.object_type();
@@ -419,20 +420,11 @@ pub(super) fn run(
)
};
- // N.b. special case for handling the canonical ref, since it
- // creates a symlink to HEAD
- if *refname == canonical_ref {
- stored.set_head_to_default_branch()?;
- }
-
match stored.backend.refname_to_id(refname.as_str()) {
Ok(new) if oid != new => {
- stored.backend.reference(
- refname.as_str(),
- oid.into(),
- true,
- "set-canonical-reference from git-push (radicle)",
- )?;
+ stored
+ .backend
+ .reference(refname.as_str(), oid.into(), true, LOG_MESSAGE)?;
print_update();
}
Err(e) if e.code() == git::raw::ErrorCode::NotFound => {
diff --git a/crates/radicle/src/git/canonical.rs b/crates/radicle/src/git/canonical.rs
index d94350edd..ce49a0e48 100644
--- a/crates/radicle/src/git/canonical.rs
+++ b/crates/radicle/src/git/canonical.rs
@@ -12,6 +12,7 @@ mod voting;
pub mod effects;
pub mod protect;
pub mod rules;
+pub mod symbolic;
pub use rules::{MatchedRule, RawRule, Rules, ValidRule};
diff --git a/crates/radicle/src/git/canonical/protect.rs b/crates/radicle/src/git/canonical/protect.rs
index 4326da5e4..76ff12b5a 100644
--- a/crates/radicle/src/git/canonical/protect.rs
+++ b/crates/radicle/src/git/canonical/protect.rs
@@ -19,7 +19,7 @@ pub enum Error {
}
/// A witnesses that the inner reference-like value is not protected.
-#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize)]
+#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, Hash)]
#[repr(transparent)]
#[serde(transparent)]
pub(super) struct Unprotected<T: RefLike>(T);
@@ -42,6 +42,13 @@ impl<T: RefLike> Unprotected<T> {
pub fn into_inner(self) -> T {
self.0
}
+
+ /// Allows creation without any checking. Callers must ensure that
+ /// `reflike` is indeed unprotected!
+ #[inline]
+ const fn new_unchecked(reflike: T) -> Self {
+ Self(reflike)
+ }
}
impl<T: RefLike> AsRef<T> for Unprotected<T> {
@@ -50,6 +57,20 @@ impl<T: RefLike> AsRef<T> for Unprotected<T> {
}
}
+impl<T: RefLike> std::borrow::Borrow<T> for Unprotected<T> {
+ fn borrow(&self) -> &T {
+ &self.0
+ }
+}
+
+/// Enables looking up entries in a map keyed by `Unprotected<RefString>` using
+/// a `&RefStr`.
+impl std::borrow::Borrow<crate::git::fmt::RefStr> for Unprotected<crate::git::fmt::RefString> {
+ fn borrow(&self) -> &crate::git::fmt::RefStr {
+ self.0.as_ref()
+ }
+}
+
impl<'de, T: RefLike + serde::Deserialize<'de>> serde::Deserialize<'de> for Unprotected<T> {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
@@ -68,7 +89,10 @@ impl<T: RefLike + std::fmt::Display> std::fmt::Display for Unprotected<T> {
/// For types that are commonly used in conjunction with [`Unprotected`]
/// have some `impl`s and companion infallible injections.
mod impls {
- use crate::git::fmt::{RefString, refspec::QualifiedPattern};
+ use crate::git::{
+ fmt::{Qualified, RefStr, RefString, refname, refspec::QualifiedPattern},
+ refs::branch,
+ };
use super::*;
@@ -76,6 +100,33 @@ mod impls {
/// means to be [`RefLike`].
impl RefLike for RefString {}
+ impl Unprotected<RefString> {
+ /// The reference name `HEAD`.
+ // We would like to have a `pub const HEAD`, but
+ // [`crate::git::RefStr::from_str`] is private.
+ #[inline]
+ pub fn head() -> Self {
+ // Calling [`Unprotected::new_unchecked`] here is legal,
+ // because we know statically that `HEAD` is not protected.
+ Unprotected::new_unchecked(refname!("HEAD"))
+ }
+ }
+
+ /// [`Qualified`] is a restriction on [`RefString`].
+ impl RefLike for Qualified<'_> {}
+
+ impl Unprotected<Qualified<'_>> {
+ /// Construct a qualified reference name for given branch, i.e.,
+ /// return `/refs/heads/<name>`
+ pub fn branch(name: &RefStr) -> Self {
+ Self::new(branch(name)).expect("branches are never protected")
+ }
+
+ pub fn to_ref_string(&self) -> Unprotected<RefString> {
+ Unprotected::new_unchecked(self.0.to_ref_string())
+ }
+ }
+
/// A [`QualifiedPattern`] is [`RefLike`] in the sense that it matches a
/// (possibly infinite) set of [`crate::git::Qualified`].
impl RefLike for QualifiedPattern<'_> {}
diff --git a/crates/radicle/src/git/canonical/rules.rs b/crates/radicle/src/git/canonical/rules.rs
index a6a999669..1df5e4e03 100644
--- a/crates/radicle/src/git/canonical/rules.rs
+++ b/crates/radicle/src/git/canonical/rules.rs
@@ -386,6 +386,22 @@ impl From<Did> for Allowed {
}
}
+impl std::fmt::Display for Allowed {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ match self {
+ Allowed::Delegates => f.write_str("\"delegates\""),
+ Allowed::Set(dids) => {
+ let dids = dids
+ .iter()
+ .map(|did| did.to_string())
+ .collect::<Vec<_>>()
+ .join("\", \"");
+ f.write_fmt(format_args!("[\"{dids}\"]"))
+ }
+ }
+ }
+}
+
/// A marker `enum` that is used in a [`ValidRule`].
///
/// It ensures that a rule that has been deserialized, resolving the `delegates`
diff --git a/crates/radicle/src/git/canonical/symbolic.rs b/crates/radicle/src/git/canonical/symbolic.rs
new file mode 100644
index 000000000..23cb355e1
--- /dev/null
+++ b/crates/radicle/src/git/canonical/symbolic.rs
@@ -0,0 +1,754 @@
+//! Symbolic references, which link neither to nor from protected references.
+//! The prototypical example is `HEAD → refs/heads/main`.
+
+use indexmap::IndexMap;
+use serde::{Deserialize, Serialize};
+use thiserror::Error;
+
+use crate::git::fmt::Qualified;
+use crate::git::fmt::RefStr;
+use crate::git::fmt::RefString;
+
+use super::protect::Unprotected;
+
+/// A type alias for a [`RefString`] that has yet to be validated into a
+/// a symbolic reference name.
+pub type RawName = RefString;
+
+/// A type alias for a [`RefString`] that has yet to be validated into a
+/// symbolic reference target.
+pub type RawTarget = RefString;
+
+/// The target of a symbolic reference.
+///
+/// A target is either:
+/// - [`Direct`](Target::Direct): a concrete qualified reference
+/// (e.g. `refs/heads/main`).
+/// - [`Symbolic`](Target::Symbolic): another symbolic reference name
+/// (e.g. `MAIN`) that must itself resolve through the chain.
+#[derive(Clone, Debug, PartialEq, Eq)]
+pub enum Target {
+ /// A concrete qualified reference — the end of a chain.
+ Direct(Direct),
+ /// Another symbolic reference name — an intermediate link.
+ Symbolic(Symbolic),
+}
+
+impl AsRef<RefStr> for Target {
+ fn as_ref(&self) -> &RefStr {
+ match self {
+ Target::Direct(direct) => direct.0.as_ref(),
+ Target::Symbolic(symbolic) => symbolic.0.as_ref(),
+ }
+ }
+}
+
+/// A concrete qualified reference — the end of a chain.
+// `Unprotected` has `super` visibility, so `Direct` is used to allow `Target`
+// to be `pub`.
+#[derive(Clone, Debug, PartialEq, Eq)]
+pub struct Direct(Unprotected<Qualified<'static>>);
+
+impl Direct {
+ fn to_ref_string(&self) -> Unprotected<RefString> {
+ self.0.to_ref_string()
+ }
+}
+
+impl PartialEq<RefString> for Direct {
+ fn eq(&self, other: &RefString) -> bool {
+ **self.0.as_ref() == **other
+ }
+}
+
+impl AsRef<Qualified<'static>> for Direct {
+ fn as_ref(&self) -> &Qualified<'static> {
+ self.0.as_ref()
+ }
+}
+
+/// A concrete qualified reference — the end of a chain.
+// `Unprotected` has `super` visibility, so `Symbolic` is used to allow `Target`
+// to be `pub`.
+#[derive(Clone, Debug, PartialEq, Eq)]
+pub struct Symbolic(Unprotected<RefString>);
+
+impl AsRef<RefString> for Symbolic {
+ fn as_ref(&self) -> &RefString {
+ self.0.as_ref()
+ }
+}
+
+impl Target {
+ /// Returns the underlying reference as a `&RefStr`.
+ pub fn as_refstr(&self) -> &RefStr {
+ match self {
+ Target::Direct(q) => q.as_ref().as_ref(),
+ Target::Symbolic(s) => s.as_ref().as_ref(),
+ }
+ }
+
+ fn direct(d: Unprotected<Qualified<'static>>) -> Self {
+ Self::Direct(Direct(d))
+ }
+
+ fn symbolic(s: Unprotected<RefString>) -> Self {
+ Self::Symbolic(Symbolic(s))
+ }
+
+ /// Classify an [`Unprotected<RefString>`] as either
+ /// [`Direct`](Target::Direct) or [`Symbolic`](Target::Symbolic)
+ /// based on whether it is [`Qualified`].
+ ///
+ /// The [`Unprotected`] proof is preserved in the resulting variant.
+ fn classify(s: Unprotected<RefString>) -> Self {
+ match Qualified::from_refstr(s.as_ref()) {
+ // Safety: the Qualified is derived from an Unprotected string,
+ // so it is also unprotected.
+ Some(q) => Target::direct(
+ Unprotected::new(q.to_owned())
+ .expect("qualified derived from unprotected is unprotected"),
+ ),
+ None => Target::symbolic(s),
+ }
+ }
+}
+
+impl Serialize for Target {
+ fn serialize<S: serde::Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
+ serializer.serialize_str(self.as_refstr().as_str())
+ }
+}
+
+impl std::fmt::Display for Target {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_str(self.as_refstr().as_str())
+ }
+}
+
+/// Names of symbolic references are unprotected references.
+/// Requiring [`Unprotected`] makes symbolic references that link *from*
+/// protected references unrepresentable.
+pub(super) type Name = Unprotected<RefString>;
+
+impl std::cmp::Ord for Name {
+ fn cmp(&self, other: &Self) -> std::cmp::Ordering {
+ self.as_ref().cmp(other.as_ref())
+ }
+}
+
+impl std::cmp::PartialOrd for Name {
+ fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
+ Some(self.cmp(other))
+ }
+}
+
+/// Maintains an acyclic set of symbolic references.
+/// Note that dangling references are not detected.
+///
+/// Internally, targets are stored as [`Target`], which distinguishes
+/// direct (qualified) targets from symbolic (intermediate) ones. This
+/// means resolution and cycle-checking can pattern-match on the variant
+/// rather than re-parsing the string.
+///
+/// # Deserialization Order
+///
+/// Deserialization validates entries in iteration order via
+/// [`TryFrom<IndexMap>`]. This means deserialization only succeeds if
+/// symbolic reference whose target is another symbolic
+/// reference appears *after* that target in the JSON.
+/// For example,
+/// `{"MAIN": "refs/heads/master", "HEAD": "MAIN"}` is valid, but
+/// `{"HEAD": "MAIN", "MAIN": "refs/heads/master"}` is not.
+///
+/// To ensure that serialization and deserialization are inverses,
+/// we must ensure that insertion order and iteration order are the same.
+/// We do this by using [`IndexMap`] internally, which preserves this property,
+/// and enabling the feature `preserve_order` of the `serde_json` crate.
+///
+/// Normally, JSON objects are unordered (see [RFC 8259, Sec. 4]).
+/// Any compatible (de-)serializer must preserve key order.
+///
+/// [RFC 8259, Sec. 4]: <https://datatracker.ietf.org/doc/html/rfc8259#section-4>
+#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
+#[serde(try_from = "IndexMap<Name, Unprotected<RefString>>")]
+pub struct SymbolicRefs(IndexMap<Name, Target>);
+
+/// Read-only access.
+impl SymbolicRefs {
+ /// Returns an iterator over all contained symbolic references, as pairs
+ /// of their name and [`Target`].
+ pub fn iter(&self) -> impl Iterator<Item = (&RawName, &Target)> {
+ self.0.iter().map(|(name, target)| (name.as_ref(), target))
+ }
+
+ /// Returns an iterator over all contained symbolic references that
+ /// resolve to a direct (qualified) target. The yielded target is the
+ /// final [`Qualified`] reference after chasing through any intermediate
+ /// symbolic references.
+ pub fn iter_resolved(&self) -> impl Iterator<Item = (&RawName, &Qualified<'static>)> {
+ self.0.keys().filter_map(|name| {
+ self.resolve(name.as_ref())
+ .map(|target| (name.as_ref(), target))
+ })
+ }
+
+ /// Resolve a name through the chain of symbolic references until a
+ /// [`Target::Direct`] target is reached. Returns `None` if the
+ /// name is not in the map or if the chain dangles (ends at a
+ /// [`Target::Symbolic`] whose name is not a key).
+ fn resolve(&self, name: &RefString) -> Option<&Qualified<'static>> {
+ let mut current = self.0.get(name)?;
+ loop {
+ match current {
+ Target::Direct(q) => return Some(q.as_ref()),
+ Target::Symbolic(s) => match self.0.get(s.as_ref()) {
+ Some(next) => current = next,
+ None => return None,
+ },
+ }
+ }
+ }
+
+ /// Returns `true` if the set of symbolic references is empty.
+ pub fn is_empty(&self) -> bool {
+ self.0.is_empty()
+ }
+}
+
+/// Utilities for handling of `HEAD`.
+impl SymbolicRefs {
+ /// Construct [`SymbolicRefs`] for the single symbolic reference `HEAD`
+ /// targeting `/refs/heads/<branch_name>`.
+ // This exists to encapsulate [`super::protect::Unprotected`].
+ pub fn head(branch_name: &RefString) -> Self {
+ let mut result = Self::default();
+ result
+ .try_insert_unprotected(
+ Unprotected::head().to_owned(),
+ Unprotected::branch(branch_name).to_ref_string(),
+ )
+ .expect("not creating cycle");
+ result
+ }
+
+ /// Convenience method to get the resolved target of the `HEAD` reference.
+ /// Returns the final [`Qualified`] reference after chasing the chain.
+ /// See also [`SymbolicRefs::head`].
+ pub fn resolve_head(&self) -> Option<&Qualified<'static>> {
+ self.resolve(Unprotected::head().as_ref())
+ }
+}
+
+#[derive(Debug, Error)]
+pub enum InsertionError {
+ #[error("inserting symbolic reference '{name} → {target}' would create a cycle")]
+ Cyclic { name: RawName, target: RawName },
+
+ #[error(
+ "inserting symbolic reference '{name} → {target}' would result in a symbolic reference targeting an unqualified reference"
+ )]
+ TargetNotQualified { name: RawName, target: RawName },
+}
+
+/// Mutability.
+impl SymbolicRefs {
+ /// Insert a symbolic reference from the given `name` to the given `target`.
+ ///
+ /// Internally, this classifies the `target` into the [`Target`] and
+ /// delegates the insertion.
+ pub(super) fn try_insert_unprotected(
+ &mut self,
+ name: Name,
+ target: Unprotected<RefString>,
+ ) -> Result<(), InsertionError> {
+ self.insert(name, Target::classify(target))
+ }
+
+ /// Check whether `name` is reachable from `start` by chasing through
+ /// the map. Used to detect cycles before insertion.
+ ///
+ /// Unlike [`resolve`](SymbolicRefs::resolve), this chases through
+ /// *all* entries regardless of whether the target is [`Direct`](Target::Direct)
+ /// or [`Symbolic`](Target::Symbolic), since a qualified ref string can
+ /// also be a key in the map and thus part of a cycle.
+ fn is_reachable_from(&self, start: &RefString, name: &Name) -> bool {
+ let name = name.as_ref();
+ if start == name {
+ return true;
+ }
+ let mut current: &RefStr = start;
+ loop {
+ match self.0.get(current) {
+ None => return false,
+ Some(target) => {
+ let next = target.as_refstr();
+ if *next == **name {
+ return true;
+ }
+ current = next;
+ }
+ }
+ }
+ }
+
+ /// Try to insert a symbolic reference.
+ /// Errors if `name` or `target` is protected (see [`super::protect`]) or would
+ /// cause infinite recursion (e.g. `A → B` and `B → A`).
+ ///
+ /// # Panics
+ ///
+ /// If `name` or `target` is not unprotected.
+ #[cfg(test)]
+ fn try_insert(&mut self, name: RawName, target: RawTarget) -> Result<(), InsertionError> {
+ self.try_insert_unprotected(
+ Unprotected::new(name).expect("name is unprotected"),
+ Unprotected::new(target).expect("target is unprotected"),
+ )
+ }
+
+ /// Consume `other` by iteratively inserting into self.
+ pub fn combine(&mut self, other: SymbolicRefs) -> Result<(), InsertionError> {
+ for (name, target) in other.0 {
+ self.insert(name, target)?;
+ }
+ Ok(())
+ }
+
+ /// Insert a symbolic reference from the given `name` to the given `target`.
+ ///
+ /// The targets in the map can change their classification from
+ /// [`Target::Direct`] to [`Target::Symbolic`], if the new insertion of the
+ /// `name` or `target` matches an existing key or existing entries.
+ ///
+ /// # Errors
+ ///
+ /// The `target` reference must either:
+ /// - be a direct [`Qualified`] reference, or
+ /// - resolve to a direct [`Qualified`] reference, if it is a keyed entry in [`SymbolicRefs`].
+ ///
+ /// If neither of these is satisfied then an
+ /// [`InsertionError::TargetNotQualified`] error is returned.
+ ///
+ /// If the `name` and `target` end up in a cycle, e.g., `a → b → a`, then an
+ /// [`InsertionError::Cyclic`] error is returned.
+ fn insert(&mut self, name: Name, mut target: Target) -> Result<(), InsertionError> {
+ let target_str = match &target {
+ Target::Direct(q) => q.as_ref().to_ref_string(),
+ Target::Symbolic(s) => s.as_ref().clone(),
+ };
+
+ if self.is_reachable_from(&target_str, &name) {
+ return Err(InsertionError::Cyclic {
+ name: name.into_inner(),
+ target: target_str,
+ });
+ }
+
+ // A [`Target::Direct`] whose string is already a key is actually
+ // an intermediate link — downgrade to [`Target::Symbolic`].
+ if let Target::Direct(q) = &target {
+ if self.0.contains_key(&q.as_ref().to_ref_string()) {
+ target = Target::symbolic(q.to_ref_string());
+ }
+ }
+
+ if let Target::Symbolic(s) = &target {
+ if self.resolve(s.as_ref()).is_none() {
+ return Err(InsertionError::TargetNotQualified {
+ name: name.into_inner(),
+ target: target_str,
+ });
+ }
+ }
+
+ self.reclassify_targets(&name);
+ self.0.insert(name, target);
+ Ok(())
+ }
+
+ /// When a new key is inserted, any existing [`Target::Direct`] whose
+ /// qualified string matches the new key is no longer terminal — it is
+ /// now an intermediate link and must be reclassified as [`Target::Symbolic`].
+ fn reclassify_targets(&mut self, new_key: &Name) {
+ let key = new_key.as_ref();
+ for existing in self.0.values_mut() {
+ if let Target::Direct(q) = existing {
+ if q == key {
+ *existing = Target::symbolic(q.to_ref_string());
+ }
+ }
+ }
+ }
+}
+
+impl TryFrom<IndexMap<Name, Unprotected<RefString>>> for SymbolicRefs {
+ type Error = InsertionError;
+
+ fn try_from(map: IndexMap<Name, Unprotected<RefString>>) -> Result<Self, Self::Error> {
+ map.into_iter()
+ .try_fold(Self::default(), |mut result, (name, target)| {
+ result.try_insert_unprotected(name, target)?;
+ Ok(result)
+ })
+ }
+}
+
+#[cfg(test)]
+#[allow(clippy::unwrap_used)]
+mod test {
+ use crate::assert_matches;
+ use crate::git::fmt::refname;
+
+ use super::*;
+
+ #[test]
+ fn infinite_single() {
+ let mut symbolic = SymbolicRefs::default();
+
+ assert_matches!(
+ symbolic.try_insert(refname!("a"), refname!("a")),
+ Err(InsertionError::Cyclic { .. })
+ );
+
+ assert!(symbolic.is_empty());
+ }
+
+ #[test]
+ fn infinite_multi() {
+ let mut symbolic = SymbolicRefs::default();
+
+ assert_matches!(
+ symbolic.try_insert(refname!("a"), refname!("refs/heads/b")),
+ Ok(())
+ );
+
+ assert_matches!(
+ symbolic.try_insert(refname!("refs/heads/b"), refname!("refs/heads/c")),
+ Ok(())
+ );
+
+ assert_matches!(
+ symbolic.try_insert(refname!("refs/heads/c"), refname!("a")),
+ Err(InsertionError::Cyclic { .. })
+ );
+ }
+
+ #[test]
+ fn deserialize_valid() {
+ assert_matches!(
+ serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "refs/heads/a": "refs/heads/b",
+ })),
+ Ok(_)
+ );
+ }
+
+ #[test]
+ fn deserialize_order() {
+ assert_matches!(
+ serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "MAIN": "refs/heads/master",
+ "HEAD": "MAIN",
+ })),
+ Ok(_)
+ );
+
+ assert_matches!(
+ serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "HEAD": "MAIN",
+ "MAIN": "refs/heads/master",
+ })),
+ Err(_)
+ );
+ }
+
+ #[test]
+ fn deserialize_infinite() {
+ assert_matches!(
+ serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "refs/heads/a": "refs/heads/a",
+ })),
+ Err(_)
+ );
+
+ assert_matches!(
+ serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "refs/heads/a": "refs/heads/b",
+ "refs/heads/b": "refs/heads/c",
+ "refs/heads/c": "refs/heads/a",
+ })),
+ Err(_)
+ );
+
+ assert_matches!(
+ serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "HEAD": "b",
+ })),
+ Err(_)
+ );
+ }
+
+ /// Verifies that resolution works correctly for chains with 2 links
+ /// (even-length), e.g. `HEAD → MAIN → refs/heads/master`.
+ #[test]
+ fn resolve_two_hop_chain() {
+ let symrefs = serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "MAIN": "refs/heads/master",
+ "HEAD": "MAIN",
+ }))
+ .unwrap();
+
+ // HEAD → MAIN → refs/heads/master should resolve to refs/heads/master
+ assert_eq!(
+ symrefs.resolve_head().map(|r| r.as_str()),
+ Some("refs/heads/master"),
+ );
+ }
+
+ /// Motivates why we cannot simply delegate to [`BTreeMap::extend`]
+ /// for combining [`SymbolicRefs`].
+ #[test]
+ fn infinite_extend() {
+ let mut a = SymbolicRefs::default();
+ assert_matches!(
+ a.try_insert(refname!("refs/heads/a"), refname!("refs/heads/b")),
+ Ok(())
+ );
+
+ let mut b = SymbolicRefs::default();
+ assert_matches!(
+ b.try_insert(refname!("refs/heads/b"), refname!("refs/heads/a")),
+ Ok(())
+ );
+
+ assert_matches!(a.combine(b), Err(InsertionError::Cyclic { .. }));
+ }
+
+ /// Verifies that direct targets are stored as [`Target::Direct`].
+ #[test]
+ fn target_classification() {
+ let symrefs = serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "HEAD": "refs/heads/main",
+ }))
+ .unwrap();
+
+ let (_, target) = symrefs.iter().next().unwrap();
+ assert_matches!(target, Target::Direct(_));
+ }
+
+ /// Verifies that symbolic targets are stored as [`Target::Symbolic`].
+ #[test]
+ fn target_classification_symbolic() {
+ let symrefs = serde_json::from_value::<SymbolicRefs>(serde_json::json!({
+ "MAIN": "refs/heads/master",
+ "HEAD": "MAIN",
+ }))
+ .unwrap();
+
+ let head_entry = symrefs
+ .iter()
+ .find_map(|(name, target)| (name.as_str() == "HEAD").then_some(target))
+ .unwrap();
+ assert_matches!(head_entry, Target::Symbolic(_));
+
+ let main_entry = symrefs
+ .iter()
+ .find_map(|(name, target)| (name.as_str() == "MAIN").then_some(target))
+ .unwrap();
+ assert_matches!(main_entry, Target::Direct(_));
+ }
+
+ /// Verifies that an existing direct target can become a symbolic target
+ /// during a new insertion.
+ #[test]
+ fn target_reclassification() {
+ let mut symrefs = SymbolicRefs::default();
+ symrefs
+ .try_insert(refname!("HEAD"), refname!("refs/heads/main"))
+ .unwrap();
+ symrefs
+ .try_insert(refname!("refs/heads/main"), refname!("refs/heads/master"))
+ .unwrap();
+ let main = symrefs
+ .iter()
+ .find_map(|(_, target)| {
+ (target.as_refstr().as_str() == "refs/heads/main").then_some(target)
+ })
+ .unwrap();
+ assert_matches!(main, Target::Symbolic(_));
+ }
+
+ /// Verifies that an existing direct target can become a symbolic target
+ /// during a new insertion.
+ #[test]
+ fn target_reclassification_commutative() {
+ let mut symrefs = SymbolicRefs::default();
+ symrefs
+ .try_insert(refname!("refs/heads/main"), refname!("refs/heads/master"))
+ .unwrap();
+ symrefs
+ .try_insert(refname!("HEAD"), refname!("refs/heads/main"))
+ .unwrap();
+ let main = symrefs
+ .iter()
+ .find_map(|(_, target)| {
+ (target.as_refstr().as_str() == "refs/heads/main").then_some(target)
+ })
+ .unwrap();
+ assert_matches!(main, Target::Symbolic(_));
+ }
+
+ #[test]
+ fn reclassification_reverse_chain() {
+ let mut symrefs = SymbolicRefs::default();
+
+ // Build the chain in reverse: terminal first, origin last.
+ for (name, target) in [
+ (refname!("refs/heads/c"), refname!("refs/heads/d")),
+ (refname!("refs/heads/b"), refname!("refs/heads/c")),
+ (refname!("refs/heads/a"), refname!("refs/heads/b")),
+ ] {
+ symrefs.try_insert(name, target).unwrap();
+ }
+
+ // Only refs/heads/d (the terminal) should be Direct.
+ // refs/heads/b and refs/heads/c are both keys AND targets — Symbolic.
+ for (_, target) in symrefs.iter() {
+ match target.as_refstr().as_str() {
+ "refs/heads/d" => assert_matches!(target, Target::Direct(_)),
+ other => {
+ assert_matches!(target, Target::Symbolic(_), "expected Symbolic for {other}")
+ }
+ }
+ }
+
+ // Resolution should still work through the full chain.
+ assert_eq!(
+ symrefs
+ .resolve(&refname!("refs/heads/a"))
+ .map(|q| q.as_str()),
+ Some("refs/heads/d"),
+ );
+ }
+
+ #[test]
+ fn reclassification_diamond() {
+ let mut symrefs = SymbolicRefs::default();
+ symrefs
+ .try_insert(refname!("HEAD"), refname!("refs/heads/main"))
+ .unwrap();
+ symrefs
+ .try_insert(refname!("DEFAULT"), refname!("refs/heads/main"))
+ .unwrap();
+
+ // Both targets are Direct — refs/heads/main is not a key yet.
+ // Now make it a key:
+ symrefs
+ .try_insert(refname!("refs/heads/main"), refname!("refs/heads/master"))
+ .unwrap();
+
+ // Both HEAD and DEFAULT's targets should now be Symbolic.
+ let targets_for_main: Vec<_> = symrefs
+ .iter()
+ .filter(|(_, t)| t.as_refstr().as_str() == "refs/heads/main")
+ .collect();
+ assert_eq!(targets_for_main.len(), 2);
+ for (name, target) in targets_for_main {
+ assert_matches!(
+ target,
+ Target::Symbolic(_),
+ "expected Symbolic for {name}'s target"
+ );
+ }
+ }
+
+ #[test]
+ fn reclassification_order_invariant() {
+ // Order A: HEAD first, then the chain link.
+ let a = {
+ let mut s = SymbolicRefs::default();
+ s.try_insert(refname!("HEAD"), refname!("refs/heads/main"))
+ .unwrap();
+ s.try_insert(refname!("refs/heads/main"), refname!("refs/heads/master"))
+ .unwrap();
+ s
+ };
+
+ // Order B: chain link first, then HEAD.
+ let b = {
+ let mut s = SymbolicRefs::default();
+ s.try_insert(refname!("refs/heads/main"), refname!("refs/heads/master"))
+ .unwrap();
+ s.try_insert(refname!("HEAD"), refname!("refs/heads/main"))
+ .unwrap();
+ s
+ };
+
+ // Both should resolve HEAD to the same place.
+ assert_eq!(a.resolve_head(), b.resolve_head());
+
+ // Both should have the same classification for the refs/heads/main target.
+ let classify_a = a
+ .iter()
+ .find(|(_, t)| t.as_refstr().as_str() == "refs/heads/main")
+ .unwrap()
+ .1;
+ let classify_b = b
+ .iter()
+ .find(|(_, t)| t.as_refstr().as_str() == "refs/heads/main")
+ .unwrap()
+ .1;
+ assert_matches!(classify_a, Target::Symbolic(_));
+ assert_matches!(classify_b, Target::Symbolic(_));
+ }
+
+ #[test]
+ fn reclassification_combine() {
+ // A has HEAD → refs/heads/main (Direct)
+ let mut a = SymbolicRefs::head(&refname!("main"));
+
+ // B has refs/heads/main → refs/heads/master (Direct)
+ let mut b = SymbolicRefs::default();
+ b.try_insert(refname!("refs/heads/main"), refname!("refs/heads/master"))
+ .unwrap();
+
+ a.combine(b).unwrap();
+
+ // After combine, HEAD's target refs/heads/main should be Symbolic.
+ let main_target = a
+ .iter()
+ .find(|(_, t)| t.as_refstr().as_str() == "refs/heads/main")
+ .unwrap()
+ .1;
+ assert_matches!(main_target, Target::Symbolic(_));
+ assert_eq!(
+ a.resolve_head().map(|q| q.as_str()),
+ Some("refs/heads/master")
+ );
+ }
+
+ #[test]
+ fn reclassification_combine_reverse() {
+ // B has refs/heads/main → refs/heads/master (Direct)
+ let mut b = SymbolicRefs::default();
+ b.try_insert(refname!("refs/heads/main"), refname!("refs/heads/master"))
+ .unwrap();
+
+ // A has HEAD → refs/heads/main (Direct)
+ let a = SymbolicRefs::head(&refname!("main"));
+
+ b.combine(a).unwrap();
+
+ // HEAD's target refs/heads/main IS a key — should be Symbolic.
+ let main_target = b
+ .iter()
+ .find_map(|(_, t)| (t.as_refstr().as_str() == "refs/heads/main").then_some(t))
+ .unwrap();
+ assert_matches!(main_target, Target::Symbolic(_));
+ assert_eq!(
+ b.resolve_head().map(|q| q.as_str()),
+ Some("refs/heads/master")
+ );
+ }
+}
diff --git a/crates/radicle/src/identity/crefs.rs b/crates/radicle/src/identity/crefs.rs
index 5da76c931..cd7cbb5ef 100644
--- a/crates/radicle/src/identity/crefs.rs
+++ b/crates/radicle/src/identity/crefs.rs
@@ -1,22 +1,48 @@
use serde::{Deserialize, Serialize};
+use thiserror::Error;
-use crate::git::canonical::rules::{RawRules, Rules, ValidationError};
+use crate::git::canonical::rules::{self, RawRules, Rules};
+use crate::git::canonical::symbolic::{self, SymbolicRefs};
+use crate::git::fmt::Qualified;
use super::doc::{Delegates, Payload};
+#[derive(Debug, Error)]
+pub enum ValidationError {
+ #[error(transparent)]
+ Rules(#[from] rules::ValidationError),
+
+ #[error("the target of the symbolic reference '{name} → {target}' is not matched by any rule")]
+ Dangling {
+ name: symbolic::RawName,
+ target: Qualified<'static>,
+ },
+
+ #[error(
+ "the symbolic reference name '{name}' is also matched by rule(s) with pattern(s) {patterns:?}"
+ )]
+ Clash {
+ patterns: Vec<String>,
+ name: Qualified<'static>,
+ },
+}
+
/// Configuration for canonical references and their rules.
///
-/// `RawCanonicalRefs` are verified into [`CanonicalRefs`].
+/// [`RawCanonicalRefs`] are verified into [`CanonicalRefs`].
#[derive(Default, Debug, Clone, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct RawCanonicalRefs {
rules: RawRules,
+
+ #[serde(default)] // Default to empty for backwards compatibility.
+ symbolic: SymbolicRefs,
}
impl RawCanonicalRefs {
/// Construct a new [`RawCanonicalRefs`] from a set of [`RawRules`].
- pub fn new(rules: RawRules) -> Self {
- Self { rules }
+ pub fn new(rules: RawRules, symbolic: SymbolicRefs) -> Self {
+ Self { rules, symbolic }
}
/// Return the [`RawRules`].
@@ -24,6 +50,21 @@ impl RawCanonicalRefs {
&self.rules
}
+ /// Return the [`RawRules`] for mutation.
+ pub fn raw_rules_mut(&mut self) -> &mut RawRules {
+ &mut self.rules
+ }
+
+ /// Return the [`SymbolicRefs`].
+ pub fn symbolic(&self) -> &SymbolicRefs {
+ &self.symbolic
+ }
+
+ /// Return the [`SymbolicRefs`] for mutation.
+ pub fn symbolic_mut(&mut self) -> &mut SymbolicRefs {
+ &mut self.symbolic
+ }
+
/// Validate the [`RawCanonicalRefs`] into a set of [`CanonicalRefs`].
pub fn try_into_canonical_refs<R>(
self,
@@ -33,7 +74,7 @@ impl RawCanonicalRefs {
R: Fn() -> Delegates,
{
let rules = Rules::from_raw(self.rules, resolve)?;
- Ok(CanonicalRefs::new(rules))
+ CanonicalRefs::new(rules, self.symbolic)
}
}
@@ -41,22 +82,62 @@ impl RawCanonicalRefs {
///
/// [`CanonicalRefs`] can be converted into a [`Payload`] using its [`From`]
/// implementation.
-#[derive(Debug, Clone, PartialEq, Eq, Serialize)]
+#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct CanonicalRefs {
rules: Rules,
+
+ #[serde(default, skip_serializing_if = "SymbolicRefs::is_empty")]
+ symbolic: SymbolicRefs,
}
impl CanonicalRefs {
- /// Construct a new [`CanonicalRefs`] from a set of [`Rules`].
- pub fn new(rules: Rules) -> Self {
- CanonicalRefs { rules }
+ /// Construct a new [`CanonicalRefs`] from a set of [`Rules`] and
+ /// [`SymbolicRefs`], validating that these may be evaluated to a well
+ /// formed set of references when interpreted together.
+ pub fn new(rules: Rules, symbolic: SymbolicRefs) -> Result<Self, ValidationError> {
+ for (name, target) in symbolic.iter_resolved() {
+ if rules.matches(target).next().is_none() {
+ return Err(ValidationError::Dangling {
+ name: name.to_owned(),
+ target: target.to_owned(),
+ });
+ }
+
+ let Some(name) = Qualified::from_refstr(name) else {
+ continue;
+ };
+
+ let mut patterns = rules
+ .matches(&name)
+ .map(|(pattern, _)| pattern.to_string())
+ .peekable();
+ if patterns.peek().is_some() {
+ return Err(ValidationError::Clash {
+ patterns: patterns.collect(),
+ name: name.to_owned(),
+ });
+ }
+ }
+
+ Ok(CanonicalRefs { rules, symbolic })
}
/// Return the [`Rules`].
pub fn rules(&self) -> &Rules {
&self.rules
}
+
+ /// Return the [`SymbolicRefs`].
+ pub fn symbolic(&self) -> &SymbolicRefs {
+ &self.symbolic
+ }
+}
+
+impl Extend<(rules::RawPattern, rules::RawRule)> for RawCanonicalRefs {
+ fn extend<T: IntoIterator<Item = (rules::RawPattern, rules::RawRule)>>(&mut self, iter: T) {
+ self.rules.extend(iter)
+ }
}
#[derive(Debug, thiserror::Error)]
@@ -74,3 +155,120 @@ impl TryFrom<CanonicalRefs> for Payload {
Ok(Self::from(value))
}
}
+
+#[cfg(test)]
+#[allow(clippy::unwrap_used)]
+mod tests {
+ use serde_json::json;
+
+ use crate::assert_matches;
+
+ use super::{ValidationError::*, *};
+
+ fn from(value: serde_json::Value) -> Result<CanonicalRefs, super::ValidationError> {
+ let delegates: Delegates = crate::test::arbitrary::r#gen::<crate::prelude::Did>(1).into();
+ serde_json::from_value::<RawCanonicalRefs>(value)
+ .unwrap()
+ .try_into_canonical_refs(&mut || delegates.clone())
+ }
+
+ /// Backwards compatibility to before addition of symbolic references.
+ #[test]
+ fn omit_symbolic() {
+ assert_matches!(
+ from(json!({
+ "rules": {},
+ })),
+ Ok(_)
+ );
+ }
+
+ #[test]
+ fn invalid_dangling() {
+ assert_matches!(
+ from(json!({
+ "symbolic": {
+ "HEAD": "refs/heads/master"
+ },
+ "rules": {},
+ })),
+ Err(Dangling { .. })
+ );
+ }
+
+ #[test]
+ fn invalid_clash() {
+ assert_matches!(
+ from(json!({
+ "symbolic": {
+ "refs/heads/foo": "refs/heads/bar",
+ },
+ "rules": {
+ "refs/heads/foo": {
+ "allow": "delegates",
+ "threshold": 1,
+ },
+ "refs/heads/bar": {
+ "allow": "delegates",
+ "threshold": 1,
+ },
+ },
+ })),
+ Err(Clash { .. })
+ );
+ }
+
+ #[test]
+ fn invalid_clash_asterisk_name() {
+ assert_matches!(
+ from(json!({
+ "symbolic": {
+ "refs/heads/foo": "refs/heads/bar",
+ },
+ "rules": {
+ "refs/heads/*": {
+ "allow": "delegates",
+ "threshold": 1,
+ },
+ },
+ })),
+ Err(Clash { .. })
+ );
+ }
+
+ #[test]
+ fn valid_asterisk_target() {
+ assert_matches!(
+ from(json!({
+ "symbolic": {
+ "HEAD": "refs/heads/master",
+ },
+ "rules": {
+ "refs/heads/*": {
+ "allow": "delegates",
+ "threshold": 1,
+ },
+ },
+ })),
+ Ok(_)
+ );
+ }
+
+ #[test]
+ fn valid() {
+ assert_matches!(
+ from(json!({
+ "symbolic": {
+ "refs/heads/foo": "refs/heads/ruled/bar",
+ },
+ "rules": {
+ "refs/heads/ruled/*": {
+ "allow": "delegates",
+ "threshold": 1,
+ },
+ },
+ })),
+ Ok(_)
+ );
+ }
+}
diff --git a/crates/radicle/src/identity/doc.rs b/crates/radicle/src/identity/doc.rs
index 08c14ba42..85c99be32 100644
--- a/crates/radicle/src/identity/doc.rs
+++ b/crates/radicle/src/identity/doc.rs
@@ -20,7 +20,11 @@ use crate::crypto;
use crate::crypto::Signature;
use crate::git;
use crate::git::canonical::rules;
+use crate::git::canonical::symbolic;
+use crate::git::fmt::Qualified;
+use crate::git::fmt::RefString;
use crate::git::raw::ErrorExt as _;
+use crate::identity::crefs;
use crate::identity::{Did, project::Project};
use crate::node::device::Device;
use crate::storage;
@@ -75,9 +79,20 @@ impl DocError {
}
#[derive(Debug, Error)]
-pub enum DefaultBranchRuleError {
- #[error("could not load `xyz.radicle.project` to get default branch name: {0}")]
- Payload(#[from] PayloadError),
+pub enum DefaultBranchError {
+ #[error(
+ "could not find default branch in any of the payloads `xyz.radicle.project` ({project}) or `xyz.radicle.crefs` ({crefs})"
+ )]
+ Payload {
+ project: PayloadError,
+ crefs: PayloadError,
+ },
+
+ #[error("no symbolic reference with name `HEAD` is defined")]
+ MissingHead,
+
+ #[error(transparent)]
+ CanonicalRefsError(#[from] CanonicalRefsError),
}
/// The version number of the identity document.
@@ -757,42 +772,133 @@ impl Doc {
}
/// Gets the qualified reference name of the default branch,
- /// according to the project payload in this document.
- pub fn default_branch(&self) -> Result<git::fmt::Qualified<'_>, PayloadError> {
- Ok(git::refs::branch(self.project()?.default_branch()))
- }
-
- pub fn default_branch_rule(&self) -> Result<rules::Rules, DefaultBranchRuleError> {
- let pattern = git::fmt::refspec::QualifiedPattern::from(git::refs::branch(
- self.project()?.default_branch(),
- ));
- let rule = rules::Rule::new(
- rules::ResolvedDelegates::Delegates(self.delegates.clone()),
- self.threshold,
- );
- Ok(rules::Rules::from_raw(
- rules::RawRules::from_iter([(pattern, rule.into())]),
- &mut || self.delegates.clone(),
- )
- .expect("default rules are valid"))
+ /// according to payloads `xyz.radicle.project` and `xyz.radicle.crefs`
+ /// in this document.
+ pub fn default_branch(&self) -> Result<git::fmt::Qualified<'_>, DefaultBranchError> {
+ let crefs = self.canonical_refs()?;
+ let qualified = crefs
+ .symbolic()
+ .resolve_head()
+ .ok_or(DefaultBranchError::MissingHead)?;
+ Ok(qualified.to_owned())
}
/// Construct the canonical references for this document.
- /// The implementation of [`RawCanonicalRefs`] is used to
- /// obtain the payload identified by [`PayloadId::canonical_refs`], if it
- /// exists.
- /// The resulting [`CanonicalRefs`] are constructed by extension with
- /// [`Self::default_branch_rule`].
+ ///
+ /// Uses the `xyz.radicle.crefs` payload (if present) and the
+ /// `xyz.radicle.project` payload to determine the `HEAD` symbolic
+ /// reference and its associated rule.
+ ///
+ /// There are three cases, depending on whether `HEAD` is already
+ /// defined in the crefs payload and whether a project payload exists:
+ ///
+ /// 1. **Explicit HEAD + project**: `HEAD` must agree with
+ /// [`Project::default_branch_qualified`], and the matching rule must
+ /// use `delegates` with the document's threshold.
+ /// 2. **Explicit HEAD, no project**: The matching rule must use
+ /// `delegates` with the document's threshold.
+ /// 3. **No HEAD**: A rule and `HEAD` symbolic reference are synthesized
+ /// from the project payload (which must exist).
+ ///
+ /// In all cases the result must pass [`RawCanonicalRefs::try_into_canonical_refs`]
+ /// validation. If a rule for `HEAD`'s target is missing, it will be
+ /// caught as a dangling reference there.
///
/// [`RawCanonicalRefs`]: super::crefs::RawCanonicalRefs
pub fn canonical_refs(&self) -> Result<CanonicalRefs, CanonicalRefsError> {
- let raw_crefs = self.raw_canonical_refs()?.unwrap_or_default();
+ let mut raw_crefs = self.raw_canonical_refs()?.unwrap_or_default();
+ let resolve = &mut || self.delegates.clone();
+
+ // Determine where `HEAD` comes from. The `resolve_head()` result
+ // borrows `raw_crefs`, so clone to allow mutation in the synthesis
+ // path.
+ let head: Option<Qualified<'static>> = raw_crefs.symbolic().resolve_head().cloned();
+
+ match (head, self.project()) {
+ (Some(ref default_branch), Ok(project)) => {
+ let project_branch = project.default_branch_qualified();
+ if project_branch != *default_branch {
+ return Err(DefaultBranchRuleError::HeadMismatch {
+ cref: default_branch.to_ref_string(),
+ project: project_branch.to_ref_string(),
+ })?;
+ }
+ self.validate_head_rule(&raw_crefs, default_branch)?;
+ }
+ (Some(ref default_branch), Err(_)) => {
+ self.validate_head_rule(&raw_crefs, default_branch)?;
+ }
+ (None, Ok(project)) => {
+ self.synthesize_head(&mut raw_crefs, &project)?;
+ }
+ (None, Err(err)) => {
+ return Err(CanonicalRefsError::SynthesisPayloadMissing(err));
+ }
+ }
+
+ Ok(raw_crefs.try_into_canonical_refs(resolve)?)
+ }
+
+ /// Validate that the rule matching `HEAD`'s target branch uses
+ /// `delegates` and the document's threshold.
+ ///
+ /// If no rule matches the target, `HEAD` will dangle — this is caught
+ /// later by [`RawCanonicalRefs::try_into_canonical_refs`] validation.
+ fn validate_head_rule(
+ &self,
+ raw_crefs: &RawCanonicalRefs,
+ default_branch: &Qualified,
+ ) -> Result<(), CanonicalRefsError> {
+ let Some((pattern, rule)) = raw_crefs.raw_rules().matches(default_branch).next() else {
+ return Ok(());
+ };
- let mut raw_rules = raw_crefs.raw_rules().clone();
- raw_rules.extend(rules::RawRules::from(self.default_branch_rule()?));
+ let allowed = rule.allowed();
+ if *allowed != rules::Allowed::Delegates {
+ return Err(DefaultBranchRuleError::Allowed {
+ pattern: pattern.to_string(),
+ actual: allowed.to_string(),
+ })?;
+ }
+ let actual = *rule.threshold();
+ let expected = self.threshold();
+ if actual != expected {
+ return Err(DefaultBranchRuleError::Threshold {
+ pattern: pattern.to_string(),
+ actual,
+ expected,
+ })?;
+ }
+ Ok(())
+ }
- let raw_crefs = RawCanonicalRefs::new(raw_rules);
- Ok(raw_crefs.try_into_canonical_refs(&mut || self.delegates.clone())?)
+ /// Synthesize a `HEAD` symbolic reference and a default branch rule
+ /// from the project payload.
+ fn synthesize_head(
+ &self,
+ raw_crefs: &mut RawCanonicalRefs,
+ project: &Project,
+ ) -> Result<(), CanonicalRefsError> {
+ let default_branch = project.default_branch_qualified();
+
+ if raw_crefs
+ .raw_rules()
+ .matches(&default_branch)
+ .next()
+ .is_none()
+ {
+ raw_crefs.raw_rules_mut().insert(
+ git::fmt::refspec::QualifiedPattern::from(default_branch.to_owned()),
+ rules::Rule::new(rules::Allowed::Delegates, self.threshold()),
+ );
+ }
+
+ raw_crefs
+ .symbolic_mut()
+ .combine(symbolic::SymbolicRefs::head(project.default_branch()))
+ .map_err(|source| CanonicalRefsError::SynthesisCycle { source })?;
+
+ Ok(())
}
/// Return the associated [`Visibility`] of this document.
@@ -952,20 +1058,50 @@ impl Doc {
}
}
+#[derive(Debug, Error)]
+pub enum RawCanonicalRefsError {
+ #[error(transparent)]
+ Json(#[from] serde_json::Error),
+}
+
#[derive(Debug, Error)]
pub enum CanonicalRefsError {
#[error(transparent)]
Raw(#[from] RawCanonicalRefsError),
+
#[error(transparent)]
- CanonicalRefs(#[from] rules::ValidationError),
+ CanonicalRefs(#[from] crefs::ValidationError),
+
+ #[error("could not load `xyz.radicle.project` to get default branch name: {0}")]
+ SynthesisPayloadMissing(PayloadError),
+
#[error(transparent)]
- DefaultBranch(#[from] DefaultBranchRuleError),
+ DefaultBranchRuleError(#[from] DefaultBranchRuleError),
+
+ #[error("synthesizing canonical references from project payload failed: {source}")]
+ SynthesisCycle { source: symbolic::InsertionError },
}
#[derive(Debug, Error)]
-pub enum RawCanonicalRefsError {
- #[error(transparent)]
- Json(#[from] serde_json::Error),
+pub enum DefaultBranchRuleError {
+ #[error(
+ "rule for pattern '{pattern}' which matches the target of symbolic reference 'HEAD' (possibly synthesized from payload 'xyz.radicle.project') must use 'allow' value of \"delegates\" but uses {actual}"
+ )]
+ Allowed { pattern: String, actual: String },
+
+ #[error(
+ "rule for pattern '{pattern}' which matches the target of symbolic reference 'HEAD' (possibly synthesized from payload 'xyz.radicle.project') must use a threshold of {expected} as required by the identity document but uses {actual}"
+ )]
+ Threshold {
+ pattern: String,
+ actual: usize,
+ expected: usize,
+ },
+
+ #[error(
+ "target symbolic reference 'HEAD' ('{cref}') does not match `defaultBranch` from payload `xyz.radicle.project` ('{project}')"
+ )]
+ HeadMismatch { cref: RefString, project: RefString },
}
pub trait GetRawCanonicalRefs: GetPayload {
@@ -1232,4 +1368,72 @@ mod test {
serde_json::json!({ "type": "private", "allow": ["did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT"] })
);
}
+
+ #[test]
+ fn default_branch_without_project() {
+ let value = serde_json::json!(
+ {
+ "payload": {
+ "xyz.radicle.crefs": {
+ "symbolic": {
+ "HEAD": "refs/heads/main",
+ },
+ "rules": {
+ "refs/heads/main": {
+ "allow": "delegates",
+ "threshold": 1,
+ }
+ }
+ }
+ },
+ "delegates": [
+ "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM"
+ ],
+ "threshold": 1
+ }
+ );
+
+ let doc = serde_json::from_value::<Doc>(value).unwrap();
+ assert_eq!(doc.default_branch().unwrap().as_str(), "refs/heads/main");
+ }
+
+ #[test]
+ fn default_branch_clash() {
+ let value = serde_json::json!(
+ {
+ "payload": {
+ "xyz.radicle.project": {
+ "name": "example",
+ "description": "An example project",
+ "defaultBranch": "main",
+ },
+ "xyz.radicle.crefs": {
+ "symbolic": {
+ "HEAD": "refs/heads/master",
+ },
+ "rules": {
+ "refs/heads/master": {
+ "allow": "delegates",
+ "threshold": 1,
+ }
+ }
+ }
+ },
+ "delegates": [
+ "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM"
+ ],
+ "threshold": 1
+ }
+ );
+
+ let doc = serde_json::from_value::<Doc>(value).unwrap();
+ assert_matches!(
+ doc.default_branch(),
+ Err(DefaultBranchError::CanonicalRefsError(
+ CanonicalRefsError::DefaultBranchRuleError(
+ DefaultBranchRuleError::HeadMismatch { .. }
+ )
+ ))
+ );
+ }
}
diff --git a/crates/radicle/src/identity/doc/update.rs b/crates/radicle/src/identity/doc/update.rs
index fbec64572..1298a014d 100644
--- a/crates/radicle/src/identity/doc/update.rs
+++ b/crates/radicle/src/identity/doc/update.rs
@@ -208,9 +208,13 @@ pub fn verify(raw: RawDoc) -> Result<Doc, error::DocVerification> {
});
}
};
- // Ensure that if we have canonical reference rules and a project, that no
- // rule exists for the default branch. This rule must be synthesized when
- // constructing the canonical reference rules.
+
+ // If we have both payloads `xyz.radicle.{project,crefs}` ensure that,
+ // in the `crefs` payload there is no …
+ // 1. … rule that matches the default branch from the `project` payload.
+ // (This rule must be synthesized!)
+ // 2. … symbolic reference with the name `HEAD`.
+ // (This reference must be synthesized!)
use super::GetRawCanonicalRefs as _;
match raw
.raw_canonical_refs()
@@ -225,11 +229,19 @@ pub fn verify(raw: RawDoc) -> Result<Doc, error::DocVerification> {
.map(|(pattern, _)| pattern.to_string())
.collect::<Vec<_>>();
if !matches.is_empty() {
- return Err(error::DocVerification::DisallowDefault { matches, default });
+ return Err(error::DocVerification::DisallowDefaultBranchRule { matches, default });
+ }
+
+ if let Some(symbolic) = crefs.symbolic().resolve_head() {
+ return Err(error::DocVerification::DisallowDefaultBranchSymbolic {
+ symbolic: symbolic.to_ref_string(),
+ default,
+ });
}
}
_ => { /* we validate below */ }
}
+
// Verify that the canonical references payload is valid
if let Err(e) = proposal.canonical_refs() {
return Err(error::DocVerification::PayloadError {
@@ -332,7 +344,7 @@ mod test {
assert!(
matches!(
super::verify(raw),
- Err(error::DocVerification::DisallowDefault { .. })
+ Err(error::DocVerification::DisallowDefaultBranchRule { .. })
),
"Verification should be rejected for including default branch rule"
)
diff --git a/crates/radicle/src/identity/doc/update/error.rs b/crates/radicle/src/identity/doc/update/error.rs
index bf19aca66..31ffde52a 100644
--- a/crates/radicle/src/identity/doc/update/error.rs
+++ b/crates/radicle/src/identity/doc/update/error.rs
@@ -31,10 +31,17 @@ pub enum DocVerification {
#[error(
"incompatible payloads: The rule(s) xyz.radicle.crefs.rules.{matches:?} matches the value of xyz.radicle.project.defaultBranch ('{default}'). Possible resolutions: Change the name of the default branch or remove the rule(s)."
)]
- DisallowDefault {
+ DisallowDefaultBranchRule {
matches: Vec<String>,
default: git::fmt::Qualified<'static>,
},
+ #[error(
+ "incompatible payloads: The symbolic reference xyz.radicle.crefs.symbolic.HEAD → '{symbolic}' conflicts with xyz.radicle.project.defaultBranch ('{default}'). Possible resolutions: Remove either of the two."
+ )]
+ DisallowDefaultBranchSymbolic {
+ symbolic: RefString,
+ default: git::fmt::Qualified<'static>,
+ },
}
#[derive(Clone, Debug)]
diff --git a/crates/radicle/src/identity/project.rs b/crates/radicle/src/identity/project.rs
index 9f2504753..6509e7de7 100644
--- a/crates/radicle/src/identity/project.rs
+++ b/crates/radicle/src/identity/project.rs
@@ -8,6 +8,7 @@ use thiserror::Error;
use crate::crypto;
use crate::git::BranchName;
+use crate::git::{fmt::Qualified, refs::branch};
use crate::identity::doc;
use crate::identity::doc::Payload;
@@ -254,6 +255,12 @@ impl Project {
pub fn default_branch(&self) -> &BranchName {
&self.default_branch
}
+
+ /// Return the qualified name of the default branch.
+ #[inline]
+ pub fn default_branch_qualified(&self) -> Qualified<'_> {
+ branch(&self.default_branch)
+ }
}
impl From<Project> for Payload {
diff --git a/crates/radicle/src/rad.rs b/crates/radicle/src/rad.rs
index 6e91a762d..61d00a52b 100644
--- a/crates/radicle/src/rad.rs
+++ b/crates/radicle/src/rad.rs
@@ -142,7 +142,7 @@ where
)?;
stored.set_remote_identity_root_to(pk, identity)?;
stored.set_identity_head_to(identity)?;
- stored.set_head_to_default_branch()?;
+ stored.set_canonical_symbolic_refs("set-canonical from init (radicle)")?;
stored.set_default_branch_to_canonical_head()?;
let signed = stored.sign_refs(signer)?;
diff --git a/crates/radicle/src/storage.rs b/crates/radicle/src/storage.rs
index f407cd7dc..99c99a69c 100644
--- a/crates/radicle/src/storage.rs
+++ b/crates/radicle/src/storage.rs
@@ -150,7 +150,7 @@ pub enum RepositoryError {
#[error("missing canonical reference rule for default branch")]
MissingBranchRule,
#[error("could not get the default branch rule: {0}")]
- DefaultBranchRule(#[from] doc::DefaultBranchRuleError),
+ DefaultBranchRule(#[from] doc::DefaultBranchError),
#[error("failed to get canonical reference rules: {0}")]
CanonicalRefs(#[from] doc::CanonicalRefsError),
#[error(transparent)]
@@ -668,11 +668,30 @@ where
/// Allows read-write access to a repository.
pub trait WriteRepository: ReadRepository + SignRepository {
- /// Sets the symbolic reference `HEAD` to target the default branch.
- /// This only depends on the value for the default branch in the identity
- /// document, and does not require the canonical reference behind the
- /// default branch to be computed, or even exist.
- fn set_head_to_default_branch(&self) -> Result<(), RepositoryError>;
+ /// Sets the canonical symbolic references.
+ ///
+ /// This only depends on canonical references (thus the `xyz.radicle.crefs`
+ /// payload, and possibly the `xyz.radicle.project` payload in the identity
+ /// document). The targeted canonical references are not computed and might
+ /// not even exist.
+ fn set_canonical_symbolic_refs(&self, message: &str) -> Result<(), RepositoryError> {
+ for (name, target) in self.identity_doc()?.canonical_refs()?.symbolic().iter() {
+ self.set_symbolic_ref(name, target, message)?;
+ }
+ Ok(())
+ }
+
+ /// Sets a symbolic reference, if it does not exist or its target is different
+ /// from the given one.
+ fn set_symbolic_ref<Name, Target>(
+ &self,
+ name: &Name,
+ target: &Target,
+ message: &str,
+ ) -> Result<(), RepositoryError>
+ where
+ Name: AsRef<RefStr>,
+ Target: AsRef<RefStr>;
/// Computes the head of the default branch based on the delegate set,
/// and sets it.
diff --git a/crates/radicle/src/storage/git.rs b/crates/radicle/src/storage/git.rs
index e6ba9754e..bdc5f2acd 100644
--- a/crates/radicle/src/storage/git.rs
+++ b/crates/radicle/src/storage/git.rs
@@ -28,7 +28,7 @@ use crate::{git, git::Oid, node};
use crate::git::RefError;
use crate::git::UserInfo;
use crate::git::fmt::{
- Qualified, RefString, refname, refspec, refspec::PatternStr, refspec::PatternString,
+ Qualified, RefStr, RefString, refspec, refspec::PatternStr, refspec::PatternString,
};
pub use crate::storage::{Error, RepositoryError};
@@ -852,20 +852,17 @@ impl ReadRepository for Repository {
fn canonical_head(&self) -> Result<(Qualified<'_>, Oid), RepositoryError> {
let doc = self.identity_doc()?;
- let refname = doc.default_branch()?.to_owned();
-
- let crefs = doc.canonical_refs()?;
-
- Ok(crefs
+ Ok(doc
+ .canonical_refs()?
.rules()
- .canonical(refname, self)
+ .canonical(doc.default_branch()?, self)
.ok_or(RepositoryError::MissingBranchRule)?
.find_objects()?
.quorum()?)
.map(
|Quorum {
refname, object, ..
- }| (refname, object.id()),
+ }| (refname.to_owned(), object.id()),
)
}
@@ -939,31 +936,41 @@ impl ReadRepository for Repository {
}
impl WriteRepository for Repository {
- fn set_head_to_default_branch(&self) -> Result<(), RepositoryError> {
- let head_ref = refname!("HEAD");
- let branch_ref = self.default_branch()?;
-
- match self.raw().find_reference(head_ref.as_str()) {
- Ok(mut head_ref) => {
- if head_ref
- .symbolic_target()
- .is_some_and(|t| t != branch_ref.as_str())
- {
- head_ref.symbolic_set_target(branch_ref.as_str(), "set-head (radicle)")?;
+ fn set_symbolic_ref<Name, Target>(
+ &self,
+ name: &Name,
+ target: &Target,
+ message: &str,
+ ) -> Result<(), RepositoryError>
+ where
+ Name: AsRef<RefStr>,
+ Target: AsRef<RefStr>,
+ {
+ let name = name.as_ref();
+ let target = target.as_ref();
+ match self.raw().find_reference(name.as_str()) {
+ Ok(mut existing) => match existing.symbolic_target() {
+ Some(current) if current == target.as_str() => {
+ // Already points to the correct target, nothing to do.
}
- Ok(())
- }
+ Some(_) => {
+ // Symbolic ref pointing to a different target, update it.
+ existing.symbolic_set_target(target.as_str(), message)?;
+ }
+ None => {
+ // A direct (non-symbolic) ref exists where we expect a
+ // symbolic one. Overwrite it with force.
+ self.raw()
+ .reference_symbolic(name.as_str(), target.as_str(), true, message)?;
+ }
+ },
Err(err) if err.is_not_found() => {
- self.raw().reference_symbolic(
- head_ref.as_str(),
- branch_ref.as_str(),
- true,
- "set-head (radicle)",
- )?;
- Ok(())
+ self.raw()
+ .reference_symbolic(name.as_str(), target.as_str(), true, message)?;
}
- Err(err) => Err(err.into()),
+ Err(err) => return Err(err.into()),
}
+ Ok(())
}
fn set_default_branch_to_canonical_head(&self) -> Result<SetHead, RepositoryError> {
diff --git a/crates/radicle/src/test.rs b/crates/radicle/src/test.rs
index 9ca677ce9..89b362897 100644
--- a/crates/radicle/src/test.rs
+++ b/crates/radicle/src/test.rs
@@ -59,7 +59,7 @@ pub fn fetch<W: WriteRepository>(
drop(opts);
repo.set_identity_head()?;
- repo.set_head_to_default_branch()?;
+ repo.set_canonical_symbolic_refs("set-canonical test (radicle)")?;
repo.set_default_branch_to_canonical_head()?;
let validations = repo.validate()?;
diff --git a/crates/radicle/src/test/storage.rs b/crates/radicle/src/test/storage.rs
index 17de8105d..fb5ee4978 100644
--- a/crates/radicle/src/test/storage.rs
+++ b/crates/radicle/src/test/storage.rs
@@ -344,7 +344,16 @@ impl WriteRepository for MockRepository {
todo!()
}
- fn set_head_to_default_branch(&self) -> Result<(), RepositoryError> {
+ fn set_symbolic_ref<Name, Target>(
+ &self,
+ _name: &Name,
+ _target: &Target,
+ _message: &str,
+ ) -> Result<(), RepositoryError>
+ where
+ Name: AsRef<fmt::RefStr>,
+ Target: AsRef<fmt::RefStr>,
+ {
todo!()
}
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 ffadd987-7052-4a0f-8dfd-4bffe319d638 -v /opt/radcis/ci.rad.levitte.org/cci/state/ffadd987-7052-4a0f-8dfd-4bffe319d638/s:/ffadd987-7052-4a0f-8dfd-4bffe319d638/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/ffadd987-7052-4a0f-8dfd-4bffe319d638/w:/ffadd987-7052-4a0f-8dfd-4bffe319d638/w -w /ffadd987-7052-4a0f-8dfd-4bffe319d638/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /ffadd987-7052-4a0f-8dfd-4bffe319d638/s/script.sh
+ export 'RUSTDOCFLAGS=-D warnings'
+ RUSTDOCFLAGS='-D warnings'
+ cargo --version
info: syncing channel updates for '1.90-x86_64-unknown-linux-gnu'
info: latest update on 2025-09-18, rust version 1.90.0 (1159e78c4 2025-09-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.90.0 (840b83a10 2025-07-30)
+ rustc --version
rustc 1.90.0 (1159e78c4 2025-09-14)
+ cargo fmt --check
+ cargo clippy --all-targets --workspace -- --deny warnings
Updating crates.io index
Downloading crates ...
Downloaded data-encoding-macro v0.1.19
Downloaded gix-utils v0.3.1
Downloaded gix-shallow v0.8.1
Downloaded const-oid v0.9.6
Downloaded idna v1.1.0
Downloaded inquire v0.9.4
Downloaded flate2 v1.1.9
Downloaded generic-array v0.14.7
Downloaded fluent-uri v0.3.2
Downloaded errno v0.3.14
Downloaded cpufeatures v0.2.17
Downloaded gix-refspec v0.37.0
Downloaded gix-chunk v0.6.0
Downloaded gix-path v0.11.1
Downloaded mio v1.1.1
Downloaded nonempty v0.9.0
Downloaded gix-error v0.1.0
Downloaded is_terminal_polyfill v1.70.2
Downloaded gix-actor v0.38.0
Downloaded icu_provider v2.1.1
Downloaded indicatif v0.18.4
Downloaded lazy_static v1.5.0
Downloaded once_cell v1.21.4
Downloaded gix-traverse v0.52.0
Downloaded gix-tempfile v21.0.1
Downloaded ghash v0.5.1
Downloaded gix-config-value v0.17.1
Downloaded gix-quote v0.6.2
Downloaded gix-diff v0.58.0
Downloaded p384 v0.13.1
Downloaded inout v0.1.4
Downloaded heck v0.5.0
Downloaded gix-trace v0.1.18
Downloaded hmac v0.12.1
Downloaded itoa v1.0.17
Downloaded rand_core v0.6.4
Downloaded icu_normalizer v2.1.1
Downloaded maybe-async v0.2.10
Downloaded proc-macro2 v1.0.106
Downloaded jobserver v0.1.34
Downloaded matchers v0.2.0
Downloaded group v0.13.0
Downloaded ed25519 v2.2.3
Downloaded num-integer v0.1.46
Downloaded litrs v1.0.0
Downloaded crc32fast v1.5.0
Downloaded pbkdf2 v0.12.2
Downloaded jsonschema v0.30.0
Downloaded quick-error v1.2.3
Downloaded memmap2 v0.9.10
Downloaded amplify_num v0.5.3
Downloaded ppv-lite86 v0.2.21
Downloaded num-rational v0.4.2
Downloaded snapbox v0.4.17
Downloaded primeorder v0.13.6
Downloaded ctr v0.9.2
Downloaded rand_core v0.9.5
Downloaded rustversion v1.0.22
Downloaded rustc_version v0.4.1
Downloaded num-complex v0.4.6
Downloaded pkcs8 v0.10.2
Downloaded same-file v1.0.6
Downloaded ref-cast v1.0.25
Downloaded scrypt v0.11.0
Downloaded miniz_oxide v0.8.9
Downloaded tempfile v3.27.0
Downloaded sval_json v2.17.0
Downloaded match-lookup v0.1.2
Downloaded signal-hook-mio v0.2.5
Downloaded sharded-slab v0.1.7
Downloaded spki v0.7.3
Downloaded subtle v2.6.1
Downloaded shell-words v1.1.1
Downloaded strsim v0.11.1
Downloaded ssh-encoding v0.2.0
Downloaded sval_ref v2.17.0
Downloaded snapbox-macros v0.3.10
Downloaded num-traits v0.2.19
Downloaded sval_serde v2.17.0
Downloaded sha1 v0.10.6
Downloaded sval_fmt v2.17.0
Downloaded rand_xorshift v0.4.0
Downloaded smallvec v1.15.1
Downloaded ssh-cipher v0.2.0
Downloaded timeago v0.4.2
Downloaded tree-sitter-json v0.24.8
Downloaded ssh-agent-lib v0.5.2
Downloaded tracing-log v0.2.0
Downloaded toml_writer v1.0.7+spec-1.1.0
Downloaded tree-sitter-toml-ng v0.6.0
Downloaded tree-sitter-language v0.1.7
Downloaded unarray v0.1.4
Downloaded clap_complete v4.6.0
Downloaded bytes v1.11.1
Downloaded walkdir v2.5.0
Downloaded wait-timeout v0.2.1
Downloaded crossbeam-channel v0.5.15
Downloaded zeroize v1.8.2
Downloaded vsimd v0.8.0
Downloaded unicode-display-width v0.3.0
Downloaded yoke v0.8.1
Downloaded uuid-simd v0.8.0
Downloaded tree-sitter-highlight v0.24.7
Downloaded value-bag-sval2 v1.12.0
Downloaded zmij v1.0.21
Downloaded version_check v0.9.5
Downloaded xattr v1.6.1
Downloaded utf8_iter v1.0.4
Downloaded sval_dynamic v2.17.0
Downloaded rusty-fork v0.3.1
Downloaded aho-corasick v1.1.4
Downloaded value-bag v1.12.0
Downloaded uuid v1.22.0
Downloaded zerotrie v0.2.3
Downloaded tinyvec_macros v0.1.1
Downloaded test-log-macros v0.2.19
Downloaded proc-macro-error2 v2.0.1
Downloaded cyphernet v0.5.3
Downloaded structured-logger v1.0.5
Downloaded unicode-ident v1.0.24
Downloaded tree-sitter-html v0.23.2
Downloaded vcpkg v0.2.15
Downloaded zerovec-derive v0.11.2
Downloaded zerovec v0.11.5
Downloaded unicode-normalization v0.1.25
Downloaded tree-sitter-python v0.23.6
Downloaded unicode-segmentation v1.12.0
Downloaded portable-atomic v1.13.1
Downloaded writeable v0.6.2
Downloaded tree-sitter-css v0.23.2
Downloaded bloomy v1.2.0
Downloaded thiserror v1.0.69
Downloaded unicode-width v0.2.2
Downloaded tree-sitter-md v0.3.2
Downloaded tree-sitter-rust v0.23.3
Downloaded syn v1.0.109
Downloaded tracing v0.1.44
Downloaded winnow v0.7.15
Downloaded sysinfo v0.37.2
Downloaded syn v2.0.117
Downloaded zlib-rs v0.6.3
Downloaded regex-automata v0.4.14
Downloaded zerocopy v0.8.42
Downloaded tree-sitter v0.24.7
Downloaded regex v1.12.3
Downloaded tree-sitter-ruby v0.23.1
Downloaded sha1-checked v0.10.0
Downloaded libgit2-sys v0.18.3+1.9.2
Downloaded regex-syntax v0.8.10
Downloaded p521 v0.13.3
Downloaded tree-sitter-bash v0.23.3
Downloaded tree-sitter-go v0.23.4
Downloaded tokio v1.50.0
Downloaded sval v2.17.0
Downloaded streaming-iterator v0.1.9
Downloaded tree-sitter-c v0.23.4
Downloaded sval_buffer v2.17.0
Downloaded serde_core v1.0.228
Downloaded libc v0.2.183
Downloaded curve25519-dalek v4.1.3
Downloaded typeid v1.0.3
Downloaded sqlite v0.37.0
Downloaded tree-sitter-typescript v0.23.2
Downloaded siphasher v1.0.2
Downloaded rustix v1.1.4
Downloaded quote v1.0.45
Downloaded chrono v0.4.44
Downloaded yansi v1.0.1
Downloaded rand_chacha v0.3.1
Downloaded zerofrom-derive v0.1.6
Downloaded zerofrom v0.1.6
Downloaded unit-prefix v0.5.2
Downloaded tracing-subscriber v0.3.23
Downloaded sha3 v0.10.8
Downloaded toml_datetime v0.7.5+spec-1.1.0
Downloaded serde_derive v1.0.228
Downloaded object v0.37.3
Downloaded typenum v1.19.0
Downloaded semver v1.0.27
Downloaded proptest v1.10.0
Downloaded libm v0.2.16
Downloaded aes-gcm v0.10.3
Downloaded toml v0.9.12+spec-1.1.0
Downloaded url v2.5.8
Downloaded radicle-git-ext v0.12.0
Downloaded derive_more-impl v2.1.1
Downloaded rand_chacha v0.9.0
Downloaded derive_more v2.1.1
Downloaded proc-macro-error-attr2 v2.0.0
Downloaded opaque-debug v0.3.1
Downloaded ed25519-dalek v2.2.0
Downloaded yoke-derive v0.8.1
Downloaded universal-hash v0.5.1
Downloaded clap_builder v4.6.0
Downloaded utf8parse v0.2.2
Downloaded ssh-key v0.6.7
Downloaded schemars v1.2.1
Downloaded value-bag-serde1 v1.12.0
Downloaded tinyvec v1.11.0
Downloaded tar v0.4.45
Downloaded prodash v31.0.0
Downloaded arc-swap v1.8.2
Downloaded clap_derive v4.6.0
Downloaded anstyle-parse v1.0.0
Downloaded tracing-core v0.1.36
Downloaded similar v2.7.0
Downloaded serde_json v1.0.149
Downloaded rsa v0.9.10
Downloaded emojis v0.6.4
Downloaded der v0.7.10
Downloaded thiserror-impl v2.0.18
Downloaded linux-raw-sys v0.12.1
Downloaded synstructure v0.13.2
Downloaded base64 v0.21.7
Downloaded ahash v0.8.12
Downloaded tinystr v0.8.2
Downloaded thread_local v1.1.9
Downloaded thiserror-impl v1.0.69
Downloaded thiserror v2.0.18
Downloaded systemd-journal-logger v2.2.2
Downloaded sval_nested v2.17.0
Downloaded multibase v0.9.2
Downloaded colored v2.2.0
Downloaded cipher v0.4.4
Downloaded bytesize v2.3.1
Downloaded secrecy v0.10.3
Downloaded num-bigint-dig v0.8.6
Downloaded test-log v0.2.19
Downloaded stable_deref_trait v1.2.1
Downloaded serde-untagged v0.1.9
Downloaded elliptic-curve v0.13.8
Downloaded sha2 v0.10.9
Downloaded p256 v0.13.2
Downloaded socket2 v0.5.10
Downloaded simd-adler32 v0.3.8
Downloaded radicle-surf v0.27.1
Downloaded cypheraddr v0.4.1
Downloaded sqlite3-sys v0.18.0
Downloaded serde_spanned v1.0.4
Downloaded crossbeam-utils v0.8.21
Downloaded signal-hook v0.3.18
Downloaded shlex v1.3.0
Downloaded rand v0.9.2
Downloaded email_address v0.2.9
Downloaded cyphergraphy v0.3.0
Downloaded signature v1.6.4
Downloaded serde v1.0.228
Downloaded rand v0.8.5
Downloaded qcheck-macros v1.0.0
Downloaded socks5-client v0.4.2
Downloaded signal-hook-registry v1.4.8
Downloaded parking_lot_core v0.9.12
Downloaded pretty_assertions v1.4.1
Downloaded lock_api v0.4.14
Downloaded serde_fmt v1.1.0
Downloaded spin v0.9.8
Downloaded signature v2.2.0
Downloaded signals_receipts v0.2.5
Downloaded salsa20 v0.10.2
Downloaded erased-serde v0.4.10
Downloaded siphasher v0.3.11
Downloaded rustc-demangle v0.1.27
Downloaded referencing v0.30.0
Downloaded radicle-std-ext v0.2.0
Downloaded pem-rfc7468 v0.7.0
Downloaded log v0.4.29
Downloaded crypto-common v0.1.7
Downloaded ryu v1.0.23
Downloaded curve25519-dalek-derive v0.1.1
Downloaded sec1 v0.7.3
Downloaded rfc6979 v0.4.0
Downloaded poly1305 v0.8.0
Downloaded crossterm v0.29.0
Downloaded addr2line v0.25.1
Downloaded serde_derive_internals v0.29.1
Downloaded sem_safe v0.2.1
Downloaded pkg-config v0.3.32
Downloaded data-encoding v2.10.0
Downloaded anstream v1.0.0
Downloaded scopeguard v1.2.0
Downloaded schemars_derive v1.2.1
Downloaded pastey v0.2.1
Downloaded sqlite3-src v0.7.0
Downloaded num-iter v0.1.45
Downloaded polyval v0.6.2
Downloaded phf_shared v0.11.3
Downloaded phf v0.11.3
Downloaded normalize-line-endings v0.3.0
Downloaded digest v0.10.7
Downloaded pin-project-lite v0.2.17
Downloaded env_logger v0.11.9
Downloaded either v1.15.0
Downloaded ec25519 v0.1.0
Downloaded dunce v1.0.5
Downloaded diff v0.1.13
Downloaded percent-encoding v2.3.2
Downloaded parking_lot v0.12.5
Downloaded chacha20poly1305 v0.10.1
Downloaded autocfg v1.5.0
Downloaded num-bigint v0.4.6
Downloaded aead v0.5.2
Downloaded qcheck v1.0.0
Downloaded num-cmp v0.1.0
Downloaded nu-ansi-term v0.50.3
Downloaded console v0.16.3
Downloaded chacha20 v0.9.1
Downloaded anyhow v1.0.102
Downloaded jiff v0.2.23
Downloaded potential_utf v0.1.4
Downloaded pkcs1 v0.7.5
Downloaded ref-cast-impl v1.0.25
Downloaded anstyle-query v1.1.5
Downloaded anstyle-parse v0.2.7
Downloaded memchr v2.8.0
Downloaded icu_normalizer_data v2.1.1
Downloaded outref v0.5.2
Downloaded num v0.4.3
Downloaded noise-framework v0.4.0
Downloaded clap_lex v1.1.0
Downloaded bitflags v2.11.0
Downloaded indexmap v2.13.0
Downloaded crypto-bigint v0.5.5
Downloaded bcrypt-pbkdf v0.10.0
Downloaded litemap v0.8.1
Downloaded ecdsa v0.16.9
Downloaded displaydoc v0.2.5
Downloaded data-encoding-macro-internal v0.1.17
Downloaded convert_case v0.10.0
Downloaded anstream v0.6.21
Downloaded ed25519 v1.5.3
Downloaded dyn-clone v1.0.20
Downloaded base64 v0.22.1
Downloaded itertools v0.14.0
Downloaded humantime v2.3.0
Downloaded gix-transport v0.54.0
Downloaded gimli v0.32.3
Downloaded equivalent v1.0.2
Downloaded colorchoice v1.0.5
Downloaded bstr v1.12.1
Downloaded lexopt v0.3.2
Downloaded human-panic v2.0.6
Downloaded gix-validate v0.11.0
Downloaded git2 v0.20.4
Downloaded faster-hex v0.10.0
Downloaded fancy-regex v0.14.0
Downloaded ct-codecs v1.1.6
Downloaded clap v4.6.0
Downloaded gix-revision v0.41.0
Downloaded gix-odb v0.75.0
Downloaded gix-commitgraph v0.33.0
Downloaded fast-glob v0.3.3
Downloaded gix-pack v0.65.0
Downloaded filetime v0.2.27
Downloaded fastrand v2.3.0
Downloaded env_filter v1.0.0
Downloaded base32 v0.4.0
Downloaded icu_properties_data v2.1.2
Downloaded iana-time-zone v0.1.65
Downloaded gix-hash v0.22.1
Downloaded gix-commitgraph v0.32.0
Downloaded cfg-if v1.0.4
Downloaded byteorder v1.5.0
Downloaded gix-prompt v0.13.1
Downloaded base64ct v1.8.3
Downloaded gix-fs v0.19.1
Downloaded gix-actor v0.39.0
Downloaded git-ref-format-macro v0.6.0
Downloaded icu_properties v2.1.2
Downloaded hash32 v0.3.1
Downloaded libz-sys v1.1.25
Downloaded base256emoji v1.0.2
Downloaded amplify_syn v2.0.1
Downloaded find-msvc-tools v0.1.9
Downloaded base16ct v0.2.0
Downloaded backtrace v0.3.76
Downloaded ascii v1.1.0
Downloaded blowfish v0.9.1
Downloaded base-x v0.2.11
Downloaded gix-protocol v0.57.0
Downloaded gix-object v0.56.0
Downloaded gix-date v0.13.0
Downloaded gix-chunk v0.5.0
Downloaded const-str v0.4.3
Downloaded amplify v4.9.0
Downloaded gix-revwalk v0.27.0
Downloaded gix-packetline v0.21.1
Downloaded escargot v0.5.15
Downloaded cc v1.2.57
Downloaded block-buffer v0.10.4
Downloaded adler2 v2.0.1
Downloaded keccak v0.1.6
Downloaded form_urlencoded v1.2.2
Downloaded cbc v0.1.2
Downloaded bytecount v0.6.9
Downloaded bit-vec v0.8.0
Downloaded amplify_derive v4.0.1
Downloaded gix-negotiate v0.27.0
Downloaded gix-hashtable v0.12.0
Downloaded git-ref-format-core v0.6.0
Downloaded bit-set v0.8.0
Downloaded hashbrown v0.16.1
Downloaded gix-url v0.35.2
Downloaded gix-revwalk v0.26.0
Downloaded gix-ref v0.59.0
Downloaded gix-glob v0.24.0
Downloaded icu_locale_core v2.1.1
Downloaded icu_collections v2.1.1
Downloaded gix-sec v0.13.1
Downloaded gix-features v0.46.1
Downloaded gix-date v0.14.0
Downloaded gix-credentials v0.36.0
Downloaded git-ref-format v0.6.0
Downloaded borrow-or-share v0.2.4
Downloaded fraction v0.15.3
Downloaded fnv v1.0.7
Downloaded anstyle v1.0.14
Downloaded heapless v0.8.0
Downloaded getrandom v0.4.2
Downloaded getrandom v0.3.4
Downloaded jiff-static v0.2.23
Downloaded gix-object v0.55.0
Downloaded gix-error v0.0.0
Downloaded getrandom v0.2.17
Downloaded idna_adapter v1.2.1
Downloaded block-padding v0.3.3
Downloaded aes v0.8.4
Downloaded gix-lock v21.0.1
Downloaded gix-command v0.7.1
Downloaded ff v0.13.1
Downloaded document-features v0.2.12
Compiling libc v0.2.183
Compiling proc-macro2 v1.0.106
Compiling quote v1.0.45
Compiling unicode-ident v1.0.24
Checking cfg-if v1.0.4
Checking zeroize v1.8.2
Compiling version_check v0.9.5
Compiling typenum v1.19.0
Compiling generic-array v0.14.7
Checking memchr v2.8.0
Compiling syn v2.0.117
Checking getrandom v0.2.17
Checking rand_core v0.6.4
Checking subtle v2.6.1
Compiling shlex v1.3.0
Checking crypto-common v0.1.7
Compiling find-msvc-tools v0.1.9
Checking regex-syntax v0.8.10
Compiling jobserver v0.1.34
Checking aho-corasick v1.1.4
Compiling cc v1.2.57
Checking const-oid v0.9.6
Checking smallvec v1.15.1
Compiling serde_core v1.0.228
Checking regex-automata v0.4.14
Checking block-buffer v0.10.4
Checking digest v0.10.7
Checking cpufeatures v0.2.17
Compiling thiserror v2.0.18
Checking stable_deref_trait v1.2.1
Checking fastrand v2.3.0
Compiling parking_lot_core v0.9.12
Checking scopeguard v1.2.0
Checking lock_api v0.4.14
Checking tinyvec_macros v0.1.1
Checking parking_lot v0.12.5
Checking tinyvec v1.11.0
Checking gix-trace v0.1.18
Compiling crc32fast v1.5.0
Checking bstr v1.12.1
Checking bitflags v2.11.0
Checking unicode-normalization v0.1.25
Checking byteorder v1.5.0
Checking gix-validate v0.11.0
Checking gix-utils v0.3.1
Checking itoa v1.0.17
Compiling typeid v1.0.3
Compiling erased-serde v0.4.10
Checking same-file v1.0.6
Checking hashbrown v0.16.1
Compiling serde v1.0.228
Compiling thiserror-impl v2.0.18
Compiling serde_derive v1.0.228
Checking walkdir v2.5.0
Checking prodash v31.0.0
Checking zlib-rs v0.6.3
Checking serde_fmt v1.1.0
Compiling heapless v0.8.0
Checking value-bag-serde1 v1.12.0
Checking hash32 v0.3.1
Checking gix-path v0.11.1
Compiling synstructure v0.13.2
Checking value-bag v1.12.0
Checking faster-hex v0.10.0
Checking gix-features v0.46.1
Compiling zerofrom-derive v0.1.6
Compiling yoke-derive v0.8.1
Checking log v0.4.29
Checking sha1 v0.10.6
Checking sha1-checked v0.10.0
Compiling rustix v1.1.4
Compiling pkg-config v0.3.32
Checking zerofrom v0.1.6
Checking gix-hash v0.22.1
Checking yoke v0.8.1
Compiling zerovec-derive v0.11.2
Checking block-padding v0.3.3
Compiling zerocopy v0.8.42
Checking linux-raw-sys v0.12.1
Compiling autocfg v1.5.0
Compiling libm v0.2.16
Compiling num-traits v0.2.19
Checking inout v0.1.4
Compiling displaydoc v0.2.5
Checking sha2 v0.10.9
Checking zerovec v0.11.5
Compiling getrandom v0.4.2
Checking cipher v0.4.4
Checking tinystr v0.8.2
Checking der v0.7.10
Checking writeable v0.6.2
Checking percent-encoding v2.3.2
Checking once_cell v1.21.4
Checking litemap v0.8.1
Checking potential_utf v0.1.4
Checking zerotrie v0.2.3
Checking icu_locale_core v2.1.1
Compiling thiserror v1.0.69
Compiling syn v1.0.109
Compiling icu_properties_data v2.1.2
Compiling icu_normalizer_data v2.1.1
Compiling zmij v1.0.21
Checking icu_provider v2.1.1
Checking icu_collections v2.1.1
Compiling thiserror-impl v1.0.69
Checking equivalent v1.0.2
Compiling serde_json v1.0.149
Checking indexmap v2.13.0
Checking ppv-lite86 v0.2.21
Checking num-integer v0.1.46
Checking hmac v0.12.1
Checking universal-hash v0.5.1
Checking opaque-debug v0.3.1
Compiling ref-cast v1.0.25
Compiling vcpkg v0.2.15
Compiling tree-sitter-language v0.1.7
Checking icu_properties v2.1.2
Checking icu_normalizer v2.1.1
Compiling libz-sys v1.1.25
Checking tempfile v3.27.0
Checking spki v0.7.3
Compiling ref-cast-impl v1.0.25
Checking signature v2.2.0
Checking ff v0.13.1
Checking spin v0.9.8
Checking base16ct v0.2.0
Checking group v0.13.0
Checking sec1 v0.7.3
Checking lazy_static v1.5.0
Checking idna_adapter v1.2.1
Checking rand_chacha v0.3.1
Checking crypto-bigint v0.5.5
Checking utf8_iter v1.0.4
Checking dyn-clone v1.0.20
Checking idna v1.1.0
Checking rand v0.8.5
Compiling amplify_syn v2.0.1
Checking num-iter v0.1.45
Compiling libgit2-sys v0.18.3+1.9.2
Checking aead v0.5.2
Checking elliptic-curve v0.13.8
Compiling semver v1.0.27
Checking signature v1.6.4
Compiling amplify_derive v4.0.1
Checking ed25519 v1.5.3
Compiling rustc_version v0.4.1
Checking poly1305 v0.8.0
Checking rfc6979 v0.4.0
Checking form_urlencoded v1.2.2
Checking chacha20 v0.9.1
Compiling serde_derive_internals v0.29.1
Checking ct-codecs v1.1.6
Checking ascii v1.1.0
Checking amplify_num v0.5.3
Compiling schemars_derive v1.2.1
Checking ec25519 v0.1.0
Checking amplify v4.9.0
Checking url v2.5.8
Checking ecdsa v0.16.9
Compiling curve25519-dalek v4.1.3
Checking primeorder v0.13.6
Checking git-ref-format-core v0.6.0
Checking polyval v0.6.2
Compiling num-bigint-dig v0.8.6
Checking base64ct v1.8.3
Checking ghash v0.5.1
Checking schemars v1.2.1
Checking cyphergraphy v0.3.0
Checking pem-rfc7468 v0.7.0
Checking pkcs8 v0.10.2
Checking pbkdf2 v0.12.2
Checking ctr v0.9.2
Checking aes v0.8.4
Compiling sqlite3-src v0.7.0
Compiling curve25519-dalek-derive v0.1.1
Checking keccak v0.1.6
Checking aes-gcm v0.10.3
Checking sha3 v0.10.8
Checking pkcs1 v0.7.5
Checking ssh-encoding v0.2.0
Checking ed25519 v2.2.3
Checking cbc v0.1.2
Checking blowfish v0.9.1
Checking base32 v0.4.0
Compiling data-encoding v2.10.0
Checking rsa v0.9.10
Checking cypheraddr v0.4.1
Compiling data-encoding-macro-internal v0.1.17
Checking bcrypt-pbkdf v0.10.0
Checking ssh-cipher v0.2.0
Checking ed25519-dalek v2.2.0
Checking p256 v0.13.2
Checking p384 v0.13.1
Checking p521 v0.13.3
Checking chacha20poly1305 v0.10.1
Checking qcheck v1.0.0
Compiling match-lookup v0.1.2
Checking const-str v0.4.3
Checking jiff v0.2.23
Checking data-encoding-macro v0.1.19
Checking base256emoji v1.0.2
Checking ssh-key v0.6.7
Checking noise-framework v0.4.0
Checking socks5-client v0.4.2
Checking secrecy v0.10.3
Checking base-x v0.2.11
Compiling crossbeam-utils v0.8.21
Checking multibase v0.9.2
Checking ssh-agent-lib v0.5.2
Checking cyphernet v0.5.3
Checking winnow v0.7.15
Checking crossbeam-channel v0.5.15
Checking utf8parse v0.2.2
Checking anstyle-query v1.1.5
Checking nonempty v0.9.0
Checking gix-hashtable v0.12.0
Checking siphasher v1.0.2
Checking radicle-git-metadata v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-metadata)
Checking gix-error v0.1.0
Checking radicle-dag v0.10.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-dag)
Checking memmap2 v0.9.10
Checking is_terminal_polyfill v1.70.2
Checking colorchoice v1.0.5
Checking anstyle v1.0.14
Checking radicle-git-ref-format v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-ref-format)
Compiling radicle v0.23.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle)
Checking base64 v0.21.7
Checking iana-time-zone v0.1.65
Checking chrono v0.4.44
Checking radicle-localtime v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-localtime)
Checking colored v2.2.0
Checking serde-untagged v0.1.9
Checking gix-error v0.0.0
Checking bytesize v2.3.1
Checking errno v0.3.14
Checking fast-glob v0.3.3
Checking dunce v1.0.5
Checking gix-date v0.14.0
Checking anstyle-parse v0.2.7
Checking anstream v0.6.21
Checking gix-actor v0.39.0
Checking gix-date v0.13.0
Checking gix-fs v0.19.1
Checking gix-tempfile v21.0.1
Checking gix-actor v0.38.0
Checking gix-object v0.56.0
Checking gix-chunk v0.6.0
Checking gix-quote v0.6.2
Checking gix-commitgraph v0.33.0
Checking gix-object v0.55.0
Checking gix-chunk v0.5.0
Checking mio v1.1.1
Checking sem_safe v0.2.1
Checking either v1.15.0
Checking shell-words v1.1.1
Checking gix-command v0.7.1
Checking signals_receipts v0.2.5
Checking gix-commitgraph v0.32.0
Checking gix-revwalk v0.27.0
Compiling object v0.37.3
Compiling rustversion v1.0.22
Checking gix-revwalk v0.26.0
Checking gix-lock v21.0.1
Checking gix-url v0.35.2
Checking gix-config-value v0.17.1
Checking gix-sec v0.13.1
Checking gimli v0.32.3
Compiling unicode-segmentation v1.12.0
Checking adler2 v2.0.1
Compiling signal-hook v0.3.18
Checking miniz_oxide v0.8.9
Compiling convert_case v0.10.0
Checking gix-prompt v0.13.1
Checking gix-traverse v0.52.0
Checking addr2line v0.25.1
Checking gix-revision v0.41.0
Checking radicle-signals v0.11.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-signals)
Checking gix-diff v0.58.0
Checking signal-hook-registry v1.4.8
Checking gix-glob v0.24.0
Checking gix-packetline v0.21.1
Compiling tree-sitter v0.24.7
Checking rustc-demangle v0.1.27
Compiling anyhow v1.0.102
Checking backtrace v0.3.76
Checking gix-transport v0.54.0
Checking gix-refspec v0.37.0
Checking gix-pack v0.65.0
Checking arc-swap v1.8.2
Checking gix-credentials v0.36.0
Compiling derive_more-impl v2.1.1
Checking gix-shallow v0.8.1
Checking gix-ref v0.59.0
Checking gix-negotiate v0.27.0
Compiling maybe-async v0.2.10
Checking regex v1.12.3
Compiling proc-macro-error-attr2 v2.0.0
Compiling portable-atomic v1.13.1
Compiling simd-adler32 v0.3.8
Checking unicode-width v0.2.2
Compiling getrandom v0.3.4
Compiling litrs v1.0.0
Compiling document-features v0.2.12
Compiling proc-macro-error2 v2.0.1
Checking gix-protocol v0.57.0
Checking derive_more v2.1.1
Checking gix-odb v0.75.0
Checking signal-hook-mio v0.2.5
Compiling xattr v1.6.1
Compiling filetime v0.2.27
Checking anstyle-parse v1.0.0
Checking uuid v1.22.0
Checking bytes v1.11.1
Checking anstream v1.0.0
Compiling tar v0.4.45
Compiling flate2 v1.1.9
Checking crossterm v0.29.0
Compiling git-ref-format-macro v0.6.0
Checking console v0.16.3
Checking snapbox-macros v0.3.10
Checking salsa20 v0.10.2
Checking unit-prefix v0.5.2
Compiling heck v0.5.0
Checking normalize-line-endings v0.3.0
Checking streaming-iterator v0.1.9
Checking siphasher v0.3.11
Checking similar v2.7.0
Checking strsim v0.11.1
Checking clap_lex v1.1.0
Checking clap_builder v4.6.0
Checking snapbox v0.4.17
Checking bloomy v1.2.0
Compiling clap_derive v4.6.0
Compiling radicle-surf v0.27.1
Checking indicatif v0.18.4
Checking scrypt v0.11.0
Checking git-ref-format v0.6.0
Checking inquire v0.9.4
Checking sqlite3-sys v0.18.0
Checking sqlite v0.37.0
Checking unicode-display-width v0.3.0
Checking systemd-journal-logger v2.2.2
Checking radicle-crypto v0.16.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-crypto)
Checking toml_datetime v0.7.5+spec-1.1.0
Checking serde_spanned v1.0.4
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-c v0.23.4
Compiling tree-sitter-rust v0.23.3
Compiling tree-sitter-python v0.23.6
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-json v0.24.8
Compiling tree-sitter-css v0.23.2
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-bash v0.23.3
Checking pin-project-lite v0.2.17
Checking radicle-std-ext v0.2.0
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 clap v4.6.0
Checking sysinfo v0.37.2
Checking yansi v1.0.1
Compiling radicle-node v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-node)
Compiling radicle-cli v0.20.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cli)
Checking diff v0.1.13
Checking pretty_assertions v1.4.1
Checking human-panic v2.0.6
Checking clap_complete v4.6.0
Checking structured-logger v1.0.5
Checking radicle-systemd v0.12.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/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 humantime v2.3.0
Compiling escargot v0.5.15
Checking timeago v0.4.2
Checking lexopt v0.3.2
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 num-rational v0.4.2
Checking phf_shared v0.11.3
Compiling test-log-macros v0.2.19
Checking wait-timeout v0.2.1
Checking num v0.4.3
Checking vsimd v0.8.0
Checking quick-error v1.2.3
Checking fnv v1.0.7
Checking outref v0.5.2
Compiling radicle-remote-helper v0.16.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-remote-helper)
Checking rusty-fork v0.3.1
Checking test-log v0.2.19
Checking fraction v0.15.3
Checking uuid-simd v0.8.0
Checking phf v0.11.3
Checking referencing v0.30.0
Checking rand_chacha v0.9.0
Checking rand_xorshift v0.4.0
Checking rand v0.9.2
Checking fancy-regex v0.14.0
Checking email_address v0.2.9
Checking unarray v0.1.4
Checking num-cmp v0.1.0
Checking base64 v0.22.1
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 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-windows)
Checking git2 v0.20.4
Checking radicle-oid v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-oid)
Checking radicle-git-ext v0.12.0
Checking radicle-term v0.17.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-term)
Checking radicle-core v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-core)
Checking radicle-cob v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cob)
Checking radicle-fetch v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-fetch)
Checking radicle-cli-test v0.13.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cli-test)
Checking radicle-schemars v0.7.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-schemars)
Checking radicle-protocol v0.7.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-protocol)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.13s
+ 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 aho-corasick v1.1.4
Compiling getrandom v0.2.17
Compiling rand_core v0.6.4
Compiling jobserver v0.1.34
Compiling crypto-common v0.1.7
Compiling cc v1.2.57
Compiling const-oid v0.9.6
Compiling smallvec v1.15.1
Compiling serde_core v1.0.228
Compiling regex-automata v0.4.14
Compiling block-buffer v0.10.4
Compiling digest v0.10.7
Compiling cpufeatures v0.2.17
Compiling stable_deref_trait v1.2.1
Compiling thiserror v2.0.18
Compiling fastrand v2.3.0
Compiling scopeguard v1.2.0
Compiling lock_api v0.4.14
Compiling parking_lot_core v0.9.12
Compiling bitflags v2.11.0
Compiling parking_lot v0.12.5
Compiling tinyvec_macros v0.1.1
Compiling tinyvec v1.11.0
Compiling gix-trace v0.1.18
Compiling byteorder v1.5.0
Compiling crc32fast v1.5.0
Compiling unicode-normalization v0.1.25
Compiling itoa v1.0.17
Compiling typeid v1.0.3
Compiling hashbrown v0.16.1
Compiling same-file v1.0.6
Compiling walkdir v2.5.0
Compiling gix-utils v0.3.1
Compiling erased-serde v0.4.10
Compiling prodash v31.0.0
Compiling zlib-rs v0.6.3
Compiling bstr v1.12.1
Compiling serde v1.0.228
Compiling gix-validate v0.11.0
Compiling serde_fmt v1.1.0
Compiling gix-path v0.11.1
Compiling value-bag-serde1 v1.12.0
Compiling hash32 v0.3.1
Compiling heapless v0.8.0
Compiling value-bag v1.12.0
Compiling faster-hex v0.10.0
Compiling log v0.4.29
Compiling zerofrom v0.1.6
Compiling sha1 v0.10.6
Compiling sha1-checked v0.10.0
Compiling yoke v0.8.1
Compiling block-padding v0.3.3
Compiling linux-raw-sys v0.12.1
Compiling zerovec v0.11.5
Compiling inout v0.1.4
Compiling sha2 v0.10.9
Compiling cipher v0.4.4
Compiling zerocopy v0.8.42
Compiling libm v0.2.16
Compiling gix-features v0.46.1
Compiling gix-hash v0.22.1
Compiling rustix v1.1.4
Compiling num-traits v0.2.19
Compiling getrandom v0.4.2
Compiling tinystr v0.8.2
Compiling der v0.7.10
Compiling litemap v0.8.1
Compiling once_cell v1.21.4
Compiling percent-encoding v2.3.2
Compiling writeable v0.6.2
Compiling icu_locale_core v2.1.1
Compiling zerotrie v0.2.3
Compiling potential_utf v0.1.4
Compiling icu_collections v2.1.1
Compiling icu_provider v2.1.1
Compiling equivalent v1.0.2
Compiling ppv-lite86 v0.2.21
Compiling indexmap v2.13.0
Compiling zmij v1.0.21
Compiling icu_normalizer_data v2.1.1
Compiling icu_properties_data v2.1.2
Compiling num-integer v0.1.46
Compiling hmac v0.12.1
Compiling universal-hash v0.5.1
Compiling opaque-debug v0.3.1
Compiling libz-sys v1.1.25
Compiling thiserror v1.0.69
Compiling icu_properties v2.1.2
Compiling serde_json v1.0.149
Compiling icu_normalizer v2.1.1
Compiling tempfile v3.27.0
Compiling spki v0.7.3
Compiling signature v2.2.0
Compiling ff v0.13.1
Compiling spin v0.9.8
Compiling base16ct v0.2.0
Compiling lazy_static v1.5.0
Compiling group v0.13.0
Compiling idna_adapter v1.2.1
Compiling sec1 v0.7.3
Compiling ref-cast v1.0.25
Compiling rand_chacha v0.3.1
Compiling crypto-bigint v0.5.5
Compiling utf8_iter v1.0.4
Compiling dyn-clone v1.0.20
Compiling idna v1.1.0
Compiling rand v0.8.5
Compiling num-iter v0.1.45
Compiling libgit2-sys v0.18.3+1.9.2
Compiling aead v0.5.2
Compiling signature v1.6.4
Compiling ed25519 v1.5.3
Compiling poly1305 v0.8.0
Compiling rfc6979 v0.4.0
Compiling form_urlencoded v1.2.2
Compiling elliptic-curve v0.13.8
Compiling chacha20 v0.9.1
Compiling ct-codecs v1.1.6
Compiling amplify_num v0.5.3
Compiling ascii v1.1.0
Compiling ec25519 v0.1.0
Compiling ecdsa v0.16.9
Compiling primeorder v0.13.6
Compiling url v2.5.8
Compiling git-ref-format-core v0.6.0
Compiling amplify v4.9.0
Compiling polyval v0.6.2
Compiling base64ct v1.8.3
Compiling ghash v0.5.1
Compiling cyphergraphy v0.3.0
Compiling schemars v1.2.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 keccak v0.1.6
Compiling sha3 v0.10.8
Compiling aes-gcm v0.10.3
Compiling curve25519-dalek v4.1.3
Compiling pkcs1 v0.7.5
Compiling ssh-encoding v0.2.0
Compiling num-bigint-dig v0.8.6
Compiling ed25519 v2.2.3
Compiling cbc v0.1.2
Compiling blowfish v0.9.1
Compiling base32 v0.4.0
Compiling cypheraddr v0.4.1
Compiling rsa v0.9.10
Compiling bcrypt-pbkdf v0.10.0
Compiling ssh-cipher v0.2.0
Compiling ed25519-dalek v2.2.0
Compiling p521 v0.13.3
Compiling p384 v0.13.1
Compiling p256 v0.13.2
Compiling chacha20poly1305 v0.10.1
Compiling qcheck v1.0.0
Compiling const-str v0.4.3
Compiling jiff v0.2.23
Compiling data-encoding v2.10.0
Compiling data-encoding-macro v0.1.19
Compiling base256emoji v1.0.2
Compiling noise-framework v0.4.0
Compiling ssh-key v0.6.7
Compiling socks5-client v0.4.2
Compiling secrecy v0.10.3
Compiling base-x v0.2.11
Compiling multibase v0.9.2
Compiling ssh-agent-lib v0.5.2
Compiling cyphernet v0.5.3
Compiling crossbeam-utils v0.8.21
Compiling winnow v0.7.15
Compiling crossbeam-channel v0.5.15
Compiling utf8parse v0.2.2
Compiling anstyle-query v1.1.5
Compiling gix-hashtable v0.12.0
Compiling nonempty v0.9.0
Compiling siphasher v1.0.2
Compiling gix-error v0.1.0
Compiling radicle-dag v0.10.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-dag)
Compiling radicle-git-metadata v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-metadata)
Compiling memmap2 v0.9.10
Compiling anstyle v1.0.14
Compiling is_terminal_polyfill v1.70.2
Compiling colorchoice v1.0.5
Compiling radicle-git-ref-format v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-ref-format)
Compiling radicle v0.23.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle)
Compiling iana-time-zone v0.1.65
Compiling base64 v0.21.7
Compiling chrono v0.4.44
Compiling radicle-localtime v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-localtime)
Compiling colored v2.2.0
Compiling tree-sitter-language v0.1.7
Compiling gix-error v0.0.0
Compiling serde-untagged v0.1.9
Compiling bytesize v2.3.1
Compiling errno v0.3.14
Compiling fast-glob v0.3.3
Compiling dunce v1.0.5
Compiling gix-date v0.14.0
Compiling anstyle-parse v0.2.7
Compiling adler2 v2.0.1
Compiling gix-actor v0.39.0
Compiling anstream v0.6.21
Compiling gix-date v0.13.0
Compiling gix-fs v0.19.1
Compiling gix-tempfile v21.0.1
Compiling gix-actor v0.38.0
Compiling gix-object v0.56.0
Compiling gix-chunk v0.6.0
Compiling gix-quote v0.6.2
Compiling gix-commitgraph v0.33.0
Compiling gix-object v0.55.0
Compiling gix-chunk v0.5.0
Compiling mio v1.1.1
Compiling sem_safe v0.2.1
Compiling either v1.15.0
Compiling shell-words v1.1.1
Compiling signals_receipts v0.2.5
Compiling gix-command v0.7.1
Compiling gix-commitgraph v0.32.0
Compiling gix-revwalk v0.27.0
Compiling unicode-segmentation v1.12.0
Compiling gix-revwalk v0.26.0
Compiling gix-lock v21.0.1
Compiling gix-url v0.35.2
Compiling gix-config-value v0.17.1
Compiling gix-sec v0.13.1
Compiling gimli v0.32.3
Compiling gix-prompt v0.13.1
Compiling convert_case v0.10.0
Compiling gix-traverse v0.52.0
Compiling object v0.37.3
Compiling addr2line v0.25.1
Compiling gix-revision v0.41.0
Compiling radicle-signals v0.11.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-signals)
Compiling gix-diff v0.58.0
Compiling miniz_oxide v0.8.9
Compiling signal-hook-registry v1.4.8
Compiling gix-glob v0.24.0
Compiling gix-packetline v0.21.1
Compiling tree-sitter v0.24.7
Compiling rustc-demangle v0.1.27
Compiling backtrace v0.3.76
Compiling sqlite3-sys v0.18.0
Compiling gix-transport v0.54.0
Compiling sqlite v0.37.0
Compiling radicle-crypto v0.16.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-crypto)
Compiling gix-refspec v0.37.0
Compiling signal-hook v0.3.18
Compiling gix-pack v0.65.0
Compiling arc-swap v1.8.2
Compiling derive_more-impl v2.1.1
Compiling gix-credentials v0.36.0
Compiling gix-shallow v0.8.1
Compiling gix-ref v0.59.0
Compiling gix-negotiate v0.27.0
Compiling regex v1.12.3
Compiling unicode-width v0.2.2
Compiling gix-protocol v0.57.0
Compiling gix-odb v0.75.0
Compiling derive_more v2.1.1
Compiling signal-hook-mio v0.2.5
Compiling xattr v1.6.1
Compiling anstyle-parse v1.0.0
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 anstream v1.0.0
Compiling crossterm v0.29.0
Compiling anyhow v1.0.102
Compiling getrandom v0.3.4
Compiling flate2 v1.1.9
Compiling portable-atomic v1.13.1
Compiling console v0.16.3
Compiling snapbox-macros v0.3.10
Compiling salsa20 v0.10.2
Compiling siphasher v0.3.11
Compiling similar v2.7.0
Compiling normalize-line-endings v0.3.0
Compiling clap_lex v1.1.0
Compiling unit-prefix v0.5.2
Compiling strsim v0.11.1
Compiling streaming-iterator v0.1.9
Compiling snapbox v0.4.17
Compiling clap_builder v4.6.0
Compiling indicatif v0.18.4
Compiling bloomy v1.2.0
Compiling scrypt v0.11.0
Compiling inquire v0.9.4
Compiling radicle-surf v0.27.1
Compiling git-ref-format v0.6.0
Compiling unicode-display-width v0.3.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-rust v0.23.3
Compiling tree-sitter-typescript v0.23.2
Compiling tree-sitter-ruby v0.23.1
Compiling tree-sitter-python v0.23.6
Compiling tree-sitter-html v0.23.2
Compiling tree-sitter-bash v0.23.3
Compiling tree-sitter-c v0.23.4
Compiling tree-sitter-md v0.3.2
Compiling tree-sitter-toml-ng v0.6.0
Compiling tree-sitter-go v0.23.4
Compiling tree-sitter-css v0.23.2
Compiling tree-sitter-json v0.24.8
Compiling toml_writer v1.0.7+spec-1.1.0
Compiling pin-project-lite v0.2.17
Compiling radicle-std-ext v0.2.0
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 diff v0.1.13
Compiling radicle-cli v0.20.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cli)
Compiling yansi v1.0.1
Compiling radicle-node v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-node)
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.12.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/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 timeago v0.4.2
Compiling humantime v2.3.0
Compiling bit-vec v0.8.0
Compiling bit-set v0.8.0
Compiling escargot v0.5.15
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 env_logger v0.11.9
Compiling ahash v0.8.12
Compiling num v0.4.3
Compiling phf_shared v0.11.3
Compiling wait-timeout v0.2.1
Compiling git2 v0.20.4
Compiling outref v0.5.2
Compiling radicle-remote-helper v0.16.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-remote-helper)
Compiling quick-error v1.2.3
Compiling fnv v1.0.7
Compiling vsimd v0.8.0
Compiling rusty-fork v0.3.1
Compiling test-log v0.2.19
Compiling phf v0.11.3
Compiling fraction v0.15.3
Compiling uuid-simd v0.8.0
Compiling referencing v0.30.0
Compiling rand v0.9.2
Compiling rand_chacha v0.9.0
Compiling rand_xorshift v0.4.0
Compiling fancy-regex v0.14.0
Compiling email_address v0.2.9
Compiling bytecount v0.6.9
Compiling unarray v0.1.4
Compiling base64 v0.22.1
Compiling num-cmp v0.1.0
Compiling jsonschema v0.30.0
Compiling proptest v1.10.0
Compiling radicle-oid v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-oid)
Compiling radicle-core v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-core)
Compiling radicle-cob v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cob)
Compiling radicle-git-ext v0.12.0
Compiling radicle-term v0.17.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-term)
Compiling emojis v0.6.4
Compiling radicle-windows v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-windows)
Compiling radicle-fetch v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-fetch)
Compiling radicle-protocol v0.7.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-protocol)
Compiling radicle-cli-test v0.13.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cli-test)
Compiling radicle-schemars v0.7.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-schemars)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 58.84s
+ cargo doc --workspace --no-deps --all-features
Checking regex-automata v0.4.14
Compiling num-traits v0.2.19
Compiling syn v1.0.109
Checking once_cell v1.21.4
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
Checking bstr v1.12.1
Compiling amplify_syn v2.0.1
Checking gix-validate v0.11.0
Checking git-ref-format-core v0.6.0
Checking gix-path v0.11.1
Compiling amplify_derive v4.0.1
Checking gix-features v0.46.1
Checking rsa v0.9.10
Checking gix-hash v0.22.1
Checking radicle-git-ref-format v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-ref-format)
Checking gix-hashtable v0.12.0
Checking ssh-key v0.6.7
Checking radicle-oid v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-oid)
Checking gix-error v0.1.0
Checking rusty-fork v0.3.1
Checking gix-error v0.0.0
Checking radicle-dag v0.10.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-dag)
Checking proptest v1.10.0
Checking radicle-git-metadata v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-metadata)
Checking gix-date v0.14.0
Checking ssh-agent-lib v0.5.2
Checking chrono v0.4.44
Checking radicle-localtime v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-localtime)
Checking gix-actor v0.39.0
Checking amplify v4.9.0
Checking gix-date v0.13.0
Checking gix-fs v0.19.1
Checking cyphergraphy v0.3.0
Checking gix-tempfile v21.0.1
Checking gix-actor v0.38.0
Checking cypheraddr v0.4.1
Checking noise-framework v0.4.0
Checking gix-object v0.56.0
Checking gix-chunk v0.6.0
Checking gix-quote v0.6.2
Checking socks5-client v0.4.2
Checking gix-commitgraph v0.33.0
Checking gix-object v0.55.0
Checking cyphernet v0.5.3
Checking radicle-crypto v0.16.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-crypto)
Checking gix-chunk v0.5.0
Checking gix-command v0.7.1
Checking gix-commitgraph v0.32.0
Checking gix-revwalk v0.27.0
Checking radicle-core v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-core)
Checking radicle-cob v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cob)
Checking gix-lock v21.0.1
Checking gix-config-value v0.17.1
Checking gix-url v0.35.2
Checking gix-revwalk v0.26.0
Checking gix-traverse v0.52.0
Checking gix-prompt v0.13.1
Checking gix-diff v0.58.0
Checking gix-revision v0.41.0
Checking radicle-signals v0.11.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-signals)
Checking gix-glob v0.24.0
Checking radicle v0.23.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle)
Checking gix-packetline v0.21.1
Checking regex v1.12.3
Checking gix-transport v0.54.0
Checking gix-refspec v0.37.0
Checking tree-sitter v0.24.7
Checking gix-pack v0.65.0
Checking git-ref-format v0.6.0
Checking inquire v0.9.4
Checking gix-credentials v0.36.0
Checking gix-shallow v0.8.1
Checking gix-ref v0.59.0
Checking gix-negotiate v0.27.0
Checking radicle-git-ext v0.12.0
Checking gix-odb v0.75.0
Checking uuid v1.22.0
Compiling radicle-cli v0.20.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cli)
Checking human-panic v2.0.6
Checking gix-protocol v0.57.0
Checking radicle-surf v0.27.1
Checking tree-sitter-toml-ng v0.6.0
Checking radicle-term v0.17.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-term)
Checking tree-sitter-highlight v0.24.7
Checking radicle-systemd v0.12.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-systemd)
Documenting radicle-systemd v0.12.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-systemd)
Documenting radicle-term v0.17.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-term)
Documenting radicle v0.23.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle)
Documenting radicle-cob v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cob)
Documenting radicle-core v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-core)
Documenting radicle-signals v0.11.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-signals)
Documenting radicle-crypto v0.16.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-crypto)
Documenting radicle-oid v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-oid)
Documenting radicle-git-ref-format v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-ref-format)
Documenting radicle-localtime v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-localtime)
Documenting radicle-git-metadata v0.2.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-git-metadata)
Documenting radicle-dag v0.10.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-dag)
Documenting radicle-windows v0.1.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-windows)
Checking radicle-fetch v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-fetch)
Documenting radicle-cli v0.20.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cli)
Documenting radicle-schemars v0.7.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-schemars)
Checking radicle-protocol v0.7.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-protocol)
Documenting radicle-protocol v0.7.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-protocol)
Documenting radicle-node v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-node)
Documenting radicle-cli-test v0.13.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-cli-test)
Documenting radicle-fetch v0.19.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-fetch)
Documenting radicle-remote-helper v0.16.0 (/ffadd987-7052-4a0f-8dfd-4bffe319d638/w/crates/radicle-remote-helper)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.92s
Generated /ffadd987-7052-4a0f-8dfd-4bffe319d638/w/target/doc/radicle/index.html and 20 other files
+ cargo test --workspace --no-fail-fast
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s
Running unittests src/lib.rs (target/debug/deps/radicle-284bae2ddbc7a249)
running 373 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::tests::test_check_version ... ok
test cob::cache::migrations::_2::tests::test_patch_json_deserialization ... ok
test cob::cache::tests::test_migrate_to ... ok
test cob::cache::migrations::_2::tests::test_migration_2 ... ok
test cob::common::test::test_title ... ok
test cob::common::test::test_color ... ok
test cob::common::test::test_emojis ... ok
test cob::identity::test::prop_json_eq_str ... ok
test cob::identity::test::test_identity_redact_revision ... ok
test cob::identity::test::test_identity_reject_concurrent ... ok
test cob::identity::test::test_identity_remove_delegate_concurrent ... ok
test cob::identity::test::test_identity_updates ... ok
test cob::identity::test::test_identity_update_rejected ... ok
test cob::issue::cache::tests::test_counts ... 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 ... ok
test cob::issue::cache::tests::test_list_by_status ... ok
test cob::issue::cache::tests::test_remove ... ok
test cob::identity::test::test_identity_updates_concurrent ... ok
test cob::identity::test::test_valid_identity ... ok
test cob::issue::test::test_embeds ... ok
test cob::identity::test::test_identity_updates_concurrent_outdated ... ok
test cob::issue::test::test_embeds_edit ... ok
test cob::issue::test::test_invalid_actions ... ok
test cob::issue::test::test_invalid_tx ... ok
test cob::issue::test::test_invalid_cob ... ok
test cob::issue::test::test_concurrency ... ok
test cob::issue::test::test_invalid_tx_reference ... ok
test cob::issue::test::test_issue_all ... ok
test cob::issue::test::test_issue_comment_redact ... ok
test cob::issue::test::test_issue_comment ... 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_unassign ... ok
test cob::issue::test::test_issue_create_and_reassign ... ok
test cob::issue::test::test_issue_edit ... ok
test cob::issue::test::test_issue_edit_description ... 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_label ... ok
test cob::issue::test::test_issue_reply ... ok
test cob::patch::cache::tests::test_is_empty ... ok
test cob::patch::cache::tests::test_list ... ok
test cob::patch::cache::tests::test_get ... ok
test cob::patch::cache::tests::test_list_by_status ... 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_serialization ... ok
test cob::patch::test::test_patch_create_and_get ... ok
test cob::patch::cache::tests::test_remove ... ok
test cob::patch::test::test_patch_discussion ... ok
test cob::patch::test::test_patch_merge ... ok
test cob::patch::test::test_patch_redact ... ok
test cob::patch::test::test_patch_review ... ok
test cob::patch::test::test_patch_review_comment ... ok
test cob::patch::test::test_patch_review_duplicate ... ok
test cob::patch::test::test_patch_review_edit ... ok
test cob::patch::cache::tests::test_counts ... 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_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::stream::tests::test_all_from ... ok
test cob::stream::tests::test_all_from_until ... ok
test cob::patch::test::test_patch_review_revision_redact ... ok
test cob::stream::tests::test_all_until ... ok
test cob::stream::tests::test_from_until ... ok
test cob::stream::tests::test_regression_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::patch::test::test_patch_update ... ok
test cob::thread::tests::test_edit_comment ... ok
test cob::thread::tests::test_duplicate_comments ... ok
test cob::thread::tests::test_redact_comment ... 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 cob::thread::tests::test_timeline ... 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 git::canonical::rules::test::canonical ... 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::patch::cache::tests::test_find_by_revision ... ok
test identity::doc::test::test_canonical_doc ... ok
test identity::doc::test::test_canonical_example ... 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 git::canonical::tests::test_quorum_properties ... 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::test_alias ... ok
test node::address::store::test::test_disconnected ... ok
test node::address::store::test::test_disconnected_ban ... ok
test identity::doc::test::test_max_delegates ... 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 node::address::store::test::test_insert_and_update ... ok
test node::address::store::test::test_insert_duplicate ... ok
test node::address::store::test::test_node_aliases ... 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::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_aliases ... ok
test node::policy::store::test::test_node_policies ... ok
test node::address::store::test::test_empty ... ok
test node::policy::store::test::test_repo_policies ... ok
test node::policy::store::test::test_node_policy ... ok
test node::policy::store::test::test_repo_policy ... 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_delete ... ok
test node::refs::store::test::test_set_and_get ... 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_insert_and_remove ... ok
test node::routing::test::test_len ... 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::sync::announce::test::all_synced_nodes_are_preferred_seeds ... ok
test node::sync::announce::test::announcer_adapts_target_to_reach ... ok
test node::routing::test::test_prune ... ok
test cob::thread::tests::prop_ordering ... 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_preferred_seeds ... 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_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::announcer_timed_out ... 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_multiple_sets ... ok
test node::sync::announce::test::local_node_in_preferred_seeds ... ok
test node::sync::announce::test::local_node_only_in_all_sets_results_in_no_seeds_error ... ok
test node::sync::announce::test::local_node_in_synced_set ... ok
test node::sync::announce::test::local_node_in_unsynced_set ... ok
test node::sync::announce::test::synced_with_local_node_is_ignored ... ok
test node::sync::announce::test::preferred_seeds_already_synced ... 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::could_not_reach_target ... ok
test node::sync::fetch::test::all_nodes_are_candidates ... ok
test node::sync::fetch::test::ignores_duplicates_and_local_node ... ok
test node::sync::fetch::test::all_nodes_are_fetchable ... 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::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::test::test_user_agent ... ok
test node::timestamp::tests::test_timestamp_max ... ok
test node::sync::fetch::test::reaches_target_of_preferred_seeds ... ok
test profile::test::canonicalize_home ... ok
test profile::test::test_config ... ok
test node::sync::fetch::test::reaches_target_of_replicas ... ok
test rad::tests::test_fork ... ok
test rad::tests::test_checkout ... 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 profile::config::test::schema ... ok
test identity::doc::test::prop_encode_decode ... 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 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. 373 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.96s
Running unittests src/lib.rs (target/debug/deps/radicle_cli-d8852f669d3b3d3c)
running 46 tests
test commands::block::args::test::should_not_parse ... ok
test commands::block::args::test::should_parse_nid ... ok
test commands::block::args::test::should_parse_rid ... ok
test commands::clone::args::test::should_parse_rid_non_urn ... ok
test commands::clone::args::test::should_parse_rid_urn ... ok
test commands::clone::args::test::should_parse_rid_url ... ok
test commands::cob::args::test::should_allow_log_json_format ... ok
test commands::cob::args::test::should_allow_show_json_format ... ok
test commands::cob::args::test::should_allow_update_json_format ... ok
test commands::cob::args::test::should_allow_log_pretty_format ... ok
test commands::fork::args::test::should_not_parse_rid_url ... 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::cob::args::test::should_not_allow_update_pretty_format ... 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::cob::args::test::should_not_allow_show_pretty_format ... ok
test commands::id::args::test::should_not_parse_single_payloads ... ok
test commands::id::args::test::should_parse_into_payload ... ok
test commands::id::args::test::should_parse_multiple_payloads ... ok
test commands::id::args::test::should_parse_single_payload ... ok
test commands::init::args::test::should_not_parse_rid_url ... ok
test commands::init::args::test::should_parse_rid_non_urn ... ok
test commands::init::args::test::should_parse_rid_urn ... ok
test commands::patch::review::builder::tests::test_review_comments_before ... 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_multiline ... ok
test commands::patch::review::builder::tests::test_review_comments_split_hunk ... ok
test commands::publish::args::test::should_parse_rid_urn ... ok
test commands::publish::args::test::should_not_parse_rid_url ... ok
test commands::publish::args::test::should_parse_rid_non_urn ... ok
test commands::watch::args::test::should_parse_ref_str ... ok
test git::pretty_diff::test::test_pretty ... ignored
test git::ddiff::tests::diff_encode_decode_ddiff_hunk ... ok
test git::unified_diff::test::test_diff_content_encode_decode_content ... ok
test terminal::args::test::should_parse_nid ... ok
test terminal::args::test::should_parse_rid ... ok
test git::unified_diff::test::test_diff_encode_decode_diff ... ok
test terminal::args::test::should_not_parse ... ok
test terminal::format::test::test_bytes ... ok
test terminal::format::test::test_strip_comments ... ok
test terminal::patch::test::test_edit_display_message ... 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-d7148e4be585f448)
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-a62477ed1cea73f9)
running 118 tests
test commands::clone::rad_clone_bare ... ok
test commands::clone::rad_clone ... ok
test commands::checkout::rad_checkout ... 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_connect ... ok
test commands::clone::rad_clone_partial_fail ... 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::git::git_tag ... ok
test commands::id::rad_id ... ok
test commands::git::git_push_rollback ... ok
test commands::id::rad_id_private ... ok
test commands::id::rad_id_threshold_soft_fork ... ok
test commands::id::rad_id_conflict ... 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_no_git ... ok
test commands::init::rad_init_existing_bare ... 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_checkout_revision ... ok
test commands::patch::rad_patch_detached_head ... ok
test commands::patch::rad_patch_diff ... ok
test commands::patch::rad_patch_checkout_force ... ok
test commands::patch::rad_patch_draft ... ok
test commands::patch::rad_patch_edit ... ok
test commands::patch::rad_patch_fetch_2 ... ok
test commands::patch::rad_patch_fetch_1 ... ok
test commands::patch::rad_patch_merge_draft ... ok
test commands::patch::rad_patch_delete ... ok
test commands::patch::rad_patch_revert_merge ... ok
test commands::patch::rad_patch_open_explore ... ok
test commands::patch::rad_patch_update ... ok
test commands::patch::rad_patch_via_push ... ok
test commands::patch::rad_review_by_hunk ... ok
test commands::policy::rad_seed_and_follow ... ok
test commands::policy::rad_block ... 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_unseed_many ... ok
test commands::policy::rad_seed_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::utility::rad_clean ... 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_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_old_nodes ... ok
test commands::sync::rad_fetch ... ok
test commands::watch::rad_watch ... 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. 115 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 74.21s
Running unittests src/lib.rs (target/debug/deps/radicle_cli_test-eb16d72524d258cf)
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-6e6d599ab2b9d6d3)
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::traverse_cobs ... ok
test tests::git::update_cob ... ok
test tests::parse_refstr ... 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-4336e90d66078914)
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-bd6b2a9d3a72ece5)
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_fingerprint ... ok
test ssh::fmt::test::test_key ... 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.83s
Running unittests src/lib.rs (target/debug/deps/radicle_dag-05f7457e7194a495)
running 20 tests
test tests::test_cycle ... ok
test tests::test_contains ... ok
test tests::test_dependencies ... ok
test tests::test_diamond ... ok
test tests::test_fold_diamond ... ok
test tests::test_fold_reject ... ok
test tests::test_fold_sorting_1 ... ok
test tests::test_fold_sorting_2 ... ok
test tests::test_get ... ok
test tests::test_complex ... ok
test tests::test_len ... ok
test tests::test_is_empty ... ok
test tests::test_fold_multiple_roots ... ok
test tests::test_merge_2 ... ok
test tests::test_merge_1 ... ok
test tests::test_prune_1 ... 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 1 test
Running unittests src/lib.rs (target/debug/deps/radicle_fetch-b86dafb29fe0d411)
Running unittests src/lib.rs (target/debug/deps/radicle_git_metadata-7266929c438027dc)
test stage::test::valid_refspecs ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
running 24 tests
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_committer ... ok
test commit::parse::test::error::invalid_parent ... ok
test commit::parse::test::error::invalid_tree ... ok
test commit::parse::test::error::missing_author ... 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::error::missing_header_body_separator ... ok
test commit::parse::test::success::commit_with_extra_headers ... 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_multiline_gpgsig ... ok
test commit::parse::test::success::commit_with_trailers ... ok
test commit::parse::test::success::root_commit ... ok
test commit::parse::test::success::commit_with_single_parent ... ok
test commit::parse::test::success::roundtrip ... ok
test commit::parse::test::success::merge_commit ... ok
test commit::parse::test::unit::body_last_paragraph_not_trailers_stays_in_message ... ok
test commit::parse::test::unit::trailers_accepts_empty_input ... ok
test commit::parse::test::unit::trailers_rejects_line_without_separator ... ok
test commit::parse::test::unit::body_no_paragraph_separator_means_no_trailers ... ok
test commit::parse::test::unit::trailers_rejects_invalid_token_chars ... 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-b95a9bd0637298c8)
running 9 tests
test test::component ... ok
test test::component_invalid - should panic ... ok
test test::qualified ... ok
test test::pattern ... ok
test test::qualified_pattern ... ok
test test::qualified_pattern_invalid - should panic ... ok
test test::qualified_invalid - should panic ... ok
test test::refname ... ok
test test::refname_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-9ecb37b1e50cb4e3)
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_node-2533066ad317110a)
running 80 tests
test reactor::timer::tests::test_next ... ok
test reactor::timer::tests::test_wake ... ok
test control::tests::test_control_socket ... ok
test reactor::timer::tests::test_wake_exact ... ok
test control::tests::test_seed_unseed ... ok
test fingerprint::tests::matching ... 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_background_foreground_fetch ... ok
test tests::e2e::test_block_active_connection ... ok
test tests::e2e::test_block_prevents_connection ... ok
test tests::e2e::test_block_prevents_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_fetch_emits_canonical_ref_update_partial_glob ... ok
test tests::e2e::test_dont_fetch_owned_refs ... ok
test tests::e2e::test_fetch_preserve_owned_refs ... ok
test tests::e2e::test_fetch_followed_remotes ... ok
test tests::e2e::test_concurrent_fetches ... ok
test tests::e2e::test_fetch_unseeded ... ok
test tests::e2e::test_fetch_up_to_date ... ok
test tests::e2e::test_inventory_sync_basic ... ok
test tests::e2e::test_fetch_emits_canonical_ref_update ... 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_inventory_sync_bridge ... ok
test tests::e2e::test_replication_invalid ... ok
test tests::e2e::test_inventory_sync_ring ... ok
test tests::e2e::test_replication_ref_in_sigrefs ... ok
test tests::e2e::test_inventory_sync_star ... ok
test tests::test_announcement_rebroadcast ... ok
test tests::test_announcement_rebroadcast_duplicates ... ok
test tests::test_announcement_rebroadcast_timestamp_filtered ... ok
test tests::test_announcement_relay ... ok
test tests::test_connection_kept_alive ... ok
test tests::test_disconnecting_unresponsive_peer ... ok
test tests::test_fetch_missing_inventory_on_gossip ... ok
test tests::test_fetch_missing_inventory_on_schedule ... ok
test tests::test_inbound_connection ... ok
test tests::test_inventory_decode ... ok
test tests::test_init_and_seed ... ok
test tests::test_inventory_relay ... ok
test tests::test_inventory_relay_bad_timestamp ... ok
test tests::test_inventory_sync ... ok
test tests::test_maintain_connections ... ok
test tests::test_maintain_connections_failed_attempt ... ok
test tests::test_maintain_connections_transient ... ok
test tests::test_outbound_connection ... ok
test tests::test_inventory_pruning ... ok
test tests::test_persistent_peer_connect ... ok
test tests::test_persistent_peer_reconnect_success ... ok
test tests::test_persistent_peer_reconnect_attempt ... ok
test tests::test_ping_response ... ok
test tests::test_queued_fetch_from_ann_same_rid ... ok
test tests::test_queued_fetch_max_capacity ... ok
test tests::test_queued_fetch_from_command_same_rid ... ok
test tests::test_redundant_connect ... ok
test tests::test_refs_announcement_fetch_trusted_no_inventory ... ok
test tests::test_refs_announcement_followed ... ok
test tests::test_refs_announcement_no_subscribe ... ok
test tests::test_refs_announcement_offline ... ok
test tests::prop_inventory_exchange_dense ... ok
test tests::test_refs_announcement_relay_private ... ok
test tests::test_refs_announcement_relay_public ... ok
test tests::test_seeding ... ok
test wire::test::test_inventory_ann_with_extension ... ok
test wire::test::test_pong_message_with_extension ... ok
test tests::test_seed_repo_subscribe ... ok
test tests::test_refs_synced_event ... ok
test tests::test_announcement_message_amplification ... ok
test result: ok. 80 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 14.95s
Running unittests src/main.rs (target/debug/deps/radicle_node-5201008517dff8db)
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-32b41d88203b7116)
running 10 tests
test fmt::test::fixture ... ok
test fmt::test::zero ... ok
test git2::test::zero ... ok
test gix::test::zero ... ok
test str::test::fixture ... ok
test fmt::test::git2 ... ok
test str::test::zero ... ok
test str::test::git2_roundtrip ... ok
test str::test::gix_roundtrip ... ok
test fmt::test::gix ... 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-a4bf0c341b89fcf1)
running 99 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::capacity::capacity_reached_returns_same_item ... ok
test fetcher::test::queue::properties::capacity::restored_after_dequeue ... ok
test fetcher::test::queue::properties::dequeue::drained_queue_returns_none ... 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::equality::symmetric ... ok
test fetcher::test::queue::properties::merge::combines_refs ... ok
test fetcher::test::queue::properties::merge::longer_timeout_preserved ... ok
test fetcher::test::queue::properties::equality::transitive ... ok
test fetcher::test::queue::properties::merge::does_not_increase_queue_length ... 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::queue::properties::merge::empty_refs_fetches_all ... ok
test fetcher::test::state::command::cancel::non_existent_returns_unexpected ... ok
test fetcher::test::state::command::cancel::cancellation_is_isolated ... ok
test fetcher::test::state::command::cancel::single_ongoing ... ok
test fetcher::test::state::command::cancel::ongoing_and_queued ... 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_same_repo_different_nodes_queues_second ... ok
test fetcher::test::state::command::fetch::fetch_queue_rejected_capacity_reached ... 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_single_ongoing ... ok
test fetcher::test::state::command::fetched::complete_one_of_multiple ... ok
test fetcher::test::queue::properties::merge::succeed_when_at_capacity ... ok
test fetcher::test::state::command::fetched::non_existent_returns_not_found ... ok
test fetcher::test::state::command::fetched::complete_then_dequeue_fifo ... ok
test fetcher::test::state::concurrent::fetched_then_cancel ... ok
test fetcher::test::state::concurrent::interleaved_operations ... ok
test fetcher::test::state::config::min_queue_size ... ok
test fetcher::test::state::dequeue::empty_queue_returns_none ... ok
test fetcher::test::state::dequeue::cannot_dequeue_while_node_at_capacity ... ok
test fetcher::test::state::invariant::queue_integrity_after_merge ... ok
test fetcher::test::state::dequeue::maintains_fifo_order ... 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::filter::test::test_sizes ... ok
test service::gossip::store::test::test_announced ... ok
test service::limiter::test::test_limiter_different_rates ... ok
test service::limiter::test::test_limiter_multi ... ok
test service::limiter::test::test_limiter_refill ... ok
test service::message::tests::test_inventory_limit ... ok
test fetcher::test::state::config::high_concurrency ... 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::tests::prop_roundtrip_publickey ... 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::message::tests::prop_roundtrip_message ... ok
test wire::message::tests::test_refs_ann_max_size ... ok
test wire::message::tests::prop_message_decoder ... ok
test result: ok. 99 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-b923f1db61110bf2)
running 12 tests
test protocol::tests::test_capabilities ... ok
test protocol::tests::test_empty ... ok
test protocol::tests::test_fetch_whitespace ... ok
test protocol::tests::test_fetch ... 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_force ... ok
test protocol::tests::test_push ... ok
test protocol::tests::test_push_delete ... ok
test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/main.rs (target/debug/deps/radicle_schemars-6f7430e80541ad16)
Running unittests src/lib.rs (target/debug/deps/radicle_signals-edd60ee35e85748c)
Running unittests src/lib.rs (target/debug/deps/radicle_systemd-d0fb15a14ac3d4e9)
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-51db4123a6bc434a)
running 21 tests
test ansi::tests::colors_disabled ... ok
test ansi::tests::wrapping ... ok
test ansi::tests::colors_enabled ... ok
test cell::test::test_width ... ok
test element::test::test_spaced ... ok
test element::test::test_width ... ok
test element::test::test_truncate ... ok
test table::test::test_table ... ok
test table::test::test_table_border ... ok
test table::test::test_table_border_maximized ... ok
test table::test::test_table_truncate ... ok
test table::test::test_table_unicode ... ok
test table::test::test_table_unicode_truncate ... ok
test table::test::test_table_border_truncated ... ok
test table::test::test_truncate ... ok
test textarea::test::test_wrapping ... ok
test textarea::test::test_wrapping_code_block ... ok
test textarea::test::test_wrapping_fenced_block ... ok
test vstack::test::test_vstack ... ok
test vstack::test::test_vstack_maximize ... ok
test textarea::test::test_wrapping_paragraphs ... ok
test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running unittests src/lib.rs (target/debug/deps/radicle_windows-2c067555aa9e0165)
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
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_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>::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>::push (line 122) ... ok
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>::unbound (line 149) ... ok
test crates/radicle-protocol/src/bounded.rs - bounded::BoundedVec<T,N>::with_capacity (line 66) ... ok
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
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
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"
}