-
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
panic when submitting TaskRun #2220
Comments
I can reproduce with the modifications to the unit test you mentioned but I'm curious if you see this with all I have a fix that seems to work ok for the unit test example but I'd really like to see an example of a ClusterTask / TaskRun that's hitting the same error so that I can confirm my fix works for that too. Can you nail down what specifically in the ClusterTask configuration is the source of the problem or provide your ClusterTask for me to test? |
(Even just copy/pasting the output of |
So it looks like the problem happens when a step fails. |
Woo this is a doozy. The image digest exporter (part of the Image Output Resource) is configured with When a previous step has failed in the Task our entrypoint wrapping the exporter emits the following log line: That line gets read by the Tekton controller, which is looking for JSON in the termination message. It fails to parse the message from the image digest exporter and stops trying to read step statuses (here). That results in a mismatch in the length of the list of steps and the length of the list of step statuses and finally our sort method panics with an out of bounds error because it assumes the lengths of the two lists are the same. I'm working on a couple of fixes for this and will make a PR later today. |
Reopening until this is backported to 0.10 |
Marking as closed now that we've backported to 0.10 and released in 0.11. |
Expected Behavior
TaskRun to complete successfully
Actual Behavior
Controller panics
Steps to Reproduce the Problem
Additional Info
v0.10.1
The panic from the controller logs:
I've managed to modify the
./pkg/pod/status_test.go
file (TestSortTaskRunStepOrder
) to recreate the error:The text was updated successfully, but these errors were encountered: