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": "2ada6137f94360075f22fd65e50c6d77c0737d1f",
  "after": "2443fe72432c94b7d3a33b393d4b61ed84ababfa",
  "branch": "main",
  "commits": [
    "2443fe72432c94b7d3a33b393d4b61ed84ababfa"
  ]
}

.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/1df2b60b-ee36-4757-bb28-75da98ffc457/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/1df2b60b-ee36-4757-bb28-75da98ffc457/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/1df2b60b-ee36-4757-bb28-75da98ffc457/src

Exit code: 0

Run: git checkout 2443fe72432c94b7d3a33b393d4b61ed84ababfa

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/1df2b60b-ee36-4757-bb28-75da98ffc457/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at 2443fe7 fix script

Run: git show 2443fe72432c94b7d3a33b393d4b61ed84ababfa

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/1df2b60b-ee36-4757-bb28-75da98ffc457/src

Exit code: 0

Output (stdout and stderr):

commit 2443fe72432c94b7d3a33b393d4b61ed84ababfa
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Wed Nov 20 09:50:27 2024 -0500

    fix script

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index 5be79d2..37a89a0 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -1,10 +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 "{\"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/1df2b60b-ee36-4757-bb28-75da98ffc457/src

Exit code: 0

Output (stdout and stderr):

+ set +x
Wed Nov 20 09:50:32 AM EST 2024
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/1df2b60b-ee36-4757-bb28-75da98ffc457/src"}
e62f4be99f425927056e3c16cc1d5243  devbox.json
Wed Nov 20 09:50:35 AM EST 2024