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

.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
  sleep 100
  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/86ac4652-b408-43b1-8dfc-76709cc479da/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/86ac4652-b408-43b1-8dfc-76709cc479da/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/86ac4652-b408-43b1-8dfc-76709cc479da/src

Exit code: 0

Run: git checkout 8de7d81682529c0ca893ba443eba09319758eb1b

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/86ac4652-b408-43b1-8dfc-76709cc479da/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at 8de7d81 updating for badges

Run: git show 8de7d81682529c0ca893ba443eba09319758eb1b

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/86ac4652-b408-43b1-8dfc-76709cc479da/src

Exit code: 0

Output (stdout and stderr):

commit 8de7d81682529c0ca893ba443eba09319758eb1b
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Wed Nov 20 06:53:51 2024 -0500

    updating for badges

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index d826521..15ecf2f 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -1,8 +1,11 @@
 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
+  sleep 100
+  echo "{\"color\":\"green\",\"status\":\"Success\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"
diff --git a/readme.md b/readme.md
index 8ea6d23..09ecf05 100644
--- a/readme.md
+++ b/readme.md
@@ -1,3 +1,5 @@
+<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\"}" > "${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\":\"green\",\"status\":\"Success\", \"subject\":\"Radicle-CI\"}" > "${ARTIFACT_DIR}/rad_test/status.json"

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/86ac4652-b408-43b1-8dfc-76709cc479da/src

Exit code: 0

Output (stdout and stderr):

+ set +x
Wed Nov 20 06:53:54 AM EST 2024
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/86ac4652-b408-43b1-8dfc-76709cc479da/src"}
e62f4be99f425927056e3c16cc1d5243  devbox.json
Wed Nov 20 06:53:57 AM EST 2024