Skip to content

tests: benchmark crud json-lines: io throughput may round to 0 - #10066

Merged
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:fix-benchmark-crud-io
Aug 9, 2026
Merged

tests: benchmark crud json-lines: io throughput may round to 0#10066
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:fix-benchmark-crud-io

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

test_benchmark_crud_json_lines asserts entry["io"] > 0, but io is int(total_size / dt) — with the test's 1-byte samples it rounds to 0 whenever a CRUD operation takes ≥ 1 second. Seen failing on a loaded OpenBSD CI VM with 4 pytest-xdist workers in the PR #10064 CI run (the op took just over a second; everything else passed).

Relax the assertion to >= 0 with a comment; the type check stays.

🤖 Generated with Claude Code

io is int(bytes/second); with the test's 1-byte samples it is 0
whenever an operation takes >= 1 second, which happens on slow, loaded
CI VMs (seen on OpenBSD with 4 pytest-xdist workers).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ThomasWaldmann
ThomasWaldmann merged commit 613a45c into borgbackup:master Aug 9, 2026
17 of 18 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the fix-benchmark-crud-io branch August 9, 2026 16:47
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.65%. Comparing base (f9e6756) to head (d38a3cc).
⚠️ Report is 6 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10066      +/-   ##
==========================================
- Coverage   86.75%   86.65%   -0.11%     
==========================================
  Files          98       98              
  Lines       17098    17099       +1     
  Branches     2590     2589       -1     
==========================================
- Hits        14834    14817      -17     
- Misses       1570     1588      +18     
  Partials      694      694              

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

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