Skip to content

feat: Add a new tag indicating which step a workflow failed at#69

Merged
kenzoengineer merged 1 commit intomainfrom
kjiang/failed_step_info
Aug 28, 2025
Merged

feat: Add a new tag indicating which step a workflow failed at#69
kenzoengineer merged 1 commit intomainfrom
kjiang/failed_step_info

Conversation

@kenzoengineer
Copy link
Member

Motivation

It would be useful to see which stages a pipeline fails at most often, in order to better assess its overall health.

Idea

By adding a tag that indicates the step at which a workflow fails, we can split charts by stage in Sentry. For example, one could filter by repo and then group results by failure step.

Implementation

According to the workflow job API documentation, conclusion and steps are required keys in the job payload, so the key accesses should never fail. Additionally, this change introduces no new behavior for pipelines that complete without error.

@kenzoengineer kenzoengineer requested a review from a team as a code owner August 26, 2025 18:58
@kenzoengineer kenzoengineer merged commit 5a20b8f into main Aug 28, 2025
8 checks passed
@kenzoengineer kenzoengineer deleted the kjiang/failed_step_info branch August 28, 2025 21:10
@armenzg
Copy link
Member

armenzg commented Sep 3, 2025

Would it be possible to add tests for this?

@kenzoengineer
Copy link
Member Author

Would it be possible to add tests for this?

Good idea, let me add in a PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants