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": "511f68ac4d6e45919e9f46344dd8e546da649221",
  "after": "0f471eed3a4709dc58d03e8c8ea2fa116b3d1640",
  "branch": "main",
  "commits": [
    "0f471eed3a4709dc58d03e8c8ea2fa116b3d1640"
  ]
}

.radicle/native.yaml

shell: |
  set +x
  echo "{\"schemaVersion\" : 1,\"color\" : \"yellow\",\"message\" : \"In progress\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${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 "{\"schemaVersion\" : 1,\"color\" : \"green\",\"message\" : \"Success\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${ARTIFACT_DIR}/rad_test/status.json"

Run: git clone /home/mog/.radicle/storage/z2ixRGetGtwFtRyXjRgu5fH573wyy /mnt/drive_1/state/radicle/reports/http/6112eb9a-33b2-4155-b9d4-d0df106c10fe/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/6112eb9a-33b2-4155-b9d4-d0df106c10fe/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/6112eb9a-33b2-4155-b9d4-d0df106c10fe/src

Exit code: 0

Run: git checkout 0f471eed3a4709dc58d03e8c8ea2fa116b3d1640

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/6112eb9a-33b2-4155-b9d4-d0df106c10fe/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at 0f471ee use new badge system

Run: git show 0f471eed3a4709dc58d03e8c8ea2fa116b3d1640

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/6112eb9a-33b2-4155-b9d4-d0df106c10fe/src

Exit code: 0

Output (stdout and stderr):

commit 0f471eed3a4709dc58d03e8c8ea2fa116b3d1640
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Wed Nov 20 09:36:20 2024 -0500

    use new badge system

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index 8561e24..5be79d2 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -1,12 +1,10 @@
 shell: |
   set +x
-  echo {\"schemaVersion\" : 1,\"color\" : \"yellow\",\"message\" : \"In progress\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${ARTIFACT_DIR}/rad_test/status.json"
-
+  echo "{\"schemaVersion\" : 1,\"color\" : \"yellow\",\"message\" : \"In progress\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${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"
-  echo {\"schemaVersion\" : 1,\"color\" : \"green\",\"message\" : \"Success\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${ARTIFACT_DIR}/rad_test/status.json"
+  echo "{\"schemaVersion\" : 1,\"color\" : \"green\",\"message\" : \"Success\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${ARTIFACT_DIR}/rad_test/status.json"

Run: timeout 3600 bash -c set -xeuo pipefail set +x echo "{\"schemaVersion\" : 1,\"color\" : \"yellow\",\"message\" : \"In progress\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${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 "{\"schemaVersion\" : 1,\"color\" : \"green\",\"message\" : \"Success\", \"label\" : \"Radicle-CI\", \"logoSvg\" : \"$(cat $RADICLE_SVG)\" }" > "${ARTIFACT_DIR}/rad_test/status.json"

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/6112eb9a-33b2-4155-b9d4-d0df106c10fe/src

Exit code: 0

Output (stdout and stderr):

+ set +x
bash: line 3: RADICLE_SVG: unbound variable
Wed Nov 20 09:36:25 AM EST 2024
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/6112eb9a-33b2-4155-b9d4-d0df106c10fe/src"}
e62f4be99f425927056e3c16cc1d5243  devbox.json
Wed Nov 20 09:36:29 AM EST 2024
bash: line 10: RADICLE_SVG: unbound variable