Commit Graph

25 Commits

Author SHA1 Message Date
Salman Muin Kayser Chishti
4cf7a3aca8 Upgrade GitHub Actions for Node 24 compatibility
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
2026-02-19 09:19:52 +00:00
Vijay Janapa Reddi
3a2b1bf482 fix(ci): use head_ref for PR branch in fresh install test
On PR events, github.ref_name resolves to the merge ref (e.g.
"1159/merge") which doesn't exist on raw.githubusercontent.com,
causing a 404. Use github.head_ref (the actual source branch)
for PRs, falling back to ref_name for push events.

Also adds -f flag to curl so HTTP errors fail immediately with
a clear message instead of silently saving the 404 HTML page.
2026-02-04 10:06:25 -05:00
Vijay Janapa Reddi
9e56fc2e2e fix(ci): default to all tests on all platforms + align with CLI naming
- Default test_type: quick → all (run full validation by default)
- Default os: linux → all (test both platforms by default)
- Rename 'release' → 'user-journey' to match CLI --user-journey flag
- Fix 'standard' to correctly stop at stage 5 (was running user-journey)
- Reorder options to show defaults first in dropdown
2026-01-29 12:43:32 -05:00
Vijay Janapa Reddi
08278a8a6b chore(workflows): differentiate Validate and Publish icons
- Change Validate (Dev) icon from 💯 to  for Book and TinyTorch
- Change Update PDFs icon from 📄 to 📑 (bookmark tabs)
- Fix workflow_run references to match exact workflow names

This makes it easier to visually distinguish between Validate and
Publish operations in the GitHub Actions UI.
2026-01-29 07:33:06 -05:00
Vijay Janapa Reddi
9e5ffac705 ci: enable User Journey for 'all' test type (dev/main pushes) 2026-01-28 10:09:10 -05:00
Vijay Janapa Reddi
ede0c5d28e ci: run User Journey on standard test type (dev/main pushes) 2026-01-28 09:48:37 -05:00
Vijay Janapa Reddi
e3ff3f1587 chore: swap Stage 6/7 order - Fresh Install before User Journey 2026-01-28 09:31:49 -05:00
Vijay Janapa Reddi
43010f202d chore: rename Stage 6 from Release to User Journey 2026-01-28 09:30:00 -05:00
Vijay Janapa Reddi
a70c724a02 fix: export failure now blocks progress + add user journey test
Bug Fix:
- Export failures now return early in module complete, preventing
  progress from being updated when export fails. This fixes the issue
  where students could start Module 02 even though tensor.py was
  never exported.

New --user-journey test:
- Simulates exact student flow: module start --no-jupyter → module complete
- Runs milestones at natural unlock checkpoints (not all at end)
- Milestone checkpoints: after modules 03, 08, 09, 13, 19
- Explicit step-by-step output for easy CI debugging

New --no-jupyter flag:
- Added to 'tito module start' for CI/testing
- Creates notebook but skips opening Jupyter

Ref: https://github.com/harvard-edge/cs249r_book/discussions/1147
2026-01-28 09:28:15 -05:00
Vijay Janapa Reddi
1dab173c50 style(ci): use 100 emoji for validate actions 2026-01-27 10:32:04 -05:00
Vijay Janapa Reddi
39324d4176 style(ci): use check mark emoji for validate actions 2026-01-27 10:31:43 -05:00
Vijay Janapa Reddi
cbf8017a26 style(ci): add action emojis to workflow names for visual scanning
Add separator and action-specific emojis to make it easier to visually
distinguish between workflow types (Build/Publish/Validate) at a glance.

Pattern: Category emoji + Name · Action emoji + Action
- 🔨 Build
- 📤 Publish
- 🔍 Validate
- 🐳 Container
- 🧹 Cleanup
- 🔗 Link Check
- ❤️ Health Check
2026-01-27 10:24:58 -05:00
Vijay Janapa Reddi
849ab0befa fix(ci): only run validate workflow on dev push, not main 2026-01-26 15:14:51 -05:00
Vijay Janapa Reddi
dda4326fd3 fix(ci): use windows-2022 to avoid D: drive issue on windows-latest (2025) 2026-01-26 15:10:09 -05:00
Vijay Janapa Reddi
4cc97325a4 debug(ci): enable runner debug logging to investigate Windows D:\a issue 2026-01-26 15:02:28 -05:00
Vijay Janapa Reddi
70634bcf4c fix(ci): make Windows jobs non-blocking due to infrastructure flakiness 2026-01-26 14:50:13 -05:00
Vijay Janapa Reddi
16430b08e9 fix(ci): use windows-2022 instead of windows-latest
Windows Server 2025 (windows-latest) has path length issues causing
"Could not find a part of the path D:\a" errors during job setup.
Windows Server 2022 is more stable.
2026-01-26 13:29:46 -05:00
Vijay Janapa Reddi
87b082fe0b fix(ci): disable pip caching to avoid Windows failures 2026-01-26 12:03:24 -05:00
Vijay Janapa Reddi
0f67780f5a feat: enable Windows support by default with Git Bash
- CI now runs both Linux and Windows by default (matrix)
- Updated install.sh to detect Windows venv path (Scripts/ vs bin/)
- Added Windows installation instructions to getting-started.md
- Updated troubleshooting guide with Git Bash guidance
- Windows uses Git Bash for cross-platform bash script compatibility
2026-01-26 10:02:27 -05:00
Vijay Janapa Reddi
eeccfa4b1d fix(ci): add PYTHONUTF8 for Windows subprocess UTF-8 support
Subprocess pipes on Windows use cp1252 by default which fails
when reading UTF-8 output. PYTHONUTF8=1 forces Python to use
UTF-8 for all I/O operations.
2026-01-26 09:02:02 -05:00
Vijay Janapa Reddi
ef1919ad00 fix(ci): add PYTHONIOENCODING for Windows emoji support
Windows uses cp1252 encoding by default which doesn't support
emoji characters. Setting PYTHONIOENCODING=utf-8 fixes the
UnicodeEncodeError when Rich prints the banner with emojis.
2026-01-26 08:55:31 -05:00
Vijay Janapa Reddi
0936aa6f66 feat(ci): add Windows OS matrix support for progressive testing
- Add 'os' input parameter (linux/windows/all)
- Default to Linux for all automatic triggers
- Manual dispatch can select Windows for experimental testing
- Stages 1-5 now support OS matrix
- Stages 6-7 remain Linux-only (release/fresh-install)

This enables progressive Windows testing to identify compatibility
issues before committing to full Windows support.
2026-01-26 08:49:43 -05:00
Vijay Janapa Reddi
4815f25d1a fix(ci): skip Fresh Install test for fork PRs
Fork PRs have branches that don't exist in harvard-edge/cs249r_book,
so the install script URL is invalid. Skip Fresh Install for fork PRs
and run it only for:
- Direct pushes to dev/main
- PRs from branches within the same repo
2026-01-26 08:29:10 -05:00
Vijay Janapa Reddi
6ce19128bb fix(ci): update concurrency group name to match workflow 2026-01-25 17:04:46 -05:00
Vijay Janapa Reddi
e8e0c89c73 refactor(ci): rename TinyTorch CI to Validate (Dev) pattern
Follow book pattern:
- Rename tinytorch-ci.yml → tinytorch-validate-dev.yml
- Rename workflow to "🔥 TinyTorch Validate (Dev)"
- Update tinytorch-publish-dev.yml to trigger after Validate passes
- Build PDFs after validation, then deploy

Flow: Push → Validate → (if passes) → Build PDFs → Deploy
2026-01-25 17:01:09 -05:00