Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

ci(ci-lite): replace inline submodule tag fetch with script

Steven Enamakel369e4bad3a6f
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.yml
index eaaf5c2a5c..a8485450a1 100644
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@ -1043,17 +1043,7 @@ jobs:
# each source contract to its registry artifact version, so make that
# metadata available explicitly without widening the main checkout.
- name: Fetch submodule tags for module pin verification
- run: |
- for module in \
- vendor/tinydocs vendor/tinywallet vendor/tinymemory vendor/tinyjuice \
- vendor/tinyvoice vendor/tinyruntime vendor/tinymcp vendor/tinyconnectors
- do
- if [ "$(git -C "$module" rev-parse --is-shallow-repository)" = true ]; then
- git -C "$module" fetch --unshallow --tags origin
- else
- git -C "$module" fetch --tags origin
- fi
- done
+ run: bash scripts/ci/fetch-submodule-tags.sh
# Nine subsystems load as downloaded cdylib modules and each is pinned
# twice: once as a submodule (the contract compiled here) and once as a
diff --git a/scripts/ci/fetch-submodule-tags.sh b/scripts/ci/fetch-submodule-tags.sh
new file mode 100755
index 0000000000..8f7d886157
--- /dev/null
+++ b/scripts/ci/fetch-submodule-tags.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+# Fetch tag refs (and full history when shallow) for every module submodule.
+#
+# actions/checkout populates the pinned submodule commits but not their tags.
+# scripts/ci/check-module-pins.mjs uses `git describe --tags` to compare each
+# source contract with its registry artifact version, so the tags must exist.
+# Called by ci-lite.yml's module-pin gate and by the lane runner.
+set -euo pipefail
+
+cd "$(dirname "$0")/../.."
+
+for module in \
+ vendor/tinydocs vendor/tinywallet vendor/tinymemory vendor/tinyjuice \
+ vendor/tinyvoice vendor/tinyruntime vendor/tinymcp vendor/tinyconnectors
+do
+ if [ "$(git -C "$module" rev-parse --is-shallow-repository)" = true ]; then
+ git -C "$module" fetch --quiet --unshallow --tags origin
+ else
+ git -C "$module" fetch --quiet --tags origin
+ fi
+done
+echo "[ci][submodule-tags] fetched tags for module submodules"