-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
TaskRun emits no event when it fails on timeout #2328
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
/kind bug |
/assign |
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 5, 2020
Start emitting events for additional TaskRun lifecyle events: - taskrun started - taskrun timeout Introduce pre-run and post-run functions that are invoked asynchronously when the taskrun starts and completes, to emit events. These same functions shall be used to trigger any other async behaviour on start/stop of taskruns. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
3 tasks
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 5, 2020
Start emitting events for additional TaskRun lifecyle events: - taskrun started - taskrun timeout Introduce pre-run and post-run functions that are invoked asynchronously when the taskrun starts and completes, to emit events. These same functions shall be used to trigger any other async behaviour on start/stop of taskruns. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 9, 2020
Start emitting events for additional TaskRun lifecyle events: - taskrun started - taskrun timeout Introduce pre-run and post-run functions that are invoked asynchronously when the taskrun starts and completes, to emit events. These same functions shall be used to trigger any other async behaviour on start/stop of taskruns. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 16, 2020
Start emitting events for additional TaskRun lifecyle events: - taskrun started - taskrun timeout Introduce pre-run and post-run functions that are invoked asynchronously when the taskrun starts and completes, to emit events. These same functions shall be used to trigger any other async behaviour on start/stop of taskruns. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 16, 2020
Start emitting events for additional TaskRun lifecyle events: - taskrun started - taskrun timeout Introduce pre-run and post-run functions that are invoked asynchronously when the taskrun starts and completes, to emit events. These same functions shall be used to trigger any other async behaviour on start/stop of taskruns. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 26, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun timeout Introduce pre-run and post-run functions that are invoked asynchronously when the taskrun starts and completes, to emit events. These same functions shall be used to trigger any other async behaviour on start/stop of taskruns. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 27, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun timeout Fix broken EmitEvents unit tests and extend them to cover new functionality. Introduce pre-run and post-run functions that are invoked asynchronously when the taskrun starts and completes, to emit events. These same functions shall be used to trigger any other async behaviour on start/stop of taskruns. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 28, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun running - taskrun timeout Fix the logic in events.go to compare semantic equality as opposed to raw pointer equality. Fix broken EmitEvents unit tests and extend them to cover new functionality. Extend reconcile test to verify new events are sent. To do so, get the event recorder from the context when creating the controller - if avaialble. This allows using the fake recorder for testing instead of having to look for event related actions in the fake client go action list. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 28, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun running - taskrun timeout Fix the logic in events.go to compare semantic equality as opposed to raw pointer equality. Fix broken EmitEvents unit tests and extend them to cover new functionality. Extend reconcile test to verify new events are sent. To do so, get the event recorder from the context when creating the controller - if avaialble. This allows using the fake recorder for testing instead of having to look for event related actions in the fake client go action list. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 28, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun running - taskrun timeout Fix the logic in events.go to compare semantic equality as opposed to raw pointer equality. Fix broken EmitEvents unit tests and extend them to cover new functionality. Extend reconcile test to verify new events are sent. To do so, get the event recorder from the context when creating the controller - if avaialble. This allows using the fake recorder for testing instead of having to look for event related actions in the fake client go action list. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
Apr 28, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun running - taskrun timeout Fix the logic in events.go to compare semantic equality as opposed to raw pointer equality. Fix broken EmitEvents unit tests and extend them to cover new functionality. Extend reconcile test to verify new events are sent. To do so, get the event recorder from the context when creating the controller - if avaialble. This allows using the fake recorder for testing instead of having to look for event related actions in the fake client go action list. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
May 1, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun running - taskrun timeout Fix the logic in events.go to compare semantic equality as opposed to raw pointer equality. Fix broken EmitEvents unit tests and extend them to cover new functionality. Extend reconcile test to verify new events are sent. To do so, get the event recorder from the context when creating the controller - if avaialble. This allows using the fake recorder for testing instead of having to look for event related actions in the fake client go action list. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
afrittoli
added a commit
to afrittoli/pipeline
that referenced
this issue
May 1, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun running - taskrun timeout Fix the logic in events.go to compare semantic equality as opposed to raw pointer equality. Fix broken EmitEvents unit tests and extend them to cover new functionality. Extend reconcile test to verify new events are sent. To do so, get the event recorder from the context when creating the controller - if avaialble. This allows using the fake recorder for testing instead of having to look for event related actions in the fake client go action list. Add documentation on events. Fixes tektoncd#2328 Work towards tektoncd#2082
tekton-robot
pushed a commit
that referenced
this issue
May 1, 2020
Emit events for additional TaskRun lifecyle events: - taskrun started - taskrun running - taskrun timeout Fix the logic in events.go to compare semantic equality as opposed to raw pointer equality. Fix broken EmitEvents unit tests and extend them to cover new functionality. Extend reconcile test to verify new events are sent. To do so, get the event recorder from the context when creating the controller - if avaialble. This allows using the fake recorder for testing instead of having to look for event related actions in the fake client go action list. Add documentation on events. Fixes #2328 Work towards #2082
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
When the task finishes, even in case of timeout, an event is emitted.
Actual Behavior
There's no event generated
Steps to Reproduce the Problem
TaskRun
:Additional Info
master
, afterv0.11.0
The text was updated successfully, but these errors were encountered: