ci: keep the block post-merge-review check on hosted runners

The job's own comment records that it ended in 'Set up job' with no log on
every self-hosted runner, and the source repository ran it on ubuntu-latest.
The port made it follow BLOCK_RUNNER_LABEL, so setting the variable would
bring that failure back for every labelled same-repository PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-12-04 19:21:25 -08:00
1 parent 1776005e5b
commit ed6d649794
3 files changed
+8 -4

No files matched your search

+6 -2
View File
@@ -27,8 +27,12 @@ class PortTests(unittest.TestCase):
for name in ("test", "spec-trace", "post-merge-review", "known-bugs"):
text = (ROOT / (".github/workflows/block-" + name + ".yml")).read_text()
self.assertIn("working-directory: seaweed-block", text)
self.assertIn("vars.BLOCK_RUNNER_LABEL", text)
self.assertIn("|| 'ubuntu-latest'", text)
if name == "post-merge-review":
self.assertIn("runs-on: ubuntu-latest", text)
self.assertNotIn("BLOCK_RUNNER_LABEL", text)
else:
self.assertIn("vars.BLOCK_RUNNER_LABEL", text)
self.assertIn("|| 'ubuntu-latest'", text)
if "go-version-file:" in text: self.assertIn("go-version-file: seaweed-block/go.mod", text)
if name != "known-bugs":
self.assertIn('"seaweed-block/**"', text)