Skip to content

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

test(modules): account for rolling arch host key in asset name check

Steven Enamakel8bb84d98b655
diff --git a/crates/openhuman-core/src/modules/registry_tests.rs b/crates/openhuman-core/src/modules/registry_tests.rs
index 852bdb4bf3..e11d492099 100644
--- a/crates/openhuman-core/src/modules/registry_tests.rs
+++ b/crates/openhuman-core/src/modules/registry_tests.rs
@@ -398,8 +398,15 @@ fn every_asset_name_carries_its_host_key_and_a_known_extension() {
// loads the wrong platform's library.
for record in ALL {
for asset in record.assets {
+ // The rolling Arch Linux host key tracks the release archive's
+ // canonical `archlinux` stem.
+ let archive_host_key = asset
+ .host_key
+ .strip_prefix("archlinux-rolling-")
+ .map(|suffix| format!("archlinux-{suffix}"))
+ .unwrap_or_else(|| asset.host_key.to_owned());
assert!(
- asset.archive.contains(asset.host_key),
+ asset.archive.contains(&archive_host_key),
"{} asset {} does not name its host key {}",
record.id,
asset.archive,