From f11daf38f4fbc43d717a2ee2a25350e8ea056433 Mon Sep 17 00:00:00 2001 From: Matt Hillsdon Date: Mon, 19 Oct 2026 12:14:32 +0100 Subject: [PATCH] Run Playwright against beta rather than staging on main Beta is public at python.microbit.org/v/beta, while staging is internal, and the two builds differ only in base path. This matches ml-trainer, including its rule for when main doesn't build beta. --- bin/print-ci-stages.cjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/print-ci-stages.cjs b/bin/print-ci-stages.cjs index 3277a9d63..3f8680322 100644 --- a/bin/print-ci-stages.cjs +++ b/bin/print-ci-stages.cjs @@ -18,9 +18,12 @@ if (ref === "refs/heads/main") { stages = ["REVIEW"]; } -// Playwright runs once per ref, before release. +// Playwright runs once per ref, before release. When main also builds beta, +// it tests beta, as users see beta. +const playwright = (stage) => + stage !== "PRODUCTION" && (stage === "BETA" || !stages.includes("BETA")); const include = stages.map((stage) => ({ stage, - playwright: stage === "REVIEW" || stage === "STAGING", + playwright: playwright(stage), })); console.log(`matrix=${JSON.stringify({ include })}`);