The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(ci): add storage-drivers lane for sqlite and file drivers
Steven Enamakelc7d19cecc563
diff --git a/.github/ci-paths-filter.yml b/.github/ci-paths-filter.ymlindex 8583280bb4..3af4fe16c9 100644--- a/.github/ci-paths-filter.yml+++ b/.github/ci-paths-filter.yml@@ -191,3 +191,31 @@ install_ps1:- 'scripts/ci/self-hosted/**'- 'scripts/install.ps1'- 'scripts/tests/OpenHumanWindowsInstall.Tests.ps1'+# The storage ports and the domains that sit on them (storage-sqlite /+# storage-file lane in the lane plan; the MongoDB lane has its own workflow,+# storage-mongodb.yml, with the same paths). Narrower than `rust-core` on+# purpose: the lane builds the core a further time with the drivers on.+storage:+ - '.github/workflows/ci-*.yml'+ - '.github/workflows/storage-mongodb.yml'+ - '.github/ci-paths-filter.yml'+ - 'scripts/ci/self-hosted/**'+ - 'crates/openhuman-core/src/storage/**'+ - 'crates/openhuman-core/src/cron/**'+ - 'crates/openhuman-core/src/flows/**'+ - 'crates/openhuman-core/src/security/approval/**'+ - 'crates/openhuman-core/src/security/devices/**'+ - 'crates/openhuman-core/src/security/keyring/**'+ - 'crates/openhuman-core/src/security/credentials/**'+ - 'crates/openhuman-core/src/desktop/notifications/**'+ - 'crates/openhuman-core/src/integrations/task_sources/**'+ - 'crates/openhuman-core/src/agent/orchestration/**'+ - 'crates/openhuman-core/src/agent/session_store/**'+ - 'crates/openhuman-core/src/config/schema/storage.rs'+ - 'crates/openhuman-rpc/src/session_store/**'+ - 'crates/openhuman-*/Cargo.toml'+ - 'tests/storage_*.rs'+ - 'tests/cli_storage_url_e2e.rs'+ - 'tests/support/storage_drivers.rs'+ - 'vendor/tinyagents'+ - 'vendor/tinyflows'diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjsindex 7493ab4500..519f815cf0 100644--- a/scripts/ci/self-hosted/lanes-plan.mjs+++ b/scripts/ci/self-hosted/lanes-plan.mjs@@ -25,6 +25,7 @@ export const AREA_ENV = {inventory: "CI_AREA_INVENTORY",toolchainImage: "CI_AREA_TOOLCHAIN_IMAGE",installPs1: "CI_AREA_INSTALL_PS1",+ storage: "CI_AREA_STORAGE",};/** Read the area flags from an environment object. Missing means false. */@@ -54,12 +55,46 @@ export const HOSTED_GROUPS = [},{ group: "rust-cov", lanes: ["rust-cov"], maxParallel: 1, container: true },{ group: "tauri", lanes: ["tauri"], maxParallel: 1, container: true },+ // The storage drivers build the core with features no other lane enables,+ // so they get a runner (and a `target/`) of their own.+ {+ group: "storage",+ lanes: ["storage-drivers"],+ maxParallel: 1,+ container: true,+ },// pwsh ships on the bare ubuntu-latest image, not in the CI container.{ group: "pester", lanes: ["pester"], maxParallel: 1, container: false },];const PRODUCT = '"$(bash scripts/ci/product-features.sh)"';+// The storage-drivers lane: the drivers it turns on, the root e2e targets that+// run once per driver (tests/support/storage_drivers.rs), and the lib-test+// filters of the domains that sit on the storage ports.+const STORAGE_DRIVERS = "storage-sqlite,storage-file";+const STORAGE_E2E_TARGETS = [+ "storage_approvals_e2e",+ "storage_domains_e2e",+ "storage_flows_e2e",+ "storage_secrets_e2e",+ "storage_scope_e2e",+ "storage_agent_scopes_e2e",+ "storage_delegation_e2e",+ "cli_storage_url_e2e",+];+const STORAGE_LIB_FILTERS = [+ "storage::",+ "cron::",+ "flows::",+ "security::approval::",+ "security::devices::",+ "security::keyring::",+ "security::credentials::",+ "desktop::notifications::",+ "integrations::task_sources::",+];+/*** Build the lane plan.*@@ -454,6 +489,41 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {},],},+ {+ // The sqlite and file storage drivers, which no other lane compiles in:+ // every `storage_*_e2e` target runs once per driver (memory, sqlite,+ // file) and the stores that sit on the storage ports run their lib+ // tests with the drivers on. The MongoDB driver needs a replica set and+ // has its own workflow (storage-mongodb.yml). Armed by the `storage`+ // area (.github/ci-paths-filter.yml).+ name: "storage-drivers",+ // Compiles the core crate with its own feature set: holds one of the+ // VM's heavy-compile slots (lanes.mjs). Lower number = served first.+ heavy: 2,+ targetDir: targetDir("storage"),+ env: { ...rustEnv, ...sccache, RUST_MIN_STACK: "16777216" },+ checks: [+ {+ name: "storage-e2e",+ when: areas.storage,+ run:+ `cargo test -p openhuman-cli --features ${STORAGE_DRIVERS}` ++ STORAGE_E2E_TARGETS.map((t) => ` --test ${t}`).join(""),+ },+ {+ name: "storage-lib-tests",+ when: areas.storage,+ run:+ `cargo test -p openhuman --features ${STORAGE_DRIVERS} --lib --` ++ STORAGE_LIB_FILTERS.map((f) => ` ${f}`).join(""),+ },+ {+ name: "storage-session-store-tests",+ when: areas.storage,+ run: `cargo test -p openhuman-rpc --features session-store,${STORAGE_DRIVERS} --lib -- session_store::`,+ },+ ],+ },{name: "pester",checks: [