Skip to content

test(tinytorch): regression coverage for milestone grading/gating logic - #5

Merged
Shashank-Tripathi-07 merged 1 commit into
devfrom
mcdc-05-milestones
Aug 15, 2026
Merged

test(tinytorch): regression coverage for milestone grading/gating logic#5
Shashank-Tripathi-07 merged 1 commit into
devfrom
mcdc-05-milestones

Conversation

@Shashank-Tripathi-07

@Shashank-Tripathi-07 Shashank-Tripathi-07 commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

Adds regression tests for the milestone system's grading/gating logic found by an MC/DC audit, previously exercised only by slow end-to-end runs that couldn't isolate individual conditions. Independent of the other companion PRs in this series (#1, #2, #3, #4), each covers a different module group and can be reviewed/merged in any order.

Covered gaps:

  • The can_unlock gate (MilestoneSystem)
  • _module_progress_to_int's four input-type paths
  • _validate_required_exports's ImportError branch
  • _handle_run_command's non-interactive continue-on-failure abort path
  • Milestone 05's passed1/passed2/passed3 grading logic in print_final_results

Pure regression tests, no source or package files touched.

Test plan

  • pytest tests/cli/test_release_regressions.py tests/milestones -q passes locally, including all new cases
  • Verified each new test's target behavior directly against a clean origin/dev checkout before adding it

@github-actions github-actions Bot added the enhancement New feature or request label Aug 14, 2026
… logic

Covers the milestone system's core decision logic, previously exercised
only by slow end-to-end runs that couldn't isolate individual conditions:
the can_unlock gate, _module_progress_to_int's four input-type paths,
_validate_required_exports' ImportError branch, _handle_run_command's
non-interactive continue-on-failure abort path, and milestone 05's
passed1/passed2/passed3 grading logic in print_final_results.

Pure regression tests, no source or package files touched. Each test
was verified against a clean origin/dev checkout before being added.
@github-actions

Copy link
Copy Markdown

Thanks @Shashank-Tripathi-07! 🎉

@Shashank-Tripathi-07 was already credited in tinytorch for: code, test.

The contributor tables are now handled directly by this workflow; no follow-up command is needed.

@Shashank-Tripathi-07
Shashank-Tripathi-07 deleted the mcdc-05-milestones branch August 19, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant