Repository navigation
test(harness,evidence): decompose oversized test suites below 1,000 lines (#649) - #653
Merged
Merged
Conversation
…ines (#649) • Decomposed tests/test_verify_harness.py (1,437 lines) into test_verify_harness_archive.py (157 lines), test_verify_harness_guides.py (311 lines), test_verify_harness_playbooks.py (352 lines), and test_verify_harness.py (595 lines). • Extracted shared fixtures into tests/evidence_test_helpers.py (362 lines). • Decomposed tests/test_evidence_durability.py (1,016 lines) into test_evidence_index_resilience.py (358 lines) and test_evidence_durability.py (585 lines). • Decomposed tests/test_evidence_settlement.py (1,003 lines) to 762 lines using shared helpers. • Updated scripts/select_checks.py, tests/test_select_checks.py, and .github/workflows/portability-offline.yml. • Zero code or test files in repository exceed 1,000 lines.
Owner
Author
Independent Verification Report: PR #653 (Refs #649, Program #645)Verdict: PASS 1. Commit and Branch Verification
2. Line Count and Modularity AnalysisAll decomposed suites and helper modules were verified with
Repository-Wide Scan: 3. Test Execution Receipts
4. Selection Table & CI Workflow Verification
PR #653 cleanly achieves all modularity and verification criteria with zero regressions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ref #649 (Parent Epic #645).
Summary
Remediates oversized test files flagged during the thermo-nuclear review by decomposing suites exceeding the 1,000-line ceiling:
Decomposed
tests/test_verify_harness.py(1,437 lines):tests/test_verify_harness_archive.py(157 lines): Intent archive chains, durable specs, Benny merge/push guards, and OpenSpec schema validation.tests/test_verify_harness_guides.py(311 lines): Sync/adapt guide assertions, README locale split, first-session sandbox/reload, and forge-neutral PR paths.tests/test_verify_harness_playbooks.py(352 lines): Autopilot fanout, host mapping requirements, bot UI invocability, Benny remap, and no-write agent capability modes.tests/test_verify_harness.py(595 lines): Core harness invariant checks, manifest qualifier checks, and profile parity.Extracted Shared Fixtures:
tests/evidence_test_helpers.py(362 lines): Centralized receipt, profile, disposable copy, and mock generators.Decomposed
tests/test_evidence_durability.py(1,016 lines):tests/test_evidence_index_resilience.py(358 lines): Index shape validation, corruption recovery, stat-denied safety, and missing index reconstruction.tests/test_evidence_durability.py(585 lines): Core receipt schema durability, profile freshness, and plane invalidation.Decomposed
tests/test_evidence_settlement.py(1,003 lines):tests.evidence_test_helpers, retaining 100% backwards-compatible re-exports.Updated Check Mappings & CI:
scripts/select_checks.py,tests/test_select_checks.py, and.github/workflows/portability-offline.yml.