Skip to content

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

fix(ci): build compatible memory test modules\n\n

Steven Enamakel7217dc0c0c5d
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.yml
index bf00872571..d95372e591 100644
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@ -737,7 +737,7 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- - name: Install checksum-pinned native test modules
+ - name: Build compatible native test modules
run: |
# tinybus validates every directory ancestor. GitHub mounts the
# checkout as the host runner uid while this container runs as root,
@@ -746,23 +746,20 @@ jobs:
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
juice_dir="$module_root/tinyjuice"
- memory_archive="$memory_dir/tinymemory-module-1.0.1-ubuntu-22.04-x86_64.tar.gz"
juice_archive="$juice_dir/tinyjuice-module-0.2.2-ubuntu-22.04-x86_64.tar.gz"
rm -rf "$memory_dir" "$juice_dir"
mkdir -p "$memory_dir" "$juice_dir"
- curl --fail --location --silent --show-error \
- "https://github.com/tinyhumansai/tinymemory/releases/download/v1.0.1/$(basename "$memory_archive")" \
- --output "$memory_archive"
curl --fail --location --silent --show-error \
"https://github.com/tinyhumansai/tinyjuice/releases/download/v0.2.2/$(basename "$juice_archive")" \
--output "$juice_archive"
- echo "35d13463041f455bebd833a71ba370d891a4e59d1b8e576e81635e2777a0c3dd $memory_archive" \
- | sha256sum --check
echo "fd8caf7fccb53328870fd26922aa9768d253cd4b3bf758967847d6512df03863 $juice_archive" \
| sha256sum --check
# Do not restore the release builder's uid into the trusted tree.
- tar --no-same-owner -xzf "$memory_archive" -C "$memory_dir"
tar --no-same-owner -xzf "$juice_archive" -C "$juice_dir"
+ cargo build --release \
+ --manifest-path vendor/tinymemory/crates/tinymemory-module/Cargo.toml
+ cp vendor/tinymemory/crates/tinymemory-module/target/release/libtinymemory_module.so \
+ "$memory_dir/libtinymemory_module.so"
echo "TINYMEMORY_TEST_MODULE=$memory_dir/libtinymemory_module.so" \
>> "$GITHUB_ENV"
echo "TINYJUICE_TEST_MODULE=$juice_dir/libtinyjuice_module.so" \
diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.yml
index c05cc8634f..e96f0f924a 100644
--- a/.github/workflows/e2e-reusable.yml
+++ b/.github/workflows/e2e-reusable.yml
@@ -157,22 +157,18 @@ jobs:
# Appium builds; install idempotently and ignore "already installed".
bash scripts/ci-cancel-aware.sh appium driver install --source=npm appium-chromium-driver >/dev/null 2>&1 || true
- - name: Install checksum-pinned TinyMemory test module
+ - name: Build compatible TinyMemory test module
run: |
- # Keep memory E2E independent of the GitHub release-metadata API.
# tinybus validates every directory ancestor, so the fixture must
# live outside the runner-owned checkout in this root-run container.
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
- memory_archive="$memory_dir/tinymemory-module-1.0.1-ubuntu-22.04-x86_64.tar.gz"
rm -rf "$memory_dir"
mkdir -p "$memory_dir"
- curl --fail --location --silent --show-error \
- "https://github.com/tinyhumansai/tinymemory/releases/download/v1.0.1/$(basename "$memory_archive")" \
- --output "$memory_archive"
- echo "35d13463041f455bebd833a71ba370d891a4e59d1b8e576e81635e2777a0c3dd $memory_archive" \
- | sha256sum --check
- tar --no-same-owner -xzf "$memory_archive" -C "$memory_dir"
+ cargo build --release \
+ --manifest-path vendor/tinymemory/crates/tinymemory-module/Cargo.toml
+ cp vendor/tinymemory/crates/tinymemory-module/target/release/libtinymemory_module.so \
+ "$memory_dir/libtinymemory_module.so"
echo "TINYMEMORY_TEST_MODULE=$memory_dir/libtinymemory_module.so" \
>> "$GITHUB_ENV"
@@ -354,23 +350,19 @@ jobs:
chmod +x app/src-tauri/target/debug/OpenHuman
ls -la app/src-tauri/target/debug/OpenHuman app/dist | head
- - name: Install checksum-pinned TinyMemory test module
+ - name: Build compatible TinyMemory test module
if: matrix.shard.name == 'providers'
run: |
- # memory-roundtrip runs in this shard. Supply the native module
- # directly so the packaged app never depends on GitHub's release
- # metadata API while the test is running.
+ # memory-roundtrip runs in this shard. Build the fixture from the
+ # checked-out contract revision so its bus members match the host.
module_root="/opt/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
memory_dir="$module_root/tinymemory"
- memory_archive="$memory_dir/tinymemory-module-1.0.1-ubuntu-22.04-x86_64.tar.gz"
rm -rf "$memory_dir"
mkdir -p "$memory_dir"
- curl --fail --location --silent --show-error \
- "https://github.com/tinyhumansai/tinymemory/releases/download/v1.0.1/$(basename "$memory_archive")" \
- --output "$memory_archive"
- echo "35d13463041f455bebd833a71ba370d891a4e59d1b8e576e81635e2777a0c3dd $memory_archive" \
- | sha256sum --check
- tar --no-same-owner -xzf "$memory_archive" -C "$memory_dir"
+ cargo build --release \
+ --manifest-path vendor/tinymemory/crates/tinymemory-module/Cargo.toml
+ cp vendor/tinymemory/crates/tinymemory-module/target/release/libtinymemory_module.so \
+ "$memory_dir/libtinymemory_module.so"
echo "TINYMEMORY_TEST_MODULE=$memory_dir/libtinymemory_module.so" \
>> "$GITHUB_ENV"