Skip to content

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

fix(ci): exempt tinystoragedrivers-types from storage-owner gate

Steven Enamakelcb2aaa718e52
diff --git a/Cargo.toml b/Cargo.toml
index 4a6db5d02a..11fed53906 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -83,7 +83,6 @@ tinystoragedrivers-mongodb = { path = "vendor/tinystoragedrivers/crates/tinystor
tinystoragedrivers-s3 = { path = "vendor/tinystoragedrivers/crates/tinystoragedrivers-s3" }
tinystoragedrivers-secrets = { path = "vendor/tinystoragedrivers/crates/tinystoragedrivers-secrets" }
tinystoragedrivers-sqlite = { path = "vendor/tinystoragedrivers/crates/tinystoragedrivers-sqlite" }
-tinystoragedrivers-types = { path = "vendor/tinystoragedrivers/crates/tinystoragedrivers-types" }
[patch."https://github.com/tinyhumansai/tinyinference"]
# tinymemes depends on the Jev client by git; resolve it to the vendored copy.
diff --git a/scripts/ci/check-storage-owner.mjs b/scripts/ci/check-storage-owner.mjs
index 6827d2599d..fac2952600 100644
--- a/scripts/ci/check-storage-owner.mjs
+++ b/scripts/ci/check-storage-owner.mjs
@@ -2,14 +2,16 @@
// Storage-owner gate (tinyhumansai/openhuman#7642, part of #7522).
//
// tinystoragedrivers is the only crate family allowed to own a storage
-// backend. This check reads `cargo metadata` for the root workspace and for
+// backend. The standalone `tinystoragedrivers-types` contract is data-only and
+// may be a pinned git dependency when a vendored driver checkout predates it.
+// This check reads `cargo metadata` for the root workspace and for
// `crates/openhuman-app` and fails when
// 1. a first-party package (path or git source, i.e. not a crates.io
// dependency) outside `tinystoragedrivers*` declares a dependency on one
// of FORBIDDEN_DEPS (any kind, optional or not), or
// 2. a first-party package outside `tinystoragedrivers*` is named
// `*-sqlite`, `*-mongodb` or `*-file`.
-// 3. a `tinystoragedrivers*` package in the resolved graph is not built from
+// 3. a storage/backend `tinystoragedrivers*` package in the resolved graph is not built from
// a path under `vendor/tinystoragedrivers/` (a registry or git source
// means some manifest escaped the root `[patch]` onto the vendored copy,
// for example a module that bumped its tag past the vendored commit),
@@ -56,7 +58,7 @@ export const ALLOWLIST = {
export const MANIFESTS = ['Cargo.toml', 'crates/openhuman-app/Cargo.toml'];
-const isOwner = name => name.startsWith('tinystoragedrivers');
+const isOwner = name => name.startsWith('tinystoragedrivers') && name !== 'tinystoragedrivers-types';
/** First-party = built from a path or a git source, not from a registry. */
const isFirstParty = pkg => !pkg.source || pkg.source.startsWith('git+');
diff --git a/vendor/tinystoragedrivers b/vendor/tinystoragedrivers
index 05eaada962..0b32b65c81 160000
--- a/vendor/tinystoragedrivers
+++ b/vendor/tinystoragedrivers
@@ -1 +1 @@
-Subproject commit 05eaada962decbab33bafa4763d2bd1a67f6b456
+Subproject commit 0b32b65c81a3e1e32fc1c0f77e5634ce707f4161