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

.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 -s  "${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/ddbd9224-668c-4c70-812a-5d864b674f57/src

Command arguments:

In directory: /

Exit code: 0

Output (stdout and stderr):

Cloning into '/mnt/drive_1/state/radicle/reports/http/ddbd9224-668c-4c70-812a-5d864b674f57/src'...
done.

Run: git config advice.detachedHead false

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/ddbd9224-668c-4c70-812a-5d864b674f57/src

Exit code: 0

Run: git checkout e107ac775c0bab399c0f15271cdbdc3c99321627

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/ddbd9224-668c-4c70-812a-5d864b674f57/src

Exit code: 0

Output (stdout and stderr):

HEAD is now at e107ac7 dont want everything in log

Run: git show e107ac775c0bab399c0f15271cdbdc3c99321627

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/ddbd9224-668c-4c70-812a-5d864b674f57/src

Exit code: 0

Output (stdout and stderr):

commit e107ac775c0bab399c0f15271cdbdc3c99321627
Author: Matthew O'Gorman <mog@rldn.net>
Date:   Wed Nov 20 05:58:12 2024 -0500

    dont want everything in log

diff --git a/.radicle/native.yaml b/.radicle/native.yaml
index 7f916c4..6c6ffec 100644
--- a/.radicle/native.yaml
+++ b/.radicle/native.yaml
@@ -1,4 +1,5 @@
 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())"

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 -s "${ARTIFACT_DIR}/$(git rev-parse HEAD)" "${ARTIFACT_DIR}/latest" date

Command arguments:

In directory: /mnt/drive_1/state/radicle/reports/http/ddbd9224-668c-4c70-812a-5d864b674f57/src

Exit code: 1

Output (stdout and stderr):

+ set +x
Wed Nov 20 05:58:16 AM EST 2024
Info: Ensuring packages are installed.
Hello world! {:ok, "/mnt/drive_1/state/radicle/reports/http/ddbd9224-668c-4c70-812a-5d864b674f57/src"}
e62f4be99f425927056e3c16cc1d5243  devbox.json
ln: failed to create symbolic link '/mnt/drive_1/state/radicle/artifacts/latest': File exists