Skip to content

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

Merge remote-tracking branch 'origin/main' into epic-8055-70-caps-host

Steven Enamakeldb77b7f530ea
diff --cc scripts/__tests__/rust-coverage-status.test.mjs
index 34cd460cbc,c2804277fb..6d92ad5a71
--- a/scripts/__tests__/rust-coverage-status.test.mjs
+++ b/scripts/__tests__/rust-coverage-status.test.mjs
@@@ -420,3 -442,49 +442,49 @@@ test("coverage inventory exceptions mat
/target_features_satisfied "\$\{target\}" && target_expected_in_coverage "\$\{target\}"/,
);
});
+
+ test("nextest product suites share one Cargo argument set and differ only in their filter", () => {
+ // Join line continuations so each suite call reads as one command.
+ const source = fs.readFileSync(runner, "utf8").replace(/\\\n\s*/g, "");
+ const nextestOnly = (name) => {
+ const pattern = new RegExp(
+ `suite "${name}" llvm_cov --no-report --no-fail-fast "\\$\\{UNIFIED_PRODUCT_ARGS\\[@\\]\\}" -E "\\$\\{(FILTER_[A-Z_]+)\\}"`,
+ );
+ const match = source.match(pattern);
+ assert.ok(match, `${name} must use the unified product arguments`);
+ return match[1];
+ };
+ const filters = [
+ nextestOnly("openhuman lib\\+bins \\(nextest\\)"),
+ nextestOnly("openhuman-embed"),
+ nextestOnly("openhuman-tinyhumans"),
+ nextestOnly("openhuman-cli integration tests \\(nextest\\)"),
+ ];
+ assert.equal(new Set(filters).size, 4, "every suite selects its own tests");
+ // The cli inventory is listed with the same arguments so it reuses the build.
+ assert.match(
+ source,
+ /cargo nextest list .*"\$\{UNIFIED_PRODUCT_ARGS\[@\]\}" -E "\$\{FILTER_CLI_TESTS\}"/,
+ );
+ // One package set, whose cargo resolution unifies the core's features once.
+ const args = source.match(/^UNIFIED_PRODUCT_ARGS=\((.*)\)$/m)[1];
+ assert.equal(
+ args,
+ "-p openhuman -p openhuman-embed -p openhuman-tinyhumans -p openhuman-cli --all-targets",
+ );
+ // Exact package matches: `package(openhuman)` alone would be a glob of the name.
+ for (const value of [
+ "FILTER_CORE='package(=openhuman)'",
+ "FILTER_EMBED='package(=openhuman-embed)'",
+ "FILTER_TINYHUMANS='package(=openhuman-tinyhumans)'",
+ "FILTER_CLI_TESTS='package(=openhuman-cli) & kind(test)'",
+ ])
+ assert.ok(source.includes(value), value);
+ // The old per-package nextest selections are gone; rpc, tui and the default
+ // feature suites keep their own resolutions.
+ assert.doesNotMatch(source, /-p openhuman-cli --tests/);
-
++
+ assert.match(source, /suite "openhuman-rpc" llvm_cov_package .*-p openhuman-rpc --all-targets/);
+ assert.match(source, /suite "openhuman-tui" llvm_cov_package .*-p openhuman-tui --all-targets/);
+ assert.match(source, /suite "openhuman-embed \(default\)" llvm_cov_package .*-p openhuman-embed --all-targets/);
+ });
diff --cc scripts/ci/module-pin-exemptions.json
index a08dff5d69,b1d4e57f48..9720a45edb
--- a/scripts/ci/module-pin-exemptions.json
+++ b/scripts/ci/module-pin-exemptions.json
@@@ -9,13 -9,13 +9,7 @@@
"is a deliberate edit to this file, which is a reviewable diff.",
"",
"Delete an entry the moment the pins are reconciled. An exemption that has",
- "stopped being true fails the gate too — `expect` must still match."
+ "stopped being true fails the gate too \u2014 `expect` must still match."
],
-- "exemptions": [
-- {
- "id": "tinyconnectors",
- "expect": "v0.19.3-76-gcb297ef1",
- "reason": "The pinned TinyConnectors workspace package is still 0.19.3, matching the registry artifact; the gitlink sits 50 commits past that tag at the additive contract 1.22 (opt-in direct-route Composio triggers, off by default). Re-pin both once a release carrying it is cut. (Gitlink now at the merged upstream cb297ef1, storage schema v2.)"
- "id": "tinyflows",
- "expect": "v0.8.23-92-gcad43f97",
- "reason": "Storage schema v2 (epic #7973): the gitlink sits past the registry's released tag on the merged upstream commit carrying the uniform storage schema. Re-pin both once a release carrying it is cut; retire this entry then."
-- }
-- ]
++ "exemptions": []
}
diff --cc tests/storage_flows_e2e.rs
index f89fdb2c39,15ebf1058a..510e9dff9f
--- a/tests/storage_flows_e2e.rs
+++ b/tests/storage_flows_e2e.rs
@@@ -8,15 -8,17 +8,16 @@@
use openhuman_core::config::Config;
use openhuman_core::cron::{self, Schedule};
use openhuman_core::flows;
-use openhuman_core::flows::tinyflows::state::FlowState;
use serde_json::json;
- #[macro_use]
- #[path = "support/storage_drivers.rs"]
- mod storage_drivers;
+ #[path = "support/storage_case.rs"]
+ mod storage_case;
- use storage_drivers::Case;
+ use storage_case::Case;
- async fn a_configured_backend_holds_cron_jobs_and_flow_catalog(case: Case) {
+ #[tokio::test(flavor = "multi_thread", worker_threads = 2)]
-async fn a_configured_backend_holds_cron_flows_and_flow_state() {
++async fn a_configured_backend_holds_cron_jobs_and_flow_catalog() {
+ let case = Case::open();
let workspace = tempfile::tempdir().unwrap();
let config = Config {
workspace_dir: workspace.path().to_path_buf(),
@@@ -142,10 -157,12 +143,12 @@@
openhuman_core::agent::orchestration::open_delegation_checkpointer(&config).unwrap();
}
-/// The stores tinyflows used to write (`jobs.db`, `flows.db`, `checkpoints.db`,
+/// The stores TinyFlows used to write (`jobs.db`, `flows.db`, `checkpoints.db`,
/// `drafts/`) are copied into a configured backend by the boot-time import,
/// read-only: the legacy files are byte-identical afterwards.
- async fn legacy_tinyflows_files_are_imported_into_a_configured_backend(case: Case) {
+ #[tokio::test(flavor = "multi_thread", worker_threads = 2)]
+ async fn legacy_tinyflows_files_are_imported_into_a_configured_backend() {
+ let case = Case::open();
let workspace = tempfile::tempdir().unwrap();
let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../openhuman-core/src/storage/import/fixtures/tinyflows/workspace");