Skip to content

chore: Run only the changed submodule's tests for test-only PRs#5936

Merged
lucasjia-aws merged 1 commit into
aws:masterfrom
lucasjia-aws:fix/canaries-v3
Jun 10, 2026
Merged

chore: Run only the changed submodule's tests for test-only PRs#5936
lucasjia-aws merged 1 commit into
aws:masterfrom
lucasjia-aws:fix/canaries-v3

Conversation

@lucasjia-aws

Copy link
Copy Markdown
Collaborator

Previously detect-changes treated any change under a submodule as a source change, recursively pulling in all dependent submodules. For PRs that only touch a submodule's tests/ directory this ran the full suite unnecessarily.

Add is_source_changed() and split detection into two passes: source changes still propagate to dependents, while test-only changes add just the changed submodule without propagation.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Previously detect-changes treated any change under a submodule as a
source change, recursively pulling in all dependent submodules. For
PRs that only touch a submodule's tests/ directory this ran the full
suite unnecessarily.

Add is_source_changed() and split detection into two passes: source
changes still propagate to dependents, while test-only changes add
just the changed submodule without propagation.
@lucasjia-aws lucasjia-aws merged commit 6e3a6b4 into aws:master Jun 10, 2026
6 checks passed
@lucasjia-aws lucasjia-aws deleted the fix/canaries-v3 branch June 11, 2026 22:20
guanweim pushed a commit to guanweim/sagemaker-python-sdk that referenced this pull request Jun 15, 2026
…5936)

Previously detect-changes treated any change under a submodule as a
source change, recursively pulling in all dependent submodules. For
PRs that only touch a submodule's tests/ directory this ran the full
suite unnecessarily.

Add is_source_changed() and split detection into two passes: source
changes still propagate to dependents, while test-only changes add
just the changed submodule without propagation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants