From a84d73098cc545510c14afb777aa5e355f700507 Mon Sep 17 00:00:00 2001 From: Devin Foley Date: Thu, 10 Sep 2026 19:01:14 -0700 Subject: [PATCH] test: require the automatic exact-source migrator producer Co-Authored-By: Paperclip --- .github/scripts/tests/cloud-readiness.test.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/scripts/tests/cloud-readiness.test.mjs b/.github/scripts/tests/cloud-readiness.test.mjs index 046696a408..25233a335b 100644 --- a/.github/scripts/tests/cloud-readiness.test.mjs +++ b/.github/scripts/tests/cloud-readiness.test.mjs @@ -82,4 +82,10 @@ test("the versioned readiness job requires successful source, image and artifact assert.doesNotMatch(workflow, /secrets: inherit|id-token: write|actions: write|checks: write|uses: .*@v\d\b/); const cloud = readFileSync(new URL("../../workflows/docker-cloud.yml", import.meta.url), "utf8"); assert.doesNotMatch(cloud, /^ push:/m, "the master image must build only once"); + const migrator = readFileSync(new URL("../../workflows/cloud-artifacts.yml", import.meta.url), "utf8"); + assert.match(migrator, /push:\s*\n\s*branches: \[master\]/); + assert.match(migrator, /SOURCE_SHA: \$\{\{ github.sha \}\}/); + assert.match(migrator, /gh workflow run release.yml .*--ref master/); + assert.match(migrator, /--field channel=cloud-migrator/); + assert.match(migrator, /--field source_ref="\$SOURCE_SHA"/); });