diff --git a/.github/block/README.md b/.github/block/README.md index 9aeee69267..3641c329be 100644 --- a/.github/block/README.md +++ b/.github/block/README.md @@ -2,7 +2,7 @@ The block module stays in `seaweed-block/` with its own `go.mod` and unchanged module path. Root `block-*.yml` workflows run shell commands there; action inputs name the subdirectory explicitly. The imported subtree is unchanged: every port file lives under root `.github/`. Existing module scripts and data remain base-owned inputs; only the Git adapters and unit-group coordinator live in root `.github/block/scripts/`. The existing nested workflows are inert because GitHub only discovers root workflows. -PR and master-push workflows select `seaweed-block/**` and their root block workflow files. All jobs default to `ubuntu-latest`. Set the repository variable `BLOCK_RUNNER_LABEL` only after the corresponding dedicated runner label is registered and available; same-repository/trusted events then use that label. Fork PRs always use GitHub-hosted runners. GitHub Actions cannot fall back after requesting an unavailable label, so an unset variable is the explicit safe default. Unset it again if the registered pool is withdrawn. Runner discovery would require runner-management API access that the read-only workflow token does not have; no new credential is requested. +PR and master-push workflows select `seaweed-block/**` and their root block workflow files. All jobs default to `ubuntu-latest`. Set the repository variable `BLOCK_RUNNER_LABEL` only after the corresponding dedicated runner label is registered and available; same-repository/trusted events of the test, spec-trace and known-bugs jobs then use that label. The post-merge-review paths check always runs hosted. Fork PRs always use GitHub-hosted runners. GitHub Actions cannot fall back after requesting an unavailable label, so an unset variable is the explicit safe default. Unset it again if the registered pool is withdrawn. Runner discovery would require runner-management API access that the read-only workflow token does not have; no new credential is requested. The unit check keeps `go test (linux)` and `process-level tests (real binaries)` under workflow `Block Test`. Module-relative diff/blob adapters preserve the block model map and allow list. Root block workflow/Docker recipe changes still pass the block trace/public-text checks; unrelated host code is excluded. No imported module paths or product formats change. diff --git a/.github/block/scripts/block-ci-port-test.py b/.github/block/scripts/block-ci-port-test.py index ecbd0cf46a..770a51df77 100644 --- a/.github/block/scripts/block-ci-port-test.py +++ b/.github/block/scripts/block-ci-port-test.py @@ -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) diff --git a/.github/workflows/block-post-merge-review.yml b/.github/workflows/block-post-merge-review.yml index 3153eccb97..8c55013a65 100644 --- a/.github/workflows/block-post-merge-review.yml +++ b/.github/workflows/block-post-merge-review.yml @@ -36,7 +36,7 @@ jobs: # same runners, passes. Unlabelled PRs only echo here, so the hosted # queue costs little; the merge gate does not wait for it unless the PR # is labelled. - runs-on: ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository) && vars.BLOCK_RUNNER_LABEL || 'ubuntu-latest' }} + runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: Not labelled