Log from Radicle native CI

Table of contents

Request message

{
  "request": "trigger",
  "version": 1,
  "event_type": "push",
  "repository": {
    "id": "rad:z2ixRGetGtwFtRyXjRgu5fH573wyy",
    "name": "rad_test",
    "description": "hello world",
    "private": false,
    "default_branch": "main",
    "delegates": [
      "did:key:z6MkfWmqiRRFTTo4PHqwQHjdmukFuxRPMbh2VespxWpSUvNm"
    ]
  },
  "pusher": {
    "id": "did:key:z6MkfWmqiRRFTTo4PHqwQHjdmukFuxRPMbh2VespxWpSUvNm",
    "alias": "mog"
  },
  "before": "4ec82b0188f592a797b87fb41ab7403614434c6a",
  "after": "d7357ba7102aee8e7e33ae46da4715de68b91bb2",
  "branch": "main",
  "commits": [
    "d7357ba7102aee8e7e33ae46da4715de68b91bb2"
  ]
}

.radicle/native.yaml

shell: |
  date
  devbox run  elixir -e "IO.puts(\"Hello world! #{inspect(File.cwd())}\")"
  devbox run  elixir -e "System.cmd(\"md5sum\",[\"devbox.json\"], into: IO.stream())"
  md5sum devbox.json
  date

Run: git clone /home/mog/.radicle/storage/z2ixRGetGtwFtRyXjRgu5fH573wyy /mnt/drive_1/state/radicle/reports/http/da230473-9f01-440a-a9fc-0977faadacbc/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/da230473-9f01-440a-a9fc-0977faadacbc/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/da230473-9f01-440a-a9fc-0977faadacbc/src

Exit code: 0

Run: git checkout d7357ba7102aee8e7e33ae46da4715de68b91bb2

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/da230473-9f01-440a-a9fc-0977faadacbc/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at d7357ba should fail

Run: git show d7357ba7102aee8e7e33ae46da4715de68b91bb2

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/da230473-9f01-440a-a9fc-0977faadacbc/src

Exit code: 0

Output (stdout and stderr):

commit d7357ba7102aee8e7e33ae46da4715de68b91bb2
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Mon Nov 18 04:55:19 2024 -0500

    should fail

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index 7ad0943..66e362f 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -1,4 +1,6 @@
 shell: |
   date
   devbox run  elixir -e "IO.puts(\"Hello world! #{inspect(File.cwd())}\")"
+  devbox run  elixir -e "System.cmd(\"md5sum\",[\"devbox.json\"], into: IO.stream())"
+  md5sum devbox.json
   date
diff --git a/devbox.json b/devbox.json
index e15913d..3935275 100644
--- a/devbox.json
+++ b/devbox.json
@@ -1,6 +1,9 @@
 {
-  "$schema":  "https://raw.githubusercontent.com/jetify-com/devbox/0.13.4/.schema/devbox.schema.json",
-  "packages": ["elixir@latest"],
+  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.13.4/.schema/devbox.schema.json",
+  "packages": [
+    "elixir@latest",
+    "coreutils@latest"
+  ],
   "shell": {
     "init_hook": [
       "echo 'Welcome to devbox!' > /dev/null"
diff --git a/devbox.lock b/devbox.lock
index 9ea6882..c4fdee3 100644
--- a/devbox.lock
+++ b/devbox.lock
@@ -1,6 +1,78 @@
 {
   "lockfile_version": "1",
   "packages": {
+    "coreutils@latest": {
+      "last_modified": "2024-11-06T21:27:13Z",
+      "resolved": "github:NixOS/nixpkgs/fe348e1a06a2d791e992d46844a83d2d44436c5a#coreutils",
+      "source": "devbox-search",
+      "version": "9.5",
+      "systems": {
+        "aarch64-darwin": {
+          "outputs": [
+            {
+              "name": "out",
+              "path": "/nix/store/4axvrmlyszz77x66am0damj6pz4jh683-coreutils-9.5",
+              "default": true
+            },
+            {
+              "name": "info",
+              "path": "/nix/store/6i7kacs04ah3zj0j3d2rdk2ls6spgal9-coreutils-9.5-info"
+            }
+          ],
+          "store_path": "/nix/store/4axvrmlyszz77x66am0damj6pz4jh683-coreutils-9.5"
+        },
+        "aarch64-linux": {
+          "outputs": [
+            {
+              "name": "out",
+              "path": "/nix/store/y0b3ma3hs7pbnym8zg5jslr72aj47981-coreutils-9.5",
+              "default": true
+            },
+            {
+              "name": "debug",
+              "path": "/nix/store/n0zr939h83k5z73bipzr0sl09v5s32fj-coreutils-9.5-debug"
+            },
+            {
+              "name": "info",
+              "path": "/nix/store/bbh3zfpy24wfqp746n4akb5r7whmdiy7-coreutils-9.5-info"
+            }
+          ],
+          "store_path": "/nix/store/y0b3ma3hs7pbnym8zg5jslr72aj47981-coreutils-9.5"
+        },
+        "x86_64-darwin": {
+          "outputs": [
+            {
+              "name": "out",
+              "path": "/nix/store/0smc7dkkl344m8wwfmhb1icgfbfx2j4x-coreutils-9.5",
+              "default": true
+            },
+            {
+              "name": "info",
+              "path": "/nix/store/4664xafd1np67g6nbryapcrsiz5m7gjb-coreutils-9.5-info"
+            }
+          ],
+          "store_path": "/nix/store/0smc7dkkl344m8wwfmhb1icgfbfx2j4x-coreutils-9.5"
+        },
+        "x86_64-linux": {
+          "outputs": [
+            {
+              "name": "out",
+              "path": "/nix/store/sf6y4arqcm100rnnl3dhpg732i774zp6-coreutils-9.5",
+              "default": true
+            },
+            {
+              "name": "debug",
+              "path": "/nix/store/lmpz5jb56jvclyyfrw39dzacw317m9j4-coreutils-9.5-debug"
+            },
+            {
+              "name": "info",
+              "path": "/nix/store/zd3pw58g9bdf3gdzkrz1dfk63wcc7p0f-coreutils-9.5-info"
+            }
+          ],
+          "store_path": "/nix/store/sf6y4arqcm100rnnl3dhpg732i774zp6-coreutils-9.5"
+        }
+      }
+    },
     "elixir@latest": {
       "last_modified": "2024-11-03T14:18:04Z",
       "resolved": "github:NixOS/nixpkgs/4ae2e647537bcdbb82265469442713d066675275#elixir",

Run: timeout 3600 bash -c set -xeuo pipefail date devbox run elixir -e "IO.puts(\"Hello world! #{inspect(File.cwd())}\")" devbox run elixir -e "System.cmd(\"md5sum\",[\"devbox.json\"], into: IO.stream())" md5sum devbox.json date

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/da230473-9f01-440a-a9fc-0977faadacbc/src

Exit code: 0

Output (stdout and stderr):

+ date
Mon Nov 18 04:55:24 AM EST 2024
+ devbox run elixir -e 'IO.puts("Hello world! #{inspect(File.cwd())}")'
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/da230473-9f01-440a-a9fc-0977faadacbc/src"}
+ devbox run elixir -e 'System.cmd("md5sum",["devbox.json"], into: IO.stream())'
e62f4be99f425927056e3c16cc1d5243  devbox.json
+ md5sum devbox.json
e62f4be99f425927056e3c16cc1d5243  devbox.json
+ date
Mon Nov 18 04:55:41 AM EST 2024