From 8610032f4a130cb5093790618b464664dac0052b Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 12 Apr 2022 09:27:26 +0000 Subject: [PATCH] Prevent CI to be run for whole collection (#728) (#731) [PR #728/6d0e2948 backport][stable-2] Prevent CI to be run for whole collection This is a backport of PR #728 as merged into main (6d0e294). SUMMARY Add a fake integration suite including an aliases file listing every module name with missing integration tests. This fake suite is necessary for the new CI ansible-test-splitter behaviour. If one of the modules (listed in the aliases file) without a test suite is modified, the CI is run for the entire collection since the ansible-test-splitter won't find any target match. This fake integration suite helps handle this situation by avoiding running the CI for the whole collection. Furthermore, since the modules listed in the aliases file are marked as disabled, tests are automatically skipped. Track Issue: #729 ISSUE TYPE Feature Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mark Chappell --- tests/integration/targets/legacy_missing_tests/README.md | 5 +++++ tests/integration/targets/legacy_missing_tests/aliases | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/integration/targets/legacy_missing_tests/README.md create mode 100644 tests/integration/targets/legacy_missing_tests/aliases diff --git a/tests/integration/targets/legacy_missing_tests/README.md b/tests/integration/targets/legacy_missing_tests/README.md new file mode 100644 index 00000000000..03b5bdc0d38 --- /dev/null +++ b/tests/integration/targets/legacy_missing_tests/README.md @@ -0,0 +1,5 @@ +## Fake integration suite + +This is a fake integration suite including an aliases file listing every module name with missing integration tests (some of them are covered by units). + +This fake suite is necessary for the new CI ansible-test-splitter behaviour. Namely, if one of the modules (listed in the aliases file) without a test suite is modified, the CI is run for the entire collection since the ansible-test-splitter won't find any target match. This fake integration suite helps handle this situation by avoiding running the CI for the whole collection. Furthermore, since the modules listed in the aliases file are marked as disabled, tests are automatically skipped. \ No newline at end of file diff --git a/tests/integration/targets/legacy_missing_tests/aliases b/tests/integration/targets/legacy_missing_tests/aliases new file mode 100644 index 00000000000..fb5cfadcb8d --- /dev/null +++ b/tests/integration/targets/legacy_missing_tests/aliases @@ -0,0 +1,7 @@ +disabled + +# Lookup plugins +aws_ssm # covered by unit tests + +# Callback plugin +aws_resource_actions