Update ansible test splitter with indirect node count targets#192
Open
brahmanim wants to merge 2 commits intoansible-network:mainfrom
Open
Update ansible test splitter with indirect node count targets#192brahmanim wants to merge 2 commits intoansible-network:mainfrom
brahmanim wants to merge 2 commits intoansible-network:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a new ability to trigger indirect node count targets by ansible_test_splitter based on the following logic:
This action reads elements to test from the
extensions\auditdirectory and corresponding tests from thetests/integration/targetsdirectory. Here are more details on the relationship betweenextensions\auditand integration test targets:node_query_or define theindirect_node_countline in thealiasesfile, when theevent_query.ymlfile changes.This PR also fixes a pre-commit issue:
.github/actions/ansible_test_splitter/list_changed_targets.py:63:4: R0912: Too many branches (14/12) (too-many-branches)