Skip to content

test: allow library suite growth and reject empty discovery - #14

Merged
drevendev merged 1 commit into
masterfrom
beautifulrepo/library-test-discovery-20261016
Oct 17, 2026
Merged

drevendev merged 1 commit into
masterfrom
beautifulrepo/library-test-discovery-20261016

Conversation

@drevendev

@drevendev drevendev commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

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.
  • Provider runtime: Python 3.12.3 on Ubuntu, using the PR merge checkout against the current base.

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.

@drevendev
drevendev marked this pull request as ready for review October 16, 2026 11:18

@drevendev drevendev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

@drevendev
drevendev merged commit e6550ca into master Oct 17, 2026
1 check passed
@drevendev
drevendev deleted the beautifulrepo/library-test-discovery-20261016 branch October 23, 2026 10:24
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