CI run for sopass

Radicle repository id rad:z4ExzU1jYHivznhtDPvuTL9z5Ebit

Triggered by

{
  "request": "trigger",
  "version": 1,
  "event_type": "push",
  "repository": {
    "id": "rad:z4ExzU1jYHivznhtDPvuTL9z5Ebit",
    "name": "sopass",
    "description": "A command line password manager using SOP",
    "private": false,
    "default_branch": "main",
    "delegates": [
      "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV"
    ]
  },
  "pusher": {
    "id": "did:key:z6MkkYez6QAFWvmdudjrfMXySu1NTpSrraJotCJFwGgkmgx8",
    "alias": "ci0"
  },
  "before": "36497f52e27f7a88fe812f4b182e4575d1517cd0",
  "after": "36497f52e27f7a88fe812f4b182e4575d1517cd0",
  "branch": "main",
  "commits": [
    "36497f52e27f7a88fe812f4b182e4575d1517cd0"
  ]
}

Run log

[2025-05-20T11:04:26Z 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: |
    export PATH="/root/.cargo/bin:/bin:/sbin"
    export SOPASS_LOG=trace
    export CARGO_TARGET_DIR=/workspace/cache
    export CARGO_HOME=/workspace/deps

    make OFFLINE="--offline --locked"
- 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 20 11:02 /workspace
  6029431      4 drwxr-xr-x   3 root     root         4096 May 20 11:01 /workspace/deps
  6029432     56 -rw-r--r--   1 root     root        57344 May 20 11:01 /workspace/deps/.global-cache
  6029433      0 -rw-r--r--   1 root     root            0 Apr  9 04:21 /workspace/deps/.package-cache
  6029434      4 drwxr-xr-x   5 root     root         4096 Apr  9 04:21 /workspace/deps/registry
  6037545      4 drwxr-xr-x   4 root     root         4096 Apr  9 04:21 /workspace/cache
  6041439      4 -rw-r--r--   1 root     root          218 May 19 14:50 /workspace/cache/.rustdoc_fingerprint.json
  6041440      4 -rw-r--r--   1 root     root         1034 May 19 14:50 /workspace/cache/.rustc_info.json
  6041441      4 drwxr-xr-x   7 root     root         4096 May 19 14:50 /workspace/cache/doc
  6037546      4 drwxr-xr-x   7 root     root         4096 May 19 14:50 /workspace/cache/debug
  6029316      4 drwxr-xr-x   6 root     root         4096 May 20 11:01 /workspace/src
  6029428      4 -rw-r--r--   1 root     root          447 May 20 11:01 /workspace/src/sopass.py
  6029317      4 drwxr-xr-x   2 root     root         4096 May 20 11:01 /workspace/src/.radicle
  6029353     20 -rw-r--r--   1 root     root        17262 May 20 11:01 /workspace/src/sopass.md
  6029336      4 drwxr-xr-x   3 root     root         4096 May 20 11:01 /workspace/src/debian
  6029349      4 -rw-r--r--   1 root     root          206 May 20 11:01 /workspace/src/sopass.subplot
  6029334      4 -rw-r--r--   1 root     root          289 May 20 11:01 /workspace/src/pass-to-sopass.sh
  6029335      4 -rw-r--r--   1 root     root         3822 May 20 11:01 /workspace/src/NEWS.md
  6029351      4 -rw-r--r--   1 root     root           20 May 20 11:01 /workspace/src/.gitignore
  6029350      4 -rw-r--r--   1 root     root           82 May 20 11:01 /workspace/src/sopass.yaml
  6029352      4 -rw-r--r--   1 root     root          517 May 20 11:01 /workspace/src/Cargo.toml
  6029319      4 drwxr-xr-x   3 root     root         4096 May 20 11:01 /workspace/src/src
  6029429      4 -rw-r--r--   1 root     root          480 May 20 11:01 /workspace/src/Makefile
  6029430     20 -rw-r--r--   1 root     root        19397 May 20 11:01 /workspace/src/Cargo.lock
  6029348      4 -rw-r--r--   1 root     root         1109 May 20 11:01 /workspace/src/README.md
  6029354      4 drwxr-xr-x   8 root     root         4096 May 20 11:01 /workspace/src/.git
  6029347      4 -rw-r--r--   1 root     root         1377 May 20 11:01 /workspace/src/sopass.1
  6029315      4 drwxr-xr-x   2 root     root         4096 May 20 11:02 /workspace/artifacts
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 sopass v0.5.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.32s
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 sopass v0.5.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.32s
RUN: Action finished OK
RUN: Action Shell {
    shell: "export PATH=\"/root/.cargo/bin:/bin:/sbin\"\nexport SOPASS_LOG=trace\nexport CARGO_TARGET_DIR=/workspace/cache\nexport CARGO_HOME=/workspace/deps\n\nmake OFFLINE=\"--offline --locked\"\n",
}
SPAWN: argv=["/bin/bash", "-c", "set -xeuo pipefail\nexport PATH=\"/root/.cargo/bin:/bin:/sbin\"\nexport SOPASS_LOG=trace\nexport CARGO_TARGET_DIR=/workspace/cache\nexport CARGO_HOME=/workspace/deps\n\nmake OFFLINE=\"--offline --locked\"\n\n"]
       cwd=/workspace/src (exists? true)
       extra_env=[]
+ export PATH=/root/.cargo/bin:/bin:/sbin
+ PATH=/root/.cargo/bin:/bin:/sbin
+ export SOPASS_LOG=trace
+ SOPASS_LOG=trace
+ export CARGO_TARGET_DIR=/workspace/cache
+ CARGO_TARGET_DIR=/workspace/cache
+ export CARGO_HOME=/workspace/deps
+ CARGO_HOME=/workspace/deps
+ make 'OFFLINE=--offline --locked'
subplot docgen sopass.subplot -o sopass.html
 INFO Starting Subplot
 INFO Subplot finished successfully
cargo clippy --offline --locked --all-targets -- -Dwarnings
    Checking sopass v0.5.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.30s
cargo build --offline --locked --all-targets
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s
cargo test --offline --locked --all-targets
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
     Running unittests src/lib.rs (/workspace/cache/debug/deps/sopass-a60c5327a59fbb44)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

     Running unittests src/main.rs (/workspace/cache/debug/deps/sopass-38366486db0bb0f1)

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

cargo test --offline --locked --doc
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s
   Doc-tests sopass

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

cargo doc --offline --locked --no-deps
 Documenting sopass v0.5.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.76s
   Generated /workspace/cache/doc/sopass/index.html
rm -f test.py test.log
subplot codegen sopass.subplot -o test.py
 INFO Starting Subplot
 INFO Subplot finished successfully
SOPASS_LOG=trace python3 test.py --log test.log
srcdir /workspace/src
datadir /tmp/tmp1crpkoa8
scenario: Reports a default configuration
  step: given an installed sopass
bindir /workspace/cache/debug
  step: when I run sopass config
  step: then stdout contains ""store": "/"
  step: then stdout contains ""sop": ""
  step: then stdout contains ""key_file": ""
  step: then file .config/sopass/sopass.yml does not exist
scenario: Initializes the password store
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file my.key
  step: then directory xyzzy does not exist
  step: when I run sopass --store xyzzy init --name primary --key my.key
  step: then file xyzzy/values.sopass exists
scenario: Exports store to file
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file my.key
  step: when I run sopass --store xyzzy init --name primary --key my.key
  step: given file value.dat
  step: when I run sopass --store xyzzy value add foo --file value.dat
  step: when I run sopass --store xyzzy export store.json
  step: when I run cat store.json
  step: then file store.json contains ""certs":"
  step: then file store.json contains ""primary":"
  step: then file store.json contains ""kv":"
  step: then file store.json contains ""foo":"
scenario: Manages values
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file my.key
  step: when I run sopass --store xyzzy init --name primary --key my.key
  step: when I run sopass --store xyzzy value list
  step: then stdout is exactly ""
  step: given file value.dat
  step: when I run sopass --store xyzzy value add foo --file value.dat
  step: when I run sopass --store xyzzy value list
  step: then stdout is exactly "foo\n"
  step: when I run sopass --store xyzzy value show foo
  step: then stdout is exactly "bar\n"
  step: when I run sopass --store xyzzy value remove foo
  step: then stdout is exactly ""
  step: given file add-stdin.sh
  step: when I run sh add-stdin.sh
  step: when I run sopass --store xyzzy value list
  step: then stdout is exactly "foo\n"
  step: when I run sopass --store xyzzy value show foo
  step: then stdout is exactly "bar\n"
  step: when I run sopass --store xyzzy value remove foo
  step: then stdout is exactly ""
scenario: Rejects unknown field in configuration file
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file unknown.yaml
  step: when I try to run sopass --config unknown.yaml config
  step: then command fails
  step: then stderr contains "unknown"
scenario: Reports its version
  step: given an installed sopass
bindir /workspace/cache/debug
  step: when I run sopass --version
  step: then stdout matches regex ^sopass \\d+\\.\\d+\\.\\d+$
  step: when I run sopass version
  step: then stdout matches regex ^sopass \\d+\\.\\d+\\.\\d+$
scenario: Imports from a file
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file my.key
  step: given file value.dat
  step: given file yo.dat
  step: when I run sopass --store xyzzy init --name primary --key my.key
  step: when I run sopass --store xyzzy value add foo --file value.dat
  step: when I run sopass --store xyzzy value add bar --file value.dat
  step: when I run sopass --store xyzzy value add yo --file value.dat
  step: when I run sopass --store xyzzy export store.json
  step: when I run sopass --store new init --name primary --key my.key
  step: when I run sopass --store new value add foo --file yo.dat
  step: when I run sopass --store new value add bar --file yo.dat
  step: when I run sopass --store new import store.json
  step: when I run sopass --store new value list
  step: then stdout contains "foo"
  step: then stdout contains "bar"
  step: then stdout contains "yo"
  step: when I run sopass --store new value show foo
  step: then stdout is exactly "bar\n"
  step: when I run sopass --store new value show bar
  step: then stdout is exactly "bar\n"
  step: when I run sopass --store new value show yo
  step: then stdout is exactly "bar\n"
scenario: Showing value that does not exist fails
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file my.key
  step: when I run sopass --store xyzzy init --name primary --key my.key
  step: when I try to run sopass --store xyzzy value show foo
  step: then command fails
  step: then stderr contains "foo"
  step: then stdout is exactly ""
scenario: Loads specified configuration file
  step: given an installed sopass
bindir /workspace/cache/debug
  step: when I try to run sopass --config custom.yaml config
  step: then command fails
  step: then stderr contains "custom.yaml"
  step: given file custom.yaml
  step: when I run sopass --config custom.yaml config
  step: then stdout contains ""sop": "soppy""
scenario: Renames values
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file my.key
  step: when I run sopass --store xyzzy init --name primary --key my.key
  step: given file value.dat
  step: when I run sopass --store xyzzy value add foo --file value.dat
  step: when I run sopass --store xyzzy value add foobar --file value.dat
  step: when I try to run sopass --store xyzzy value rename ghost yo
  step: then command fails
  step: then stderr contains "ghost"
  step: when I try to run sopass --store xyzzy value rename foo foobar
  step: then command fails
  step: then stderr contains "foobar"
  step: when I run sopass --store xyzzy value rename foo yo
  step: when I run sopass --store xyzzy value list
  step: then stdout is exactly "foobar\nyo\n"
scenario: Loads default configuration file
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file .config/sopass/sopass.yml from default.yaml
  step: when I run env HOME=. sopass config
  step: then stdout contains ""store": "/over/the/rainbow""
scenario: Manages certificates
  step: given an installed sopass
bindir /workspace/cache/debug
  step: given file my.key
  step: given file other.key
  step: given file other.cert
  step: when I run sopass --store xyzzy init --name primary --key my.key
  step: when I run sopass --store xyzzy cert list
  step: then stdout is exactly "primary\n"
  step: when I run sopass --store xyzzy cert add --name secondary --cert other.cert
  step: when I run sopass --store xyzzy cert list
  step: then stdout contains "primary"
  step: then stdout contains "secondary"
  step: when I run mv other.key xyzzy/default.key
  step: when I run rm my.key
  step: when I run sopass --store xyzzy cert list
  step: then stdout contains "primary"
  step: then stdout contains "secondary"
  step: when I run sopass --store xyzzy cert remove primary
  step: when I run sopass --store xyzzy cert list
  step: then stdout doesn't contain "primary"
  step: then stdout contains "secondary"
  step: when I try to run sopass --store xyzzy cert remove secondary
  step: then command fails
  step: then stderr contains "secondary"
  step: when I run sopass --store xyzzy cert list
  step: then stdout contains "secondary"
OK, all scenarios finished successfully
rm -f test.py test.log
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-20T11:04:26Z INFO  ambient] ambient ends successfully