rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood574ac3566bd465d5306cd58d17ff9c87a5118ddd
{
"request": "trigger",
"version": 1,
"event_type": "push",
"repository": {
"id": "rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5",
"name": "heartwood",
"description": "Radicle Heartwood Protocol & Stack",
"private": false,
"default_branch": "master",
"delegates": [
"did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT",
"did:key:z6MktaNvN1KVFMkSRAiN4qK5yvX1zuEEaseeX5sffhzPZRZW",
"did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"did:key:z6MkgFq6z5fkF2hioLLSNu1zP2qEL1aHXHZzGH1FLFGAnBGz",
"did:key:z6MkkPvBfjP4bQmco5Dm7UGsX2ruDBieEHi8n9DVJWX5sTEz"
]
},
"pusher": {
"id": "did:key:z6MkiESKhUQSCQ7SS2J2PKmhenC7e7ywxj7vHpskBGYxRGLM",
"alias": null
},
"before": "574ac3566bd465d5306cd58d17ff9c87a5118ddd",
"after": "574ac3566bd465d5306cd58d17ff9c87a5118ddd",
"branch": "master",
"commits": [
"574ac3566bd465d5306cd58d17ff9c87a5118ddd"
]
}
{
"response": "triggered",
"run_id": {
"id": "1d6a9b3b-6065-4397-bd0c-fb893cd87f42"
},
"info_url": "https://cci.rad.levitte.org//1d6a9b3b-6065-4397-bd0c-fb893cd87f42.html"
}
Started at: 2025-10-21 17:44:40.744442+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/1d6a9b3b-6065-4397-bd0c-fb893cd87f42/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 125 issues · 15 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 574ac3566bd465d5306cd58d17ff9c87a5118ddd
HEAD is now at 574ac356 httpd: Remove diff and branches from history route
Exit code: 0
$ git show 574ac3566bd465d5306cd58d17ff9c87a5118ddd
commit 574ac3566bd465d5306cd58d17ff9c87a5118ddd
Author: Sebastian Martinez <me@sebastinez.dev>
Date: Wed Apr 10 11:33:13 2024 +0200
httpd: Remove diff and branches from history route
diff --git a/radicle-httpd/src/api/v1/projects.rs b/radicle-httpd/src/api/v1/projects.rs
index 19965d06..49dd197a 100644
--- a/radicle-httpd/src/api/v1/projects.rs
+++ b/radicle-httpd/src/api/v1/projects.rs
@@ -214,41 +214,21 @@ async fn history_handler(
let commits = repo
.history(&sha)?
- .filter(|q| {
- if let Ok(q) = q {
- if let (Some(since), Some(until)) = (since, until) {
- q.committer.time.seconds() >= since && q.committer.time.seconds() < until
- } else if let Some(since) = since {
- q.committer.time.seconds() >= since
- } else if let Some(until) = until {
- q.committer.time.seconds() < until
- } else {
- // If neither `since` nor `until` are specified, we include the commit.
- true
- }
- } else {
- false
+ .filter_map(|commit| {
+ let commit = commit.ok()?;
+ let time = commit.committer.time.seconds();
+ let commit = api::json::commit(&commit);
+ match (since, until) {
+ (Some(since), Some(until)) if time >= since && time < until => Some(commit),
+ (Some(since), None) if time >= since => Some(commit),
+ (None, Some(until)) if time < until => Some(commit),
+ (None, None) => Some(commit),
+ _ => None,
}
})
.skip(page * per_page)
.take(per_page)
- .map(|r| {
- r.and_then(|c| {
- let glob = Glob::all_heads().branches().and(Glob::all_remotes());
- let branches: Vec<String> = repo
- .revision_branches(c.id, glob)?
- .iter()
- .map(|b| b.refname().to_string())
- .collect();
- let diff = repo.diff_commit(c.id)?;
- Ok(json!({
- "commit": api::json::commit(&c),
- "diff": diff,
- "branches": branches
- }))
- })
- })
- .collect::<Result<Vec<_>, _>>()?;
+ .collect::<Vec<_>>();
let response = json!({
"commits": commits,
@@ -1124,320 +1104,54 @@ mod routes {
json!({
"commits": [
{
- "commit": {
- "id": HEAD,
- "author": {
- "name": "Alice Liddell",
- "email": "alice@radicle.xyz"
- },
- "summary": "Add another folder",
- "description": "",
- "parents": [
- "ee8d6a29304623a78ebfa5eeed5af674d0e58f83",
- ],
- "committer": {
- "name": "Alice Liddell",
- "email": "alice@radicle.xyz",
- "time": 1673003014
- },
+ "id": HEAD,
+ "author": {
+ "name": "Alice Liddell",
+ "email": "alice@radicle.xyz"
},
- "diff": {
- "added": [
- {
- "path": "README",
- "diff": {
- "type": "plain",
- "hunks": [
- {
- "header": "@@ -0,0 +1 @@\n",
- "lines": [
- {
- "line": "Hello World!\n",
- "lineNo": 1,
- "type": "addition",
- },
- ],
- "old": {
- "start": 0,
- "end": 0,
- },
- "new": {
- "start": 1,
- "end": 2,
- },
- },
- ],
- "stats": {
- "additions": 1,
- "deletions": 0,
- },
- "eof": "noneMissing",
- },
- "new": {
- "oid": "980a0d5f19a64b4b30a87d4206aade58726b60e3",
- "mode": "blob",
- },
- },
- {
- "path": "dir1/README",
- "diff": {
- "type": "plain",
- "hunks": [
- {
- "header": "@@ -0,0 +1 @@\n",
- "lines": [
- {
- "line": "Hello World from dir1!\n",
- "lineNo": 1,
- "type": "addition"
- }
- ],
- "old": {
- "start": 0,
- "end": 0,
- },
- "new": {
- "start": 1,
- "end": 2,
- },
- }
- ],
- "stats": {
- "additions": 1,
- "deletions": 0,
- },
- "eof": "noneMissing",
- },
- "new": {
- "oid": "1dd5654ca2d2cf9f33b14c92b5ca9e1d21a91ae1",
- "mode": "blob",
- },
- }
- ],
- "deleted": [
- {
- "path": "CONTRIBUTING",
- "diff": {
- "type": "plain",
- "hunks": [
- {
- "header": "@@ -1 +0,0 @@\n",
- "lines": [
- {
- "line": "Thank you very much!\n",
- "lineNo": 1,
- "type": "deletion",
- },
- ],
- "old": {
- "start": 1,
- "end": 2,
- },
- "new": {
- "start": 0,
- "end": 0,
- },
- },
- ],
- "stats": {
- "additions": 0,
- "deletions": 1,
- },
- "eof": "noneMissing",
- },
- "old": {
- "oid": "82eb77880c693655bce074e3dbbd9fa711dc018b",
- "mode": "blob",
- },
- },
- ],
- "moved": [],
- "copied": [],
- "modified": [],
- "stats": {
- "filesChanged": 3,
- "insertions": 2,
- "deletions": 1
- }
+ "summary": "Add another folder",
+ "description": "",
+ "parents": [
+ "ee8d6a29304623a78ebfa5eeed5af674d0e58f83",
+ ],
+ "committer": {
+ "name": "Alice Liddell",
+ "email": "alice@radicle.xyz",
+ "time": 1673003014
},
- "branches": [
- "refs/heads/master"
- ]
},
{
- "commit": {
- "id": PARENT,
- "author": {
- "name": "Alice Liddell",
- "email": "alice@radicle.xyz"
- },
- "summary": "Add contributing file",
- "description": "",
- "parents": [
- "f604ce9fd5b7cc77b7609beda45ea8760bee78f7",
- ],
- "committer": {
- "name": "Alice Liddell",
- "email": "alice@radicle.xyz",
- "time": 1673002014,
- },
- },
- "diff": {
- "added": [
- {
- "path": "CONTRIBUTING",
- "diff": {
- "type": "plain",
- "hunks": [
- {
- "header": "@@ -0,0 +1 @@\n",
- "lines": [
- {
- "line": "Thank you very much!\n",
- "lineNo": 1,
- "type": "addition",
- },
- ],
- "old": {
- "start": 0,
- "end": 0,
- },
- "new": {
- "start": 1,
- "end": 2,
- },
- },
- ],
- "stats": {
- "additions": 1,
- "deletions": 0,
- },
- "eof": "noneMissing",
- },
- "new": {
- "oid": "82eb77880c693655bce074e3dbbd9fa711dc018b",
- "mode": "blob",
- },
- },
- ],
- "deleted": [
- {
- "path": "README",
- "diff": {
- "type": "plain",
- "hunks": [
- {
- "header": "@@ -1 +0,0 @@\n",
- "lines": [
- {
- "line": "Hello World!\n",
- "lineNo": 1,
- "type": "deletion",
- },
- ],
- "old": {
- "start": 1,
- "end": 2,
- },
- "new": {
- "start": 0,
- "end": 0,
- },
- },
- ],
- "stats": {
- "additions": 0,
- "deletions": 1,
- },
- "eof": "noneMissing",
- },
- "old": {
- "oid": "980a0d5f19a64b4b30a87d4206aade58726b60e3",
- "mode": "blob",
- },
- },
- ],
- "moved": [],
- "copied": [],
- "modified": [],
- "stats": {
- "filesChanged": 2,
- "insertions": 1,
- "deletions": 1,
- },
+ "id": PARENT,
+ "author": {
+ "name": "Alice Liddell",
+ "email": "alice@radicle.xyz"
},
- "branches": [
- "refs/heads/master",
+ "summary": "Add contributing file",
+ "description": "",
+ "parents": [
+ "f604ce9fd5b7cc77b7609beda45ea8760bee78f7",
],
+ "committer": {
+ "name": "Alice Liddell",
+ "email": "alice@radicle.xyz",
+ "time": 1673002014,
+ },
},
{
- "commit": {
- "id": INITIAL_COMMIT,
- "author": {
- "name": "Alice Liddell",
- "email": "alice@radicle.xyz",
- },
- "summary": "Initial commit",
- "description": "",
- "parents": [],
- "committer": {
- "name": "Alice Liddell",
- "email": "alice@radicle.xyz",
- "time": 1673001014,
- },
+ "id": INITIAL_COMMIT,
+ "author": {
+ "name": "Alice Liddell",
+ "email": "alice@radicle.xyz",
},
- "diff": {
- "added": [
- {
- "path": "README",
- "diff": {
- "type": "plain",
- "hunks": [
- {
- "header": "@@ -0,0 +1 @@\n",
- "lines": [
- {
- "line": "Hello World!\n",
- "lineNo": 1,
- "type": "addition"
- }
- ],
- "old": {
- "start": 0,
- "end": 0,
- },
- "new": {
- "start": 1,
- "end": 2,
- },
- }
- ],
- "stats": {
- "additions": 1,
- "deletions": 0,
- },
- "eof": "noneMissing",
- },
- "new": {
- "oid": "980a0d5f19a64b4b30a87d4206aade58726b60e3",
- "mode": "blob",
- },
- }
- ],
- "deleted": [],
- "moved": [],
- "copied": [],
- "modified": [],
- "stats": {
- "filesChanged": 1,
- "insertions": 1,
- "deletions": 0
- }
+ "summary": "Initial commit",
+ "description": "",
+ "parents": [],
+ "committer": {
+ "name": "Alice Liddell",
+ "email": "alice@radicle.xyz",
+ "time": 1673001014,
},
- "branches": [
- "refs/heads/master"
- ]
- }
+ },
],
"stats": {
"commits": 3,
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 1d6a9b3b-6065-4397-bd0c-fb893cd87f42 -v /opt/radcis/ci.rad.levitte.org/cci/state/1d6a9b3b-6065-4397-bd0c-fb893cd87f42/s:/1d6a9b3b-6065-4397-bd0c-fb893cd87f42/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/1d6a9b3b-6065-4397-bd0c-fb893cd87f42/w:/1d6a9b3b-6065-4397-bd0c-fb893cd87f42/w -w /1d6a9b3b-6065-4397-bd0c-fb893cd87f42/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:bookworm bash /1d6a9b3b-6065-4397-bd0c-fb893cd87f42/s/script.sh
+ cargo --version
info: syncing channel updates for '1.77-x86_64-unknown-linux-gnu'
info: latest update on 2024-04-09, rust version 1.77.2 (25ef9e3d8 2024-04-09)
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.77.2 (e52e36006 2024-03-26)
+ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)
+ cargo fmt --check
error: 'cargo-fmt' is not installed for the toolchain '1.77-x86_64-unknown-linux-gnu'.
To install, run `rustup component add --toolchain 1.77-x86_64-unknown-linux-gnu rustfmt`
Exit code: 1
{
"response": "finished",
"result": "failure"
}