fix(ci): route changed checks through Crabbox policy

This commit is contained in:
Vincent Koc
2026-07-31 04:28:50 -07:00
parent c2e5b3a67c
commit 642ded397b
2 changed files with 7 additions and 7 deletions

View File

@@ -222,8 +222,8 @@ export function buildChangedCheckCrabboxArgs(argv = [], options = {}) {
return [
"scripts/crabbox-wrapper.mjs",
"run",
"--provider",
"blacksmith-testbox",
"--workload",
"ci-fast",
"--blacksmith-org",
"openclaw",
"--blacksmith-workflow",
@@ -392,7 +392,7 @@ export function delegationFailedBeforeRunning(output) {
}
async function runChangedCheckViaCrabbox(argv = [], env = process.env) {
console.error("[check:changed] delegating to Blacksmith Testbox via the Node wrapper.");
console.error("[check:changed] delegating through Crabbox workload routing.");
let tail = "";
const exitCode = await runManagedCommand({
bin: "node",

View File

@@ -300,7 +300,7 @@ describe("scripts/changed-lanes", () => {
});
expect(result.status).toBe(0);
expect(result.stderr).toContain("delegating to Blacksmith Testbox");
expect(result.stderr).toContain("delegating through Crabbox workload routing");
expect(result.stderr).not.toContain("ambiguous argument");
});
@@ -334,7 +334,7 @@ describe("scripts/changed-lanes", () => {
);
expect(result.status).toBe(0);
expect(result.stderr).toContain("delegating to Blacksmith Testbox");
expect(result.stderr).toContain("delegating through Crabbox workload routing");
});
it.each([
@@ -1140,8 +1140,8 @@ describe("scripts/changed-lanes", () => {
expect(buildChangedCheckCrabboxArgs(["--base", "origin/main", "--head", "HEAD"])).toEqual([
"scripts/crabbox-wrapper.mjs",
"run",
"--provider",
"blacksmith-testbox",
"--workload",
"ci-fast",
"--blacksmith-org",
"openclaw",
"--blacksmith-workflow",