Skip to content

feat: verify_install check F — simulate the Colab bootstrap end-to-end - #46

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/colab-sim-verify-install
Jul 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/colab-sim-verify-install

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Closes the last Colab maturity gap (PyAutoLabs/PyAutoHands#124): nothing executed the Colab bootstrap path. New check F in the verify_install suite simulates a real Colab session end-to-end in a throwaway venv: pip install autolens jax from PyPI (emulating Colab's preinstalled env), a fake google.colab package so the on-Colab branch activates — including the output submodule that JAX's own colab_lib imports when it detects Colab (found by running the simulation, not by reading docs) — then the injected setup cell verbatim (pip install autoconf --no-deps → setup_colab.setup("autolens", workspace_dir=<tmp>) → workspace clone at the release tag) and one real notebook cell (al.Imaging.from_fits on dataset/imaging/simple).

While the installed autoconf predates the setup_colab registry the check reports SKIP — it self-activates at the next release. Requires the PyAutoConf workspace_dir override (PyAutoLabs/PyAutoNerves#121, same branch name) — merge together; both ship in the same release.

First run already paid for itself: the simulated cell loaded a 15×15 image from the release tag — released workspace datasets are smoke-regeneration artifacts (30/49 at ≤15px). Filed as PyAutoLabs/PyAutoHands#126.

Rider: check A/C workspace clones move off the stale Jammy2211 owner (redirects today, but it's the rot class the URL guards now forbid).

Closes #45.

API Changes

None — check suite + docs + tests only.

Test Plan

  • python3 -m pytest tests/ — 237 passed (5 new in test_verify_install_script.py: bash syntax, help lists A–F, unknown-arg rejection, F wiring, no stale clone owner)
  • SKIP path via the real script against current PyPI (F|SKIP … predates setup_colab registry; overall PASS)
  • PASS path via the driver with next-release autoconf: fake google.colab accepted, GPU check reported CPU cleanly, stack installed --no-deps, workspace cloned detached at tag 2026.7.6.649 --depth 1, config pushed, cell loaded the dataset
  • First fully-green run: after the next release, pyauto-heart verify_install F

🤖 Generated with Claude Code

New deep check following the A-E pattern: a throwaway venv emulating
Colab's preinstalled environment (autolens + jax from PyPI), a fake
google.colab package so the on-Colab branch activates (including the
output submodule JAX's colab_lib imports), then the injected setup cell
verbatim - pip bootstrap, setup_colab.setup("autolens") with the new
workspace_dir override, workspace clone at the release tag - and one
real notebook cell (al.Imaging.from_fits on dataset/imaging/simple).
SKIPs while the installed autoconf predates the setup_colab registry,
so the check self-activates at the next release.

Validated: SKIP path via the real script against current PyPI; PASS
path via the driver with next-release autoconf (clone landed detached
at the 2026.7.6.649 tag, cell loaded the dataset). First run surfaced
PyAutoLabs/PyAutoHands#126 (released datasets are 15x15 smoke
artifacts).

Rider: check A/C workspace clones move off the stale Jammy2211 owner.

Closes #45

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release Awaiting a published release label Jul 9, 2026
@Jammy2211
Jammy2211 merged commit c03bdfb into main Jul 9, 2026
4 checks passed
@Jammy2211

Copy link
Copy Markdown
Contributor Author

Record correction: the PASS-path validation clone landed detached at tag 2026.5.29.4 (matching the pip-installed autolens — PyPI's current stack latest), not 2026.7.6.649. The tag-matched-clone mechanism is exactly what was being proven, and it held; only the tag name in the test-plan bullet was wrong.

@Jammy2211
Jammy2211 deleted the feature/colab-sim-verify-install branch July 9, 2026 16:20
@Jammy2211 Jammy2211 removed the pending-release Awaiting a published release label Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: verify_install check F — simulate the Colab bootstrap end-to-end

1 participant