Skip to content

Fix sequential text reader bug and add covering test #3383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 3, 2025

Conversation

Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented May 28, 2025

Fixes #3361

When using single byte input the test provided triggered a condition where the next read would skip data in available internal buffer because it was exactly, and not less than, the required amount.

/cc @m0a0k0s

@mdaigle
Copy link
Contributor

mdaigle commented May 29, 2025

/azp run

mdaigle
mdaigle previously approved these changes May 29, 2025
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

benrr101
benrr101 previously approved these changes May 29, 2025
@Wraith2 Wraith2 dismissed stale reviews from benrr101 and mdaigle via 5dce7ba May 30, 2025 00:15
Copy link
Contributor

@paulmedynski paulmedynski left a comment

Choose a reason for hiding this comment

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

Minor simplicity suggestion.

@benrr101
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

benrr101
benrr101 previously approved these changes May 30, 2025
@paulmedynski
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mdaigle mdaigle merged commit 97be747 into dotnet:main Jun 3, 2025
237 checks passed
Copy link

codecov bot commented Jun 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (b8948f2) to head (d905a7b).
Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #3383       +/-   ##
==========================================
- Coverage   67.04%       0   -67.05%     
==========================================
  Files         300       0      -300     
  Lines       65376       0    -65376     
==========================================
- Hits        43831       0    -43831     
+ Misses      21545       0    -21545     
Flag Coverage Δ
addons ?
netcore ?
netfx ?

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.

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.

SqlSequentialTextReader ReadAsync returns 0 before the end of a file
4 participants