-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Make it so callback plugins can act on implicit/explicit meta tasks #71009
Merged
relrod
merged 11 commits into
ansible:devel
from
relrod:plugins/callback-strategy/metahook
Aug 18, 2020
Merged
Make it so callback plugins can act on implicit/explicit meta tasks #71009
relrod
merged 11 commits into
ansible:devel
from
relrod:plugins/callback-strategy/metahook
Aug 18, 2020
Conversation
This file contains 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
relrod
changed the title
Plugins/callback strategy/metahook
Add v2_playbook_on_meta_start callback hook
Jul 31, 2020
ansibot
added
affects_2.11
core_review
In order to be merged, this PR must follow the core review workflow.
feature
This issue/PR relates to a feature request.
has_issue
needs_triage
Needs a first human triage before being processed.
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
Jul 31, 2020
relrod
force-pushed
the
plugins/callback-strategy/metahook
branch
from
July 31, 2020 04:32
11e5faf
to
342874d
Compare
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
core_review
In order to be merged, this PR must follow the core review workflow.
and removed
core_review
In order to be merged, this PR must follow the core review workflow.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
labels
Jul 31, 2020
Instead of creating a new event, we should just issue existing 'task events', but only for explicit meta task from playbooks. We could add an 'internal' property to the meta tasks we auto generate and skip issuing callbacks for those. |
samdoran
removed
the
needs_triage
Needs a first human triage before being processed.
label
Aug 4, 2020
relrod
force-pushed
the
plugins/callback-strategy/metahook
branch
from
August 4, 2020 21:29
342874d
to
b5cf6a3
Compare
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
Aug 4, 2020
relrod
force-pushed
the
plugins/callback-strategy/metahook
branch
from
August 9, 2020 06:07
ca3791d
to
26e0d1d
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
docs
This issue/PR relates to or includes documentation.
docsite
This issue/PR relates to the documentation website.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
ci_verified
Changes made in this PR are causing tests to fail.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Aug 9, 2020
relrod
changed the title
WIP: Make it so callback plugins can act on implicit/explicit meta tasks
Make it so callback plugins can act on implicit/explicit meta tasks
Aug 12, 2020
ansibot
added
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
WIP
This issue/PR is a work in progress. Nevertheless it was shared for getting input from peers.
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Aug 12, 2020
bcoca
reviewed
Aug 13, 2020
s-hertel
reviewed
Aug 17, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Change: - Introduces a new `v2_playbook_on_meta_start` hook in callback - Calls it in strategy _execute_meta() Test Plan: - New integration tests Tickets: - Indrectly fixes ansible#71007 by allowing custom callbacks with this data Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
Signed-off-by: Rick Elrod <rick@elrod.me>
relrod
force-pushed
the
plugins/callback-strategy/metahook
branch
from
August 18, 2020 18:54
c42a3e4
to
f657b22
Compare
ansibot
added
core_review
In order to be merged, this PR must follow the core review workflow.
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
and removed
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
core_review
In order to be merged, this PR must follow the core review workflow.
labels
Aug 18, 2020
relrod
added a commit
to relrod/ansible
that referenced
this pull request
Aug 19, 2020
Change: - Make them more consistent with other tasks. Test Plan: - CI, new test Tickets: - Refs ansible#71009 Signed-off-by: Rick Elrod <rick@elrod.me>
bcoca
pushed a commit
to bcoca/ansible
that referenced
this pull request
Aug 19, 2020
…nsible#71009) Change: - Now sends meta tasks to the task start callback - Lets callback plugins opt-in to receiving implicit tasks Test Plan: - New integration tests Tickets: - Indirectly fixes ansible#71007 by allowing custom callbacks with this data Signed-off-by: Rick Elrod <rick@elrod.me>
relrod
added a commit
that referenced
this pull request
Aug 20, 2020
Change: - Make them more consistent with other tasks. Test Plan: - CI, new test Tickets: - Refs #71009 Signed-off-by: Rick Elrod <rick@elrod.me>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
affects_2.11
docs
This issue/PR relates to or includes documentation.
docsite
This issue/PR relates to the documentation website.
feature
This issue/PR relates to a feature request.
has_issue
needs_revision
This PR fails CI tests or a maintainer has requested a review/revision of the PR.
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.
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.
SUMMARY
Allow callbacks to receive
meta
tasksChange:
meta
executions tov2_playbook_on_task_start
Test Plan:
Tickets:
Signed-off-by: Rick Elrod rick@elrod.me
ISSUE TYPE
COMPONENT NAME