feat: verify_install check F — simulate the Colab bootstrap end-to-end#46
Merged
Conversation
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/PyAutoBuild#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>
Merged
2 tasks
Contributor
Author
|
Record correction: the PASS-path validation clone landed detached at tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes the last Colab maturity gap (PyAutoLabs/PyAutoBuild#124): nothing executed the Colab bootstrap path. New check F in the
verify_installsuite simulates a real Colab session end-to-end in a throwaway venv:pip install autolens jaxfrom PyPI (emulating Colab's preinstalled env), a fakegoogle.colabpackage so the on-Colab branch activates — including theoutputsubmodule that JAX's owncolab_libimports 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_fitsondataset/imaging/simple).While the installed autoconf predates the
setup_colabregistry the check reports SKIP — it self-activates at the next release. Requires the PyAutoConfworkspace_diroverride (PyAutoLabs/PyAutoConf#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/PyAutoBuild#126.
Rider: check A/C workspace clones move off the stale
Jammy2211owner (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 intest_verify_install_script.py: bash syntax, help lists A–F, unknown-arg rejection, F wiring, no stale clone owner)F|SKIP … predates setup_colab registry; overall PASS)google.colabaccepted, GPU check reported CPU cleanly, stack installed--no-deps, workspace cloned detached at tag2026.7.6.649--depth 1, config pushed, cell loaded the datasetpyauto-heart verify_install F🤖 Generated with Claude Code