Skip to content

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

feat(ci): merge e2e-test-support check into gates-off test build

Steven Enamakelb882277f9f34
diff --git a/docs/ci-self-hosted.md b/docs/ci-self-hosted.md
index 8b63370fff..35f38f05ef 100644
--- a/docs/ci-self-hosted.md
+++ b/docs/ci-self-hosted.md
@@ -27,7 +27,7 @@ provisioning, deploys and the runner token.
| `frontend` | pnpm install, tsc, prettier, eslint, i18n, docs, script self-tests |
| `frontend-tests` | the complete vitest suite with coverage |
| `rust-cov` | test modules from the registry, then `scripts/ci/rust-coverage.sh` |
-| `rust-lint` | clippy (product set; embed's clippy covers the core's contributor set), embed and tinyhumans lint, embed gates-off check, prompt budget |
+| `rust-lint` | clippy (product set; embed's clippy covers the core's contributor set), embed and tinyhumans lint, embed gates-off check |
| `rust-gates-off` | gates-off checks and gate-contract tests, kernel floor, dep-sim calibration |
| `tauri` | Tauri clippy and coverage |
| `pester` | `install.ps1` tests |
@@ -61,7 +61,10 @@ Some checks do not run on pull requests. CI Lite runs them on every push to
product features;
- `cargo check -p openhuman --no-default-features`, which
`embed-check-no-default` already covers: it builds the core with the same
- (empty) feature set.
+ (empty) feature set;
+- `cargo check -p openhuman --no-default-features --features
+ e2e-test-support`: `rust-gates-off` already compiles that feature set for
+ its tests, in one build together with `mcp`.
## Profiles
diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjs
index 94cadbf2ad..f46e1f1d43 100644
--- a/scripts/ci/self-hosted/lanes-plan.mjs
+++ b/scripts/ci/self-hosted/lanes-plan.mjs
@@ -359,11 +359,6 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
targetDir: targetDir("gatesoff"),
env: { ...rustEnv, ...sccache, RUST_MIN_STACK: "67108864" },
checks: [
- {
- name: "check-e2e-test-support",
- when: rust,
- run: "cargo check --manifest-path Cargo.toml -p openhuman --no-default-features --features e2e-test-support",
- },
{
name: "gate-contract-tests",
when: rust,
@@ -374,17 +369,20 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
" openhuman::config:: openhuman::platform::socket::event_handlers:: tools::schemas:: tools::ops::tests::",
},
{
- name: "gate-contract-tests-mcp",
- when: rust,
- run: "cargo test --manifest-path Cargo.toml -p openhuman --no-default-features --features mcp --lib -- mcp::server::resources::",
- },
- {
- // Scoped to `introspect::` on purpose; see ci-lite.yml for the hole.
- name: "gate-contract-tests-e2e-support",
+ // One core build for both feature-gated suites: `mcp` and
+ // `e2e-test-support` gate disjoint code (mcp::server::resources
+ // does not touch test_support, and vice versa), so each suite sees
+ // the same code it would under its feature alone. Separately they
+ // were two full core test builds. The introspect filter is scoped
+ // on purpose; see ci-lite.yml for the hole. The `cargo check` of
+ // the e2e-test-support set runs on pushes to main (CI Lite): this
+ // build already compiles that set, under cfg(test).
+ name: "gate-contract-tests-features",
when: rust,
run:
- "cargo test --manifest-path Cargo.toml -p openhuman --no-default-features --features e2e-test-support --lib --" +
- " test_support::introspect::",
+ "cargo test --manifest-path Cargo.toml -p openhuman --no-default-features" +
+ " --features mcp,e2e-test-support --lib --" +
+ " mcp::server::resources:: test_support::introspect::",
},
{
name: "kernel-floor",