Skip to content

Show exit code on task UI (particularly if non-zero) #2673

Closed

Description

@chrishiestand

I like the concourse approach to feature requests, very well done!

What challenge are you facing?

I had a task repeatedly fail on a busy concourse cluster. The task was a bash script running in a linux container. There were no visible indications, or errors output, of what went wrong. It took some digging through the noisy logs to find the exit code to help me troubleshoot the problem. I also tried hijacking the container and adding debug output to help find the problem. But the key to understanding the problem was the exit code which was buried in the logs.

What would make this better?

It would have been helpful if the UI showed the non-zero exit code, 141 in this case. I don't think I'd care whether or not success exit codes, 0, were shown.

Are you interested in implementing this yourself?

Not at the moment. This is a "if you happen to be updating the UI and think this would be a good idea" request. If you don't think this request is worthwhile, or if it doesn't make sense for all tasks to show an error exit code (eg I don't know what happens on Windows), then feel free to close this.

Activity

  1. Lindsayauchin commented on Oct 26, 2018

    @Lindsayauchin
    Contributor

    A possible solution to add the error next to the x on the task that is collapsed.
    screen shot 2018-10-26 at 10 36 54 am

  2. coofercat commented on Jun 18, 2019

    @coofercat

    I'd be happy to see it at the bottom of the (expanded) output for a task. That is, something like:

    >_ build
    
    12:27:12   + set +x
    12:27:12   Git version is fca8c502
    12:27:12   sh: cd: line 10: can't cd to code/terraform: No such file or directory
    
    Task exit code 1
    

    Not directly related, but it'd also be great to be able to set concourse status by exit code (so you could say "failed" (red) or "aborted" (brown) or other states not yet available like "won't do" or whatever else.

  3. changed the title [-]Wishlist: Show exit code on task UI (particularly if non-zero)[/-] [+]Show exit code on task UI (particularly if non-zero)[/+] on Jan 6, 2025
  4. chuxubank commented on Aug 22, 2025

    @chuxubank

    Really need it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions