ci: restrict plugin prerelease suite to mega runs

This commit is contained in:
Vincent Koc
2026-04-28 21:50:16 -07:00
parent 52a7e2264c
commit 0a8a255733
3 changed files with 16 additions and 6 deletions

View File

@@ -14,7 +14,7 @@ function readCiWorkflow() {
}
describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
it("covers every pre-release plugin skill surface in normal CI", () => {
it("covers every pre-release plugin skill surface in mega CI", () => {
const plan = assertPluginPrereleaseTestPlanComplete();
expect(plan.surfaces).toEqual(
@@ -53,7 +53,7 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
}
});
it("keeps live-ish coverage credential-gated in PR CI", () => {
it("keeps live-ish coverage outside provider-backed Docker lanes", () => {
const plan = createPluginPrereleaseTestPlan();
expect(plan.dockerLanes).not.toContain("openai-web-search-minimal");
@@ -109,6 +109,7 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
const staticShard = workflow.jobs["plugin-prerelease-static-shard"];
const dockerSuite = workflow.jobs["plugin-prerelease-docker-suite"];
const suite = workflow.jobs["plugin-prerelease-suite"];
const manifestScript = preflight.steps.find((step) => step.name === "Build CI manifest").run;
expect(preflight.outputs).toMatchObject({
plugin_prerelease_docker_lanes:
@@ -122,6 +123,12 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
name: "${{ matrix.check_name }}",
"runs-on": "blacksmith-8vcpu-ubuntu-2404",
});
expect(manifestScript).toContain(
'const isMegaCiRun = process.env.OPENCLAW_CI_EVENT_NAME === "workflow_dispatch";',
);
expect(manifestScript).toContain(
"const runPluginPrereleaseSuite =\n isMegaCiRun && runNodeFull && isCanonicalRepository;",
);
expect(staticShard.strategy.matrix).toBe(
"${{ fromJson(needs.preflight.outputs.plugin_prerelease_static_matrix) }}",
);