Repository navigation
test: allow library suite growth and reject empty discovery - #14
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Later-run maintainer acceptance on 2026-10-17 of exact head f409212. Reviewed both changed test files and the real temporary-suite regressions. Successful nonempty discovery replaces the fixed test count; zero tests, test failure, import failure and missing summary are rejected. One, three and four tests are accepted. Freshly inspected exact-head Actions run 38892403320 and all unittest/catalog/Markdown-destination steps: successful. No submitted review findings or unresolved threads were present. Research/data PR #13 changes separate paths and has now been integrated; recheck current mergeability before merging. No material findings remain in this bounded correction. This COMMENT is same-account later-run judgement, not independent approval.
Problem and fix
The library integration test required the exact text
Ran 3 tests, so a fourth passing API regression broke CI. Replace this fixed count with an assertion for successful, nonempty discovery while preserving subprocess exit-code validation and diagnostics.Five new regressions run real temporary unittest suites to cover growth (one, three and four tests), empty discovery, a failed test, an import error and an incomplete execution summary. Empty discovery is rejected whether the interpreter returns zero or a nonzero no-tests status.
Only two test files change. The library API, documentation, catalog, workflows and repository settings are unchanged. This follow-up did not delay the useful library starter's integration.
Verified results
Head:
f409212a4375b575a6daff05a56a350c57a9179b.Full GitHub Actions 38892403320 passed. Decoded job logs were inspected:
python3 -m unittest discover -s tests -v: 137 tests passed.python3 tools/catalog.py: 11 resources, generated view current.python3 tools/docs_links.py: 74 relative destinations across 25 Markdown files passed.Local Python 3.13.5: all ten selected library/infrastructure tests passed, including the original five library checks and actual temporary-suite execution. Compilation passed. This is selected-file local validation, not a full local checkout.
The earlier hard-coded-count behavior was identified during prior library review. This new correction is complete for its bounded scope and ready for separate later-run acceptance; no independent approval or additional repository-protection gate is implied.