Skip to content

Add action to run benchmarks - #1509

Open
dalonsoa wants to merge 3 commits into
mainfrom
1453_action_benchmarks
Open

Add action to run benchmarks#1509
dalonsoa wants to merge 3 commits into
mainfrom
1453_action_benchmarks

Conversation

@dalonsoa

Copy link
Copy Markdown
Collaborator

Description

The build and test action has been updated to run the benchmarks and publish the summary in the action itself, as well as creating an Alert comment in the relevant places wherever there has been a regression.

Fixes #1453

Type of change

  • Bug fix (non-breaking change to fix an issue)
  • New feature (non-breaking change to add functionality)
  • Refactoring (non-breaking, non-functional change to improve maintainability)
  • Optimization (non-breaking change to speed up the code)
  • Breaking change (whatever its nature)
  • Documentation (improve or add documentation)

Key checklist

  • All tests pass: $ cargo test
  • The documentation builds and looks OK: $ cargo doc
  • Update release notes for the latest release if this PR adds a new feature or fixes a bug
    present in the previous release

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added that prove fix is effective or that feature works

Copilot AI lite review requested due to automatic review settings August 25, 2026 16:05
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.31%. Comparing base (236974e) to head (bc62017).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1509   +/-   ##
=======================================
  Coverage   90.31%   90.31%           
=======================================
  Files          60       60           
  Lines        8663     8663           
  Branches     8663     8663           
=======================================
  Hits         7824     7824           
  Misses        525      525           
  Partials      314      314           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds benchmark execution and reporting to the existing CI workflow to address #1453 by running cargo bench in GitHub Actions and publishing benchmark results/alerts.

Changes:

  • Added a new benchmark job to run cargo bench on ubuntu-latest.
  • Integrated benchmark-action/github-action-benchmark@v1 to publish a job summary and comment on regressions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +44 to +56
benchmark:
name: Run benchmarks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7
- uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Run cargo bench
shell: bash
run: cargo bench --no-fail-fast | tee output.txt

- name: Store benchmark result
Comment thread .github/workflows/cargo-test.yml Outdated
Comment on lines +44 to +47
benchmark:
name: Run benchmarks
runs-on: ubuntu-latest

Comment on lines +59 to +62
tool: "cargo"
output-file-path: output.txt
external-data-json-path: ./cache/benchmark-data.json
fail-on-alert: true
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.

Add action to display information about benchmarks

2 participants