Skip to content

fix(prometheus): disable libtest bench harness to fix benchmark CI#3519

Merged
cijothomas merged 1 commit into
open-telemetry:mainfrom
souyang-dev:fix/benchmark-prometheus-bench-false
May 18, 2026
Merged

fix(prometheus): disable libtest bench harness to fix benchmark CI#3519
cijothomas merged 1 commit into
open-telemetry:mainfrom
souyang-dev:fix/benchmark-prometheus-bench-false

Conversation

@souyang-dev

@souyang-dev souyang-dev commented May 15, 2026

Copy link
Copy Markdown
Contributor

When opentelemetry-prometheus was restored to the workspace in #3500, the [lib] section with bench = false was not added. This causes criterion-compare-action to fail because cargo bench invokes the default libtest harness for the prometheus crate, which does not understand Criterion-specific flags like --save-baseline.

It has caused CI failure in PR #3473 : https://github.com/open-telemetry/opentelemetry-rust/actions/runs/25944571790/job/76269789635?pr=3473

Every other workspace member already has [lib] bench = false.

Fixes #
Design discussion issue (if applicable) #

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

When opentelemetry-prometheus was restored to the workspace in open-telemetry#3500,
the [lib] section with bench = false was not added. This causes
criterion-compare-action to fail because cargo bench invokes the
default libtest harness for the prometheus crate, which does not
understand Criterion-specific flags like --save-baseline.

Every other workspace member already has [lib] bench = false.
@souyang-dev souyang-dev requested a review from a team as a code owner May 15, 2026 23:18
@codecov

codecov Bot commented May 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.8%. Comparing base (8db5a12) to head (b98837e).

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3519   +/-   ##
=====================================
  Coverage   82.8%   82.8%           
=====================================
  Files        130     130           
  Lines      27289   27289           
=====================================
  Hits       22622   22622           
  Misses      4667    4667           

☔ View full report in Codecov by Sentry.
📢 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.

@cijothomas cijothomas added this pull request to the merge queue May 18, 2026
Merged via the queue into open-telemetry:main with commit b1393e3 May 18, 2026
27 checks passed
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