Skip to content

tests: date: filter runs local,binary (drop remote)#9920

Merged
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:date-filter-drop-remote
Jul 21, 2026
Merged

tests: date: filter runs local,binary (drop remote)#9920
ThomasWaldmann merged 1 commit into
borgbackup:masterfrom
ThomasWaldmann:date-filter-drop-remote

Conversation

@ThomasWaldmann

Copy link
Copy Markdown
Member

Follow-up to #8776.

The date: archive match selector (added in #8776) is client-side manifest filtering — it has no transport-specific behavior. Its test file was running with kinds="local,remote,binary", but the remote kind adds no coverage here.

Per the kind-picking policy documented in src/borg/testsuite/archiver/__init__.py (introduced by the #9324 testsuite speedup), remote should only be used where a backend genuinely branches its implementation per transport; pure command/formatting logic belongs in the local,binary bucket.

This file expands to ~33 test instances, each creating a repo and archives, so the remote leg was spawning ~33 REST-server round-trip sessions for zero extra coverage. This drops remote:

kinds="local,remote,binary"  ->  kinds="local,binary"

🤖 Generated with Claude Code

The date: archive match selector is client-side manifest filtering with no
transport-specific behavior, so the "remote" archiver kind adds no coverage.
Per the kind-picking policy in testsuite/archiver/__init__.py (borgbackup#9324), pure
command/formatting logic belongs in the local,binary bucket. Dropping remote
avoids ~33 needless REST-server round-trip sessions for this file.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9920      +/-   ##
==========================================
+ Coverage   85.38%   85.44%   +0.06%     
==========================================
  Files          93       93              
  Lines       16012    16099      +87     
  Branches     2444     2464      +20     
==========================================
+ Hits        13672    13756      +84     
- Misses       1632     1634       +2     
- Partials      708      709       +1     

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

@ThomasWaldmann
ThomasWaldmann merged commit 27777ae into borgbackup:master Jul 21, 2026
19 checks passed
@ThomasWaldmann
ThomasWaldmann deleted the date-filter-drop-remote branch July 21, 2026 09:15
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