rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5 heartwood6a1cee059f1e2bb959956a9ead93676cc995abf6
{
"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": "383530ec274b0c8473704b65562562a1f3d7eb01",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"title": "httpd: improve error message for missing browser",
"state": {
"status": "merged",
"conflicts": []
},
"before": "9767b485c2aad1e23097d2b5165287ba84cfa452",
"after": "6a1cee059f1e2bb959956a9ead93676cc995abf6",
"commits": [
"6a1cee059f1e2bb959956a9ead93676cc995abf6"
],
"target": "d285eccb23f3986bfa88fc1af033e6dcb0dc3a65",
"labels": [],
"assignees": [],
"revisions": [
{
"id": "383530ec274b0c8473704b65562562a1f3d7eb01",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "If `open` or `xdg-open` fail the error is:\n\n No such file or directory (os error 2)\n\nThis generally means that the command could not open the browser on\nthe OS. To provide better help, improve the error message by informing\nthe user what went wrong and that they can run `rad web --no-open`\ninstead.\n\nSigned-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>\nX-Clacks-Overhead: GNU Terry Pratchett",
"base": "9767b485c2aad1e23097d2b5165287ba84cfa452",
"oid": "08d442d57373aec206a44024a0572aace07326b1",
"timestamp": 1708091595
},
{
"id": "4ea7a67e666ee7ebca86064f5219be92b257e813",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Changes:\n- Still print the URL to visit",
"base": "9767b485c2aad1e23097d2b5165287ba84cfa452",
"oid": "6a1cee059f1e2bb959956a9ead93676cc995abf6",
"timestamp": 1709555894
},
{
"id": "92c392c26dea9c2768c9b86737b7940ddfed0489",
"author": {
"id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
"alias": null
},
"description": "Rebase.",
"base": "ccec3f80dc8557ad30bef100a73a395defd88b15",
"oid": "b6e1385e39e3d454fbe16088207f5a027742a11b",
"timestamp": 1709938731
}
]
}
}
{
"response": "triggered",
"run_id": {
"id": "5d7258b2-2bf6-45cf-bc87-a40932fd55db"
},
"info_url": "https://cci.rad.levitte.org//5d7258b2-2bf6-45cf-bc87-a40932fd55db.html"
}
Started at: 2026-09-07 20:23:53.530705+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/5d7258b2-2bf6-45cf-bc87-a40932fd55db/w/
╭────────────────────────────────────╮
│ heartwood │
│ Radicle Heartwood Protocol & Stack │
│ 189 issues · 38 patches │
╰────────────────────────────────────╯
Run `cd ./.` to go to the repository directory.
Exit code: 0
$ rad patch checkout 383530ec274b0c8473704b65562562a1f3d7eb01
✓ Switched to branch patch/383530e at revision 4ea7a67
✓ Branch patch/383530e setup to track rad/patches/383530ec274b0c8473704b65562562a1f3d7eb01
Exit code: 0
$ git config advice.detachedHead false
Exit code: 0
$ git checkout 6a1cee059f1e2bb959956a9ead93676cc995abf6
HEAD is now at 6a1cee05 httpd: improve error message for missing browser
Exit code: 0
$ rad patch show 383530ec274b0c8473704b65562562a1f3d7eb01 -p
╭─────────────────────────────────────────────────────────────────────────────────╮
│ Title httpd: improve error message for missing browser │
│ Patch 383530ec274b0c8473704b65562562a1f3d7eb01 │
│ Author fintohaps z6Mkire…SQZ3voM │
│ Head 6a1cee059f1e2bb959956a9ead93676cc995abf6 │
│ Base 9767b485c2aad1e23097d2b5165287ba84cfa452 │
│ Target master │
│ Branches patch/383530e │
│ Commits ahead 1, behind 1606 │
│ Status merged │
│ │
│ If `open` or `xdg-open` fail the error is: │
│ │
│ No such file or directory (os error 2) │
│ │
│ This generally means that the command could not open the browser on │
│ the OS. To provide better help, improve the error message by informing │
│ the user what went wrong and that they can run `rad web --no-open` │
│ instead. │
│ │
│ Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> │
│ X-Clacks-Overhead: GNU Terry Pratchett │
├─────────────────────────────────────────────────────────────────────────────────┤
│ 6a1cee0 httpd: improve error message for missing browser │
├─────────────────────────────────────────────────────────────────────────────────┤
│ ● Revision 383530e @ 9767b48..08d442d by fintohaps z6Mkire…SQZ3voM 2 years ago │
│ └─ ✓ accepted by sebastinez z6MkkfM…jXVsVz5 2 years ago │
│ ↑ Revision 4ea7a67 @ 9767b48..6a1cee0 by fintohaps z6Mkire…SQZ3voM 2 years ago │
│ ↑ Revision 92c392c @ ccec3f8..b6e1385 by cloudhead z6MksFq…bS9wzpT 2 years ago │
│ └─ ✓ merged by cloudhead z6MksFq…bS9wzpT │
╰─────────────────────────────────────────────────────────────────────────────────╯
commit 6a1cee059f1e2bb959956a9ead93676cc995abf6
Author: Fintan Halpenny <fintan.halpenny@gmail.com>
Date: Fri Feb 16 13:50:08 2024 +0000
httpd: improve error message for missing browser
If `open` or `xdg-open` fail the error is:
No such file or directory (os error 2)
This generally means that the command could not open the browser on
the OS. To provide better help, improve the error message by informing
the user what went wrong and that they can run `rad web --no-open`
instead, while still printing the URL to visit.
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
diff --git a/radicle-httpd/src/commands/web.rs b/radicle-httpd/src/commands/web.rs
index d14654de9..c70c40c4c 100644
--- a/radicle-httpd/src/commands/web.rs
+++ b/radicle-httpd/src/commands/web.rs
@@ -198,16 +198,22 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
let cmd_name = "xdg-open";
let mut cmd = Command::new(cmd_name);
-
- match cmd.arg(auth_url.as_str()).spawn()?.wait() {
- Ok(exit_status) => {
- if exit_status.success() {
- term::success!("Opened {auth_url}");
- } else {
+ match cmd.arg(auth_url.as_str()).spawn() {
+ Ok(mut child) => match child.wait() {
+ Ok(exit_status) => {
+ if exit_status.success() {
+ term::success!("Opened {auth_url}");
+ } else {
+ term::info!("Visit {auth_url} to connect");
+ }
+ }
+ Err(_) => {
term::info!("Visit {auth_url} to connect");
}
- }
+ },
Err(_) => {
+ term::error(format!("Could not open web browser via `{cmd_name}`"));
+ term::hint("Use `rad web --no-open` if this continues");
term::info!("Visit {auth_url} to connect");
}
}
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 5d7258b2-2bf6-45cf-bc87-a40932fd55db -v /opt/radcis/ci.rad.levitte.org/cci/state/5d7258b2-2bf6-45cf-bc87-a40932fd55db/s:/5d7258b2-2bf6-45cf-bc87-a40932fd55db/s:ro -v /opt/radcis/ci.rad.levitte.org/cci/state/5d7258b2-2bf6-45cf-bc87-a40932fd55db/w:/5d7258b2-2bf6-45cf-bc87-a40932fd55db/w -w /5d7258b2-2bf6-45cf-bc87-a40932fd55db/w -v /opt/radcis/ci.rad.levitte.org/.radicle:/${id}/.radicle:ro -e RAD_HOME=/${id}/.radicle rust:trixie bash /5d7258b2-2bf6-45cf-bc87-a40932fd55db/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"
}