Skip to content

docs: tutorial-completeness CI check + stub/normalize tutorials (phase 2)#19

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/restore-truncated-howto-tutorials
Jul 11, 2026
Merged

docs: tutorial-completeness CI check + stub/normalize tutorials (phase 2)#19
Jammy2211 merged 1 commit into
mainfrom
feature/restore-truncated-howto-tutorials

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Overview

Phase 2 (HowToGalaxy) of PyAutoLabs/HowToLens#26 — applying the tutorial-completeness guard to HowToGalaxy. No genuinely-truncated tutorials were found here (its tutorial_1_grids_and_galaxies is the complete 654-line reference that was used to restore the HowToLens sibling); the work is the empty-slot stub + normalizations + the CI check.

What changed

  • Prevention: .github/scripts/check_tutorials_complete.py + tutorials_complete.yml CI — every non-stub tutorial must contain a terminal __Wrap Up__/__Summary__ section. A truncated script never reaches its wrap-up, so absence of the marker reliably flags lost content.
  • tutorial_4_methods.py was empty (0 bytes) since the bootstrap commit — never written, no source to restore. Filled with a not written yet stub matching the HowToLens stub convention (title + note + __Wrap Up__).
  • Normalization: three complete-but-unmarked tutorials get the terminal marker so they pass the check — tutorial_4_dealing_with_failure, tutorial_4_bayesian_regularization (both end on genuine prose conclusions), tutorial_searches (ends on a plot call).
  • Notebooks + navigator catalogue regenerated.

Scripts Changed

  • scripts/chapter_1_introduction/tutorial_4_methods.py — filled empty file with a not written yet stub
  • scripts/chapter_2_modeling/tutorial_4_dealing_with_failure.py — add __Wrap Up__ marker (already complete)
  • scripts/chapter_4_pixelizations/tutorial_4_bayesian_regularization.py — add __Wrap Up__ marker (already complete)
  • scripts/chapter_optional/tutorial_searches.py — add __Wrap Up__ section (already complete)
  • .github/scripts/check_tutorials_complete.py — new tutorial-completeness linter
  • .github/workflows/tutorials_complete.yml — new CI workflow running the linter
  • notebooks/**, llms-full.txt, workspace_index.json — regenerated

Validation checklist (--auto)

  • Tests: n/a — tutorial/doc repo, no pytest suite; no library API touched.
  • Smoke: PASS — curated smoke_tests.txt 4/4 (including the new tutorial_4_methods stub), run on this branch.
  • Review: CLEAN — self-review; mechanical stub + marker normalizations.
  • Heart: YELLOW acknowledged by the maintainer in-session (identical 6-reason ambient set as HowToLens#27, unrelated to HowToGalaxy).
  • Completeness check: all 23 tutorials pass.

Part of the 3-repo rollout (HowToLens #27 → this → HowToFit). Does not close HowToLens#26.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KExk2jkn2ya21b6NZLALpB

…ToLens#26)

Apply the tutorial-completeness guard from HowToLens to HowToGalaxy:

- Add .github/scripts/check_tutorials_complete.py + tutorials_complete.yml CI —
  every non-stub tutorial must reach a terminal __Wrap Up__/__Summary__ section
  (a truncated script never does, so absence of the marker flags lost content).
- Fill the empty tutorial_4_methods.py (0 bytes since the bootstrap commit, no
  source to restore) with a "not written yet" stub, matching the HowToLens stub
  convention.
- Normalize three complete-but-unmarked tutorials with the terminal marker:
  tutorial_4_dealing_with_failure, tutorial_4_bayesian_regularization,
  tutorial_searches.

No genuinely-truncated tutorials were found in HowToGalaxy (its ch1 tutorial_1 is
the complete 654-line reference used to restore the HowToLens sibling). Smoke 4/4.
Notebooks + catalogue regenerated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KExk2jkn2ya21b6NZLALpB
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 11, 2026
@Jammy2211 Jammy2211 merged commit cb5b109 into main Jul 11, 2026
10 checks passed
@Jammy2211 Jammy2211 deleted the feature/restore-truncated-howto-tutorials branch July 11, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant