Skip to content

Release v5.8.0: remove public EOF polling - #357

Merged
vincentlaucsb merged 4 commits into
masterfrom
codex/v5.8.0
Nov 12, 2026
Merged

vincentlaucsb merged 4 commits into
masterfrom
codex/v5.8.0

Conversation

@vincentlaucsb

@vincentlaucsb vincentlaucsb commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Bump the C++ and Python package metadata to 5.8.0.
  • Remove C++ CSVReader::eof() and Python Reader.eof().
  • Add has_next_row() and checked try_has_next_row(CSVError&) for occasional, non-consuming logical-row lookahead. The low-level Python Reader exposes has_next_row() as well.
  • Keep read_row() on its existing hot path: lookahead uses a synchronized copy of the queue front and leaves the first returnable row queued.
  • Restore the internal source-exhaustion flag to a plain worker-owned bool; lookahead still reaches EOF only after the scheduler joins.
  • Preserve coherent speculative-diagnostics snapshots and narrow the Issue CSVReader eof() and speculative_diagnostics() race the background parser #353 race regression to that remaining concurrent accessor.
  • Update public, no-exception, Python, and internal architecture documentation.

Compatibility

This intentionally removes a non-keystone polling API. C++ callers using reader.eof() will fail to compile, and Python callers using Reader.eof() will receive AttributeError.

Normal consumers should continue using iteration or the return value of read_row() / try_read_row(). Callers that occasionally need to check without consuming can use has_next_row() / try_has_next_row(); the check may block while parsing and may skip physical records excluded by the active variable-column policy. The checked forms use CSVError to distinguish ordinary exhaustion from failure.

Validation

  • Threaded C++ build and full test suite: 4/4 passed.
  • CSV_ENABLE_THREADS=OFF build and full test suite: 4/4 passed.
  • CSV_ENABLE_EXCEPTIONS=OFF build and full test suite: 4/4 passed.
  • Mmap and stream lookahead coverage, including a 500,000-row all-excluded multi-chunk regression.
  • Python extension build and isolated compatibility suite: 60/60 passed.
  • Generated single-header smoke executable: compiled and passed.
  • Doxygen generation: passed with pre-existing repository warnings.
  • Independent final subagent review: no findings.

This PR prepares the release only. It should not be merged automatically.

@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.11765% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.24%. Comparing base (20ac101) to head (e365467).

Files with missing lines Patch % Lines
include/internal/csv_reader.cpp 92.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #357      +/-   ##
==========================================
+ Coverage   92.20%   92.24%   +0.04%     
==========================================
  Files          64       64              
  Lines        4682     4709      +27     
  Branches     1432     1442      +10     
==========================================
+ Hits         4317     4344      +27     
+ Misses        107      106       -1     
- Partials      258      259       +1     
Flag Coverage Δ
cpp 92.17% <94.11%> (+0.04%) ⬆️
python 93.64% <ø> (ø)

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

☔ View full report in Codecov by Harness.
📢 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.

@vincentlaucsb
vincentlaucsb merged commit 488581f into master Nov 12, 2026
53 checks passed
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