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

The output of the "failed" taskrun is not correct #1905

Closed
vincent-pli opened this issue Jan 21, 2020 · 1 comment
Closed

The output of the "failed" taskrun is not correct #1905

vincent-pli opened this issue Jan 21, 2020 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@vincent-pli
Copy link
Member

Expected Behavior

I got a failed taskrun and use kubectl describe taskrun xxxx try to found what's going on.
And it tell me that:

Warning  Failed  10m   taskrun-controller  "step-pr-source-pullrequest-4cxr4" exited with code 1 (image: "docker.io/vincentpli/pullrequest-init-4e60f6acf9725cba4c9b0c81d0ba89b8@sha256:d4e18b1212147c60c52d4189329b2553c0601f76da2282af9288fa82eeb21e89"); for logs run: kubectl -n default logs pullrequest-pod-dqfjf -c step-pr-source-pullrequest-4cxr4

That's great, but the container the message hinted is not correct, actually another container several steps before it caused the exception.

Actual Behavior

Point to a incorrect container.

Additional Info

The pod.podstatus.containerStatuses is sorted by name, the behavior cannot satisfy us, should sort by the finishedAt

@vdemeester
Copy link
Member

/kind bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants