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": "fe42d68d3f3e5c7dc80aba5e5f877cf1fe162da9",
  "after": "75b548c24c8856864f7d28300b4478998b781da5",
  "branch": "main",
  "commits": [
    "75b548c24c8856864f7d28300b4478998b781da5"
  ]
}

.radicle/native.yaml

shell: |
  set +x
  echo "{\"color\":\"yellow\",\"status\":\"In Progress\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"
  date
  devbox run  elixir -e "IO.puts(\"Hello world! #{inspect(File.cwd())}\")"
  devbox run  elixir -e "System.cmd(\"md5sum\",[\"devbox.json\"], into: IO.stream())"
  echo "hello world" > "${ARTIFACT_DIR}/rad_test/$(git rev-parse HEAD)"
  ln -sf  "${ARTIFACT_DIR}/rad_test/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/rad_test/latest"
  date
  echo "{\"color\":\"green\",\"status\":\"Success\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"

Run: git clone /home/mog/.radicle/storage/z2ixRGetGtwFtRyXjRgu5fH573wyy /mnt/drive_1/state/radicle/reports/http/c9081917-45bf-44d4-a3c9-3d75b3529e59/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/c9081917-45bf-44d4-a3c9-3d75b3529e59/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/c9081917-45bf-44d4-a3c9-3d75b3529e59/src

Exit code: 0

Run: git checkout 75b548c24c8856864f7d28300b4478998b781da5

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/c9081917-45bf-44d4-a3c9-3d75b3529e59/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at 75b548c remove sleep

Run: git show 75b548c24c8856864f7d28300b4478998b781da5

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/c9081917-45bf-44d4-a3c9-3d75b3529e59/src

Exit code: 0

Output (stdout and stderr):

commit 75b548c24c8856864f7d28300b4478998b781da5
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Wed Nov 20 07:32:04 2024 -0500

    remove sleep

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index 38c476d..7f2c784 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -7,5 +7,4 @@ shell: |
   echo "hello world" > "${ARTIFACT_DIR}/rad_test/$(git rev-parse HEAD)"
   ln -sf  "${ARTIFACT_DIR}/rad_test/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/rad_test/latest"
   date
-  sleep 10
   echo "{\"color\":\"green\",\"status\":\"Success\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"

Run: timeout 3600 bash -c set -xeuo pipefail set +x echo "{\"color\":\"yellow\",\"status\":\"In Progress\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json" date devbox run elixir -e "IO.puts(\"Hello world! #{inspect(File.cwd())}\")" devbox run elixir -e "System.cmd(\"md5sum\",[\"devbox.json\"], into: IO.stream())" echo "hello world" > "${ARTIFACT_DIR}/rad_test/$(git rev-parse HEAD)" ln -sf "${ARTIFACT_DIR}/rad_test/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/rad_test/latest" date echo "{\"color\":\"green\",\"status\":\"Success\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/c9081917-45bf-44d4-a3c9-3d75b3529e59/src

Exit code: 0

Output (stdout and stderr):

+ set +x
Wed Nov 20 07:32:10 AM EST 2024
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/c9081917-45bf-44d4-a3c9-3d75b3529e59/src"}
e62f4be99f425927056e3c16cc1d5243  devbox.json
Wed Nov 20 07:32:13 AM EST 2024