rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood1811ee13f6d300ab5198440e1681e24576fb5cf7
{
"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:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"action": "Created",
"patch": {
"id": "ce8d51cfce2f975f7d34687f19f9bfddeefb0cb9",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"title": "cli: do not require RID for sync inventory",
"state": {
"status": "merged",
"conflicts": []
},
"before": "5de9ec17ebce22fe38198a3382ca29ba2e24f0b1",
"after": "1811ee13f6d300ab5198440e1681e24576fb5cf7",
"commits": [
"1811ee13f6d300ab5198440e1681e24576fb5cf7"
],
"target": "3fc92f83fe089263c470b328414d923227cf0e4a",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "ce8d51cfce2f975f7d34687f19f9bfddeefb0cb9",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "The inventory operation of the `rad sync` command does not require an\nRID. Localise resolving the RID in the match arms that require it.\n\nSigned-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>\nX-Clacks-Overhead: GNU Terry Pratchett",
"base": "5de9ec17ebce22fe38198a3382ca29ba2e24f0b1",
"oid": "1811ee13f6d300ab5198440e1681e24576fb5cf7",
"timestamp": 1711022481
},
{
"id": "abda720ab0625fee837f1fea7c8d518f59aeb876",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Rebase.",
"base": "057af40ea360b4372bab65c4a60a8555afc58cf5",
"oid": "ea31040ec6202d748d4465998213f91b213cdf71",
"timestamp": 1711049361
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "013e366d-bc4a-4522-9a56-9388e03eda5d"
},
"info_url": "https://cci.rad.levitte.org//013e366d-bc4a-4522-9a56-9388e03eda5d.html"
}
Started at: 2026-09-08 03:47:32.389288+02:00
Commands:
$ rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 .
✓ Creating checkout in ./...
✓ Remote cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT added
✓ Remote-tracking branch cloudhead@z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT/master created for z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT
✓ Remote fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM added
✓ Remote-tracking branch fintohaps@z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM/master created for z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM
✓ 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/013e366d-bc4a-4522-9a56-9388e03eda5d/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 38 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout ce8d51cfce2f975f7d34687f19f9bfddeefb0cb9
✓ Switched to branch patch/ce8d51c at revision ce8d51c
✓ Branch patch/ce8d51c setup to track rad/patches/ce8d51cfce2f975f7d34687f19f9bfddeefb0cb9
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 1811ee13f6d300ab5198440e1681e24576fb5cf7
HEAD is now at 1811ee13 cli: do not require RID for sync inventory
Exit code: 0
$ rad patch show ce8d51cfce2f975f7d34687f19f9bfddeefb0cb9 -p
╭────────────────────────────────────────────────────────────────────────────────╮
│ Title cli: do not require RID for sync inventory │
│ Patch ce8d51cfce2f975f7d34687f19f9bfddeefb0cb9 │
│ Author fintohaps z6Mkire…SQZ3voM │
│ Head 1811ee13f6d300ab5198440e1681e24576fb5cf7 │
│ Base 5de9ec17ebce22fe38198a3382ca29ba2e24f0b1 │
│ Target master │
│ Branches patch/ce8d51c │
│ Commits ahead 2, behind 1510 │
│ Status merged │
│ │
│ The inventory operation of the `rad sync` command does not require an │
│ RID. Localise resolving the RID in the match arms that require it. │
│ │
│ Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> │
│ X-Clacks-Overhead: GNU Terry Pratchett │
├────────────────────────────────────────────────────────────────────────────────┤
│ 1811ee1 cli: do not require RID for sync inventory │
├────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision ce8d51c @ 5de9ec1..1811ee1 by fintohaps z6Mkire…SQZ3voM 2 years ago │
│ ↑ Revision abda720 @ 057af40..ea31040 by cloudhead z6MksFq…bS9wzpT 2 years ago │
│ └─ ✓ merged by cloudhead z6MksFq…bS9wzpT │
╰────────────────────────────────────────────────────────────────────────────────╯
commit 1811ee13f6d300ab5198440e1681e24576fb5cf7
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Thu Mar 21 11:59:03 2024 +0000
cli: do not require RID for sync inventory
The inventory operation of the `rad sync` command does not require an
RID. Localise resolving the RID in the match arms that require it.
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
diff --git a/radicle-cli/src/commands/sync.rs b/radicle-cli/src/commands/sync.rs
index 27405f3e8..1af044762 100644
--- a/radicle-cli/src/commands/sync.rs
+++ b/radicle-cli/src/commands/sync.rs
@@ -298,15 +298,6 @@ impl Args for Options {
pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
let profile = ctx.profile()?;
- let rid = match options.rid {
- Some(rid) => rid,
- None => {
- let (_, rid) =
- radicle::rad::cwd().context("Current directory is not a Radicle repository")?;
-
- rid
- }
- };
let mut node = radicle::Node::new(profile.socket());
if !node.is_running() {
anyhow::bail!(
@@ -316,13 +307,29 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
match options.op {
Operation::Status => {
+ let rid = match options.rid {
+ Some(rid) => rid,
+ None => {
+ let (_, rid) = radicle::rad::cwd()
+ .context("Current directory is not a Radicle repository")?;
+ rid
+ }
+ };
sync_status(rid, &mut node, &profile, &options)?;
}
Operation::Synchronize(SyncMode::Repo {
settings,
direction,
}) => {
- let settings = settings.with_profile(&profile);
+ let rid = match options.rid {
+ Some(rid) => rid,
+ None => {
+ let (_, rid) = radicle::rad::cwd()
+ .context("Current directory is not a Radicle repository")?;
+ rid
+ }
+ };
+ let settings = settings.clone().with_profile(&profile);
if [SyncDirection::Fetch, SyncDirection::Both].contains(&direction) {
if !profile.policies()?.is_seeding(&rid)? {
Exit code: 0
shell: 'cargo --version rustc --version cargo fmt --check cargo clippy --all-targets --workspace -- --deny clippy::all cargo build --all-targets --workspace cargo doc --workspace cargo test --workspace --no-fail-fast '
Commands:
$ podman run --name 013e366d-bc4a-4522-9a56-9388e03eda5d -v /opt/radcis/ci.rad.levitte.org/cci/state/013e366d-bc4a-4522-9a56-9388e03eda5d/s:/013e366d-bc4a-4522-9a56-9388e03eda5d/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/013e366d-bc4a-4522-9a56-9388e03eda5d/w:/013e366d-bc4a-4522-9a56-9388e03eda5d/w -w /013e366d-bc4a-4522-9a56-9388e03eda5d/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /013e366d-bc4a-4522-9a56-9388e03eda5d/s/script.sh
+ cargo --version
info: syncing channel updates for '1.74-x86_64-unknown-linux-gnu'
info: latest update on 2023-12-07, rust version 1.74.1 (a28077b28 2023-12-04)
info: downloading component 'cargo'
info: downloading component 'rust-std'
info: downloading component 'rustc'
info: installing component 'cargo'
info: installing component 'rust-std'
info: installing component 'rustc'
cargo 1.74.1 (ecb9851af 2023-10-18)
+ rustc --version
rustc 1.74.1 (a28077b28 2023-12-04)
+ cargo fmt --check
error: 'cargo-fmt' is not installed for the toolchain '1.74-x86_64-unknown-linux-gnu'.
To install, run `rustup component add --toolchain 1.74-x86_64-unknown-linux-gnu rustfmt`
Exit code: 1
{
"response": "finished",
"result": "failure"
}