Skip to content

Conversation

@coryan
Copy link
Collaborator

@coryan coryan commented Aug 19, 2025

Specify ranged reads using a safe type, which does not permit invalid
ranges (such as negative length limits). No need to have a ReadError
if the request is well-defined by construction.

Fixes #2849

@codecov
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.19%. Comparing base (f5ffd2b) to head (25fac72).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2924      +/-   ##
==========================================
+ Coverage   96.17%   96.19%   +0.01%     
==========================================
  Files         105      105              
  Lines        4394     4411      +17     
==========================================
+ Hits         4226     4243      +17     
  Misses        168      168              

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

coryan added 2 commits August 20, 2025 01:40
Specify ranged reads using a safe type, which does not permit invalid
ranges (such as negative length limits). No need to have a `ReadError`
if the request is well-defined by construction.
@coryan coryan force-pushed the cleanup-storage-bang-safe-read-range-enum branch from fe01211 to 086e388 Compare August 20, 2025 05:41
@coryan coryan marked this pull request as ready for review August 20, 2025 05:48
@coryan coryan requested a review from a team as a code owner August 20, 2025 05:48
Copy link
Member

@dbolduc dbolduc left a comment

Choose a reason for hiding this comment

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

Looks good, but there might be a bug predating this PR for the tail case

@coryan coryan enabled auto-merge (squash) August 20, 2025 15:46
@coryan coryan merged commit acc3325 into googleapis:main Aug 20, 2025
22 checks passed
@coryan coryan deleted the cleanup-storage-bang-safe-read-range-enum branch August 20, 2025 16:18
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.

Should we use an enum for the read ranges?

2 participants