Skip to content

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

fix(ci): isolate module roots per run

Steven Enamakel4fbf1a6783a3
diff --git a/.github/workflows/ci-full.yml b/.github/workflows/ci-full.yml
index 079d82917a..ee867bfcd4 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="/tmp/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="/tmp/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 6eed54fd58..063726c561 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="/tmp/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 c0c482222b..3c6da61673 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="/tmp/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="/tmp/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 f9d9cb094b..a268f5af93 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="/tmp/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 860fb91eac..05843a0df1 100644
--- a/scripts/__tests__/test-module-installation.test.mjs
+++ b/scripts/__tests__/test-module-installation.test.mjs
@@ -50,7 +50,11 @@ test("Linux container workflows stage TinyBus fixtures below sticky /tmp", () =>
"../../.github/workflows/e2e-playwright.yml",
]) {
const source = readFileSync(new URL(workflow, import.meta.url), "utf8");
- assert.match(source, /\/tmp\/openhuman-test-modules/, workflow);
+ assert.match(
+ source,
+ /\/tmp\/openhuman-test-modules-\$\{GITHUB_RUN_ID\}-\$\{GITHUB_RUN_ATTEMPT\}/,
+ workflow,
+ );
assert.doesNotMatch(source, /\/opt\/openhuman-test-modules/, workflow);
}
@@ -58,7 +62,10 @@ test("Linux container workflows stage TinyBus fixtures below sticky /tmp", () =>
new URL("../ci/self-hosted/lanes-plan.mjs", import.meta.url),
"utf8",
);
- assert.match(lanes, /\/tmp\/openhuman-test-modules/);
+ assert.match(
+ lanes,
+ /\/tmp\/openhuman-test-modules-\$\{GITHUB_RUN_ID\}-\$\{GITHUB_RUN_ATTEMPT\}/,
+ );
assert.doesNotMatch(lanes, /\/opt\/openhuman-test-modules/);
});
diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjs
index b7df6f2f42..80ccbf315b 100644
--- a/scripts/ci/self-hosted/lanes-plan.mjs
+++ b/scripts/ci/self-hosted/lanes-plan.mjs
@@ -160,7 +160,7 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
};
const modulesDir = ex63
? `${scratch}/test-modules`
- : "/tmp/openhuman-test-modules/${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}";
+ : "/tmp/openhuman-test-modules-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}";
const modulesEnvFile = "ci-out/test-modules.env";
const withModules = (cmd) =>
`set -a && . ${modulesEnvFile} && set +a && ${cmd}`;
@@ -185,7 +185,11 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
{
name: "static",
checks: [
- { name: "rust-fmt", when: rust, run: "cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check" },
+ {
+ name: "rust-fmt",
+ when: rust,
+ run: "cargo fmt --manifest-path Cargo.toml --package openhuman --package openhuman-cli --package openhuman-embed --package openhuman-modules-linked --package openhuman-rpc --package openhuman-tinyhumans --package openhuman-tui -- --check",
+ },
{
name: "rust-layout",
when: core,