Skip to content

Conversation

@414owen
Copy link
Contributor

@414owen 414owen commented Dec 22, 2024

Alerts are currently generated by throwing an exception. This means that all code that comes after that exception is skipped, including generating the Action summary.

We can easily fix this, by generating the summary first.

Longer term, we might want to reconsider the code style here. An exception should model something exceptional happening in our code. Seeing bad benchmark numbers is not exceptional. It's what this tool is supposed to handle.

Closes #254

Alerts are currently generated by throwing an exception. This means that
all code that comes after that exception is skipped, including generating
the Action summary.

We can easily fix this, by generating the summary first.

Longer term, we might want to reconsider the code style here.
An exception should model something exceptional happening in our code.
Seeing bad benchmark numbers is not exceptional. It's what this tool is
supposed to handle.

Closes benchmark-action#254
@kealjones-wk
Copy link

@ktrz could we get this merged? it would be a very nice quality of life fix :)

Copy link
Member

@ktrz ktrz left a comment

Choose a reason for hiding this comment

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

Thank you for submitting this change!

@ktrz ktrz merged commit 25797e0 into benchmark-action:master Mar 12, 2025
@ktrz
Copy link
Member

ktrz commented Sep 2, 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.

Action Will Not Create Summary Tables if Performance Alerts Occur

3 participants