Skip to content

Skip the parser benchmark when pytest-benchmark is incompatible - #1245

Open
rbizos wants to merge 1 commit into
prometheus:masterfrom
rbizos:fix/skip-incompatible-pytest-benchmark
Open

rbizos wants to merge 1 commit into
prometheus:masterfrom
rbizos:fix/skip-incompatible-pytest-benchmark

Conversation

@rbizos

@rbizos rbizos commented Oct 28, 2026

Copy link
Copy Markdown

pytest 9.2 (released 2026-10-27) removed Node._nodeid, which
pytest-benchmark 5.3.0 and older still read
(ionelmc/pytest-benchmark#321, fix in ionelmc/pytest-benchmark#323). Since
then test_benchmark_text_string_to_metric_families errors at setup on
every CI run.

Skip that test when pytest no longer has Node._nodeid and pytest-benchmark
is 5.3.0 or older, instead of pinning pytest for the whole suite. It runs
again on its own once pytest-benchmark releases a fix.

@csmarchbanks

pytest 9.2 removed Node._nodeid, which pytest-benchmark 5.3.0 and older
still read (ionelmc/pytest-benchmark#321), so the benchmark test errors at
setup. Skip it in that case; it runs again once pytest-benchmark releases a
fix.

Signed-off-by: Raphael Bizos <r.bizos@criteo.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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