Skip to content

Fix 4 test suite bugs, use lab runners for push CI#56

Merged
27Bslash6 merged 1 commit intomainfrom
fix/test-suite-bugs
Feb 28, 2026
Merged

Fix 4 test suite bugs, use lab runners for push CI#56
27Bslash6 merged 1 commit intomainfrom
fix/test-suite-bugs

Conversation

@27Bslash6
Copy link
Contributor

Summary

  • Python 3.9 fix: Add from __future__ import annotations to test_consolidated_decorator.py — PEP 604 str | None syntax crashed collection on 3.9
  • Test isolation fix: Unique namespaces per parametrize case in consolidated decorator tests — [None] case was hitting stale cached data from [minimal]/[production] runs
  • Numpy test update: test_blake2b_with_numpy_arrays_raises_type_error expected arrays to be rejected, but constrained array support was added (round-table 2025-12-18). Now tests valid arrays succeed and invalid (2D) arrays are rejected
  • Error message regex: datetime/set rejection messages were improved to be type-specific but test regexes still matched the old generic message
  • Lab runners: Test matrix uses self-hosted cachekit runners on push (consistent perf on Ryzen 5950X), ubuntu-latest on PRs (untrusted code never touches lab)

Test plan

  • PR CI passes on ubuntu-latest (this run)
  • Python 3.9 collection no longer crashes
  • test_all_feature_combinations_*[None] passes
  • Blake2b numpy/unsupported type tests pass
  • After merge, push CI runs on cachekit self-hosted runners

- Add `from __future__ import annotations` to test_consolidated_decorator.py
  (fixes Python 3.9 collection crash from PEP 604 `str | None` syntax)
- Use unique namespaces per parametrize case in consolidated decorator tests
  (fixes cache isolation bug where [None] case hit stale data from earlier runs)
- Update numpy array test to reflect constrained array support added in
  round-table review 2025-12-18 (1D, ≤100KB, supported dtypes)
- Fix error message regex matches for datetime/set type rejection
  (messages were improved to be type-specific but tests weren't updated)
- Run test matrix on self-hosted `cachekit` runners for push events
  (consistent perf results on Ryzen 5950X, ubuntu-latest for PRs)
@27Bslash6 27Bslash6 merged commit 8ad3d8c into main Feb 28, 2026
37 checks passed
@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

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