diff --git a/.github/block/scripts/block-ci-port-test.py b/.github/block/scripts/block-ci-port-test.py index 8820b0454e..976b854a74 100644 --- a/.github/block/scripts/block-ci-port-test.py +++ b/.github/block/scripts/block-ci-port-test.py @@ -40,7 +40,7 @@ class PortTests(unittest.TestCase): self.assertIn('".github/workflows/block-*.yml"', text) test = (ROOT / ".github/workflows/block-test.yml").read_text() self.assertIn("- master", test) - self.assertIn("git diff --relative --name-only HEAD^1 HEAD -- .", test) + self.assertIn("git diff --relative --name-only --no-renames HEAD^1 HEAD -- .", test) self.assertIn("go test (linux)", test) self.assertIn("process-level tests (real binaries)", test) post = (ROOT / ".github/workflows/block-post-merge-review.yml").read_text() diff --git a/.github/workflows/block-test.yml b/.github/workflows/block-test.yml index 37e0bb2ca5..e8424275e4 100644 --- a/.github/workflows/block-test.yml +++ b/.github/workflows/block-test.yml @@ -209,7 +209,7 @@ jobs: # have no parent. Ordinary PRs use the merge commit's base parent. : >"$plan/changed.txt" if [ "$EVENT" != push ] && [[ "$HEAD_REF" != train/* ]]; then - git diff --relative --name-only HEAD^1 HEAD -- . >"$plan/changed.txt" + git diff --relative --name-only --no-renames HEAD^1 HEAD -- . >"$plan/changed.txt" fi python3 -I ../.github/block/scripts/unit-test-shards.py "$mod" "$plan" "$EVENT" "$HEAD_REF" "$plan/changed.txt" <"$plan/all.txt" python3 -I ../.github/block/scripts/run-unit-groups.py "$plan" "$CI_EVIDENCE_DIR" "$RUNNER_TEMP/unit-group-tmp" \