Skip to content

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

fix: isolate CI module paths and registry fixture

Steven Enamakelefd52a8b26d1
diff --git a/.github/workflows/e2e-reusable.yml b/.github/workflows/e2e-reusable.yml
index cf7cd6583f..e78a81cc7d 100644
--- a/.github/workflows/e2e-reusable.yml
+++ b/.github/workflows/e2e-reusable.yml
@@ -166,6 +166,8 @@ jobs:
- name: Run E2E (${{ inputs.spec_label }})
if: ${{ !inputs.full }}
run: |
+ export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-e2e-xdg.XXXXXX)"
+ chmod 700 "$XDG_DATA_HOME"
bash scripts/ci-cancel-aware.sh \
xvfb-run -a --server-args="-screen 0 1280x960x24" \
bash app/scripts/e2e-run-session.sh "${{ inputs.spec_path }}" "${{ inputs.spec_label }}"
@@ -450,7 +452,10 @@ jobs:
cat "$module_root/modules.env" >> "$GITHUB_ENV"
- name: Run Rust E2E suite (tests/*_e2e.rs vs mock backend)
- run: bash scripts/ci-cancel-aware.sh pnpm test:rust:e2e
+ run: |
+ export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-rust-e2e-xdg.XXXXXX)"
+ chmod 700 "$XDG_DATA_HOME"
+ bash scripts/ci-cancel-aware.sh pnpm test:rust:e2e
# No artifact uploads here either — same release-workflow reuse
# concern as the Tauri job above. Mock-backend log lives at
@@ -860,6 +865,8 @@ jobs:
env:
E2E_BAIL_ON_FAILURE: ${{ vars.E2E_BAIL_ON_FAILURE || '' }}
run: |
+ export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-e2e-xdg.XXXXXX)"
+ chmod 700 "$XDG_DATA_HOME"
BAIL_FLAG=""
if [[ "${E2E_BAIL_ON_FAILURE:-}" == "1" ]]; then
BAIL_FLAG="--bail"
diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.yml
index 7da02c91f4..1b37dfad31 100644
--- a/.github/workflows/test-reusable.yml
+++ b/.github/workflows/test-reusable.yml
@@ -186,6 +186,12 @@ jobs:
run: |
set -euo pipefail
+ # Container HOME may be a runner-owned bind mount with mode 0755.
+ # TinyBus correctly refuses user module search paths beneath it, so
+ # keep XDG modules in a private, per-job directory instead.
+ export XDG_DATA_HOME="$(mktemp -d /tmp/openhuman-core-xdg.XXXXXX)"
+ chmod 700 "$XDG_DATA_HOME"
+
integration_test_targets() {
find tests -maxdepth 1 -type f -name '*.rs' -print |
sed -e 's#^tests/##' -e 's#\.rs$##' |
diff --git a/crates/openhuman-core/src/core/all_dispatch_ctx_tests.rs b/crates/openhuman-core/src/core/all_dispatch_ctx_tests.rs
index d15424a4fc..16c958cdcb 100644
--- a/crates/openhuman-core/src/core/all_dispatch_ctx_tests.rs
+++ b/crates/openhuman-core/src/core/all_dispatch_ctx_tests.rs
@@ -36,10 +36,10 @@ fn register_probe() {
register_controller_extension(ControllerExtension {
group: DomainGroup::Hosted,
controllers: vec![RegisteredController {
- schema: schema("ctx_probe", "whoami", vec![]),
+ schema: schema("ext_ctx_probe", "whoami", vec![]),
handler: whoami,
}],
- namespaces: &[("ctx_probe", "Dispatch context probe.")],
+ namespaces: &[("ext_ctx_probe", "Dispatch context probe.")],
})
.expect("register ctx probe");
}
@@ -50,7 +50,7 @@ async fn handler_receives_the_context_the_caller_dispatched_with() {
let ctx = CoreContext::for_test(DomainSet::full(), Some("/tmp/ctx-probe-a".into()));
let value = try_invoke_registered_rpc(
DispatchCtx::new(ctx),
- "openhuman.ctx_probe_whoami",
+ "openhuman.ext_ctx_probe_whoami",
Map::new(),
)
.await
@@ -76,7 +76,7 @@ async fn concurrent_dispatches_never_see_each_others_context() {
let call = |ctx: Arc<CoreContext>| {
try_invoke_registered_rpc(
DispatchCtx::new(ctx),
- "openhuman.ctx_probe_whoami",
+ "openhuman.ext_ctx_probe_whoami",
Map::new(),
)
};
@@ -98,7 +98,7 @@ async fn explicit_context_overrides_the_calling_tasks_scope() {
let value = CoreContext::scope(scoped, async {
try_invoke_registered_rpc(
DispatchCtx::new(explicit),
- "openhuman.ctx_probe_whoami",
+ "openhuman.ext_ctx_probe_whoami",
Map::new(),
)
.await