CI run for jt

Radicle repository id rad:z2wZYvawkpUTnfrCL5iHaufpCdXyk

Triggered by

{
  "request": "trigger",
  "version": 1,
  "event_type": "push",
  "repository": {
    "id": "rad:z2wZYvawkpUTnfrCL5iHaufpCdXyk",
    "name": "jt",
    "description": "journalling tool for ikiwiki",
    "private": false,
    "default_branch": "main",
    "delegates": [
      "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV"
    ]
  },
  "pusher": {
    "id": "did:key:z6MkkYez6QAFWvmdudjrfMXySu1NTpSrraJotCJFwGgkmgx8",
    "alias": "ci0"
  },
  "before": "75df34df17e8912054dce08a6af30b538a6896d9",
  "after": "75df34df17e8912054dce08a6af30b538a6896d9",
  "branch": "main",
  "commits": [
    "75df34df17e8912054dce08a6af30b538a6896d9"
  ]
}

Run log

[2025-07-07T02:52:40Z INFO  ambient] ambient starts
[=3h[=3hBdsDxe: failed to load Boot0001 "UEFI QEMU DVD-ROM QM00005 " from PciRoot(0x0)/Pci(0x1F,0x2)/Sata(0x2,0xFFFF,0x0): Not Found
BdsDxe: loading Boot0002 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0)
BdsDxe: starting Boot0002 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0)
Welcome to GRUB!


INFO: Extracting tar archive from /dev/vdb
./
./plan.yaml
./run-ci

INFO: Running run-ci from /dev/vdb
================================ BEGIN ================================
ambient-execute-plan starts
RunnablePlan::from_file: filename=plan.yaml
steps:
- action: mkdir
  pathname: /workspace
- action: mkdir
  pathname: /workspace/artifacts
- action: tar_extract
  archive: /dev/vdc
  directory: /workspace/src
- action: tar_extract
  archive: /dev/vdf
  directory: /workspace/deps
- action: tar_extract
  archive: /dev/vde
  directory: /workspace/cache
- action: spawn
  argv:
  - find
  - /workspace
  - '-maxdepth'
  - '2'
  - '-ls'
- action: cargo_fmt
- action: cargo_clippy
- action: cargo_build
- action: shell
  shell: |
    subplot docgen jt.subplot -o /workspace/artifacts/jt.html
- action: shell
  shell: |
    export DEBEMAIL=liw@liw.fi
    export DEBFULLNAME="Lars Wirzenius"
    export CARGO_TARGET_DIR=/workspace/cache
    export CARGO_HOME=/workspace/deps
    export HOME=/root
    export PATH="/root/.cargo/bin:$PATH"

    # Clean up after tests and documentation building.
    git reset --hard
    git clean -fdx
    git status --ignored

    V="$(dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//')"
    T="$(date -u "+%Y%m%dT%H%M%S")"
    version="$V.ci$T-1"
    dch -v "$version" "CI build under Ambient."
    dch -r ''
- action: deb
- action: tar_create
  archive: /dev/vde
  directory: /workspace/cache
- action: tar_create
  archive: /dev/vdd
  directory: /workspace/artifacts
executor_drive: /dev/vdb
source_drive: /dev/vdc
artifact_drive: /dev/vdd
cache_drive: /dev/vde
deps_drive: /dev/vdf
workspace_dir: /workspace
source_dir: /workspace/src
deps_dir: /workspace/deps
cache_dir: /workspace/cache
artifacts_dir: /workspace/artifacts


RUN: Action Mkdir {
    pathname: "/workspace",
}
RUN: Action finished OK
RUN: Action Mkdir {
    pathname: "/workspace/artifacts",
}
RUN: Action finished OK
RUN: Action TarExtract {
    archive: "/dev/vdc",
    directory: "/workspace/src",
}
RUN: Action finished OK
RUN: Action TarExtract {
    archive: "/dev/vdf",
    directory: "/workspace/deps",
}
RUN: Action finished OK
RUN: Action TarExtract {
    archive: "/dev/vde",
    directory: "/workspace/cache",
}
RUN: Action finished OK
RUN: Action Spawn {
    argv: [
        "find",
        "/workspace",
        "-maxdepth",
        "2",
        "-ls",
    ],
}
SPAWN: argv=["find", "/workspace", "-maxdepth", "2", "-ls"]
       cwd=/workspace/src (exists? true)
       extra_env=[]
  1048577      4 drwxr-xr-x   6 root     root         4096 Jul  7 02:52 /workspace
  1056997      4 drwxr-xr-x   4 root     root         4096 Jun  7 10:49 /workspace/cache
  1059246      4 -rw-r--r--   1 root     root         1034 Jun 28 03:56 /workspace/cache/.rustc_info.json
  1056998      4 drwxr-xr-x   7 root     root         4096 Jun 28 03:56 /workspace/cache/debug
  1058467      4 drwxr-xr-x   7 root     root         4096 Jun 28 03:57 /workspace/cache/release
  1048579      4 drwxr-xr-x   7 root     root         4096 Jul  7 02:51 /workspace/src
  1048598      4 drwxr-xr-x   3 root     root         4096 Jul  7 02:51 /workspace/src/debian
  1048608      4 -rw-r--r--   1 root     root          454 Jul  7 02:51 /workspace/src/Cargo.toml
  1048586      4 drwxr-xr-x   3 root     root         4096 Jul  7 02:51 /workspace/src/src
  1048715     36 -rw-r--r--   1 root     root        35063 Jul  7 02:51 /workspace/src/LICENSE
  1048717     28 -rw-r--r--   1 root     root        26397 Jul  7 02:51 /workspace/src/Cargo.lock
  1048597     12 -rw-r--r--   1 root     root         9320 Jul  7 02:51 /workspace/src/jt.md
  1048580      4 drwxr-xr-x   2 root     root         4096 Jul  7 02:51 /workspace/src/.radicle
  1048583      4 drwxr-xr-x   2 root     root         4096 Jul  7 02:51 /workspace/src/subplot
  1048607      4 -rw-r--r--   1 root     root           38 Jul  7 02:51 /workspace/src/.gitignore
  1048609      4 drwxr-xr-x   8 root     root         4096 Jul  7 02:51 /workspace/src/.git
  1048582      4 -rwxr-xr-x   1 root     root         1013 Jul  7 02:51 /workspace/src/check
  1048716      4 -rw-r--r--   1 root     root          240 Jul  7 02:51 /workspace/src/jt.subplot
  1048578      4 drwxr-xr-x   2 root     root         4096 Jul  7 02:52 /workspace/artifacts
  1048718      4 drwxr-xr-x   3 root     root         4096 Jul  7 02:51 /workspace/deps
  1048719      0 -rw-r--r--   1 root     root            0 Jun 28 03:40 /workspace/deps/.package-cache-mutate
  1048720     64 -rw-r--r--   1 root     root        65536 Jul  7 02:51 /workspace/deps/.global-cache
  1048722      4 drwxr-xr-x   5 root     root         4096 Jun  7 10:48 /workspace/deps/registry
  1048721      0 -rw-r--r--   1 root     root            0 Jun  7 10:48 /workspace/deps/.package-cache
RUN: Action finished OK
RUN: Action CargoFmt
SPAWN: argv=["cargo", "fmt", "--check"]
       cwd=/workspace/src (exists? true)
       extra_env=[("CARGO_TARGET_DIR", "/workspace/cache"), ("CARGO_HOME", "/workspace/deps"), ("PATH", "/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin")]
RUN: Action finished OK
RUN: Action CargoClippy
SPAWN: argv=["cargo", "clippy", "--offline", "--locked", "--workspace", "--all-targets", "--no-deps", "--", "--deny", "warnings"]
       cwd=/workspace/src (exists? true)
       extra_env=[("CARGO_TARGET_DIR", "/workspace/cache"), ("CARGO_HOME", "/workspace/deps"), ("PATH", "/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin")]
   Compiling proc-macro2 v1.0.82
   Compiling unicode-ident v1.0.12
    Checking memchr v2.7.2
   Compiling thiserror v1.0.60
    Checking regex-syntax v0.8.3
   Compiling crossbeam-utils v0.8.19
    Checking aho-corasick v1.1.3
    Checking log v0.4.21
   Compiling quote v1.0.36
   Compiling ucd-trie v0.1.6
   Compiling syn v2.0.63
   Compiling serde v1.0.201
    Checking utf8parse v0.2.1
    Checking regex-automata v0.4.6
    Checking anstyle-parse v0.2.4
    Checking crossbeam-epoch v0.9.18
    Checking bstr v1.9.1
   Compiling once_cell v1.19.0
    Checking same-file v1.0.6
   Compiling autocfg v1.3.0
    Checking anstyle v1.0.7
   Compiling libc v0.2.154
    Checking colorchoice v1.0.1
    Checking unic-common v0.9.0
    Checking is_terminal_polyfill v1.70.0
    Checking unic-char-range v0.9.0
    Checking anstyle-query v1.0.3
    Checking unic-char-property v0.9.0
    Checking anstream v0.6.14
    Checking unic-ucd-version v0.9.0
   Compiling num-traits v0.2.19
    Checking walkdir v2.5.0
    Checking crossbeam-deque v0.8.5
   Compiling serde_json v1.0.117
    Checking regex v1.10.4
    Checking globset v0.4.14
    Checking ryu v1.0.18
    Checking itoa v1.0.11
    Checking ignore v0.4.22
    Checking unic-ucd-segment v0.9.0
    Checking bitflags v1.3.2
   Compiling heck v0.5.0
    Checking equivalent v1.0.1
    Checking clap_lex v0.7.0
    Checking hashbrown v0.14.5
    Checking strsim v0.11.1
   Compiling anyhow v1.0.83
    Checking clap_builder v4.5.2
    Checking dirs-sys-next v0.1.2
    Checking indexmap v2.2.6
    Checking globwalk v0.8.1
    Checking unic-segment v0.9.0
    Checking env_filter v0.1.2
    Checking iana-time-zone v0.1.60
    Checking cfg-if v1.0.0
    Checking unsafe-libyaml v0.2.11
   Compiling thiserror-impl v1.0.60
   Compiling serde_derive v1.0.201
   Compiling clap_derive v4.5.4
    Checking lazy_static v1.4.0
    Checking humantime v2.1.0
    Checking env_logger v0.11.5
    Checking chrono v0.4.38
   Compiling pest v2.7.10
    Checking clap v4.5.4
    Checking directories-next v2.0.0
   Compiling pest_meta v2.7.10
    Checking glob v0.3.1
   Compiling pest_generator v2.7.10
   Compiling pest_derive v2.7.10
    Checking serde_yaml v0.9.34+deprecated
    Checking tera v1.19.1
    Checking jt v0.1.0 (/workspace/src)
error: variables can be used directly in the `format!` string
   --> src/config.rs:112:9
    |
112 |         println!("{:#?}", self);
    |         ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    = note: `-D clippy::uninlined-format-args` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
    |
112 -         println!("{:#?}", self);
112 +         println!("{self:#?}");
    |

error: variables can be used directly in the `format!` string
   --> src/journal.rs:106:28
    |
106 |             let basename = format!("{}.md", i);
    |                            ^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
106 -             let basename = format!("{}.md", i);
106 +             let basename = format!("{i}.md");
    |

error: variables can be used directly in the `format!` string
   --> src/journal.rs:120:36
    |
120 |         let filename = drafts.join(format!("{}.md", id));
    |                                    ^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
120 -         let filename = drafts.join(format!("{}.md", id));
120 +         let filename = drafts.join(format!("{id}.md"));
    |

error: variables can be used directly in the `format!` string
   --> src/journal.rs:130:23
    |
130 |         let pattern = format!("{}*.md", prefix);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
130 -         let pattern = format!("{}*.md", prefix);
130 +         let pattern = format!("{prefix}*.md");
    |

error: variables can be used directly in the `format!` string
   --> src/journal.rs:138:13
    |
138 |             println!("{} {}", entry, title);
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
138 -             println!("{} {}", entry, title);
138 +             println!("{entry} {title}");
    |

error: variables can be used directly in the `format!` string
   --> src/journal.rs:185:38
    |
185 |         let basename = PathBuf::from(format!("{}.mdwn", basename));
    |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
    |
185 -         let basename = PathBuf::from(format!("{}.mdwn", basename));
185 +         let basename = PathBuf::from(format!("{basename}.mdwn"));
    |

error: could not compile `jt` (lib test) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `jt` (lib) due to 6 previous errors
ERROR: Action failed: command failed: ["cargo", "clippy", "--offline", "--locked", "--workspace", "--all-targets", "--no-deps", "--", "--deny", "warnings"]
ERROR: command failed: ["cargo", "clippy", "--offline", "--locked", "--workspace", "--all-targets", "--no-deps", "--", "--deny", "warnings"]
EXIT CODE: 1
[2025-07-07T02:52:40Z INFO  ambient] ambient ends successfully