Repository navigation
feat(ui): display non-zero tasks exit codes in pipeline UI - #9527
Merged
Merged
Conversation
Signed-off-by: Taylor Silva <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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
ExitStatusinteger via the FinishTask event, the Elm component Output.elm natively discarded this integer after evaluating whether it evaluated to0or not to assignStepStateSucceeded/StepStateFailed.This modification wires the exit status deeply into the Elm components, storing
exitStatus : Maybe Intin 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
exitStatus : Maybe Int.setStepExitStatusand pipedexitStatusnatively from incomingfinish-taskWebSocket envelopes into the state manager explicitly discarding the (exit_status == 0) boolean trap.exit: Nmarkup block adjacent toviewStepState.Elm Compilation verification
npx --yes elm make src/Main.elm Success! Compiled 7 modules.Display the status