Commit Graph

23 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
5062e5719b fix: resolve contributors update workflow failures
- Add API error handling in update_contributors.py
- Fix duplicate assignment syntax errors
- Fix reference to dropped commit_message column
- Add requests dependency to requirements.txt
- Use BOOK_QUARTO variable consistently across workflow and script
- Improve error handling and exception reporting
2026-01-25 08:54:45 -05:00
Vijay Janapa Reddi
930b7371c3 Add comprehensive documentation for contributor system 2026-01-21 19:27:37 -05:00
Vijay Janapa Reddi
d4b87a6b4e Add automatic trigger when contributor configs change 2026-01-21 19:25:58 -05:00
Vijay Janapa Reddi
a59a169a7f Add sectioned contributor system with per-project tracking
- Rename workflow to update-contributors.yml (more generic name)
- Add generate_main_readme.py to create sectioned contributor table
- Update main README with sections: Book, TinyTorch, Kits, Labs
- Add contribution type badges (emojis) to contributor entries
- Add Marcelo Rovai to kits contributors
- Update workflow to handle all project contributor files
2026-01-21 19:21:47 -05:00
Vijay Janapa Reddi
f518cca5b0 refactor: rename workflows with book- prefix for monorepo organization [skip ci]
Renamed all book-specific workflows with 'book-' prefix to prepare for
TinyTorch integration and maintain clear separation in monorepo structure.

Renamed workflows:
- validate-dev.yml → book-validate-dev.yml
- publish-live.yml → book-publish-live.yml
- deploy-preview.yml → book-deploy-preview.yml
- build-linux-container.yml → book-build-linux-container.yml
- build-windows-container.yml → book-build-windows-container.yml
- quarto-build-container.yml → book-build-container.yml
- quarto-build-baremetal.yml → book-build-baremetal.yml
- update-contributors.yml → book-update-contributors.yml

Updated references:
- All workflow_call and uses: references updated to new names
- Path filters updated to reference renamed workflow files
- API URL in book-deploy-preview.yml updated

Shared workflows (unchanged):
- cleanup-caches.yml (repository-wide)
- container-health-check.yml (shared infrastructure)
- link-check.yml (shared validation)

This organization enables:
- Clear separation between book and TinyTorch workflows
- Path-based filtering to prevent cross-triggering
- Easier identification of project-specific vs shared workflows
2025-12-05 15:46:41 -08:00
Vijay Janapa Reddi
7e3acd979e refactor: rename path variables to use consistent BOOK_ prefix
Repository Variables renamed for clarity:
- BOOK_ROOT   = book
- BOOK_DOCKER = book/docker
- BOOK_TOOLS  = book/tools
- BOOK_QUARTO = book/quarto
- BOOK_DEPS   = book/tools/dependencies

All paths under book/ now use BOOK_ prefix, making it clear
these are book-related paths (vs future TinyTorch paths).
2025-12-05 15:28:22 -08:00
Vijay Janapa Reddi
f56c99a542 refactor: use repository variables (vars.*) consistently for all paths
All workflows now use GitHub Repository Variables for path configuration:
- ${{ vars.BOOK_ROOT }} = book
- ${{ vars.DOCKER_DIR }} = book/docker
- ${{ vars.TOOLS_DIR }} = book/tools
- ${{ vars.QUARTO_DIR }} = book/quarto
- ${{ vars.DEPS_DIR }} = book/tools/dependencies

Benefits:
- Single source of truth (GitHub Settings > Variables)
- Works in all contexts (including job-level env blocks)
- Easy to update without code changes
- Consistent across all workflows
2025-12-05 15:26:18 -08:00
Vijay Janapa Reddi
29cefb9a6f fix: centralize path configuration for book/ restructure
- Add BOOK_ROOT, QUARTO_DIR, TOOLS_DIR, DEPS_DIR, DOCKER_DIR env vars to all workflows
- Update path references to use centralized env vars
- Fix requirements.txt to reference book/tools/dependencies
- Fix pyproject.toml entry points: cli.main -> book.cli.main
- Add __init__.py to book/ and book/tools/ for Python package support
- Fix Dockerfile path casing (dockerfile -> Dockerfile)
- Fix publish-live.yml relative path after cd

This enables TinyTorch to coexist at repo root alongside book/ directory.
2025-12-05 15:14:01 -08:00
Vijay Janapa Reddi
7b92e11193 Repository Restructuring: Prepare for TinyTorch Integration (#1068)
* Restructure: Move book content to book/ subdirectory

- Move quarto/ → book/quarto/
- Move cli/ → book/cli/
- Move docker/ → book/docker/
- Move socratiQ/ → book/socratiQ/
- Move tools/ → book/tools/
- Move scripts/ → book/scripts/
- Move config/ → book/config/
- Move docs/ → book/docs/
- Move binder → book/binder

Git history fully preserved for all moved files.

Part of repository restructuring to support MLSysBook + TinyTorch.

Pre-commit hooks bypassed for this commit as paths need updating.

* Update pre-commit hooks for book/ subdirectory

- Update all quarto/ paths to book/quarto/
- Update all tools/ paths to book/tools/
- Update config/linting to book/config/linting
- Update project structure checks

Pre-commit hooks will now work with new directory structure.

* Update .gitignore for book/ subdirectory structure

- Update quarto/ paths to book/quarto/
- Update assets/ paths to book/quarto/assets/
- Maintain all existing ignore patterns

* Update GitHub workflows for book/ subdirectory

- Update all quarto/ paths to book/quarto/
- Update cli/ paths to book/cli/
- Update tools/ paths to book/tools/
- Update docker/ paths to book/docker/
- Update config/ paths to book/config/
- Maintain all workflow functionality

* Update CLI config to support book/ subdirectory

- Check for book/quarto/ path first
- Fall back to quarto/ for backward compatibility
- Maintain full CLI functionality

* Create new root and book READMEs for dual structure

- Add comprehensive root README explaining both projects
- Create book-specific README with quick start guide
- Document repository structure and navigation
- Prepare for TinyTorch integration
2025-12-05 14:04:21 -08:00
Gabriel Amazonas
3f1b37d822 removes the final line 2025-11-04 23:53:01 +00:00
Gabriel Amazonas
b1994ab093 Fix git add command in update-contributors.yml 2025-11-04 19:58:17 -03:00
Vijay Janapa Reddi
053cca7033 fix(workflow): include acknowledgements.qmd in contributors commit
- Add acknowledgements.qmd to git status check and commit step
- Ensures all-contributors-cli changes are properly committed
- Should fix issue where taunoe appears in .all-contributorsrc but not in rendered files
2025-08-30 22:36:57 +02:00
Vijay Janapa Reddi
19b1331430 feat(workflow): integrate contributors update into dev validation pipeline
- Add contributors workflow to validate-dev.yml after pre-commit validation
- Fix contributors script to use GITHUB_TOKEN environment variable
- Contributors now update automatically on every dev push
- Ensures acknowledgements are current before build matrix runs
- Resolves issue where taunoe and other recent contributors were missing
2025-08-29 10:37:36 +02:00
Vijay Janapa Reddi
4c6bb387e8 refactor(workflows): complete robust path implementation across all workflows
Updated remaining workflows to use github.workspace absolute paths:

fix_casing.yml:
- tools/scripts/maintenance/generate_casing_fix_script.py
- → ${{ github.workspace }}/tools/scripts/maintenance/generate_casing_fix_script.py

update-contributors.yml:
- .github/workflows/contributors/update_contributors.py
- → ${{ github.workspace }}/.github/workflows/contributors/update_contributors.py

All workflows now use consistent, robust absolute paths that:
- Eliminate fragile relative path calculations
- Follow GitHub Actions best practices
- Are maintainable and explicit
- Work regardless of directory structure changes
2025-08-21 20:12:10 -04:00
Vijay Janapa Reddi
9b9e4cab91 Removes redundant retention period settings
Removes the redundant `GITHUB_ACTIONS_RETENTION_DAYS` environment variable
definition from multiple workflow files. This setting is now managed globally,
avoiding duplication and simplifying configuration.
2025-08-12 17:44:27 -04:00
Vijay Janapa Reddi
aaaf84033e refactor(deps): simplify to a single requirements.txt 2025-08-10 15:49:52 -04:00
Vijay Janapa Reddi
271cfe4b65 cleanup(workflows): remove redundant workflows covered by pre-commit
- Remove lint-markdown.yml (pre-commit covers markdown linting)
- Remove structure-check.yml (pre-commit covers structure validation)
- Update workflow names with clear icons for better recognition
- Keep only necessary workflows: link-check, update-contributors, cleanup-caches

Pre-commit already handles:
- Markdown formatting and linting
- YAML validation
- Structure checks
- Image validation
- Content validation

Remaining workflows focus on:
- External link validation (link-check.yml)
- Automated maintenance (update-contributors.yml)
- CI/CD maintenance (cleanup-caches.yml)
- Core build and publish workflows
2025-08-08 09:34:39 -04:00
Vijay Janapa Reddi
4980444869 Sets workflow retention period to 7 days
Configures a retention policy for all GitHub Actions workflows to retain logs and artifacts for 7 days. This helps manage storage costs and improves compliance.
2025-07-02 16:57:04 -04:00
Vijay Janapa Reddi
257e86aa7f Fixing workflows to match pre-commit 2025-03-04 06:14:00 -08:00
Vijay Janapa Reddi
09d28be2f0 npm package 2025-02-08 19:17:52 -05:00
Vijay Janapa Reddi
0c088aebe4 Remove auto triggering 2025-02-08 11:27:50 -05:00
Vijay Janapa Reddi
a72f109f8f Updating the workflows, likely gonna need debugging! 2025-02-08 11:09:01 -05:00