Skip to content

Conversation

@sowecthal
Copy link
Contributor

@sowecthal sowecthal commented Oct 16, 2025

Summary

Task: SD-1405

  • update get-failed-info step
  • add get, list, watch taskruns permissions to the -build-pipeline role

Updated how info about failed taskRuns/steps is obtained

Before, info about the reason why taskRun's step was terminated (Error/Skipped) was obtained directly from the pipelineRun's status field, but since then the schema changed (https://tekton.dev/docs/pipelines/pipelineruns/#the-status-field). Currently pipelineRun has a childReferences field that's a list of references to each taskRun:

image

The updated get-failed-info step gets the names of these taskRuns, iterates through their outputs, filters them to get the names of the failed pod, task and step from the taskRun that has the Failed status condition with the step that has an Error termination reason (and not Skipped):

image

Tested on pga-staging

image

@sowecthal sowecthal marked this pull request as ready for review October 21, 2025 05:30
@saritasa-github-settings saritasa-github-settings bot marked this pull request as draft October 21, 2025 06:46
@sowecthal sowecthal marked this pull request as ready for review October 21, 2025 09:13
@sowecthal sowecthal merged commit bdd3620 into main Nov 5, 2025
7 checks passed
@sowecthal sowecthal deleted the feature/update-get-failed-info-step branch November 5, 2025 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.