CI run for rad:zwTxygwuz5LDGBq255RA2CbNGrz8

Radicle repository id rad:zwTxygwuz5LDGBq255RA2CbNGrz8

Table of Contents

Run log

[2025-09-17T12:34:57Z 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: Block devices
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
vda    254:0    0   100G  0 disk 
├─vda1 254:1    0   953M  0 part 
└─vda2 254:2    0  99.1G  0 part /
vdb    254:16   0   2.9M  1 disk 
vdc    254:32   0   5.2M  1 disk 
vdd    254:48   0   9.3G  0 disk 
vde    254:64   0  46.6G  0 disk 
vdf    254:80   0 727.5M  1 disk 
INFO: Extracting tar archive from /dev/vdb
drwxr-xr-x _rad/_rad         0 2025-09-17 12:29 ./
-rw-r--r-- _rad/_rad      1793 2025-09-17 12:29 ./plan.yaml
-rwxr-xr-x _rad/_rad   3007128 2025-09-17 12:29 ./run-ci
INFO: Extracted files:
  4587530      4 drwxr-xr-x   2 1001     1001         4096 Sep 17 12:29 .
  4587526      4 -rw-r--r--   1 1001     1001         1793 Sep 17 12:29 ./plan.yaml
  4587527   2940 -rwxr-xr-x   1 1001     1001      3007128 Sep 17 12:29 ./run-ci
INFO: Running run-ci from /dev/vdb
================================ BEGIN ================================
[2025-09-17T12:31:04Z TRACE ambient_execute_plan] ambient-execute-plan starts
[2025-09-17T12:31:04Z DEBUG ambient_execute_plan] ambient-execute-plan starts
[2025-09-17T12:31:04Z INFO  ambient_execute_plan] ambient-execute-plan starts
[2025-09-17T12:31:04Z WARN  ambient_execute_plan] ambient-execute-plan starts
[2025-09-17T12:31:04Z ERROR ambient_execute_plan] 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: shell
  shell: |
    export CARGO_TARGET_DIR=/workspace/cache
    export CARGO_HOME=/workspace/deps
    export HOME=/root
    export PATH="/root/.cargo/bin:/root/.radicle/bin:$PATH"

    # Check that `rad` is there.
    rad --help >/dev/null || (echo rad is not there; exit 1)

    cargo doc --workspace --no-deps

    # FIXME: We can't run upgrade tests from older versions because
    # Ambient only fetches dependencies for the current version.
    # Thus, we can't build the old versions. This is an Ambient
    # problem that we can't fix here. So we skip the upgrade tests.
    cargo test --workspace --no-fail-fast -- --skip upgrade --test-threads 2

    subplot docgen ci-broker.subplot -o doc/ci-broker.html
    subplot docgen doc/userguide.subplot -o doc/userguide.html
    make -C doc
    cp doc/*.html /workspace/artifacts/.
- action: custom
  name: dch
  args:
    debfullname: Lars Wirzenius
    debemail: liw@liw.fi
- 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",
}
[2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: Mkdir {
        pathname: "/workspace",
    }
RUN: Action finished OK
RUN: Action Mkdir {
    pathname: "/workspace/artifacts",
}
[2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: Mkdir {
        pathname: "/workspace/artifacts",
    }
RUN: Action finished OK
RUN: Action TarExtract {
    archive: "/dev/vdc",
    directory: "/workspace/src",
}
[2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: TarExtract {
        archive: "/dev/vdc",
        directory: "/workspace/src",
    }
[2025-09-17T12:31:04Z TRACE ambient_ci::vdrive] extracting /dev/vdc to /workspace/src
[2025-09-17T12:31:04Z TRACE ambient_ci::vdrive] extraction OK
RUN: Action finished OK
RUN: Action TarExtract {
    archive: "/dev/vdf",
    directory: "/workspace/deps",
}
[2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: TarExtract {
        archive: "/dev/vdf",
        directory: "/workspace/deps",
    }
[2025-09-17T12:31:04Z TRACE ambient_ci::vdrive] extracting /dev/vdf to /workspace/deps
[2025-09-17T12:31:44Z TRACE ambient_ci::vdrive] extraction OK
RUN: Action finished OK
RUN: Action TarExtract {
    archive: "/dev/vde",
    directory: "/workspace/cache",
}
[2025-09-17T12:31:44Z DEBUG ambient_ci::action] Plan::execute: TarExtract {
        archive: "/dev/vde",
        directory: "/workspace/cache",
    }
[2025-09-17T12:31:44Z TRACE ambient_ci::vdrive] extracting /dev/vde to /workspace/cache
[2025-09-17T12:34:49Z TRACE ambient_ci::vdrive] extraction OK
RUN: Action finished OK
RUN: Action Spawn {
    argv: [
        "find",
        "/workspace",
        "-maxdepth",
        "2",
        "-ls",
    ],
}
[2025-09-17T12:34:49Z DEBUG ambient_ci::action] Plan::execute: Spawn {
        argv: [
            "find",
            "/workspace",
            "-maxdepth",
            "2",
            "-ls",
        ],
    }
SPAWN: argv=["find", "/workspace", "-maxdepth", "2", "-ls"]
       cwd=/workspace/src (exists? true)
       extra_env=[]
  2621441      4 drwxr-xr-x   6 root     root         4096 Sep 17 12:31 /workspace
  2621760      4 drwxr-xr-x   3 root     root         4096 Sep 17 12:29 /workspace/deps
  2621761      0 -rw-r--r--   1 root     root            0 Sep 16 11:54 /workspace/deps/.package-cache-mutate
  2621764      4 drwxr-xr-x   5 root     root         4096 Sep 16 11:54 /workspace/deps/registry
  2621762    112 -rw-r--r--   1 root     root       114688 Sep 17 12:29 /workspace/deps/.global-cache
  2621763      0 -rw-r--r--   1 root     root            0 Sep 16 11:54 /workspace/deps/.package-cache
  2621443      4 drwxr-xr-x  10 root     root         4096 Sep 17 12:29 /workspace/src
  2621520      4 -rw-r--r--   1 root     root         1716 Sep 17 12:29 /workspace/src/Cargo.toml
  2621748      4 -rw-r--r--   1 root     root         1188 Sep 17 12:29 /workspace/src/CONTRIBUTING.md
  2621502     40 -rw-r--r--   1 root     root        37080 Sep 17 12:29 /workspace/src/NEWS.md
  2621517      4 -rw-r--r--   1 root     root          970 Sep 17 12:29 /workspace/src/build.rs
  2621523      4 drwxr-xr-x   8 root     root         4096 Sep 17 12:29 /workspace/src/.git
  2621750      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/doc
  2621450      4 drwxr-xr-x   4 root     root         4096 Sep 17 12:29 /workspace/src/src
  2621516      8 -rw-r--r--   1 root     root         4796 Sep 17 12:29 /workspace/src/README.md
  2621447      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/.ambient
  2621496      4 -rw-r--r--   1 root     root          386 Sep 17 12:29 /workspace/src/cibtool.1
  2621515      4 -rw-r--r--   1 root     root          732 Sep 17 12:29 /workspace/src/ci-broker.yaml
  2621445      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/.radicle
  2621503      4 drwxr-xr-x   3 root     root         4096 Sep 17 12:29 /workspace/src/debian
  2621501      4 -rw-r--r--   1 root     root           10 Sep 17 12:29 /workspace/src/.envrc
  2621749     92 -rw-r--r--   1 root     root        91735 Sep 17 12:29 /workspace/src/Cargo.lock
  2621745     12 -rw-r--r--   1 root     root         9723 Sep 17 12:29 /workspace/src/LICENSE-APACHE
  2621519      4 -rw-r--r--   1 root     root           44 Sep 17 12:29 /workspace/src/.gitignore
  2621521      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/tests
  2621747      8 -rw-r--r--   1 root     root         6528 Sep 17 12:29 /workspace/src/flake.lock
  2621518      8 -rw-r--r--   1 root     root         5951 Sep 17 12:29 /workspace/src/flake.nix
  2621495     92 -rw-r--r--   1 root     root        90815 Sep 17 12:29 /workspace/src/ci-broker.md
  2621444      4 -rw-r--r--   1 root     root          440 Sep 17 12:29 /workspace/src/cib.1
  2621500      4 -rw-r--r--   1 root     root          257 Sep 17 12:29 /workspace/src/ci-broker.subplot
  2621449      4 -rw-r--r--   1 root     root         1079 Sep 17 12:29 /workspace/src/LICENSE-MIT
  2621746      4 -rw-r--r--   1 root     root          334 Sep 17 12:29 /workspace/src/Makefile
  2621497      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/.cargo
  2621442      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:31 /workspace/artifacts
  2645340      4 drwxr-xr-x   6 root     root         4096 Sep 16 12:00 /workspace/cache
  2653337      4 -rw-r--r--   1 root     root          218 Sep 16 11:56 /workspace/cache/.rustdoc_fingerprint.json
  2657226      4 drwxr-xr-x  12 root     root         4096 Sep 16 11:56 /workspace/cache/doc
  2645342      4 drwxr-xr-x   7 root     root         4096 Sep 16 12:00 /workspace/cache/debug
  2645341      4 drwxr-xr-x   2 root     root         4096 Sep 16 11:55 /workspace/cache/tmp
  2657225      4 -rw-r--r--   1 root     root         1034 Sep 16 11:56 /workspace/cache/.rustc_info.json
  2653338      4 drwxr-xr-x   7 root     root         4096 Sep 16 12:02 /workspace/cache/release
RUN: Action finished OK
RUN: Action CargoFmt
[2025-09-17T12:34:49Z DEBUG ambient_ci::action] Plan::execute: 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")]
Diff in /workspace/src/src/util.rs:142:
 
 pub fn safely_overwrite<P: AsRef<Path>>(filename: P, data: &[u8]) -> Result<(), UtilError> {
     let filename = filename.as_ref();
-    let dirname = filename.parent().ok_or(UtilError::NoParent(filename.to_path_buf()))?;
-    let mut tmp = NamedTempFile::new_in(dirname).map_err(|err| UtilError::CreateTemp(dirname.to_path_buf(), err))?;
-    tmp.write_all(data).map_err(|err| UtilError::WriteTemp(dirname.to_path_buf(), err))?;
-    tmp.persist(filename).map_err(|err| UtilError::RenameTemp(filename.to_path_buf(), err))?;
+    let dirname = filename
+        .parent()
+        .ok_or(UtilError::NoParent(filename.to_path_buf()))?;
+    let mut tmp = NamedTempFile::new_in(dirname)
+        .map_err(|err| UtilError::CreateTemp(dirname.to_path_buf(), err))?;
+    tmp.write_all(data)
+        .map_err(|err| UtilError::WriteTemp(dirname.to_path_buf(), err))?;
+    tmp.persist(filename)
+        .map_err(|err| UtilError::RenameTemp(filename.to_path_buf(), err))?;
     Ok(())
 }
 
ERROR: Action failed: command failed: ["cargo", "fmt", "--check"]
ERROR: command failed: ["cargo", "fmt", "--check"]
EXIT CODE: 1
[2025-09-17T12:34:57Z INFO  ambient] ambient ends successfully

Trigger message

{
  "request": "trigger",
  "version": 1,
  "event_type": "patch",
  "repository": {
    "id": "rad:zwTxygwuz5LDGBq255RA2CbNGrz8",
    "name": "radicle-ci-broker",
    "description": "Radicle CI broker",
    "private": false,
    "default_branch": "main",
    "delegates": [
      "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
      "did:key:z6MksFqXN3Yhqk8pTJdUGLwATkRfQvwZXPqR2qMEhbS9wzpT"
    ]
  },
  "action": "Created",
  "patch": {
    "id": "14debd9d4523c4436d00b7b5a0c850a8e1d53477",
    "author": {
      "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
      "alias": "liw"
    },
    "title": "feat: when writing HTML report pages, write temp file and rename",
    "state": {
      "status": "open",
      "conflicts": []
    },
    "before": "4610dcfd3a120b203906f111f39ecd84b99f7b3a",
    "after": "c7e936930dd605fdcd58a83e24ca31227cf79049",
    "commits": [
      "c7e936930dd605fdcd58a83e24ca31227cf79049"
    ],
    "target": "4610dcfd3a120b203906f111f39ecd84b99f7b3a",
    "labels": [],
    "assignees": [],
    "revisions": [
      {
        "id": "14debd9d4523c4436d00b7b5a0c850a8e1d53477",
        "author": {
          "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
          "alias": "liw"
        },
        "description": "This avoids creating an empty file if the disk is full.",
        "base": "4610dcfd3a120b203906f111f39ecd84b99f7b3a",
        "oid": "c7e936930dd605fdcd58a83e24ca31227cf79049",
        "timestamp": 1758112139
      }
    ]
  }
}

Ambient stdout

[2025-09-17T12:29:06Z INFO  ambient] ambient starts
[2025-09-17T12:29:06Z DEBUG ambient] load default configuration file /home/_rad/.config/ambient/config.yaml if it exists
[2025-09-17T12:29:06Z DEBUG ambient] complete configuration: Config {
        tmpdir: "/srv/tmp",
        image_store: "/home/_rad/.local/state/ambient-ci/images",
        projects: "/home/_rad/ambient-projects.yaml",
        state: "/srv/ambient-state",
        rsync_target: None,
        rsync_target_base: None,
        rsync_target_map: None,
        dput_target: None,
        executor: Some(
            "/usr/bin/ambient-execute-plan",
        ),
        artifacts_max_size: Byte(
            10000000000,
        ),
        cache_max_size: Byte(
            50000000000,
        ),
        qemu: QemuConfig {
            cpus: 4,
            memory: Byte(
                8000000000,
            ),
            kvm_binary: "/usr/bin/kvm",
            ovmf_vars_file: "/usr/share/ovmf/OVMF.fd",
            ovmf_code_file: "/usr/share/ovmf/OVMF.fd",
        },
    }
[2025-09-17T12:29:06Z DEBUG ambient] configuration: Config {
        tmpdir: "/srv/tmp",
        image_store: "/home/_rad/.local/state/ambient-ci/images",
        projects: "/home/_rad/ambient-projects.yaml",
        state: "/srv/ambient-state",
        rsync_target: None,
        rsync_target_base: None,
        rsync_target_map: None,
        dput_target: None,
        executor: Some(
            "/usr/bin/ambient-execute-plan",
        ),
        artifacts_max_size: Byte(
            10000000000,
        ),
        cache_max_size: Byte(
            50000000000,
        ),
        qemu: QemuConfig {
            cpus: 4,
            memory: Byte(
                8000000000,
            ),
            kvm_binary: "/usr/bin/kvm",
            ovmf_vars_file: "/usr/share/ovmf/OVMF.fd",
            ovmf_code_file: "/usr/share/ovmf/OVMF.fd",
        },
    }
[2025-09-17T12:29:06Z DEBUG ambient_ci::project] load project state from /srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/meta.yaml
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] latest commit: "4610dcfd3a120b203906f111f39ecd84b99f7b3a"
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] is a git repository
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] git repository is clean
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] current (HEAD) commit: c7e936930dd605fdcd58a83e24ca31227cf79049
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] no dry run requested
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] forced run requested
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] run? true
[2025-09-17T12:29:06Z INFO  ambient_ci::run] project rad:zwTxygwuz5LDGBq255RA2CbNGrz8: running CI
[2025-09-17T12:29:06Z DEBUG ambient_ci::run] Executing pre-plan steps
[2025-09-17T12:29:06Z DEBUG ambient_ci::action] Plan::execute: CargoFetch {
        sourcedir: "/tmp/.tmpkxpf8B/src",
        dependenciesdir: "/srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/dependencies",
    }
SPAWN: argv=["env", "CARGO_HOME=/srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/dependencies", "cargo", "fetch", "--locked"]
       cwd=/tmp/.tmpkxpf8B/src (exists? true)
       extra_env=[]
[2025-09-17T12:29:10Z DEBUG ambient_ci::run] create virtual drive /srv/tmp/.tmpimiD6Q/src.tar
[2025-09-17T12:29:10Z DEBUG ambient_ci::run] create virtual drive /srv/tmp/.tmpimiD6Q/deps.tar
[2025-09-17T12:29:36Z DEBUG ambient_ci::run] create_executor_vdrive: executor="/usr/bin/ambient-execute-plan"
[2025-09-17T12:29:36Z DEBUG ambient_ci::run] create_executor_vdrive: plan=RunnablePlan {
        steps: [
            Mkdir {
                pathname: "/workspace",
            },
            Mkdir {
                pathname: "/workspace/artifacts",
            },
            TarExtract {
                archive: "/dev/vdc",
                directory: "/workspace/src",
            },
            TarExtract {
                archive: "/dev/vdf",
                directory: "/workspace/deps",
            },
            TarExtract {
                archive: "/dev/vde",
                directory: "/workspace/cache",
            },
            Spawn {
                argv: [
                    "find",
                    "/workspace",
                    "-maxdepth",
                    "2",
                    "-ls",
                ],
            },
            CargoFmt,
            CargoClippy,
            Shell {
                shell: "export CARGO_TARGET_DIR=/workspace/cache\nexport CARGO_HOME=/workspace/deps\nexport HOME=/root\nexport PATH=\"/root/.cargo/bin:/root/.radicle/bin:$PATH\"\n\n# Check that `rad` is there.\nrad --help >/dev/null || (echo rad is not there; exit 1)\n\ncargo doc --workspace --no-deps\n\n# FIXME: We can't run upgrade tests from older versions because\n# Ambient only fetches dependencies for the current version.\n# Thus, we can't build the old versions. This is an Ambient\n# problem that we can't fix here. So we skip the upgrade tests.\ncargo test --workspace --no-fail-fast -- --skip upgrade --test-threads 2\n\nsubplot docgen ci-broker.subplot -o doc/ci-broker.html\nsubplot docgen doc/userguide.subplot -o doc/userguide.html\nmake -C doc\ncp doc/*.html /workspace/artifacts/.\n",
            },
            Custom(
                Custom {
                    name: "dch",
                    args: {
                        "debfullname": String("Lars Wirzenius"),
                        "debemail": String("liw@liw.fi"),
                    },
                },
            ),
            Deb,
            TarCreate {
                archive: "/dev/vde",
                directory: "/workspace/cache",
            },
            TarCreate {
                archive: "/dev/vdd",
                directory: "/workspace/artifacts",
            },
        ],
        executor_drive: Some(
            "/dev/vdb",
        ),
        source_drive: Some(
            "/dev/vdc",
        ),
        artifact_drive: Some(
            "/dev/vdd",
        ),
        cache_drive: Some(
            "/dev/vde",
        ),
        deps_drive: Some(
            "/dev/vdf",
        ),
        workspace_dir: Some(
            "/workspace",
        ),
        source_dir: Some(
            "/workspace/src",
        ),
        deps_dir: Some(
            "/workspace/deps",
        ),
        cache_dir: Some(
            "/workspace/cache",
        ),
        artifacts_dir: Some(
            "/workspace/artifacts",
        ),
    }
[2025-09-17T12:29:36Z DEBUG ambient_ci::run] executor bin /usr/bin/ambient-execute-plan
[2025-09-17T12:29:36Z DEBUG ambient_ci::run] copying /usr/bin/ambient-execute-plan to /srv/tmp/.tmpimiD6Q/ambient-execute-plan/run-ci
[2025-09-17T12:29:36Z DEBUG ambient_ci::run] copy OK: true
[2025-09-17T12:29:36Z DEBUG ambient_ci::run] create virtual drive /srv/tmp/.tmpimiD6Q/executor.tar
[2025-09-17T12:30:39Z DEBUG ambient_ci::project] removing run log file /srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/run.log
[2025-09-17T12:30:39Z DEBUG ambient_ci::project] statedir is /srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8, exists? true
[2025-09-17T12:30:40Z DEBUG ambient_ci::project] creating run log file /srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/run.log
[2025-09-17T12:30:40Z DEBUG ambient_ci::project] created run log file /srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/run.log OK
[2025-09-17T12:30:40Z DEBUG ambient_ci::cloud_init] with_hostname called: "ambient"
[2025-09-17T12:30:40Z DEBUG ambient_ci::cloud_init] with_runcmd called: "echo xyzzy > /dev/ttyS1"
[2025-09-17T12:30:40Z DEBUG ambient_ci::cloud_init] with_runcmd called: "\n(set -xeu\nenv\ndir=\"$(mktemp -d)\"\ncd \"$dir\"\ntar -xvf /dev/vdb\nfind -ls || true\nldd ./run-ci || true\necho ================================ BEGIN ================================\nexport RUST_BACKTRACE=1\nif ./run-ci; then\n        echo \"EXIT CODE: 0\"\nelse\n        echo \"EXIT CODE: $?\"\nfi) > /dev/ttyS1 2>&1\n"
[2025-09-17T12:30:40Z DEBUG ambient_ci::cloud_init] with_runcmd called: "poweroff"
[2025-09-17T12:30:40Z DEBUG ambient_ci::cloud_init] LocalDataStoreBuilder: LocalDataStoreBuilder {
        hostname: Some(
            "ambient",
        ),
        network: false,
        bootcmd: [],
        runcmd: [
            "echo xyzzy > /dev/ttyS1",
            "\n(set -xeu\nenv\ndir=\"$(mktemp -d)\"\ncd \"$dir\"\ntar -xvf /dev/vdb\nfind -ls || true\nldd ./run-ci || true\necho ================================ BEGIN ================================\nexport RUST_BACKTRACE=1\nif ./run-ci; then\n        echo \"EXIT CODE: 0\"\nelse\n        echo \"EXIT CODE: $?\"\nfi) > /dev/ttyS1 2>&1\n",
            "poweroff",
        ],
    }
[2025-09-17T12:30:40Z DEBUG ambient_ci::qemu] run QEMU
[2025-09-17T12:30:40Z DEBUG ambient_ci::qemu] create copy-on-write image and UEFI vars file
[2025-09-17T12:30:40Z DEBUG ambient_ci::qemu_utils] qemu-img create /srv/tmp/.tmp7sW4aS/.tmpanYDZ2/vm.qcow2 backing on /home/_rad/ambient.qcow2
[2025-09-17T12:30:41Z DEBUG ambient_ci::qemu] create cloud-init ISO file
[2025-09-17T12:30:41Z DEBUG ambient_ci::cloud_init] LocalDataStore: LocalDataStore {
        hostname: "ambient",
        network: false,
        bootcmd: [],
        runcmd: [
            "echo xyzzy > /dev/ttyS1",
            "\n(set -xeu\nenv\ndir=\"$(mktemp -d)\"\ncd \"$dir\"\ntar -xvf /dev/vdb\nfind -ls || true\nldd ./run-ci || true\necho ================================ BEGIN ================================\nexport RUST_BACKTRACE=1\nif ./run-ci; then\n        echo \"EXIT CODE: 0\"\nelse\n        echo \"EXIT CODE: $?\"\nfi) > /dev/ttyS1 2>&1\n",
            "poweroff",
        ],
    }
[2025-09-17T12:30:41Z DEBUG ambient_ci::cloud_init] write /tmp/.tmpJ4aHfg/meta-data
[2025-09-17T12:30:41Z DEBUG ambient_ci::cloud_init] write /tmp/.tmpJ4aHfg/user-data
[2025-09-17T12:30:41Z DEBUG ambient_ci::qemu] set console log file to /srv/tmp/.tmp7sW4aS/.tmpanYDZ2/console.log
[2025-09-17T12:30:41Z DEBUG ambient_ci::util] create file /srv/tmp/.tmp7sW4aS/.tmpanYDZ2/console.log
[2025-09-17T12:30:41Z DEBUG ambient_ci::qemu] set run file to /srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/run.log
[2025-09-17T12:30:41Z DEBUG ambient_ci::util] create file /srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/run.log
[2025-09-17T12:30:41Z DEBUG ambient_ci::qemu] run QEMU: QemuArgs {
        args: [
            "-m",
            "7629",
            "-smp",
            "cpus=4",
            "-cpu",
            "kvm64",
            "-machine",
            "type=q35,accel=kvm,usb=off",
            "-uuid",
            "a85c9de7-edc0-4e54-bead-112e5733582c",
            "-boot",
            "strict=on",
            "-name",
            "ambient-ci-vm",
            "-rtc",
            "base=utc,driftfix=slew",
            "-display",
            "none",
            "-device",
            "virtio-rng-pci",
            "-serial",
            "file:/srv/tmp/.tmp7sW4aS/.tmpanYDZ2/console.log",
            "-serial",
            "file:/srv/ambient-state/rad:zwTxygwuz5LDGBq255RA2CbNGrz8/run.log",
            "-drive",
            "if=pflash,format=raw,unit=0,file=/usr/share/ovmf/OVMF.fd,readonly=on",
            "-drive",
            "if=pflash,format=raw,unit=1,file=/srv/tmp/.tmp7sW4aS/.tmpanYDZ2/vars.fd",
            "-drive",
            "format=qcow2,if=virtio,file=/srv/tmp/.tmp7sW4aS/.tmpanYDZ2/vm.qcow2",
            "-drive",
            "format=raw,if=virtio,file=/srv/tmp/.tmpimiD6Q/executor.tar,readonly=on",
            "-cdrom",
            "/srv/tmp/.tmp7sW4aS/.tmpanYDZ2/cloud_init.iso",
            "-drive",
            "format=raw,if=virtio,file=/srv/tmp/.tmpimiD6Q/src.tar,readonly=on",
            "-drive",
            "format=raw,if=virtio,file=/srv/tmp/.tmpimiD6Q/artifacts.tar",
            "-drive",
            "format=raw,if=virtio,file=/srv/tmp/.tmpimiD6Q/cache.tar",
            "-drive",
            "format=raw,if=virtio,file=/srv/tmp/.tmpimiD6Q/deps.tar,readonly=on",
            "-nodefaults",
            "-no-user-config",
        ],
    }
[2025-09-17T12:34:56Z DEBUG ambient_ci::qemu] QEMU finished OK
[2025-09-17T12:34:56Z DEBUG ambient_ci::qemu] run log:
    --------------------==========
    [2025-09-17T12:31:04Z TRACE ambient_execute_plan] ambient-execute-plan starts
    [2025-09-17T12:31:04Z DEBUG ambient_execute_plan] ambient-execute-plan starts
    [2025-09-17T12:31:04Z INFO  ambient_execute_plan] ambient-execute-plan starts
    [2025-09-17T12:31:04Z WARN  ambient_execute_plan] ambient-execute-plan starts
    [2025-09-17T12:31:04Z ERROR ambient_execute_plan] 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: shell
      shell: |
        export CARGO_TARGET_DIR=/workspace/cache
        export CARGO_HOME=/workspace/deps
        export HOME=/root
        export PATH="/root/.cargo/bin:/root/.radicle/bin:$PATH"
    
        # Check that `rad` is there.
        rad --help >/dev/null || (echo rad is not there; exit 1)
    
        cargo doc --workspace --no-deps
    
        # FIXME: We can't run upgrade tests from older versions because
        # Ambient only fetches dependencies for the current version.
        # Thus, we can't build the old versions. This is an Ambient
        # problem that we can't fix here. So we skip the upgrade tests.
        cargo test --workspace --no-fail-fast -- --skip upgrade --test-threads 2
    
        subplot docgen ci-broker.subplot -o doc/ci-broker.html
        subplot docgen doc/userguide.subplot -o doc/userguide.html
        make -C doc
        cp doc/*.html /workspace/artifacts/.
    - action: custom
      name: dch
      args:
        debfullname: Lars Wirzenius
        debemail: liw@liw.fi
    - 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",
    }
    [2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: Mkdir {
            pathname: "/workspace",
        }
    RUN: Action finished OK
    RUN: Action Mkdir {
        pathname: "/workspace/artifacts",
    }
    [2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: Mkdir {
            pathname: "/workspace/artifacts",
        }
    RUN: Action finished OK
    RUN: Action TarExtract {
        archive: "/dev/vdc",
        directory: "/workspace/src",
    }
    [2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: TarExtract {
            archive: "/dev/vdc",
            directory: "/workspace/src",
        }
    [2025-09-17T12:31:04Z TRACE ambient_ci::vdrive] extracting /dev/vdc to /workspace/src
    [2025-09-17T12:31:04Z TRACE ambient_ci::vdrive] extraction OK
    RUN: Action finished OK
    RUN: Action TarExtract {
        archive: "/dev/vdf",
        directory: "/workspace/deps",
    }
    [2025-09-17T12:31:04Z DEBUG ambient_ci::action] Plan::execute: TarExtract {
            archive: "/dev/vdf",
            directory: "/workspace/deps",
        }
    [2025-09-17T12:31:04Z TRACE ambient_ci::vdrive] extracting /dev/vdf to /workspace/deps
    [2025-09-17T12:31:44Z TRACE ambient_ci::vdrive] extraction OK
    RUN: Action finished OK
    RUN: Action TarExtract {
        archive: "/dev/vde",
        directory: "/workspace/cache",
    }
    [2025-09-17T12:31:44Z DEBUG ambient_ci::action] Plan::execute: TarExtract {
            archive: "/dev/vde",
            directory: "/workspace/cache",
        }
    [2025-09-17T12:31:44Z TRACE ambient_ci::vdrive] extracting /dev/vde to /workspace/cache
    [2025-09-17T12:34:49Z TRACE ambient_ci::vdrive] extraction OK
    RUN: Action finished OK
    RUN: Action Spawn {
        argv: [
            "find",
            "/workspace",
            "-maxdepth",
            "2",
            "-ls",
        ],
    }
    [2025-09-17T12:34:49Z DEBUG ambient_ci::action] Plan::execute: Spawn {
            argv: [
                "find",
                "/workspace",
                "-maxdepth",
                "2",
                "-ls",
            ],
        }
    SPAWN: argv=["find", "/workspace", "-maxdepth", "2", "-ls"]
           cwd=/workspace/src (exists? true)
           extra_env=[]
      2621441      4 drwxr-xr-x   6 root     root         4096 Sep 17 12:31 /workspace
      2621760      4 drwxr-xr-x   3 root     root         4096 Sep 17 12:29 /workspace/deps
      2621761      0 -rw-r--r--   1 root     root            0 Sep 16 11:54 /workspace/deps/.package-cache-mutate
      2621764      4 drwxr-xr-x   5 root     root         4096 Sep 16 11:54 /workspace/deps/registry
      2621762    112 -rw-r--r--   1 root     root       114688 Sep 17 12:29 /workspace/deps/.global-cache
      2621763      0 -rw-r--r--   1 root     root            0 Sep 16 11:54 /workspace/deps/.package-cache
      2621443      4 drwxr-xr-x  10 root     root         4096 Sep 17 12:29 /workspace/src
      2621520      4 -rw-r--r--   1 root     root         1716 Sep 17 12:29 /workspace/src/Cargo.toml
      2621748      4 -rw-r--r--   1 root     root         1188 Sep 17 12:29 /workspace/src/CONTRIBUTING.md
      2621502     40 -rw-r--r--   1 root     root        37080 Sep 17 12:29 /workspace/src/NEWS.md
      2621517      4 -rw-r--r--   1 root     root          970 Sep 17 12:29 /workspace/src/build.rs
      2621523      4 drwxr-xr-x   8 root     root         4096 Sep 17 12:29 /workspace/src/.git
      2621750      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/doc
      2621450      4 drwxr-xr-x   4 root     root         4096 Sep 17 12:29 /workspace/src/src
      2621516      8 -rw-r--r--   1 root     root         4796 Sep 17 12:29 /workspace/src/README.md
      2621447      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/.ambient
      2621496      4 -rw-r--r--   1 root     root          386 Sep 17 12:29 /workspace/src/cibtool.1
      2621515      4 -rw-r--r--   1 root     root          732 Sep 17 12:29 /workspace/src/ci-broker.yaml
      2621445      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/.radicle
      2621503      4 drwxr-xr-x   3 root     root         4096 Sep 17 12:29 /workspace/src/debian
      2621501      4 -rw-r--r--   1 root     root           10 Sep 17 12:29 /workspace/src/.envrc
      2621749     92 -rw-r--r--   1 root     root        91735 Sep 17 12:29 /workspace/src/Cargo.lock
      2621745     12 -rw-r--r--   1 root     root         9723 Sep 17 12:29 /workspace/src/LICENSE-APACHE
      2621519      4 -rw-r--r--   1 root     root           44 Sep 17 12:29 /workspace/src/.gitignore
      2621521      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/tests
      2621747      8 -rw-r--r--   1 root     root         6528 Sep 17 12:29 /workspace/src/flake.lock
      2621518      8 -rw-r--r--   1 root     root         5951 Sep 17 12:29 /workspace/src/flake.nix
      2621495     92 -rw-r--r--   1 root     root        90815 Sep 17 12:29 /workspace/src/ci-broker.md
      2621444      4 -rw-r--r--   1 root     root          440 Sep 17 12:29 /workspace/src/cib.1
      2621500      4 -rw-r--r--   1 root     root          257 Sep 17 12:29 /workspace/src/ci-broker.subplot
      2621449      4 -rw-r--r--   1 root     root         1079 Sep 17 12:29 /workspace/src/LICENSE-MIT
      2621746      4 -rw-r--r--   1 root     root          334 Sep 17 12:29 /workspace/src/Makefile
      2621497      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:29 /workspace/src/.cargo
      2621442      4 drwxr-xr-x   2 root     root         4096 Sep 17 12:31 /workspace/artifacts
      2645340      4 drwxr-xr-x   6 root     root         4096 Sep 16 12:00 /workspace/cache
      2653337      4 -rw-r--r--   1 root     root          218 Sep 16 11:56 /workspace/cache/.rustdoc_fingerprint.json
      2657226      4 drwxr-xr-x  12 root     root         4096 Sep 16 11:56 /workspace/cache/doc
      2645342      4 drwxr-xr-x   7 root     root         4096 Sep 16 12:00 /workspace/cache/debug
      2645341      4 drwxr-xr-x   2 root     root         4096 Sep 16 11:55 /workspace/cache/tmp
      2657225      4 -rw-r--r--   1 root     root         1034 Sep 16 11:56 /workspace/cache/.rustc_info.json
      2653338      4 drwxr-xr-x   7 root     root         4096 Sep 16 12:02 /workspace/cache/release
    RUN: Action finished OK
    RUN: Action CargoFmt
    [2025-09-17T12:34:49Z DEBUG ambient_ci::action] Plan::execute: 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")]
    Diff in /workspace/src/src/util.rs:142:
     
     pub fn safely_overwrite<P: AsRef<Path>>(filename: P, data: &[u8]) -> Result<(), UtilError> {
         let filename = filename.as_ref();
    -    let dirname = filename.parent().ok_or(UtilError::NoParent(filename.to_path_buf()))?;
    -    let mut tmp = NamedTempFile::new_in(dirname).map_err(|err| UtilError::CreateTemp(dirname.to_path_buf(), err))?;
    -    tmp.write_all(data).map_err(|err| UtilError::WriteTemp(dirname.to_path_buf(), err))?;
    -    tmp.persist(filename).map_err(|err| UtilError::RenameTemp(filename.to_path_buf(), err))?;
    +    let dirname = filename
    +        .parent()
    +        .ok_or(UtilError::NoParent(filename.to_path_buf()))?;
    +    let mut tmp = NamedTempFile::new_in(dirname)
    +        .map_err(|err| UtilError::CreateTemp(dirname.to_path_buf(), err))?;
    +    tmp.write_all(data)
    +        .map_err(|err| UtilError::WriteTemp(dirname.to_path_buf(), err))?;
    +    tmp.persist(filename)
    +        .map_err(|err| UtilError::RenameTemp(filename.to_path_buf(), err))?;
         Ok(())
     }
     
    ERROR: Action failed: command failed: ["cargo", "fmt", "--check"]
    ERROR: command failed: ["cargo", "fmt", "--check"]
    EXIT CODE: 1
    
    ====================
[2025-09-17T12:34:57Z DEBUG ambient_ci::qemu] QEMU exit code 1
ERROR: failed to run actions in QEMU

Ambient stderr

<empty log>