Skip to content

Fix coverage for test_benchmarks.py#251

Open
Vizonex wants to merge 23 commits into
aio-libs:masterfrom
Vizonex:coverage-change
Open

Fix coverage for test_benchmarks.py#251
Vizonex wants to merge 23 commits into
aio-libs:masterfrom
Vizonex:coverage-change

Conversation

@Vizonex
Copy link
Copy Markdown
Member

@Vizonex Vizonex commented May 23, 2026

What do these changes do?

This change omits a common problem with coverage that is causing a lot of workflows in this repo to fail which is in
tests/test_benchmarks.py This was a recommendation by the new ai agent.

Are there changes in behavior for the user?

Nope. The only thing this affects is contributors and maintainers.

Related issue number

#245 (This is to help it pass)
#245 (comment)

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided There is a change note present in this PR label May 23, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 23, 2026

Merging this PR will not alter performance

✅ 4 untouched benchmarks


Comparing Vizonex:coverage-change (ad45c98) with master (9d24e29)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (c4c92be) during the generation of this report, so 9d24e29 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c4c92be) to head (ad45c98).

❌ Your project check has failed because the head coverage (97.87%) is below the target coverage (98.20%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #251      +/-   ##
===========================================
+ Coverage   99.54%   100.00%   +0.45%     
===========================================
  Files          10        10              
  Lines         439       437       -2     
  Branches       17        17              
===========================================
  Hits          437       437              
+ Misses          2         0       -2     
Flag Coverage Δ
CI-GHA 97.94% <100.00%> (+0.44%) ⬆️
OS-Linux 97.94% <100.00%> (+0.44%) ⬆️
OS-Windows 94.96% <100.00%> (+0.43%) ⬆️
OS-macOS 94.96% <100.00%> (+0.43%) ⬆️
Py-3.10 94.96% <100.00%> (+0.43%) ⬆️
Py-3.11 96.56% <100.00%> (+0.43%) ⬆️
Py-3.12 96.56% <100.00%> (+0.43%) ⬆️
Py-3.13 96.56% <100.00%> (+0.43%) ⬆️
Py-3.14 96.54% <100.00%> (+0.44%) ⬆️
Py-3.14t 96.54% <100.00%> (+0.44%) ⬆️
Py-pypy-3.10 78.48% <100.00%> (+0.35%) ⬆️
VM-macos-latest 94.96% <100.00%> (+0.43%) ⬆️
VM-ubuntu-latest 97.94% <100.00%> (+0.44%) ⬆️
VM-windows-11-arm 94.73% <100.00%> (+0.43%) ⬆️
VM-windows-latest 94.96% <100.00%> (+0.43%) ⬆️
pytest 97.94% <100.00%> (+0.44%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@Vizonex Vizonex changed the title Omit coverage for test_benchmarks.py Fix coverage for test_benchmarks.py May 23, 2026
Copy link
Copy Markdown
Member

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

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

Besides the suggestions below, plz look into the possibility to integrate covdefaults into the project in a follow-up PR.

Comment thread tests/test_benchmarks.py Outdated
Comment thread tests/test_benchmarks.py Outdated
bools
changelog
changelogs
codspeed
Copy link
Copy Markdown
Member

@Dreamsorcerer Dreamsorcerer May 23, 2026

Choose a reason for hiding this comment

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

These are libraries, I think it's better to just surround the words with backticks like code, rather than filling the spelling list with all of them.

Comment thread tests/test_benchmarks.py
Comment thread tests/test_benchmarks.py
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Comment thread tests/test_benchmarks.py
@@ -1,16 +1,20 @@
"""codspeed benchmarks for propcache."""

import typing as _t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided There is a change note present in this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants