Skip to content

feat(ui): display non-zero tasks exit codes in pipeline UI - #9527

Merged
taylorsilva merged 3 commits into
concourse:masterfrom
arakakimarcelo:feat/issue-2673
Apr 14, 2026
Merged

taylorsilva merged 3 commits into
concourse:masterfrom
arakakimarcelo:feat/issue-2673

Conversation

@arakakimarcelo

Copy link
Copy Markdown
Contributor

Description

Resolves #2673.

This PR introduces an enhancement to the Concourse Pipeline UI. Previously, when a task step failed inside a pipeline, users had to painstakingly dig through verbose logs just to locate the numeric UNIX Exit Status of the task.
While the ATC engine safely broadcasts the ExitStatus integer via the FinishTask event, the Elm component Output.elm natively discarded this integer after evaluating whether it evaluated to 0 or not to assign StepStateSucceeded / StepStateFailed.
This modification wires the exit status deeply into the Elm components, storing exitStatus : Maybe Int in the Step View's Data Model natively, preventing its loss. It introduces a lightweight error label right next to the Step State icon. Now, when the task concludes with a non-zero exit status, the [exit: 1] signature is conspicuously displayed next to the task's failure status, heavily accelerating debug times.

Changes

  • web/elm/src/Build/StepTree/Models.elm: Updated Step structure to track exitStatus : Maybe Int.
  • web/elm/src/Build/Output/Output.elm: Created setStepExitStatus and piped exitStatus natively from incoming finish-task WebSocket envelopes into the state manager explicitly discarding the (exit_status == 0) boolean trap.
  • web/elm/src/Build/StepTree/StepTree.elm: Attached an exit: N markup block adjacent to viewStepState.
Elm Compilation verification npx --yes elm make src/Main.elm Success! Compiled 7 modules.

Display the status

Captura de Tela 2026-04-12 às 14 55 05

@arakakimarcelo
arakakimarcelo requested a review from a team April 12, 2026 17:57
Signed-off-by: Taylor Silva <[email protected]>

@taylorsilva taylorsilva left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I added a commit to fix yarn benchmark. I'll merge once all the checks pass.

Image Image

@taylorsilva taylorsilva moved this from Todo to In Progress in Pull Requests Apr 14, 2026
@taylorsilva taylorsilva changed the title feat(ui): display non-zero tasks exit codes in pipeline UI (#2673) feat(ui): display non-zero tasks exit codes in pipeline UI Apr 14, 2026
@taylorsilva
taylorsilva merged commit 748363b into concourse:master Apr 14, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Pull Requests Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

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

2 participants