block-ci: check host paths in a labelled post-merge-review PR

The changed-path list holds module paths and block controls only, so a
labelled PR that also changed host files passed on its module part. Add
every other changed path with its root name; the allow list refuses it.
The spec-trace scope stays module-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-12-05 04:08:02 -08:00
1 parent 25afda36b0
commit bb8c969709
2 files changed
+7 -1

No files matched your search

@@ -45,6 +45,7 @@ class PortTests(unittest.TestCase):
self.assertIn("process-level tests (real binaries)", test)
post = (ROOT / ".github/workflows/block-post-merge-review.yml").read_text()
self.assertIn("working-directory: ${{ github.workspace }}", post)
self.assertIn("""git -C .. diff -z --name-status --no-renames "$BASE...$HEAD" -- . ':(exclude)seaweed-block/'""", post)
def test_known_bugs_use_the_module_verdict_helper(self):
text = (ROOT / ".github/workflows/block-known-bugs.yml").read_text()
@@ -82,7 +82,12 @@ jobs:
set -euo pipefail
bash .github/scripts/post-merge-review-check-test.sh
git -c fetch.fsckObjects=true fetch --no-tags origin "+refs/pull/${PR}/head:refs/remotes/pr/head"
bash ../.github/block/scripts/post-merge-review-changed.sh "$BASE" "$HEAD" >changed.bin
{
bash ../.github/block/scripts/post-merge-review-changed.sh "$BASE" "$HEAD"
# Host files keep their root path, so the allow list refuses them.
git -C .. diff -z --name-status --no-renames "$BASE...$HEAD" -- . ':(exclude)seaweed-block/' \
':(exclude).github/workflows/block-*.yml' ':(exclude).github/dockerfiles/block-*.Dockerfile' ':(exclude).github/block/**'
} >changed.bin
bash .github/scripts/post-merge-review-check.sh .github/post-merge-review-allow.txt <changed.bin
- name: Clean job workspace