Commit Graph

9 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
8f9481b508 fix(test): update assertion to match actual error message
The test checked for "invalid" or "error" but the actual message
says "Command Not Found" and "not a valid command".
2026-01-28 17:36:20 -05:00
Vijay Janapa Reddi
42face28fb refactor(tests): remove all pytest.skip patterns for honest test results
- Move imports to module level in all *_core.py test files (16 files)
- Remove try/except/skip patterns from integration tests
- Remove @pytest.mark.skip decorators from gradient flow tests
- Convert environment validation skips to warnings for optional checks
- Change milestone tests from skip to fail when scripts missing

Tests now either pass or fail - no silent skipping that hides issues.
This ensures the test suite provides accurate feedback about what works.
2026-01-23 23:06:23 -05:00
Vijay Janapa Reddi
f0f8a2e559 fix(tests): fix remaining E2E test failures
- Fix milestone script path: 02_rosenblatt_trained.py → 01_rosenblatt_forward.py
- Make test_module_02 more robust by accepting either Locked or Unlocked state
  (previous tests may have completed module 01, changing the expected state)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 15:25:43 -05:00
Vijay Janapa Reddi
b048e2d3cc fix(tests): fix E2E tests and add CI test summary
E2E test fixes:
- Add TITO_ALLOW_SYSTEM=1 env var to run_tito() for tests outside venv
- Fix CLI command naming: 'milestones' → 'milestone' (singular)
- Fix modules directory path: 'modules/' → 'src/'

CI improvements:
- Remove continue-on-error from E2E and CLI test steps
- Add test summary table to job output showing pass/fail for each suite
- Add JUnit XML output for test results

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 14:34:30 -05:00
Vijay Janapa Reddi
871d1f473a docs: complete Perceptron 1958 standardization and add tito dev CLI docs
- Update remaining 1957→1958 references across all documentation
- Add tito dev commands (preflight, export, validate) to CLI reference
- Update CLI validation script to recognize new dev subcommands
- Fix milestone year references in tests and workflow code
- Update timeline visualization JavaScript

This completes the Perceptron year standardization to align with
the publication year and academic citation format (rosenblatt1958perceptron).

Cherry-picked from: ebf3fb17b (feature/tito-dev-validate)
2026-01-17 12:18:23 -05:00
Vijay Janapa Reddi
dbad2637e3 fix(docs): standardize Perceptron year to 1958
- Rename milestone directory from 01_1957_perceptron to 01_1958_perceptron
- Update all references to use 1958 (publication year) for consistency
  with academic citation format (rosenblatt1958perceptron)
- Changes affect: READMEs, docs, tests, milestone tracker

Rationale: Using 1958 aligns with the publication year and standard
academic citations, while 1957 was the development year.

Cherry-picked from: 28ca41582 (feature/tito-dev-validate)
2026-01-17 12:15:49 -05:00
Vijay Janapa Reddi
fbc176e7ed fix: comprehensive module numbering update across all files
Updates all remaining files with correct module assignments:
- DataLoader = 05, Autograd = 06, Optimizers = 07, Training = 08
- Foundation Tier = 01-08, Architecture Tier = 09-13

Fixed files:
- Paper diagrams: module_flow.dot, module_flow_horizontal.tex
- Paper references: paper.tex (multiple instances)
- Site TITO: milestones.md command examples
- Tests: run_training_milestone_tests.py, test_user_journey.py, test_training_flow.py
- Milestones: 02_xor_solved.py, 02_rosenblatt_trained.py, 02_rumelhart_mnist.py, XOR ABOUT.md
- Source: 17_acceleration.py prerequisites
- Tools: fix_mermaid_diagrams.py, fix_about_titles.py module mappings
2025-12-19 20:17:52 -05:00
Vijay Janapa Reddi
853eb03ee8 style: apply consistent whitespace and formatting across codebase 2025-12-13 14:05:34 -05:00
Vijay Janapa Reddi
c602f97364 feat: integrate TinyTorch into MLSysBook repository
TinyTorch educational deep learning framework now lives at tinytorch/

Structure:
- tinytorch/src/         - Source modules (single source of truth)
- tinytorch/tito/        - CLI tool
- tinytorch/tests/       - Test suite
- tinytorch/site/        - Jupyter Book website
- tinytorch/milestones/  - Historical ML implementations
- tinytorch/datasets/    - Educational datasets (tinydigits, tinytalks)
- tinytorch/assignments/ - NBGrader assignments
- tinytorch/instructor/  - Teaching materials

Workflows (with tinytorch- prefix):
- tinytorch-ci.yml           - CI/CD pipeline
- tinytorch-publish-dev.yml  - Dev site deployment
- tinytorch-publish-live.yml - Live site deployment
- tinytorch-build-pdf.yml    - PDF generation
- tinytorch-release-check.yml - Release validation

Repository Variables added:
- TINYTORCH_ROOT  = tinytorch
- TINYTORCH_SRC   = tinytorch/src
- TINYTORCH_SITE  = tinytorch/site
- TINYTORCH_TESTS = tinytorch/tests

All workflows use \${{ vars.TINYTORCH_* }} for path configuration.

Note: tinytorch/site/_static/favicon.svg kept as SVG (valid for favicons)
2025-12-05 19:23:18 -08:00