mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 11:31:34 +00:00
fix(ci): route changed checks through Crabbox policy
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user