Skip to content

Improve metrics for builds that fail #1746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Improve metrics for builds that fail #1746

merged 1 commit into from
Feb 12, 2025

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Feb 11, 2025

Adds a failure_detail field in addition to the existing failure_reason, which contains additional context relevant to the failure where available. This will make it easier to find trends in the most frequent user-caused failure modes (eg invalid Python version specifier) so I can then adjust error messages/docs/implementation to improve UX.

This context sometimes contain user input, so the values saved to the metadata store now also have additional escaping and validation performed before writing the value (in addition to the existing YAML escaping performed in bin/report).

GUS-W-17800067.

@edmorley edmorley self-assigned this Feb 11, 2025
@edmorley edmorley marked this pull request as ready for review February 11, 2025 15:04
@edmorley edmorley requested a review from a team as a code owner February 11, 2025 15:04
@edmorley edmorley enabled auto-merge (squash) February 11, 2025 15:05
Adds a `failure_detail` field in addition to the existing `failure_reason`,
which contains additional context relevant to the failure where available.
This will make it easier to find trends in the most frequent user-caused
failure modes (eg invalid Python version specifier) so I can then adjust
error messages/docs/implementation to improve UX.

This context sometimes contain user input, so the values saved to the
metadata store now also have additional escaping and validation
performed before writing the value (in addition to the existing YAML
escaping performed in `bin/report`).

GUS-W-17800067.
@edmorley edmorley merged commit 20a7829 into main Feb 12, 2025
7 checks passed
@edmorley edmorley deleted the failure-details branch February 12, 2025 11:16
@heroku-linguist heroku-linguist bot mentioned this pull request Feb 17, 2025
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.

2 participants