CI run for rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5

Radicle repository id rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5

Triggered by

{
  "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": "7bafe3d51318014e1053df47ef9b78b7543af2bb",
    "author": {
      "id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
      "alias": "fintohaps"
    },
    "title": "radicle-schemars: A crate for extracting JSON schemas",
    "state": {
      "status": "open",
      "conflicts": []
    },
    "before": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
    "after": "d89488d43195d4dd81f996c14de7bd0c06cd4963",
    "commits": [
      "d89488d43195d4dd81f996c14de7bd0c06cd4963",
      "ed8a9a1334730ee930b357c06e2f5814a81f2b70",
      "9ef83e565c4e3bc00a7f89619eb874e0fc997097",
      "bc854c0259be69a60c07d49c543a8363040a30f9"
    ],
    "target": "9dae540c8718f1d2e9dd26a68cd76242a16d7eb0",
    "labels": [],
    "assignees": [],
    "revisions": [
      {
        "id": "7bafe3d51318014e1053df47ef9b78b7543af2bb",
        "author": {
          "id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
          "alias": "fintohaps"
        },
        "description": "### JSON Schema for the Control Socket\n\nJSON Schema extraction via `schemars` is provided for configurations.\nThere are other interfaces that use JSON for (de-)serialization, such as\nthe communication with `radicle-node` via the control socket.\n\nTo ease implementation of tools that want to communicate via the control\nsocket, we add the respective `schemars` annotations.\n\n### Extracting of JSON Schemas\n\nExtracting JSON Schemas from the Radicle crate can be done via\n`radicle-cli` for `radicle::profile::Config` by executing:\n\n    rad config schema\n\nHowever, for other JSON Schema metadata, this is not possible.\n\nTo allow other tools to extract JSON schemas as part of their build\nprocess, introduce a new crate that only depends on `radicle`,\n`schemars`, and `serde`, with a tiny binary that will reproduce various\nschemas.\n\n### `schemars` as workspace dependency\n\nThe `schemars` crate is a dependency of multiple workspace crates in the\nsame version. Its version number is repeated multiple times in the\nrespective `*/Cargo.toml` files. This requires more maintenance effort\nand risks versions drifting.\n\nAs long as all crates depend on the same version, it makes more sense to\nhave `schemars` as a workspace dependency.\n\nSee: <https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table>",
        "base": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
        "oid": "ed8a9a1334730ee930b357c06e2f5814a81f2b70",
        "timestamp": 1748856488
      },
      {
        "id": "a1955053701c4077ee32942923feba6b1002333b",
        "author": {
          "id": "did:key:z6MkireRatUThvd3qzfKht1S44wpm4FEWSSa4PRMTSQZ3voM",
          "alias": "fintohaps"
        },
        "description": "FEEDBACK: better error messaging for incorrect args/schemas",
        "base": "f4c8ff7a64e87a173ab2f114f3a88a2d475184ad",
        "oid": "d89488d43195d4dd81f996c14de7bd0c06cd4963",
        "timestamp": 1748945836
      }
    ]
  }
}

Run log

[2025-06-03T10:22:22Z 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: cargo_test
- action: shell
  shell: |
    # Because of a (temporary) limitation in Ambient, we need to set
    # these variables manually. Once Ambient manages environment
    # variables better, these can be deleted.
    export CARGO_TARGET_DIR=/workspace/cache
    export CARGO_HOME=/workspace/deps
    export HOME=/root
    export PATH="/root/.cargo/bin:$PATH"

    cargo doc --workspace --no-deps
- action: shell
  shell: |
    # Because of a (temporary) limitation in Ambient, we need to set
    # these variables manually. Once Ambient manages environment
    # variables better, these can be deleted.
    export CARGO_TARGET_DIR=/workspace/cache
    export CARGO_HOME=/workspace/deps
    export HOME=/root
    export PATH="/root/.cargo/bin:$PATH"

    # These are based on debian/control.
    export DEBEMAIL=liw@liw.fi
    export DEBFULLNAME="Lars Wirzenius"

    # Clean up after tests and documentation building. The Debian
    # package building tools do not want changes outside the
    # `debian` directory, compared to what is committed to Git, from
    # which the "upstream tarball" is created.
    git reset --hard
    git clean -fdx
    git status --ignored

    # Update debian/changelog with a new version so that every run
    # creates a newer version. This avoids us having to update the
    # file manually for every CI run.
    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=[]
  1572865      4 drwxr-xr-x   6 root     root         4096 Jun  3 10:19 /workspace
  1595244      4 drwxr-xr-x   6 root     root         4096 May 29 23:20 /workspace/cache
  1595246      4 drwxr-xr-x   7 root     root         4096 Jun  2 09:35 /workspace/cache/debug
  1619352      4 -rw-r--r--   1 root     root         1033 Jun  2 09:34 /workspace/cache/.rustc_info.json
  1617909      4 -rw-r--r--   1 root     root          218 May 29 23:20 /workspace/cache/.rustdoc_fingerprint.json
  1716529      4 drwxr-xr-x  31 root     root         4096 Jun  2 09:37 /workspace/cache/doc
  1617910      4 drwxr-xr-x   7 root     root         4096 Jun  2 09:39 /workspace/cache/release
  1595245      4 drwxr-xr-x   2 root     root         4096 May 29 23:14 /workspace/cache/tmp
  1572867      4 drwxr-xr-x  26 root     root         4096 Jun  3 10:17 /workspace/src
  1572868      4 drwxr-xr-x   2 root     root         4096 Jun  3 10:17 /workspace/src/.radicle
  1573101      4 -rw-r--r--   1 root     root          426 Jun  3 10:17 /workspace/src/radicle-node.1.adoc
  1573090      4 -rw-r--r--   1 root     root         3091 Jun  3 10:17 /workspace/src/README.md
  1573508      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-fetch
  1572895      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-crdt
  1572871      4 -rw-r--r--   1 root     root         1079 Jun  3 10:17 /workspace/src/LICENSE-MIT
  1573077      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/debian
  1573503      4 drwxr-xr-x   4 root     root         4096 Jun  3 10:17 /workspace/src/systemd
  1572909      4 drwxr-xr-x   2 root     root         4096 Jun  3 10:17 /workspace/src/.cargo
  1573264      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-term
  1573291      4 drwxr-xr-x   5 root     root         4096 Jun  3 10:17 /workspace/src/radicle-cli
  1572884      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-remote-helper
  1572872      4 drwxr-xr-x   2 root     root         4096 Jun  3 10:17 /workspace/src/scripts
  1572883      8 -rw-r--r--   1 root     root         7645 Jun  3 10:17 /workspace/src/HACKING.md
  1572894      4 -rw-r--r--   1 root     root         2163 Jun  3 10:17 /workspace/src/VERSIONING.md
  1573544      8 -rw-r--r--   1 root     root         5102 Jun  3 10:17 /workspace/src/flake.lock
  1573103      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-signals
  1573551      4 -rw-r--r--   1 root     root         1083 Jun  3 10:17 /workspace/src/.gitsigners
  1572893      4 -rw-r--r--   1 root     root           30 Jun  3 10:17 /workspace/src/.dockerignore
  1573093      4 -rw-r--r--   1 root     root          104 Jun  3 10:17 /workspace/src/.gitignore
  1573094      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-systemd
  1573064      4 drwxr-xr-x   2 root     root         4096 Jun  3 10:17 /workspace/src/build
  1573553      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-node
  1573217      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-cob
  1573046      4 -rw-r--r--   1 root     root           42 Jun  3 10:17 /workspace/src/.envrc
  1573053      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-tools
  1573547      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-dag
  1573099      4 drwxr-xr-x   2 root     root         4096 Jun  3 10:17 /workspace/src/.config
  1573543      4 -rw-r--r--   1 root     root         1203 Jun  3 10:17 /workspace/src/DCO
  1573552    108 -rw-r--r--   1 root     root       109158 Jun  3 10:17 /workspace/src/Cargo.lock
  1573102      8 -rw-r--r--   1 root     root         5432 Jun  3 10:17 /workspace/src/deny.toml
  1573259     12 -rw-r--r--   1 root     root         9723 Jun  3 10:17 /workspace/src/LICENSE-APACHE
  1572925      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle
  1573098      4 -rw-r--r--   1 root     root         1249 Jun  3 10:17 /workspace/src/Cargo.toml
  1573532      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-ssh
  1573047      4 -rw-r--r--   1 root     root           61 Jun  3 10:17 /workspace/src/.env.seed
  1573290     12 -rw-r--r--   1 root     root        10770 Jun  3 10:17 /workspace/src/rad-patch.1.adoc
  1572911      8 -rw-r--r--   1 root     root         8044 Jun  3 10:17 /workspace/src/rad.1.adoc
  1573545     12 -rw-r--r--   1 root     root         8326 Jun  3 10:17 /workspace/src/CONTRIBUTING.md
  1573260      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-schemars
  1573063      4 -rw-r--r--   1 root     root          571 Jun  3 10:17 /workspace/src/git-remote-rad.1.adoc
  1573091      4 -rw-r--r--   1 root     root         1623 Jun  3 10:17 /workspace/src/build.rs
  1573546      4 -rw-r--r--   1 root     root           79 Jun  3 10:17 /workspace/src/ARCHITECTURE.md
  1573092     12 -rw-r--r--   1 root     root         8796 Jun  3 10:17 /workspace/src/flake.nix
  1572912      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-crypto
  1573048      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/src/radicle-cli-test
  1573107      4 drwxr-xr-x   8 root     root         4096 Jun  3 10:17 /workspace/src/.git
  1573542      8 -rw-r--r--   1 root     root         5666 Jun  3 10:17 /workspace/src/rad-id.1.adoc
  1572924      4 -rw-r--r--   1 root     root           77 Jun  3 10:17 /workspace/src/rust-toolchain.toml
  1572866      4 drwxr-xr-x   2 root     root         4096 Jun  3 10:19 /workspace/artifacts
  1573601      4 drwxr-xr-x   3 root     root         4096 Jun  3 10:17 /workspace/deps
  1573604      4 drwxr-xr-x   5 root     root         4096 May 29 19:58 /workspace/deps/registry
  1573602    120 -rw-r--r--   1 root     root       122880 Jun  3 10:17 /workspace/deps/.global-cache
  1573603      0 -rw-r--r--   1 root     root            0 May 29 19:58 /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")]
    Checking radicle-ssh v0.9.0 (/workspace/src/radicle-ssh)
    Checking radicle-dag v0.10.0 (/workspace/src/radicle-dag)
    Checking radicle-signals v0.11.0 (/workspace/src/radicle-signals)
   Compiling radicle-cli v0.13.0 (/workspace/src/radicle-cli)
    Checking radicle-term v0.12.0 (/workspace/src/radicle-term)
   Compiling radicle-node v0.11.0 (/workspace/src/radicle-node)
    Checking radicle-crypto v0.12.0 (/workspace/src/radicle-crypto)
    Checking radicle-cob v0.13.0 (/workspace/src/radicle-cob)
    Checking radicle-systemd v0.9.0 (/workspace/src/radicle-systemd)
   Compiling radicle-remote-helper v0.10.0 (/workspace/src/radicle-remote-helper)
    Checking radicle-crdt v0.1.0 (/workspace/src/radicle-crdt)
    Checking radicle v0.15.0 (/workspace/src/radicle)
    Checking radicle-fetch v0.11.0 (/workspace/src/radicle-fetch)
    Checking radicle-cli-test v0.11.0 (/workspace/src/radicle-cli-test)
    Checking radicle-schemars v0.1.0 (/workspace/src/radicle-schemars)
error: constants have by default a `'static` lifetime
 --> radicle-schemars/src/main.rs:6:19
  |
6 | const SCHEMAS: &[&'static str] = &[
  |                  -^^^^^^^---- help: consider removing `'static`: `&str`
  |
  = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
  = note: `-D clippy::redundant-static-lifetimes` implied by `-D warnings`
  = help: to override `-D warnings` add `#[allow(clippy::redundant_static_lifetimes)]`

error: this expression creates a reference which is immediately dereferenced by the compiler
  --> radicle-schemars/src/main.rs:23:26
   |
23 |     if !SCHEMAS.contains(&&name.as_str()) {
   |                          ^^^^^^^^^^^^^^^ help: change this to: `(&name.as_str())`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
   = note: `-D clippy::needless-borrow` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`

error: could not compile `radicle-schemars` (bin "radicle-schemars" test) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
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-06-03T10:22:22Z INFO  ambient] ambient ends successfully