Skip to content

fix: ensure benchmark results are uploaded and commented on failure#673

Merged
bnusunny merged 1 commit intomainfrom
fix/benchmark-workflow-always-upload
Mar 20, 2026
Merged

fix: ensure benchmark results are uploaded and commented on failure#673
bnusunny merged 1 commit intomainfrom
fix/benchmark-workflow-always-upload

Conversation

@bnusunny
Copy link
Copy Markdown
Contributor

Changes

  • benchmark.yaml: Add if: always() to the "Save benchmark results" and "Upload benchmark results" steps so artifacts are available even when the benchmark job fails.
  • benchmark-comment.yaml: Update the condition to only trigger the comment job when the benchmark workflow run concludes with failure, ensuring regression comments are posted on failed runs.

Why

Previously, if the benchmark step failed (e.g. due to a regression), the results artifact was never uploaded, so the comment workflow had nothing to download and couldn't post the regression notice on the PR.

- Add 'if: always()' to save and upload benchmark results steps so
  artifacts are available even when the benchmark fails
- Update benchmark-comment workflow to only trigger when the benchmark
  run concludes with failure
@bnusunny bnusunny merged commit 29a5223 into main Mar 20, 2026
6 checks passed
@bnusunny bnusunny deleted the fix/benchmark-workflow-always-upload branch March 20, 2026 15:21
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.

1 participant