diff --git a/.changes/go-format/test-8558-test-scope-216debd7.md b/.changes/go-format/test-8558-test-scope-216debd7.md new file mode 100644 index 0000000000..3b9cec2951 --- /dev/null +++ b/.changes/go-format/test-8558-test-scope-216debd7.md @@ -0,0 +1,5 @@ +--- +bump: none +--- + +Test-only: a suite's test-scope header now declares files it reads that the pull-request test selection could not see, so a change to one of them runs the suite; no shipped behavior changes. diff --git a/.changes/markdown-format/test-8558-test-scope-3c91f0e7.md b/.changes/markdown-format/test-8558-test-scope-3c91f0e7.md new file mode 100644 index 0000000000..3b9cec2951 --- /dev/null +++ b/.changes/markdown-format/test-8558-test-scope-3c91f0e7.md @@ -0,0 +1,5 @@ +--- +bump: none +--- + +Test-only: a suite's test-scope header now declares files it reads that the pull-request test selection could not see, so a change to one of them runs the suite; no shipped behavior changes. diff --git a/.changes/source-control/test-8558-test-scope-4450105c.md b/.changes/source-control/test-8558-test-scope-4450105c.md new file mode 100644 index 0000000000..3b9cec2951 --- /dev/null +++ b/.changes/source-control/test-8558-test-scope-4450105c.md @@ -0,0 +1,5 @@ +--- +bump: none +--- + +Test-only: a suite's test-scope header now declares files it reads that the pull-request test selection could not see, so a change to one of them runs the suite; no shipped behavior changes. diff --git a/.changes/verification/test-8558-test-scope-5e89aad4.md b/.changes/verification/test-8558-test-scope-5e89aad4.md new file mode 100644 index 0000000000..3b9cec2951 --- /dev/null +++ b/.changes/verification/test-8558-test-scope-5e89aad4.md @@ -0,0 +1,5 @@ +--- +bump: none +--- + +Test-only: a suite's test-scope header now declares files it reads that the pull-request test selection could not see, so a change to one of them runs the suite; no shipped behavior changes. diff --git a/plugins/go-format/git-hooks/goimports-format.test.sh b/plugins/go-format/git-hooks/goimports-format.test.sh index c73387d080..d1fb8b9c6e 100755 --- a/plugins/go-format/git-hooks/goimports-format.test.sh +++ b/plugins/go-format/git-hooks/goimports-format.test.sh @@ -9,7 +9,7 @@ # ("fmt" for a fmt.Println call), removes an unused one, groups the module's own # imports after third-party ones under -local; the parse-error line is the line # of the fixture's broken call, counted by hand. -# test-scope: plugins/go-format/git-hooks/entries.json plugins/go-format/lib/git-hooks/check-lib.sh plugins/go-format/lib/git-hooks/install.mjs +# test-scope: plugins/go-format/git-hooks/entries.json plugins/go-format/lib/git-hooks/check-lib.sh plugins/go-format/lib/git-hooks/install.mjs plugins/go-format/.claude-plugin/plugin.json set -uo pipefail unset GIT_DIR GIT_WORK_TREE GIT_CONFIG GIT_INDEX_FILE CLAUDECODE AI_AGENT diff --git a/plugins/markdown-format/git-hooks/markdown-check.test.sh b/plugins/markdown-format/git-hooks/markdown-check.test.sh index 00fd50e309..c6fc867170 100755 --- a/plugins/markdown-format/git-hooks/markdown-check.test.sh +++ b/plugins/markdown-format/git-hooks/markdown-check.test.sh @@ -9,7 +9,7 @@ # Expected values are markdownlint's documented rules: a file must end with a single # newline (MD047) and an extra blank line goes (MD012), both fixable; inline HTML # is MD033/no-inline-html and has no fix. -# test-scope: plugins/markdown-format/git-hooks/entries.json plugins/markdown-format/git-hooks/markdown-gates.sh plugins/markdown-format/lib/git-hooks/check-lib.sh plugins/markdown-format/lib/git-hooks/install.mjs +# test-scope: plugins/markdown-format/git-hooks/entries.json plugins/markdown-format/git-hooks/markdown-gates.sh plugins/markdown-format/lib/git-hooks/check-lib.sh plugins/markdown-format/lib/git-hooks/install.mjs plugins/markdown-format/.claude-plugin/plugin.json set -uo pipefail unset GIT_DIR GIT_WORK_TREE GIT_CONFIG GIT_INDEX_FILE CLAUDECODE AI_AGENT CLAUDE_PLUGIN_DATA diff --git a/plugins/source-control/skills/babysit-prs/scripts/engine.test.sh b/plugins/source-control/skills/babysit-prs/scripts/engine.test.sh index d62621eb0a..64843e05b2 100755 --- a/plugins/source-control/skills/babysit-prs/scripts/engine.test.sh +++ b/plugins/source-control/skills/babysit-prs/scripts/engine.test.sh @@ -7,6 +7,7 @@ # repo test-runner convention for optional toolchains. # test-scope: plugins/source-control/*.md plugins/source-control/scripts/babysit-*.sh # test-scope: plugins/source-control/skills/babysit-prs/scripts/*.py plugins/source-control/skills/babysit-prs/scripts/babysit-python.sh ruff.toml +# test-scope: plugins/*/hooks/* .claude/source-control.md docs/conventions/pr-pipeline.yaml .github/actions/check-kill-switch/check-kill-switch.mjs .github/actions/check-trusted-trigger/check-trusted-trigger.mjs .github/scripts/pr-merge/carry-run-cache.mjs .github/scripts/pr-verify/resolve-pr.mjs plugins/source-control/lib/parse-concern-value.sh plugins/source-control/lib/yaml-subset.awk plugins/source-control/skills/babysit-loop/scripts/*.mjs plugins/source-control/skills/babysit-prs/scripts/tests/fixtures/*/*.json plugins/work-items/reference/escalation-marker.md set -uo pipefail # Resolve before the cd: BASH_SOURCE is the path as invoked, so re-deriving it diff --git a/plugins/verification/skills/setup/scripts/setup-apply.test.sh b/plugins/verification/skills/setup/scripts/setup-apply.test.sh index 3a314e3197..127a8ecb7f 100755 --- a/plugins/verification/skills/setup/scripts/setup-apply.test.sh +++ b/plugins/verification/skills/setup/scripts/setup-apply.test.sh @@ -3,6 +3,7 @@ # Each case builds its own repository root in a temp directory; expected values # come from the schema's allowed values (path, live, strict) and the script's stated # exit codes, not from the script's output. +# test-scope: plugins/verification/lib/parse-concern-value.sh set -uo pipefail unset GIT_DIR GIT_WORK_TREE GIT_CONFIG diff --git a/scripts/read-lane-broker-check.test.sh b/scripts/read-lane-broker-check.test.sh index 52d464669d..67fcf92d98 100755 --- a/scripts/read-lane-broker-check.test.sh +++ b/scripts/read-lane-broker-check.test.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# test-scope: .github/workflows/pr-run-activity-read.yml .github/actions/request-lane-token/action.yml +# test-scope: .github/workflows/pr-run-activity-read.yml .github/actions/request-lane-token/action.yml .github/standards/runner-policy/package.json # Runs the shell of two read-lane broker-check steps, lifted from their YAML, # against the cases the contract states # (docs/conventions/pr-pipeline/pr-run-activity.md, "The broker-check job"):