Skip to content

fix(import): protect rollback failures and gate runtime coverage - #174

Merged
codeasier merged 1 commit into
mainfrom
test/issue-165-regression
Oct 3, 2026
Merged

codeasier merged 1 commit into
mainfrom
test/issue-165-regression

Conversation

@codeasier

Copy link
Copy Markdown
Owner

📝 Description

Follow up the core-boundary and coverage items in #165.

  • Add 28 replay boundary cases checking invalid operations preserve state and allocator invariants.
  • Add 8 backend failure tests: backup/publication/focus/rollback failures, missing output, finalization failure, short and zero writes.
  • Fix two demonstrated defects: leaked rollback descriptors on publication/rollback errors and truncated rollback backups on short os.write calls. Retain recovery backup on rollback failure.
  • Enforce 90% total line+branch coverage. Independently require backend 90%, allocator 88%, mutator 84% in the supported-version CI matrix.

🔗 Related Issue

Refs #165; partial implementation, keep the tracking issue open.

🧪 Testing

  • Tests added/updated
  • Before fix: 2 failures and 2 teardown descriptor-leak errors in new cases.
  • After fix: 36 focused tests passed.
  • Full suite with branch coverage: 1184 passed; total 91%, backend 92%, allocator 90%, mutator 85% (rounded).
  • Fixture provenance passed before runtime suites; governance/release checks 32 passed.
  • Ruff/Black/diff checks passed; basedpyright 0 errors, 831 existing warnings.
  • Existing SQLite ResourceWarnings remain for the next fixture-cleanup change.

✅ Checklist

  • Code follows project guidelines
  • Coverage baselines documented beside CI/configuration
  • Changes tested locally

Snapshot Runtime Provenance

No snapshot product files modified; tests exercise the existing runtime.

  • Snapshot provenance evaluation completed
    Snapshot provenance decision: no-update
    Snapshot provenance no-update reason: Only core import rollback cleanup, regression tests and CI/configuration change; snapshot runtime sources and source mapping are unchanged.

@codeasier
codeasier merged commit 310c053 into main Oct 3, 2026
6 checks passed
@codeasier
codeasier deleted the test/issue-165-regression branch October 3, 2026 19: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.

1 participant