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": "8de7d81682529c0ca893ba443eba09319758eb1b",
  "after": "a5efe5829cd3630e73699638d64944cadd90463f",
  "branch": "main",
  "commits": [
    "a5efe5829cd3630e73699638d64944cadd90463f"
  ]
}

.radicle/native.yaml

shell: |
  set +x
  echo "{\"color\":\"yellow\",\"status\":\"In Progress\", \"subject\":\"Radicle-CI\", \"icon\":\"radicle\"}" > "${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
  sleep 100
  echo "{\"color\":\"geen\",\"status\":\"Success\", \"subject\":\"Radicle-CI\", \"icon\":\"radicle\"}" > "${ARTIFACT_DIR}/rad_test/status.json"

Run: git clone /home/mog/.radicle/storage/z2ixRGetGtwFtRyXjRgu5fH573wyy /mnt/drive_1/state/radicle/reports/http/2ef9cb68-8995-450a-910b-fe1b96c83bcf/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/2ef9cb68-8995-450a-910b-fe1b96c83bcf/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/2ef9cb68-8995-450a-910b-fe1b96c83bcf/src

Exit code: 0

Run: git checkout a5efe5829cd3630e73699638d64944cadd90463f

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/2ef9cb68-8995-450a-910b-fe1b96c83bcf/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at a5efe58 updating for badges

Run: git show a5efe5829cd3630e73699638d64944cadd90463f

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/2ef9cb68-8995-450a-910b-fe1b96c83bcf/src

Exit code: 0

Output (stdout and stderr):

commit a5efe5829cd3630e73699638d64944cadd90463f
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Wed Nov 20 06:55:20 2024 -0500

    updating for badges

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index 15ecf2f..0378f45 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -1,6 +1,6 @@
 shell: |
   set +x
-  echo "{\"color\":\"yellow\",\"status\":\"In Progress\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"
+  echo "{\"color\":\"yellow\",\"status\":\"In Progress\", \"subject\":\"Radicle-CI\", \"icon\":\"radicle\"}" > "${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())"
@@ -8,4 +8,4 @@ shell: |
   ln -sf  "${ARTIFACT_DIR}/rad_test/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/rad_test/latest"
   date
   sleep 100
-  echo "{\"color\":\"green\",\"status\":\"Success\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"
+  echo "{\"color\":\"geen\",\"status\":\"Success\", \"subject\":\"Radicle-CI\", \"icon\":\"radicle\"}" > "${ARTIFACT_DIR}/rad_test/status.json"
diff --git a/readme.md b/readme.md
index 09ecf05..153cb2a 100644
--- a/readme.md
+++ b/readme.md
@@ -1,5 +1,7 @@
 <p align="center">
 <a href="https://radci.rldn.net/z2ixRGetGtwFtRyXjRgu5fH573wyy.html"><img src="https://radbadge.rldn.net/https/radart.rldn.net/rad_test/status.json" alt="Build Status"/></a>
+
+
 hello world!!
 its not running
 and its systemd

Run: timeout 3600 bash -c set -xeuo pipefail set +x echo "{\"color\":\"yellow\",\"status\":\"In Progress\", \"subject\":\"Radicle-CI\", \"icon\":\"radicle\"}" > "${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 sleep 100 echo "{\"color\":\"geen\",\"status\":\"Success\", \"subject\":\"Radicle-CI\", \"icon\":\"radicle\"}" > "${ARTIFACT_DIR}/rad_test/status.json"

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/2ef9cb68-8995-450a-910b-fe1b96c83bcf/src

Exit code: 0

Output (stdout and stderr):

+ set +x
Wed Nov 20 06:55:38 AM EST 2024
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/2ef9cb68-8995-450a-910b-fe1b96c83bcf/src"}
e62f4be99f425927056e3c16cc1d5243  devbox.json
Wed Nov 20 06:55:40 AM EST 2024