Skip to content

test: add rows_read accounting and silent-failure regression tests#44

Open
Coding-Dev-Tools wants to merge 2 commits into
masterfrom
improve/datamorph-20260630
Open

test: add rows_read accounting and silent-failure regression tests#44
Coding-Dev-Tools wants to merge 2 commits into
masterfrom
improve/datamorph-20260630

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

Summary

Add regression tests for ConversionResult.rows_read accounting and silent-failure detection.

Changes

  • tests/test_rows_read_accounting.py: Tests that convert() properly populates rows_read and that conversions which read rows but wrote none are not reported as success.

Testing

CI will run test/coverage/security jobs on this branch.

- Add protobuf>=7.34.1 as core dependency (was optional 'full' extra)
- Update pytest to >=9.1.0 (was 9.0.3)
- Update ruff to >=0.15.20 (was 0.4.0)
- Remove 'full' extra since protobuf is now core

All 130 tests pass and ruff checks pass.
Regression coverage for the bug where convert() declared rows_read on
ConversionResult but never populated it (always 0), and where a
conversion that read rows yet wrote none was reported as success.
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

🤖 Automated Code Review

✅ Ruff Lint — No issues

⚠️ Ruff Format — Formatting needed

Would reformat: conftest.py
Would reformat: src/datamorph/cli.py
Would reformat: src/datamorph/converters.py
Would reformat: tests/test_cli_error_paths.py
Would reformat: tests/test_converters.py
Would reformat: tests/test_edge_cases.py
Would reformat: tests/test_validate.py
7 files would be reformatted, 3 files already formatted

✅ Secret Detection — Clean

✅ Large Files — Within limits

📊 Diff Stats — 2 file(s) changed

 .github/workflows/publish.yml      |   8 +--
 tests/test_rows_read_accounting.py | 126 +++++++++++++++++++++++++++++++++++++
 2 files changed, 130 insertions(+), 4 deletions(-)

Verdict: ⚠️ Warnings — Lint/format issues found. Recommend fixing before merge.

Automated by Coding-Dev-Tools/.github reusable workflow.

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