Skip to content

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

Merge remote-tracking branch 'upstream/main' into storage-bypass-ratchet-7434

Steven Enamakelc1ee2b282bd6
diff --cc .github/ci-paths-filter.yml
index b4270885e3,9414f66a65..2d343b5d7a
--- a/.github/ci-paths-filter.yml
+++ b/.github/ci-paths-filter.yml
@@@ -145,10 -145,9 +145,13 @@@ scripts
- 'scripts/ci/self-hosted/**'
- 'scripts/ci/check-module-boundaries.mjs'
- 'scripts/ci/module-boundaries.json'
+ - 'scripts/ci/check-storage-bypass.mjs'
+ - 'scripts/ci/storage-bypass-debt.mjs'
+ - 'scripts/ci/storage-bypass*.json'
+ - 'scripts/ci/storage-bypass*.md'
+ - 'scripts/ci/check-process-statics.mjs'
+ - 'scripts/ci/check-crate-chain.mjs'
+ - 'scripts/ci/process-statics.json'
- 'scripts/mock-api/**'
- 'scripts/*.mjs'
- 'scripts/__tests__/**'
diff --cc scripts/__tests__/self-hosted-lanes.test.mjs
index fbba17b8c3,433567d72b..3d56bc6a52
--- a/scripts/__tests__/self-hosted-lanes.test.mjs
+++ b/scripts/__tests__/self-hosted-lanes.test.mjs
@@@ -236,7 -242,7 +242,8 @@@ test("untouched areas leave only the al
"static:orch-ip-gate",
"static:feature-forwarding",
"static:crate-chain",
+ "static:process-statics",
+ "static:storage-bypass",
"static:module-pins",
"static:submodule-monotonic",
]);
@@@ -273,7 -279,7 +280,8 @@@ test("the storage area arms only the st
"static:orch-ip-gate",
"static:feature-forwarding",
"static:crate-chain",
+ "static:process-statics",
+ "static:storage-bypass",
"static:module-pins",
"static:submodule-monotonic",
],
@@@ -696,38 -702,37 +704,73 @@@ test("module boundary policy and checke
}
});
+ test("process-static policy and checker changes arm their own scripts lane", () => {
+ const filters = fs.readFileSync(
+ path.join(repoRoot, ".github/ci-paths-filter.yml"),
+ "utf8",
+ );
+ const scripts = filters.split(/^scripts:\s*$/m)[1].split(/^\S[^\n]*:/m)[0];
+ for (const file of [
+ "scripts/ci/check-process-statics.mjs",
+ "scripts/ci/check-crate-chain.mjs",
+ "scripts/ci/process-statics.json",
+ ]) {
+ assert.ok(
+ scripts.includes(`'${file}'`),
+ `${file} must arm the scripts area`,
+ );
+ }
+ });
+
+ test("process-static scan uses cancellation supervision in both profiles", () => {
+ for (const profile of ["hosted", "ex63"]) {
+ const plan = buildPlan({
+ profile,
+ areas: NONE,
+ env: profile === "ex63" ? EX63_ENV : {},
+ });
+ const check = plan.lanes
+ .flatMap((lane) => lane.checks)
+ .find((check) => check.name === "process-statics");
+ assert.equal(
+ check.run,
+ "bash scripts/ci-cancel-aware.sh node scripts/ci/check-process-statics.mjs",
+ );
+ }
+ });
++
+test("storage-bypass runs under cancellation supervision in both profiles", () => {
+ for (const profile of ["hosted", "ex63"]) {
+ const plan = buildPlan({
+ profile,
+ areas: NONE,
+ env: profile === "ex63" ? EX63_ENV : {},
+ });
+ const check = plan.lanes
+ .flatMap((lane) => lane.checks)
+ .find((check) => check.name === "storage-bypass");
+ assert.equal(check.when, true);
+ assert.equal(
+ check.run,
+ "bash scripts/ci-cancel-aware.sh node scripts/ci/check-storage-bypass.mjs",
+ );
+ }
+});
+
+test("storage checker and debt policy changes arm their own scripts lane", () => {
+ const filters = fs.readFileSync(
+ path.join(repoRoot, ".github/ci-paths-filter.yml"),
+ "utf8",
+ );
+ const scripts = filters.split(/^scripts:\s*$/m)[1].split(/^\S[^\n]*:/m)[0];
+ for (const pattern of [
+ "scripts/ci/check-storage-bypass.mjs",
+ "scripts/ci/storage-bypass-debt.mjs",
+ "scripts/ci/storage-bypass*.json",
+ "scripts/ci/storage-bypass*.md",
+ ])
+ assert.ok(
+ scripts.includes(`'${pattern}'`),
+ `${pattern} must arm the scripts area`,
+ );
+});