Skip to content

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

test(flows): gate the published-module e2e tests on the v0.9.0 libraries

M3gA-Minda2def99455e3
diff --git a/tests/json_rpc_flows_e2e.rs b/tests/json_rpc_flows_e2e.rs
index 3eaf568baf..e6c893c8a8 100644
--- a/tests/json_rpc_flows_e2e.rs
+++ b/tests/json_rpc_flows_e2e.rs
@@ -76,7 +76,7 @@ async fn json_rpc_cron_manual_worker_survives_caller_cancel_on_published_tinyflo
let _source_dir_guard = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE_DIR");
clear_forced_chat_completions();
- let (artifact, _) = published_tinyflows::staged_v0_8_29_module();
+ let (artifact, _) = published_tinyflows::staged_v0_9_0_module();
let module_path = artifact.parent().expect("native artifact directory");
let _module_path_guard = EnvVarGuard::set_to_path("OPENHUMAN_MODULE_PATH", module_path);
diff --git a/tests/support/published_tinyflows.rs b/tests/support/published_tinyflows.rs
index 5a3f19944d..ee7be5dee9 100644
--- a/tests/support/published_tinyflows.rs
+++ b/tests/support/published_tinyflows.rs
@@ -1,38 +1,38 @@
-//! Digest gate for tests that load the published TinyFlows v0.8.29 module.
+//! Digest gate for tests that load the published TinyFlows v0.9.0 module.
use sha2::{Digest, Sha256};
use std::path::{Path, PathBuf};
-const V0_8_29_MODULE_HASHES: &[&str] = &[
- "04c3d8b0657719f9a5713bbe9bbad4554cd7e470a8c45e9119a60ab97c91c747",
- "9e817d9d956f62e287bf049eb37ec538d54128e27ed2679d2e61059a6fd4050e",
- "978d81646090706ef9b8007e024680b1c4f955e4f13d96546e7d2230bf1766dd",
- "99638f3f299bb49c727b397c9420b937872e76026817630cfd8e182cbe504dcb",
- "5dbe57f3cc3f2292eabaa085d8e4e33725f1071b15713ea343cae21eb4f513f3",
- "3a9433c4d5bf955a5041cdcdc6bdc11b77a92b689161b6708f2e12e962fc2342",
- "369378ca0b2cb340d127e04eb21e53d84dfc2f9248124a0e01b6285a9a208e54",
- "bec7f05ac03851dfef4ae21147f3cb296f86e14f2907b1d1353451dbcd61414b",
- "bd9de15b4072ba94acb120a607e0bdf5b50c93cb6769577e16bd826df4bbd3a0",
- "58ca60ae95de633db68937e797284d908c1b36c7188e9c1fa39b86badf14d213",
- "a0b3afdfb33745bae2a91cddb59ff4f02ceb6ed8157a4ea803350181b7ea3bdf",
+const V0_9_0_MODULE_HASHES: &[&str] = &[
+ "360cdfe76ba9144bacce3fa888429d6c3c9b79a272c85c5833499c25879361bb",
+ "ac9f902d9b52d408298086e679851c6b556e8409544c36ff3db28f721c5d9420",
+ "015ad10b30edb792012cb8c1c8cb3d6e1fa59c299cb735d028643596eeff1df2",
+ "b5f64d24adda4b2bd21d92db2c70b6a24e5da6da9cba268f821f27f7ff8fa42e",
+ "a15d343779c2464709e1c3983898b2ff162c438b315112d9c3b490fbaf6b3092",
+ "10ef00ee80959e3073240c57490b43c579fe3ca8317e174443d2578f39cce115",
+ "7c12488e1fd1d79e2eab507705037af71a299448543e74cf97eaedb4839f1054",
+ "faefab6ca305c63904bf0eb895472a64e1432fc3cd7684d41aa7fc12ee3d55ab",
+ "dfef3237000936415421ba5dfd9e6ac610bc3742686e21265d699a34d649c4ff",
+ "b01ac7c86926e544ca174f0f6c18a0448a9559f217dd294320fb0b5f371a55fb",
+ "b0412c8dc68bda3737b98c4a485a1685773f75a502259462a59c09e0ad8cf1ff",
];
-/// Finds the staged platform artifact and confirms it matches a published v0.8.29 bundle.
-pub fn staged_v0_8_29_module() -> (PathBuf, String) {
+/// Finds the staged platform artifact and confirms it matches a published v0.9.0 bundle.
+pub fn staged_v0_9_0_module() -> (PathBuf, String) {
let artifact = openhuman_core::modules::local_artifact("tinyflows")
- .expect("stage the published TinyFlows v0.8.29 module on OPENHUMAN_MODULE_PATH");
- let digest = verify_v0_8_29_module(&artifact);
+ .expect("stage the published TinyFlows v0.9.0 module on OPENHUMAN_MODULE_PATH");
+ let digest = verify_v0_9_0_module(&artifact);
(artifact, digest)
}
-/// Confirms `artifact` is one of the public platform bundles for v0.8.29.
-pub fn verify_v0_8_29_module(artifact: &Path) -> String {
+/// Confirms `artifact` is one of the public platform bundles for v0.9.0.
+pub fn verify_v0_9_0_module(artifact: &Path) -> String {
let digest = hex::encode(Sha256::digest(
std::fs::read(artifact).expect("read staged TinyFlows native artifact"),
));
assert!(
- V0_8_29_MODULE_HASHES.contains(&digest.as_str()),
- "staged TinyFlows library is not a published v0.8.29 module: {} sha256={digest}",
+ V0_9_0_MODULE_HASHES.contains(&digest.as_str()),
+ "staged TinyFlows library is not a published v0.9.0 module: {} sha256={digest}",
artifact.display()
);
digest
diff --git a/tests/tinyflows_published_prompt_e2e.rs b/tests/tinyflows_published_prompt_e2e.rs
index 6e1bf10e4b..bddbbbf4ff 100644
--- a/tests/tinyflows_published_prompt_e2e.rs
+++ b/tests/tinyflows_published_prompt_e2e.rs
@@ -1,4 +1,4 @@
-//! Normal-host prompt composition against the checksum-verified TinyFlows v0.8.29 module.
+//! Normal-host prompt composition against the checksum-verified TinyFlows v0.9.0 module.
#[path = "support/env_guard.rs"]
mod env_guard;
@@ -96,7 +96,7 @@ async fn published_module_prompts_render_through_the_normal_host_path() {
let _source_guard = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE");
let _source_dir_guard = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE_DIR");
let _tinyflows_source_guard = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE_TINYFLOWS");
- let (library, _) = published_tinyflows::staged_v0_8_29_module();
+ let (library, _) = published_tinyflows::staged_v0_9_0_module();
let module_search_path = library
.parent()
.expect("staged module artifact has a search directory");
@@ -306,7 +306,7 @@ async fn published_module_public_import_uses_authoring_bus_in_a_cold_process() {
let _source_guard = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE");
let _source_dir_guard = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE_DIR");
let _tinyflows_source_guard = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE_TINYFLOWS");
- let (library, digest) = published_tinyflows::staged_v0_8_29_module();
+ let (library, digest) = published_tinyflows::staged_v0_9_0_module();
let workspace = temp.path().join("workspace");
std::fs::create_dir_all(&workspace).expect("workspace directory");
let _workspace_guard = EnvVarGuard::set_to_path("OPENHUMAN_WORKSPACE", &workspace);
diff --git a/tests/tinyflows_published_runs_e2e.rs b/tests/tinyflows_published_runs_e2e.rs
index ae5feb4d5f..c9855e0289 100644
--- a/tests/tinyflows_published_runs_e2e.rs
+++ b/tests/tinyflows_published_runs_e2e.rs
@@ -135,7 +135,7 @@ async fn published_runs_use_scoped_host_capabilities_and_persist_lifecycle() {
let _module_source = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE");
let _module_source_dir = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE_DIR");
let _tinyflows_source = EnvVarGuard::unset("OPENHUMAN_MODULE_SOURCE_TINYFLOWS");
- let (module, digest) = published_tinyflows::staged_v0_8_29_module();
+ let (module, digest) = published_tinyflows::staged_v0_9_0_module();
let config_path = write_config(temp.path(), &module);
tinyhumans_boot::boot();
@@ -334,7 +334,7 @@ async fn published_runs_use_scoped_host_capabilities_and_persist_lifecycle() {
"failed run row must persist the same policy denial and steps: {terminal}"
);
assert_eq!(
- published_tinyflows::verify_v0_8_29_module(&module),
+ published_tinyflows::verify_v0_9_0_module(&module),
digest,
"the run used the checksum-verified published module"
);