Skip to content

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

test(tinybox): update pinned release assertions to v0.2.1

Steven Enamakeld831e3ab08c8
diff --git a/crates/openhuman-core/src/modules/tinybox/operations_tests.rs b/crates/openhuman-core/src/modules/tinybox/operations_tests.rs
index cccca64707..ecb80f5d6e 100644
--- a/crates/openhuman-core/src/modules/tinybox/operations_tests.rs
+++ b/crates/openhuman-core/src/modules/tinybox/operations_tests.rs
@@ -239,7 +239,7 @@ async fn docker_command_refusal_is_not_retried_as_an_ordinary_call() {
}
#[tokio::test]
-#[ignore = "requires a verified TinyBox archive, local Docker daemon, and preloaded alpine:latest"]
+#[ignore = "requires the verified pinned TinyBox archive, local Docker daemon, and preloaded alpine:latest"]
async fn pinned_loader_serves_the_published_tinybox_release() {
let _environment_lock = crate::config::TEST_ENV_LOCK.lock().await;
let artifact_root = std::env::var_os(crate::modules::ops::BUNDLED_MODULES_ENV)
@@ -304,7 +304,7 @@ async fn pinned_loader_serves_the_published_tinybox_release() {
crate::modules::ops::ensure_loaded(&config, MODULE_ID)
.await
- .expect("the OpenHuman release registry and TinyBus loader admit v0.1.28");
+ .expect("the OpenHuman release registry and TinyBus loader admit the pinned release");
let capabilities = super::capabilities(&config)
.await
.expect("the loaded release serves TinyBus capabilities");
@@ -339,20 +339,20 @@ async fn pinned_loader_serves_the_published_tinybox_release() {
}
#[tokio::test]
-#[ignore = "requires the downloaded, checksum-verified TinyBox v0.1.28 archive"]
-async fn pinned_loader_serves_resolve_local_grants_from_tinybox_v0124() {
+#[ignore = "requires the downloaded, checksum-verified pinned TinyBox archive"]
+async fn pinned_loader_serves_resolve_local_grants_from_pinned_tinybox_release() {
let _environment_lock = crate::config::TEST_ENV_LOCK.lock().await;
let archive = std::env::var_os("TINYBOX_RELEASE_ARTIFACT")
.map(std::path::PathBuf::from)
- .expect("set TINYBOX_RELEASE_ARTIFACT to the verified v0.1.28 archive");
+ .expect("set TINYBOX_RELEASE_ARTIFACT to the verified pinned TinyBox archive");
assert!(
archive.is_file(),
"missing verified release archive: {archive:?}"
);
let record = crate::modules::registry::find(MODULE_ID).expect("TinyBox registry record");
- assert_eq!(record.version, "0.1.28");
- assert_eq!(contract::CONTRACT_VERSION, (1, 18));
+ assert_eq!(record.version, "0.2.1");
+ assert_eq!(contract::CONTRACT_VERSION, (2, 0));
let asset = tinybus::module::platform::host_candidates()
.iter()
.find_map(|host_key| record.asset_for(host_key))
@@ -409,7 +409,7 @@ async fn pinned_loader_serves_resolve_local_grants_from_tinybox_v0124() {
config.modules.install_dir = Some(install.path().display().to_string());
crate::modules::ops::ensure_loaded(&config, MODULE_ID)
.await
- .expect("the TinyBus loader admits the published v0.1.28 artifact");
+ .expect("the TinyBus loader admits the published pinned artifact");
let home = tempfile::tempdir().expect("temporary operator home");
let allowed = home.path().join("workspace");
diff --git a/crates/openhuman-core/src/sandbox/native_jail_tests.rs b/crates/openhuman-core/src/sandbox/native_jail_tests.rs
index 0b19093844..7df6fc54b8 100644
--- a/crates/openhuman-core/src/sandbox/native_jail_tests.rs
+++ b/crates/openhuman-core/src/sandbox/native_jail_tests.rs
@@ -428,12 +428,12 @@ impl Drop for LiveModule {
#[cfg(all(feature = "modules", target_os = "linux"))]
#[tokio::test]
-#[ignore = "requires the verified TinyBox v0.1.28 archive and a supported Linux jail"]
+#[ignore = "requires the verified pinned TinyBox archive and a supported Linux jail"]
async fn released_tinybox_runs_a_native_jail_through_the_pinned_loader() -> anyhow::Result<()> {
let _environment_lock = crate::config::TEST_ENV_LOCK.lock().await;
const KEY: &str = "OPENHUMAN_BUNDLED_MODULES";
let artifact_root = std::env::var_os(KEY).map(PathBuf::from).ok_or_else(|| {
- anyhow::anyhow!("set OPENHUMAN_BUNDLED_MODULES to the downloaded v0.1.28 release assets")
+ anyhow::anyhow!("set OPENHUMAN_BUNDLED_MODULES to the downloaded pinned release assets")
})?;
let _environment_restore = BundledModulesRestore(std::env::var_os(KEY));
let record = crate::modules::registry::find("tinybox")