Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not keep empty blocks after tag filtering #69987

Merged
merged 1 commit into from Jun 10, 2020

Conversation

mkrizek
Copy link
Contributor

@mkrizek mkrizek commented Jun 10, 2020

SUMMARY

This prevents PlayIterator having to go through empty blocks
that were created in filter_tagged_tasks. This should
be a performance improvement for playbooks that mostly skip
tasks with tags.

ci_complete

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lib/ansible/playbook/block.py

This prevents PlayIterator having to go through empty blocks
that were created in filter_tagged_tasks. This should
be a performance improvement for playbooks that mostly skip
tasks with tags.

ci_complete
@ansibot ansibot added affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. needs_triage Needs a first human triage before being processed. performance support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jun 10, 2020
@ansibot
Copy link
Contributor

ansibot commented Jun 10, 2020

The test ansible-test sanity --test pylint [explain] failed with 1 error:

lib/ansible/plugins/callback/default.py:91:16: ansible-deprecated-no-collection-name: No collection name found in call to Display.deprecated or AnsibleModule.deprecate

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

lib/ansible/plugins/callback/default.py:92:36: E128: continuation line under-indented for visual indent

click here for bot help

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Jun 10, 2020
@jimi-c jimi-c merged commit ac20466 into ansible:devel Jun 10, 2020
@mkrizek mkrizek removed the needs_triage Needs a first human triage before being processed. label Jun 11, 2020
@mkrizek mkrizek deleted the purge-empty-blocks branch June 11, 2020 05:21
mkrizek added a commit to mkrizek/ansible that referenced this pull request Jun 11, 2020
This prevents PlayIterator having to go through empty blocks
that were created in filter_tagged_tasks. This should
be a performance improvement for playbooks that mostly skip
tasks with tags.

ci_complete

(cherry picked from commit ac20466)
nitzmahone pushed a commit that referenced this pull request Jun 17, 2020
This prevents PlayIterator having to go through empty blocks
that were created in filter_tagged_tasks. This should
be a performance improvement for playbooks that mostly skip
tasks with tags.

ci_complete

(cherry picked from commit ac20466)
@ansible ansible locked and limited conversation to collaborators Jul 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.10 This issue/PR affects Ansible v2.10 bug This issue/PR relates to a bug. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. performance support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants