Skip to content

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

fix(ci): stage container modules under root home

Steven Enamakel54b308cc1c38
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.yml
index ee867bfcd4..815b47fc3e 100644
--- a/.github/workflows/ci-full.yml
+++ b/.github/workflows/ci-full.yml
@@ -131,7 +131,7 @@ jobs:
run: |
# Keep fixtures in a trusted tree and resolve their verified releases
# from the same registry the product uses.
- module_root="/tmp/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ module_root="/root/.cache/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
bash scripts/ci/self-hosted/install-test-modules.sh \
"$module_root" "$module_root/modules.env"
cat "$module_root/modules.env" >> "$GITHUB_ENV"
@@ -307,7 +307,7 @@ jobs:
run: |
# Keep fixtures in a trusted tree and resolve their verified releases
# from the same registry the product uses.
- module_root="/tmp/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ module_root="/root/.cache/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
bash scripts/ci/self-hosted/install-test-modules.sh \
"$module_root" "$module_root/modules.env"
cat "$module_root/modules.env" >> "$GITHUB_ENV"
diff --git a/.github/workflows/e2e-playwright.yml b/.github/workflows/e2e-playwright.yml
index 063726c561..ed4e95a9a4 100644
--- a/.github/workflows/e2e-playwright.yml
+++ b/.github/workflows/e2e-playwright.yml
@@ -67,7 +67,7 @@ jobs:
run: |
# Keep fixtures in a trusted tree and resolve their verified releases
# from the same registry the product uses.
- module_root="/tmp/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ module_root="/root/.cache/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
bash scripts/ci/self-hosted/install-test-modules.sh \
"$module_root" "$module_root/modules.env"
cat "$module_root/modules.env" >> "$GITHUB_ENV"
diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.yml
index 3c6da61673..1c9aa10ec7 100644
--- a/.github/workflows/e2e-reusable.yml
+++ b/.github/workflows/e2e-reusable.yml
@@ -352,7 +352,7 @@ jobs:
run: |
# Stage all native capabilities under a trusted tree, including
# release manifests for confidential wallet and channel calls.
- module_root="/tmp/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ module_root="/root/.cache/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
bash scripts/ci/self-hosted/install-test-modules.sh \
"$module_root" "$module_root/modules.env"
cat "$module_root/modules.env" >> "$GITHUB_ENV"
@@ -448,7 +448,7 @@ jobs:
run: |
# Keep fixtures in a trusted tree and resolve their verified releases
# from the same registry the product uses.
- module_root="/tmp/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ module_root="/root/.cache/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
bash scripts/ci/self-hosted/install-test-modules.sh \
"$module_root" "$module_root/modules.env"
cat "$module_root/modules.env" >> "$GITHUB_ENV"
diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.yml
index a268f5af93..97ab36a294 100644
--- a/.github/workflows/test-reusable.yml
+++ b/.github/workflows/test-reusable.yml
@@ -174,7 +174,7 @@ jobs:
- name: Install checksum-pinned native test modules
run: |
# Module-loaded unit regressions execute in isolated test processes.
- module_root="/tmp/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
+ module_root="/root/.cache/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
bash scripts/ci/self-hosted/install-test-modules.sh \
"$module_root" "$module_root/modules.env"
cat "$module_root/modules.env" >> "$GITHUB_ENV"
diff --git a/scripts/__tests__/test-module-installation.test.mjs b/scripts/__tests__/test-module-installation.test.mjs
index 05843a0df1..6d38e50920 100644
--- a/scripts/__tests__/test-module-installation.test.mjs
+++ b/scripts/__tests__/test-module-installation.test.mjs
@@ -42,7 +42,7 @@ const rustE2eRunner = fileURLToPath(
new URL("../test-rust-e2e.sh", import.meta.url),
);
-test("Linux container workflows stage TinyBus fixtures below sticky /tmp", () => {
+test("Linux container workflows stage TinyBus fixtures under the root-owned container home", () => {
for (const workflow of [
"../../.github/workflows/test-reusable.yml",
"../../.github/workflows/ci-full.yml",
@@ -52,7 +52,7 @@ test("Linux container workflows stage TinyBus fixtures below sticky /tmp", () =>
const source = readFileSync(new URL(workflow, import.meta.url), "utf8");
assert.match(
source,
- /\/tmp\/openhuman-test-modules-\$\{GITHUB_RUN_ID\}-\$\{GITHUB_RUN_ATTEMPT\}/,
+ /\/root\/\.cache\/openhuman-test-modules-\$\{GITHUB_RUN_ID\}-\$\{GITHUB_RUN_ATTEMPT\}/,
workflow,
);
assert.doesNotMatch(source, /\/opt\/openhuman-test-modules/, workflow);