The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(ci): allow overriding storage schema dump features
Steven Enamakel69d4b74e058d
diff --git a/scripts/ci/check-storage-schema.mjs b/scripts/ci/check-storage-schema.mjsindex 3960533e68..47c1e425b3 100644--- a/scripts/ci/check-storage-schema.mjs+++ b/scripts/ci/check-storage-schema.mjs@@ -41,9 +41,25 @@ const SCOPES = new Set(['tenant', 'agent', 'module', 'cluster']);/** Features the dump is built with: the contributor set plus the wallet owner. */export const DUMP_FEATURES = 'web3';+/**+ * Features for this run. `STORAGE_SCHEMA_FEATURES` lets private CI build the+ * dump with the feature set of an existing plain build (the core product+ * gates), so Cargo reuses that build instead of compiling the core again. The+ * schema is only gated on flows, skills, modules, web3 and tinymemes, all of+ * which are in both sets, so the dump is identical; the wallet owner (web3)+ * must be in any override.+ */+export function dumpFeatures(env = process.env) {+ const features = env.STORAGE_SCHEMA_FEATURES?.trim() || DUMP_FEATURES;+ if (!features.split(',').includes('web3')) {+ throw new Error(`STORAGE_SCHEMA_FEATURES must include web3 (the wallet owner): ${features}`);+ }+ return features;+}+/** Runs the dump example and returns its JSON. */-export function dumpSchema(root = REPO_ROOT) {- const run = spawnSync(+export function dumpSchema(root = REPO_ROOT, { run: spawn = spawnSync, env = process.env } = {}) {+ const run = spawn('cargo',['run',@@ -55,7 +71,7 @@ export function dumpSchema(root = REPO_ROOT) {'--example','storage_schema_dump','--features',- DUMP_FEATURES,+ dumpFeatures(env),],{ cwd: root, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 });diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjsindex 3475ed619f..5b30a159f7 100644--- a/scripts/ci/self-hosted/lanes-plan.mjs+++ b/scripts/ci/self-hosted/lanes-plan.mjs@@ -158,6 +158,21 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {// the generated docs/storage-schema.md.name: "storage-schema",when: rust,+ // ex63: build the dump example in the plain build target with that+ // build's rustEnv and the core product features, which+ // composio-stack-regression-uninstrumented also builds the cli with,+ // so the core is not compiled again here (default target,+ // incremental, full debuginfo). The schema depends only on gates+ // that are in both feature sets, so the dump is unchanged.+ ...(ex63+ ? {+ env: {+ ...rustEnv,+ CARGO_BUILD_TARGET_DIR: targetDir("build"),+ STORAGE_SCHEMA_FEATURES: "web3,flows,skills,modules,tinymemes",+ },+ }+ : {}),run: "node scripts/ci/check-storage-schema.mjs",},{