CI run for pathdedup

Radicle repository id rad:z3uBEubocQ9kJANPvMAo6z5ZhhaFh

Triggered by

{
  "request": "trigger",
  "version": 1,
  "event_type": "push",
  "repository": {
    "id": "rad:z3uBEubocQ9kJANPvMAo6z5ZhhaFh",
    "name": "pathdedup",
    "description": "De-duplicate $PATH",
    "private": false,
    "default_branch": "main",
    "delegates": [
      "did:key:z6MkgEMYod7Hxfy9qCvDv5hYHkZ4ciWmLFgfvm3Wn1b2w2FV"
    ]
  },
  "pusher": {
    "id": "did:key:z6MkkYez6QAFWvmdudjrfMXySu1NTpSrraJotCJFwGgkmgx8",
    "alias": "ci0"
  },
  "before": "5291f5e25fa06c49eb85ba4cd9fe3a3d5fcfb675",
  "after": "5291f5e25fa06c49eb85ba4cd9fe3a3d5fcfb675",
  "branch": "main",
  "commits": [
    "5291f5e25fa06c49eb85ba4cd9fe3a3d5fcfb675"
  ]
}

Run log

[2025-05-16T05:06:24Z 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_fmt
- action: cargo_clippy
- action: cargo_build
- action: cargo_test
- 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=[]
   131073      4 drwxr-xr-x   6 root     root         4096 May 16 05:06 /workspace
   131074      4 drwxr-xr-x   2 root     root         4096 May 16 05:06 /workspace/artifacts
   131160      4 drwxr-xr-x   2 root     root         4096 Apr  9 04:08 /workspace/deps
   131161      4 drwxr-xr-x   4 root     root         4096 Apr  9 04:08 /workspace/cache
   131162      4 drwxr-xr-x   7 root     root         4096 May 12 13:57 /workspace/cache/debug
   131592      4 drwxr-xr-x   7 root     root         4096 May 12 13:58 /workspace/cache/release
   131614      4 -rw-r--r--   1 root     root         1033 May 12 13:57 /workspace/cache/.rustc_info.json
   131075      4 drwxr-xr-x   7 root     root         4096 May 16 05:06 /workspace/src
   131081      4 drwxr-xr-x   2 root     root         4096 May 16 05:06 /workspace/src/.cargo
   131094      4 -rw-r--r--   1 root     root            8 May 16 05:06 /workspace/src/.gitignore
   131093      4 -rw-r--r--   1 root     root          429 May 16 05:06 /workspace/src/README.md
   131076      4 drwxr-xr-x   2 root     root         4096 May 16 05:06 /workspace/src/.radicle
   131095      4 -rw-r--r--   1 root     root          204 May 16 05:06 /workspace/src/Cargo.toml
   131083      4 drwxr-xr-x   3 root     root         4096 May 16 05:06 /workspace/src/debian
   131078      4 -rw-r--r--   1 root     root         1300 May 16 05:06 /workspace/src/LICENSE.md
   131079      4 drwxr-xr-x   2 root     root         4096 May 16 05:06 /workspace/src/src
   131096      4 drwxr-xr-x   8 root     root         4096 May 16 05:06 /workspace/src/.git
   131159      4 -rw-r--r--   1 root     root          153 May 16 05:06 /workspace/src/Cargo.lock
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 pathdedup v0.2.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.31s
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 pathdedup v0.2.0 (/workspace/src)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s
RUN: Action finished OK
RUN: Action CargoTest
SPAWN: argv=["cargo", "test", "--offline", "--locked", "--workspace"]
       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")]
    Finished `test` profile [unoptimized + debuginfo] target(s) in 0.00s
     Running unittests src/main.rs (/workspace/cache/debug/deps/pathdedup-dcc587b802b5d6ca)

running 3 tests
test test::duplicate_elements ... ok
test test::single_element ... ok
test test::empty_string ... ok

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

RUN: Action finished OK
RUN: Action Deb
SPAWN: argv=["/bin/bash", "-c", "#!/bin/bash\nset -xeuo pipefail\n\necho \"PATH at start: $PATH\"\nexport PATH=\"/root/.cargo/bin:$PATH\"\nexport CARGO_HOME=/workspace/deps\nexport DEBEMAIL=liw@liw.fi\nexport DEBFULLNAME=\"Lars Wirzenius\"\n/bin/env\n\ncommand -v cargo\ncommand -v rustc\n\ncargo --version\nrustc --version\n\n# Get name and version of source package.\nname=\"$(dpkg-parsechangelog -SSource)\"\nversion=\"$(dpkg-parsechangelog -SVersion)\"\n\n# Get upstream version: everything before the last dash.\nuv=\"$(echo \"$version\" | sed 's/-[^-]*$//')\"\n\n# Files that will be created.\narch=\"$(dpkg --print-architecture)\"\norig=\"../${name}_${uv}.orig.tar.xz\"\ndeb=\"../${name}_${version}_${arch}.deb\"\nchanges=\"../${name}_${version}_${arch}.changes\"\n\n# Create \"upstream tarball\".\ngit archive HEAD | xz >\"$orig\"\n\n# Build package.\ndpkg-buildpackage -us -uc\n\n# Dump some information to make it easier to visually verify\n# everything looks OK. Also, test the package with the lintian tool.\n\nls -l ..\nfor x in ../*.deb; do dpkg -c \"$x\"; done\n# FIXME: disabled while this prevents radicle-native-ci deb from being built.\n# lintian -i --allow-root --fail-on warning ../*.changes\n\n# Move files to artifacts directory.\nmv ../*_* /workspace/artifacts\n        "]
       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")]
+ echo 'PATH at start: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
PATH at start: /root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH=/root/.cargo/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/root/.cargo/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export CARGO_HOME=/workspace/deps
+ CARGO_HOME=/workspace/deps
+ export DEBEMAIL=liw@liw.fi
+ DEBEMAIL=liw@liw.fi
+ export 'DEBFULLNAME=Lars Wirzenius'
+ DEBFULLNAME='Lars Wirzenius'
+ /bin/env
DEBFULLNAME=Lars Wirzenius
CARGO_TARGET_DIR=/workspace/cache
PWD=/workspace/src
SYSTEMD_EXEC_PID=290
LANG=C.UTF-8
CARGO_HOME=/workspace/deps
DEBEMAIL=liw@liw.fi
INVOCATION_ID=d31da1ffe2c14c829b236a205b2d2788
SHLVL=2
JOURNAL_STREAM=8:16138
PATH=/root/.cargo/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
OLDPWD=/
_=/bin/env
+ command -v cargo
/root/.cargo/bin/cargo
+ command -v rustc
/root/.cargo/bin/rustc
+ cargo --version
cargo 1.86.0 (adf9b6ad1 2025-02-28)
+ rustc --version
rustc 1.86.0 (05f9846f8 2025-03-31)
++ dpkg-parsechangelog -SSource
+ name=pathdedup
++ dpkg-parsechangelog -SVersion
+ version=0.2.0-1
++ echo 0.2.0-1
++ sed 's/-[^-]*$//'
+ uv=0.2.0
++ dpkg --print-architecture
+ arch=amd64
+ orig=../pathdedup_0.2.0.orig.tar.xz
+ deb=../pathdedup_0.2.0-1_amd64.deb
+ changes=../pathdedup_0.2.0-1_amd64.changes
+ git archive HEAD
+ xz
+ dpkg-buildpackage -us -uc
dpkg-buildpackage: info: source package pathdedup
dpkg-buildpackage: info: source version 0.2.0-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Lars Wirzenius <liw@liw.fi>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build .
 debian/rules clean
dh clean
   dh_clean
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building pathdedup using existing ./pathdedup_0.2.0.orig.tar.xz
dpkg-source: info: building pathdedup in pathdedup_0.2.0-1.debian.tar.xz
dpkg-source: info: building pathdedup in pathdedup_0.2.0-1.dsc
 debian/rules build
dh build
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build
make[1]: Entering directory '/workspace/src'
true
make[1]: Leaving directory '/workspace/src'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/workspace/src'
echo no test suite
no test suite
make[1]: Leaving directory '/workspace/src'
   create-stamp debian/debhelper-build-stamp
 debian/rules binary
dh binary
   dh_testroot
   dh_prep
   debian/rules override_dh_auto_install
make[1]: Entering directory '/workspace/src'
cargo install --offline --path=. --root=debian/pathdedup
  Installing pathdedup v0.2.0 (/workspace/src)
   Compiling pathdedup v0.2.0 (/workspace/src)
    Finished `release` profile [optimized] target(s) in 0.50s
  Installing debian/pathdedup/bin/pathdedup
   Installed package `pathdedup v0.2.0 (/workspace/src)` (executable `pathdedup`)
warning: be sure to add `debian/pathdedup/bin` to your PATH to be able to run the installed binaries
rm -f debian/*/.crates*
make[1]: Leaving directory '/workspace/src'
   dh_installdocs
   dh_installchangelogs
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   dh_fixperms
   dh_missing
   dh_strip
   dh_makeshlibs
   dh_shlibdeps
   dh_installdeb
   dh_gencontrol
dpkg-gencontrol: warning: Built-Using field of package pathdedup: substitution variable ${cargo:Built-Using} used, but is not defined
dpkg-gencontrol: warning: Built-Using field of package pathdedup: substitution variable ${cargo:Built-Using} used, but is not defined
   dh_md5sums
   dh_builddeb
dpkg-deb: building package 'pathdedup' in '../pathdedup_0.2.0-1_amd64.deb'.
dpkg-deb: building package 'pathdedup-dbgsym' in '../pathdedup-dbgsym_0.2.0-1_amd64.deb'.
 dpkg-genbuildinfo -O../pathdedup_0.2.0-1_amd64.buildinfo
 dpkg-genchanges -O../pathdedup_0.2.0-1_amd64.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build .
dpkg-buildpackage: info: full upload (original source is included)
+ ls -l ..
total 220
drwxr-xr-x 2 root root   4096 May 16 05:06 artifacts
drwxr-xr-x 4 root root   4096 Apr  9 04:08 cache
drwxr-xr-x 2 root root   4096 May 16 05:06 deps
-rw-r--r-- 1 root root  21972 May 16 05:06 pathdedup-dbgsym_0.2.0-1_amd64.deb
-rw-r--r-- 1 root root   1696 May 16 05:06 pathdedup_0.2.0-1.debian.tar.xz
-rw-r--r-- 1 root root    778 May 16 05:06 pathdedup_0.2.0-1.dsc
-rw-r--r-- 1 root root   5349 May 16 05:06 pathdedup_0.2.0-1_amd64.buildinfo
-rw-r--r-- 1 root root   2022 May 16 05:06 pathdedup_0.2.0-1_amd64.changes
-rw-r--r-- 1 root root 152440 May 16 05:06 pathdedup_0.2.0-1_amd64.deb
-rw-r--r-- 1 root root   6668 May 16 05:06 pathdedup_0.2.0.orig.tar.xz
drwxr-xr-x 7 root root   4096 May 16 05:06 src
+ for x in ../*.deb
+ dpkg -c ../pathdedup-dbgsym_0.2.0-1_amd64.deb
drwxr-xr-x root/root         0 2023-12-23 14:37 ./
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/lib/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/lib/debug/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/lib/debug/.build-id/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/lib/debug/.build-id/6f/
-rw-r--r-- root/root     83688 2023-12-23 14:37 ./usr/lib/debug/.build-id/6f/68d2ac74ea5e0abc39e274d901b0b807eebf53.debug
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/share/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/share/doc/
lrwxrwxrwx root/root         0 2023-12-23 14:37 ./usr/share/doc/pathdedup-dbgsym -> pathdedup
+ for x in ../*.deb
+ dpkg -c ../pathdedup_0.2.0-1_amd64.deb
drwxr-xr-x root/root         0 2023-12-23 14:37 ./
drwxr-xr-x root/root         0 2023-12-23 14:37 ./bin/
-rwxr-xr-x root/root    389856 2023-12-23 14:37 ./bin/pathdedup
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/share/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/share/doc/
drwxr-xr-x root/root         0 2023-12-23 14:37 ./usr/share/doc/pathdedup/
-rw-r--r-- root/root       217 2023-12-23 14:37 ./usr/share/doc/pathdedup/changelog.Debian.gz
-rw-r--r-- root/root      1393 2023-12-23 14:37 ./usr/share/doc/pathdedup/copyright
+ mv ../pathdedup-dbgsym_0.2.0-1_amd64.deb ../pathdedup_0.2.0-1.debian.tar.xz ../pathdedup_0.2.0-1.dsc ../pathdedup_0.2.0-1_amd64.buildinfo ../pathdedup_0.2.0-1_amd64.changes ../pathdedup_0.2.0-1_amd64.deb ../pathdedup_0.2.0.orig.tar.xz /workspace/artifacts
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-16T05:06:24Z INFO  ambient] ambient ends successfully