From fdd90ce1390b75cc7c2bd6f15291f47ecc5a5997 Mon Sep 17 00:00:00 2001 From: Vijay Janapa Reddi Date: Mon, 2 Mar 2026 10:22:41 -0500 Subject: [PATCH] Stabilize dev pre-commit workflow Add fallback hook dependencies in validate-dev and apply trailing-whitespace fixes to lab plan files so pre-commit no longer fails on auto-modifications. --- .github/workflows/book-validate-dev.yml | 2 +- labs/plans/vol1/lab_02_ml_systems.md | 2 +- labs/plans/vol1/lab_04_data_engr.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/book-validate-dev.yml b/.github/workflows/book-validate-dev.yml index dadb7c8d6..d34d1247e 100644 --- a/.github/workflows/book-validate-dev.yml +++ b/.github/workflows/book-validate-dev.yml @@ -106,7 +106,7 @@ jobs: echo "📦 Installing project dependencies for custom hooks..." pip install -r requirements.txt || echo "⚠️ Could not install all requirements, continuing..." echo "📦 Installing fallback hook dependencies..." - pip install rich || echo "⚠️ Could not install rich, continuing..." + pip install rich requests pillow pint || echo "⚠️ Could not install one or more fallback deps, continuing..." echo "🔧 Installing pre-commit hooks..." pre-commit install --install-hooks diff --git a/labs/plans/vol1/lab_02_ml_systems.md b/labs/plans/vol1/lab_02_ml_systems.md index 6fd83fa8f..a770d61ab 100644 --- a/labs/plans/vol1/lab_02_ml_systems.md +++ b/labs/plans/vol1/lab_02_ml_systems.md @@ -36,7 +36,7 @@ ## 3. The 3-Act Narrative (The Lab Journey) ### Act I: Proving the Iron Law (15m) -* **Scenario:** You have a fixed model ($AI = 50$). +* **Scenario:** You have a fixed model ($AI = 50$). * **Crisis:** It runs too slow on the CPU. * **Task:** Upgrade to a GPU. Observe that the latency *barely moves* because the data term ($D/BW$) is the bottleneck. Find the "Ridge Point" where the GPU actually becomes useful. diff --git a/labs/plans/vol1/lab_04_data_engr.md b/labs/plans/vol1/lab_04_data_engr.md index 3019befe1..0d01e8f94 100644 --- a/labs/plans/vol1/lab_04_data_engr.md +++ b/labs/plans/vol1/lab_04_data_engr.md @@ -37,7 +37,7 @@ ### Act I: The Physics of Data Gravity (15m) * **Scenario:** You have 1 Petabyte of raw video in a warehouse. Your cluster is 3,000 miles away. -* **Crisis:** Project deadline is in 10 days. +* **Crisis:** Project deadline is in 10 days. * **Task:** Calculate the transfer time over 1Gbps fiber. Realize it will take weeks. Toggle to "Snowball" (Sneakernet) and see the physical delivery time beat the fiber. ### Act II: The Feeding Tax (15m)