CI run for obnam

Radicle repository id rad:zbWNQYkQ4QKgdSQcd1tjaemv6d6x

Triggered by

{
  "request": "trigger",
  "version": 1,
  "event_type": "push",
  "repository": {
    "id": "rad:zbWNQYkQ4QKgdSQcd1tjaemv6d6x",
    "name": "obnam",
    "description": "Explore implementation of backup fundamentals",
    "private": false,
    "default_branch": "main",
    "delegates": [
      "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV"
    ]
  },
  "pusher": {
    "id": "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV",
    "alias": "liw"
  },
  "before": "43d9ba80a3462b9e84a14b6363f099870a737707",
  "after": "43d9ba80a3462b9e84a14b6363f099870a737707",
  "branch": "main",
  "commits": [
    "43d9ba80a3462b9e84a14b6363f099870a737707",
    "3f5ac6bbc6421ccef9ab6b4d0e2cf8f22c1c0ae7",
    "825dad5f8e05cac9b153fc9f048b6e5f2d912967",
    "04e27580a567a44f9a17901c2679683f68fe9c5c",
    "c91bf6e7685338887353f896b8651c7c84c2f8a6",
    "e4781390eb8cc714d9ae40577447530dce9a2ccf",
    "009a76a737aa548c3f3033d7793f7e2027303231",
    "0da351e5bfa3111bec4c08dba5ad45a1312515b8"
  ]
}

Run log

[2025-05-18T04:13:03Z INFO  ambient] ambient starts
[=3h[=3hBdsDxe: failed to load Boot0001 "UEFI QEMU DVD-ROM QM00003 " from PciRoot(0x0)/Pci(0x1,0x1)/Ata(Secondary,Master,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_clippy
- action: cargo_build
- action: shell
  shell: |
    export PATH=/root/.cargo/bin:/bin:/sbin
    export CARGO_TARGET_DIR=/workspace/cache
    make subplot
- 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=[]
  6029313      4 drwxr-xr-x   6 root     root         4096 May 18 04:12 /workspace
  6029393      4 drwxr-xr-x   3 root     root         4096 May 18 04:11 /workspace/deps
  6029394     56 -rw-r--r--   1 root     root        57344 May 18 04:11 /workspace/deps/.global-cache
  6029395      0 -rw-r--r--   1 root     root            0 Apr  9 04:08 /workspace/deps/.package-cache
  6029396      4 drwxr-xr-x   5 root     root         4096 Apr  9 04:08 /workspace/deps/registry
  6033596      4 drwxr-xr-x   3 root     root         4096 Apr  9 04:08 /workspace/cache
  6035780      4 -rw-r--r--   1 root     root         1033 May 16 05:05 /workspace/cache/.rustc_info.json
  6033597      4 drwxr-xr-x   7 root     root         4096 May 16 05:05 /workspace/cache/debug
  6029316      4 drwxr-xr-x   5 root     root         4096 May 18 04:11 /workspace/src
  6029389      4 -rw-r--r--   1 root     root         1458 May 18 04:11 /workspace/src/obnam.md
  6029317      4 drwxr-xr-x   2 root     root         4096 May 18 04:11 /workspace/src/.radicle
  6029331      4 -rw-r--r--   1 root     root           22 May 18 04:11 /workspace/src/.gitignore
  6029333      4 -rw-r--r--   1 root     root          717 May 18 04:11 /workspace/src/obnam.py
  6029332      4 -rw-r--r--   1 root     root          368 May 18 04:11 /workspace/src/Cargo.toml
  6029319      4 drwxr-xr-x   3 root     root         4096 May 18 04:11 /workspace/src/src
  6029388      4 -rw-r--r--   1 root     root          300 May 18 04:11 /workspace/src/Makefile
  6029392      4 -rw-r--r--   1 root     root          224 May 18 04:11 /workspace/src/obnam.subplot
  6029391     20 -rw-r--r--   1 root     root        18985 May 18 04:11 /workspace/src/Cargo.lock
  6029330      4 -rw-r--r--   1 root     root          189 May 18 04:11 /workspace/src/README.md
  6029334      4 drwxr-xr-x   8 root     root         4096 May 18 04:11 /workspace/src/.git
  6029390      4 -rw-r--r--   1 root     root          163 May 18 04:11 /workspace/src/obnam.yaml
  6029315      4 drwxr-xr-x   2 root     root         4096 May 18 04:11 /workspace/artifacts
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 libc v0.2.171
   Compiling proc-macro2 v1.0.94
    Checking cfg-if v1.0.0
   Compiling version_check v0.9.5
   Compiling typenum v1.18.0
   Compiling unicode-ident v1.0.18
   Compiling generic-array v0.14.7
   Compiling semver v1.0.26
   Compiling autocfg v1.4.0
   Compiling quote v1.0.40
    Checking getrandom v0.2.16
   Compiling syn v2.0.100
    Checking rand_core v0.6.4
   Compiling lock_api v0.4.12
    Checking crypto-common v0.1.6
   Compiling rustix v1.0.3
   Compiling serde v1.0.219
   Compiling rustc_version v0.4.1
    Checking inout v0.1.4
    Checking scopeguard v1.2.0
    Checking utf8parse v0.2.2
    Checking linux-raw-sys v0.9.3
    Checking bitflags v2.9.0
    Checking anstyle-parse v0.2.6
   Compiling heapless v0.7.17
    Checking cipher v0.4.4
    Checking cpufeatures v0.2.17
    Checking anstyle-query v1.1.2
    Checking colorchoice v1.0.3
    Checking anstyle v1.0.10
    Checking byteorder v1.5.0
    Checking subtle v2.6.1
    Checking is_terminal_polyfill v1.70.1
   Compiling getrandom v0.3.1
    Checking universal-hash v0.5.1
    Checking anstream v0.6.18
    Checking hash32 v0.2.1
    Checking terminal_size v0.4.2
    Checking spin v0.9.8
   Compiling serde_json v1.0.140
    Checking stable_deref_trait v1.2.0
    Checking opaque-debug v0.3.1
   Compiling heck v0.5.0
   Compiling thiserror v2.0.12
    Checking strsim v0.11.1
    Checking clap_lex v0.7.4
    Checking polyval v0.6.2
    Checking clap_builder v4.5.32
    Checking aes v0.8.4
    Checking ctr v0.9.2
    Checking aead v0.5.2
    Checking zeroize v1.8.1
    Checking itoa v1.0.15
    Checking memchr v2.7.4
    Checking cobs v0.2.3
    Checking ryu v1.0.20
    Checking aes-gcm-siv v0.11.1
    Checking uuid v1.16.0
   Compiling serde_derive v1.0.219
   Compiling thiserror-impl v2.0.12
   Compiling clap_derive v4.5.32
    Checking clap v4.5.32
    Checking postcard v1.1.1
    Checking obnam v0.1.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.72s
RUN: Action finished OK
RUN: Action CargoBuild
SPAWN: argv=["cargo", "build", "--offline", "--locked", "--workspace", "--all-targets"]
       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 libc v0.2.171
   Compiling cfg-if v1.0.0
   Compiling typenum v1.18.0
   Compiling linux-raw-sys v0.9.3
   Compiling utf8parse v0.2.2
   Compiling scopeguard v1.2.0
   Compiling bitflags v2.9.0
   Compiling rustix v1.0.3
   Compiling lock_api v0.4.12
   Compiling anstyle-parse v0.2.6
   Compiling generic-array v0.14.7
   Compiling getrandom v0.2.16
   Compiling serde v1.0.219
   Compiling rand_core v0.6.4
   Compiling anstyle-query v1.1.2
   Compiling is_terminal_polyfill v1.70.1
   Compiling byteorder v1.5.0
   Compiling crypto-common v0.1.6
   Compiling inout v0.1.4
   Compiling colorchoice v1.0.3
   Compiling cpufeatures v0.2.17
   Compiling cipher v0.4.4
   Compiling anstyle v1.0.10
   Compiling subtle v2.6.1
   Compiling anstream v0.6.18
   Compiling universal-hash v0.5.1
   Compiling hash32 v0.2.1
   Compiling terminal_size v0.4.2
   Compiling spin v0.9.8
   Compiling strsim v0.11.1
   Compiling stable_deref_trait v1.2.0
   Compiling clap_lex v0.7.4
   Compiling opaque-debug v0.3.1
   Compiling polyval v0.6.2
   Compiling clap_builder v4.5.32
   Compiling getrandom v0.3.1
   Compiling ctr v0.9.2
   Compiling aes v0.8.4
   Compiling aead v0.5.2
   Compiling cobs v0.2.3
   Compiling memchr v2.7.4
   Compiling zeroize v1.8.1
   Compiling ryu v1.0.20
   Compiling itoa v1.0.15
   Compiling aes-gcm-siv v0.11.1
   Compiling thiserror v2.0.12
   Compiling uuid v1.16.0
   Compiling heapless v0.7.17
   Compiling serde_json v1.0.140
   Compiling postcard v1.1.1
   Compiling clap v4.5.32
   Compiling obnam v0.1.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.08s
RUN: Action finished OK
RUN: Action Shell {
    shell: "export PATH=/root/.cargo/bin:/bin:/sbin\nexport CARGO_TARGET_DIR=/workspace/cache\nmake subplot\n",
}
SPAWN: argv=["/bin/bash", "-c", "set -xeuo pipefail\nexport PATH=/root/.cargo/bin:/bin:/sbin\nexport CARGO_TARGET_DIR=/workspace/cache\nmake subplot\n\n"]
       cwd=/workspace/src (exists? true)
       extra_env=[]
+ export PATH=/root/.cargo/bin:/bin:/sbin
+ PATH=/root/.cargo/bin:/bin:/sbin
+ export CARGO_TARGET_DIR=/workspace/cache
+ CARGO_TARGET_DIR=/workspace/cache
+ make subplot
subplot docgen obnam.subplot --output obnam.html
 INFO Starting Subplot
 INFO Subplot finished successfully
rm -f test.py test.log
subplot codegen obnam.subplot --output test.py
 INFO Starting Subplot
 INFO Subplot finished successfully
python3 test.py --log test.log
srcdir /workspace/src
datadir /tmp/tmp_x68u77c
scenario: Chunk encrypt/decrypt round trip
  step: given an installed obnam
  step: given file greeting.txt
  step: when I run obnam chunk encrypt --key secret --label sticky.tape greeting.txt --output chunk.file
  step: when I run obnam chunk decrypt --key secret chunk.file
  step: then stdout is exactly "Hello, world.\n"
scenario: Inspect an encoded chunk
  step: given an installed obnam
  step: given file greeting.txt
  step: when I run obnam chunk encrypt --label sticky.tape --key secret greeting.txt --output chunk.file
  step: when I run obnam chunk inspect chunk.file
  step: then stdout is valid JSON
  step: then stdout contains ""id":"
  step: then stdout contains ""label":"
  step: then stdout contains ""data": null"
  step: when I run obnam chunk inspect chunk.file --key secret
  step: then stdout is valid JSON
  step: then stdout contains ""id":"
  step: then stdout contains ""label":"
  step: then stdout contains ""data": ""
OK, all scenarios finished successfully
RUN: Action finished OK
RUN: Action TarCreate {
    archive: "/dev/vde",
    directory: "/workspace/cache",
}
RUN: Action finished OK
RUN: Action TarCreate {
    archive: "/dev/vdd",
    directory: "/workspace/artifacts",
}
RUN: Action finished OK
ambient-execute-plan ends
EXIT CODE: 0
[2025-05-18T04:13:03Z INFO  ambient] ambient ends successfully