Skip to content

Commit 6b8bf19

Browse files
committed
fix(release): keep crabpot findings advisory
1 parent 2c8d05a commit 6b8bf19

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "crabpot",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": true,
55
"description": "Compatibility testbed for OpenClaw community plugins and plugin seams.",
66
"type": "module",

scripts/run-static-suite.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ function main() {
1111
const args = parseArgs(process.argv.slice(2));
1212
const openclawArgs = args.openclawPath ? ["--openclaw", args.openclawPath] : [];
1313
const profileArgs = args.profileRuns ? ["--runs", args.profileRuns] : [];
14-
const policyArgs = args.policy === "release" ? ["--strict"] : [];
14+
const pluginInspectorSmoke = args.pluginInspectorSmoke || args.policy === "release";
1515
if (args.openclawPath) {
1616
process.env.CRABPOT_TEST_OPENCLAW_PATH = args.openclawPath;
1717
}
1818

1919
const steps = buildStaticSuiteSteps({
2020
openclawArgs,
21-
pluginInspectorSmoke: args.pluginInspectorSmoke,
22-
policyArgs,
21+
pluginInspectorSmoke,
2322
profileArgs,
2423
});
2524

test/run-static-suite.test.mjs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ test("static suite keeps the dashboard gate broad and target-explicit", () => {
2020
assert.ok(rendered.some(([, args]) => args === "scripts/check-ci-policy.mjs --check"));
2121
});
2222

23-
test("static suite release policy promotes CI policy warnings to failures", () => {
23+
test("static suite release policy keeps compatibility findings advisory", () => {
2424
const steps = buildStaticSuiteSteps({
25-
policyArgs: ["--strict"],
25+
pluginInspectorSmoke: true,
26+
policyArgs: [],
2627
});
2728

28-
assert.ok(steps.some(([, args]) => args.join(" ") === "scripts/check-ci-policy.mjs --check --strict"));
29+
const rendered = steps.map(([, args]) => args.join(" "));
30+
31+
assert.ok(rendered.includes("run plugin-inspector:smoke"));
32+
assert.ok(rendered.includes("scripts/check-ci-policy.mjs --check"));
33+
assert.equal(rendered.some((args) => args.includes("check-ci-policy.mjs --check --strict")), false);
2934
});

0 commit comments

Comments
 (0)