From b3e9807b8a114f99084659b915f369f5631ccf0d Mon Sep 17 00:00:00 2001 From: Alina Buzachis Date: Wed, 23 Mar 2022 16:41:28 +0100 Subject: [PATCH] Prevent CI to be run for whole collection (#728) Prevent CI to be run for whole collection 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 Reviewed-by: Alina Buzachis (cherry picked from commit 6d0e29481f01d478c8f24e4a5198285d3b76c2cf) --- 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