Skip to content

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

ci(storage-mongodb): fetch replica-set script instead of vendoring it

Steven Enamakel6483b310a284
diff --git a/.github/workflows/storage-mongodb.yml b/.github/workflows/storage-mongodb.yml
index dbd44e225b..dac387de31 100644
--- a/.github/workflows/storage-mongodb.yml
+++ b/.github/workflows/storage-mongodb.yml
@@ -108,19 +108,17 @@ jobs:
- name: Check out submodules
run: bash scripts/ci/checkout-submodules.sh
- - name: Verify the replica-set script was checked out
- run: |
- script=vendor/tinyagents/vendor/tinystoragedrivers/.github/scripts/start-mongo-replset.sh
- if [ ! -f "$script" ]; then
- echo "::error::$script is missing: scripts/ci/checkout-submodules.sh did not populate vendor/tinyagents/vendor/tinystoragedrivers"
- exit 1
- fi
-
- name: Start a MongoDB replica set
- # tinystoragedrivers' own script: GitHub service containers cannot pass
- # `--replSet` to mongod, and a replica set is what lets the driver
- # report and exercise transactions.
- run: bash vendor/tinyagents/vendor/tinystoragedrivers/.github/scripts/start-mongo-replset.sh 27017
+ # tinystoragedrivers' own script, fetched at the commit the v0.11.0 tag
+ # points to (the same tag every Cargo manifest names): GitHub service
+ # containers cannot pass `--replSet` to mongod, and a replica set is
+ # what lets the driver report and exercise transactions.
+ run: |
+ set -euo pipefail
+ curl -fsSL --retry 3 -o start-mongo-replset.sh \
+ https://raw.githubusercontent.com/tinyhumansai/tinystoragedrivers/9eeef54aea403ac07461a612189bdf4982782823/.github/scripts/start-mongo-replset.sh
+ bash start-mongo-replset.sh 27017
+ rm -f start-mongo-replset.sh
- name: Restore Rust build cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
diff --git a/scripts/ci/checkout-submodules.sh b/scripts/ci/checkout-submodules.sh
index f94e8187ea..c54fbeeffd 100755
--- a/scripts/ci/checkout-submodules.sh
+++ b/scripts/ci/checkout-submodules.sh
@@ -19,9 +19,6 @@ NESTED=(
# tinyagents-live (the live voice agent runner) builds the vendored
# tinyliveagents library by path.
"vendor/tinyagents vendor/tinyliveagents"
- # The session store and the core `storage` domain link the storage drivers
- # tinyagents vendors; the root [patch] points tinyflows' git dependency here.
- "vendor/tinyagents vendor/tinystoragedrivers"
# The native TinyConnectors test module is built from its own manifest, so
# the root workspace's tinybus patch does not apply to this dependency.
"vendor/tinyconnectors vendor/tinybus"
diff --git a/scripts/e2e-core.sh b/scripts/e2e-core.sh
index 518b7f574f..ca64092708 100755
--- a/scripts/e2e-core.sh
+++ b/scripts/e2e-core.sh
@@ -9,8 +9,9 @@
# scripts/e2e-core.sh sqlite # sqlite:<scratch dir>
# scripts/e2e-core.sh mongodb # needs TSD_MONGO_URL (a local replica set)
#
-# MongoDB: start one with
-# vendor/tinyagents/vendor/tinystoragedrivers/.github/scripts/start-mongo-replset.sh 27017
+# MongoDB: start one with tinystoragedrivers' .github/scripts/start-mongo-replset.sh
+# (https://github.com/tinyhumansai/tinystoragedrivers, tag v0.11.0) as
+# bash start-mongo-replset.sh 27017
# and export TSD_MONGO_URL=mongodb://127.0.0.1:27017/tsd_test?directConnection=true
# (the storage-mongodb workflow does exactly this). The URL must be loopback:
# the run creates a database of its own and writes to it.