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": "e107ac775c0bab399c0f15271cdbdc3c99321627",
  "after": "822410d4f0f6f4c428c44b9f1c4412547ac0a206",
  "branch": "main",
  "commits": [
    "822410d4f0f6f4c428c44b9f1c4412547ac0a206"
  ]
}

.radicle/native.yaml

shell: |
  set +x
  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}/$(git rev-parse HEAD)"
  ln -sf  "${ARTIFACT_DIR}/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/latest"
  date

Run: git clone /home/mog/.radicle/storage/z2ixRGetGtwFtRyXjRgu5fH573wyy /mnt/drive_1/state/radicle/reports/http/409a4e1d-a1fe-447b-9c52-ae3d879a07fc/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/409a4e1d-a1fe-447b-9c52-ae3d879a07fc/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/409a4e1d-a1fe-447b-9c52-ae3d879a07fc/src

Exit code: 0

Run: git checkout 822410d4f0f6f4c428c44b9f1c4412547ac0a206

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/409a4e1d-a1fe-447b-9c52-ae3d879a07fc/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at 822410d overwrite old symlink

Run: git show 822410d4f0f6f4c428c44b9f1c4412547ac0a206

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/409a4e1d-a1fe-447b-9c52-ae3d879a07fc/src

Exit code: 0

Output (stdout and stderr):

commit 822410d4f0f6f4c428c44b9f1c4412547ac0a206
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Wed Nov 20 05:59:24 2024 -0500

    overwrite old symlink

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index 6c6ffec..775e002 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -4,5 +4,5 @@ shell: |
   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}/$(git rev-parse HEAD)"
-  ln -s  "${ARTIFACT_DIR}/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/latest"
+  ln -sf  "${ARTIFACT_DIR}/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/latest"
   date

Run: timeout 3600 bash -c set -xeuo pipefail set +x 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}/$(git rev-parse HEAD)" ln -sf "${ARTIFACT_DIR}/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/latest" date

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/409a4e1d-a1fe-447b-9c52-ae3d879a07fc/src

Exit code: 0

Output (stdout and stderr):

+ set +x
Wed Nov 20 05:59:33 AM EST 2024
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/409a4e1d-a1fe-447b-9c52-ae3d879a07fc/src"}
e62f4be99f425927056e3c16cc1d5243  devbox.json
Wed Nov 20 05:59:37 AM EST 2024