test: direct unit suites for opt Hparam and BaseSearcher (78 tests)#1913
test: direct unit suites for opt Hparam and BaseSearcher (78 tests)#1913arham766 wants to merge 1 commit into
Conversation
Hermetic CPU-only tests for the two search-framework primitives; no direct suites existed (test_dynamic.py uses Hparam only as an opaque payload; nas/autoquant tests cover subclasses). Adversarially reviewed and verified to kill seeded mutations of both modules (importance normalization, __iand__ intersection, active_slice truncation, training-mode restore, checkpoint strict default, path resolution). Part of the coverage initiative in NVIDIA#1902. Signed-off-by: arham766 <arhamislam766@yahoo.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds two new unit test modules: one exhaustively testing the ChangesHparam Unit Tests
BaseSearcher Unit Tests
Estimated code review effort: 2 (Simple) | ~15 minutes Related Issues: None found. Related PRs: None found. Suggested labels: tests Suggested reviewers: None specified. 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
What does this PR do?
Type of change: new tests
Part of the unit-coverage initiative in #1902. Direct suites for the two search-framework primitives (no direct coverage existed; the duplication audit against test_dynamic.py, tests/unit/torch/nas, and test_autoquant.py is in the review notes):
Usage
N/A — tests only.
Testing
78 tests, <1s, hermetic (CPU-only, tmp_path, deterministic). Adversarially reviewed: 12 expectations independently re-derived from source, 6/6 seeded mutations killed, no vacuous tests, Windows/Linux path-agnostic. Full tests/unit/torch/opt dir passes alongside (excluding the pre-existing test_lr_config.py env failures).
Before your PR is "Ready for review"
Additional Information
Issue: #1902
Summary by CodeRabbit
Hparam, including defaults, configurability, active/choices updates, ordering, importance handling, merging, and pickle roundtrips.BaseSearchertests covering search flow, checkpoint save/load, resume behavior, scoring, and forward-loop/data-loader execution rules.