rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwoodf9512443edd8714398b9a25eb68dd9ab339745b9
{
"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": "Created",
"patch": {
"id": "3c1b187ed915468fdb2a41f70f79a217a7094a2c",
"author": {
"id": "did:key:z6MkhgPg6WShnhJcmfwox4G5yL3EvJ2zW8L31SZLD95yUi11",
"alias": "arnaud.mbp"
},
"title": "cli: more explicit error message when rad node logs fail",
"state": {
"status": "merged",
"conflicts": []
},
"before": "f6aa46a283f63025882551a27e6d2145939560f5",
"after": "f9512443edd8714398b9a25eb68dd9ab339745b9",
"commits": [
"f9512443edd8714398b9a25eb68dd9ab339745b9",
"703d3c40241cc136cd90e4f67c016e1e5bf4ec0e"
],
"target": "6cfed884bf37cba1e0d8e97fa8b0e94df4a04b1f",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "3c1b187ed915468fdb2a41f70f79a217a7094a2c",
"author": {
"id": "did:key:z6MkhgPg6WShnhJcmfwox4G5yL3EvJ2zW8L31SZLD95yUi11",
"alias": "arnaud.mbp"
},
"description": "If the rad node is spawned by systemd there won't be any logs file\nto read and `rad node logs` command will fail with the standard\nerror message from fs.",
"base": "0bb0fe8f258194cae4bc4177c36f177f20c2d467",
"oid": "e757161c7266f8c9477eff92de99fd6fd94bd47e",
"timestamp": 1730797290
},
{
"id": "31834b762f797aeef9b25aeb1bec135e9aae1a8a",
"author": {
"id": "did:key:z6MkhgPg6WShnhJcmfwox4G5yL3EvJ2zW8L31SZLD95yUi11",
"alias": "arnaud.mbp"
},
"description": "use cli prefix for commit message",
"base": "0bb0fe8f258194cae4bc4177c36f177f20c2d467",
"oid": "d75a79fe6d561529c8df71fe75786404e026e3b9",
"timestamp": 1730799468
},
{
"id": "3139c14df196474d36a56597f6b5d347d7fe9485",
"author": {
"id": "did:key:z6MkhgPg6WShnhJcmfwox4G5yL3EvJ2zW8L31SZLD95yUi11",
"alias": "arnaud.mbp"
},
"description": "Rebase with master",
"base": "f6aa46a283f63025882551a27e6d2145939560f5",
"oid": "703d3c40241cc136cd90e4f67c016e1e5bf4ec0e",
"timestamp": 1730812158
},
{
"id": "d4f8da5f88c6444ba843b363094785e714f9d79c",
"author": {
"id": "did:key:z6MkhgPg6WShnhJcmfwox4G5yL3EvJ2zW8L31SZLD95yUi11",
"alias": "arnaud.mbp"
},
"description": "Rename reader -> file and improve error message",
"base": "f6aa46a283f63025882551a27e6d2145939560f5",
"oid": "f9512443edd8714398b9a25eb68dd9ab339745b9",
"timestamp": 1730833989
},
{
"id": "fb9490f6be877b6ada9f8a49b70189492179e5f5",
"author": {
"id": "did:key:z6MkhgPg6WShnhJcmfwox4G5yL3EvJ2zW8L31SZLD95yUi11",
"alias": "arnaud.mbp"
},
"description": "Update copy.",
"base": "3ad84420bd882f983c2f9b605e7a68f5bdf95f5c",
"oid": "0ecdc764221fddf442c3e019098dc6f09697ef6c",
"timestamp": 1732699177
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "89d08bba-21e8-4950-9dbb-7c6c2227124a"
},
"info_url": "https://cci.rad.levitte.org//89d08bba-21e8-4950-9dbb-7c6c2227124a.html"
}
Started at: 2025-10-21 17:38:58.388115+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/89d08bba-21e8-4950-9dbb-7c6c2227124a/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 125 issues · 15 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 3c1b187ed915468fdb2a41f70f79a217a7094a2c
✓ Switched to branch patch/3c1b187 at revision d4f8da5
✓ Branch patch/3c1b187 setup to track rad/patches/3c1b187ed915468fdb2a41f70f79a217a7094a2c
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout f9512443edd8714398b9a25eb68dd9ab339745b9
HEAD is now at f9512443 Rename reader -> file and improve error message
Exit code: 0
$ git show f9512443edd8714398b9a25eb68dd9ab339745b9
commit f9512443edd8714398b9a25eb68dd9ab339745b9
Author: Arnaud Bailly <arnaud.bailly@iohk.io>
Date: Tue Nov 5 20:12:22 2024 +0100
Rename reader -> file and improve error message
diff --git a/radicle-cli/src/commands/node/control.rs b/radicle-cli/src/commands/node/control.rs
index 0d2a0159..ab2bddf9 100644
--- a/radicle-cli/src/commands/node/control.rs
+++ b/radicle-cli/src/commands/node/control.rs
@@ -129,19 +129,21 @@ pub fn debug(node: &mut Node) -> anyhow::Result<()> {
pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) -> anyhow::Result<()> {
let logs_path = profile.home.node().join("node.log");
- let mut reader = File::open(logs_path.clone())
+ let mut file = File::open(logs_path.clone())
.map(BufReader::new)
- .with_context(|| format!("Failed to open logs from {}. If radicle node is run with systemd, check systemd logs.", logs_path.display()))?;
+ .with_context(|| format!("Failed to read logs from file {}. Did you start
+the node with 'rad node start'? If radicle node is run through a process manager,
+check out logs using the manager's tool.", logs_path.display()))?;
- reader.seek(SeekFrom::End(0))?;
+ file.seek(SeekFrom::End(0))?;
let mut tail = Vec::new();
let mut nlines = 0;
- for i in (1..=reader.stream_position()?).rev() {
+ for i in (1..=file.stream_position()?).rev() {
let mut buf = [0; 1];
- reader.seek(SeekFrom::Start(i - 1))?;
- reader.read_exact(&mut buf)?;
+ file.seek(SeekFrom::Start(i - 1))?;
+ file.read_exact(&mut buf)?;
if buf[0] == b'\n' {
nlines += 1;
@@ -156,13 +158,13 @@ pub fn logs(lines: usize, follow: Option<time::Duration>, profile: &Profile) ->
print!("{}", term::format::dim(String::from_utf8_lossy(&tail)));
if let Some(timeout) = follow {
- reader.seek(SeekFrom::End(0))?;
+ file.seek(SeekFrom::End(0))?;
let start = time::Instant::now();
while start.elapsed() < timeout {
let mut line = String::new();
- let len = reader.read_line(&mut line)?;
+ let len = file.read_line(&mut line)?;
if len == 0 {
thread::sleep(time::Duration::from_millis(250));
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 89d08bba-21e8-4950-9dbb-7c6c2227124a -v /opt/radcis/ci.rad.levitte.org/cci/state/89d08bba-21e8-4950-9dbb-7c6c2227124a/s:/89d08bba-21e8-4950-9dbb-7c6c2227124a/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/89d08bba-21e8-4950-9dbb-7c6c2227124a/w:/89d08bba-21e8-4950-9dbb-7c6c2227124a/w -w /89d08bba-21e8-4950-9dbb-7c6c2227124a/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:bookworm bash /89d08bba-21e8-4950-9dbb-7c6c2227124a/s/script.sh
+ cargo --version
info: syncing channel updates for '1.80-x86_64-unknown-linux-gnu'
info: latest update on 2024-08-08, rust version 1.80.1 (3f5fd8dd4 2024-08-06)
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.80.1 (376290515 2024-07-16)
+ rustc --version
rustc 1.80.1 (3f5fd8dd4 2024-08-06)
+ cargo fmt --check
Diff in /89d08bba-21e8-4950-9dbb-7c6c2227124a/w/radicle-cli/src/commands/node/control.rs at line 131:
let logs_path = profile.home.node().join("node.log");
let mut file = File::open(logs_path.clone())
.map(BufReader::new)
- .with_context(|| format!("Failed to read logs from file {}. Did you start
+ .with_context(|| {
+ format!(
+ "Failed to read logs from file {}. Did you start
the node with 'rad node start'? If radicle node is run through a process manager,
-check out logs using the manager's tool.", logs_path.display()))?;
+check out logs using the manager's tool.",
+ logs_path.display()
+ )
+ })?;
file.seek(SeekFrom::End(0))?;
Exit code: 1
{
"response": "finished",
"result": "failure"
}