Skip to content

feat: workspace_dir override in setup_colab.setup (CI Colab simulation)#121

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

feat: workspace_dir override in setup_colab.setup (CI Colab simulation)#121
Jammy2211 merged 1 commit into
mainfrom
feature/colab-sim-verify-install

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds a workspace_dir override to setup_colab.setup so CI can simulate the Colab bootstrap: the _PROJECTS registry hardcodes Colab's /content/<workspace> directories, which CI runners cannot write. PyAutoHeart's new verify_install check F (PyAutoLabs/PyAutoHeart#46, same branch name) passes its throwaway clone target through this parameter. Default behavior is unchanged — on real Colab the registry directory is used exactly as before.

Part of PyAutoLabs/PyAutoHeart#45.

API Changes

Added an optional keyword-only-in-practice parameter: setup_colab.setup(project, raise_error_if_not_gpu=False, workspace_dir=None). Backward compatible; no existing call site changes.
See full details below.

Test Plan

  • python -m pytest test_autoconf/ — 134 passed (2 new: override threads to _colab_setup; default remains the registry Colab dir)
  • Exercised for real by the check-F driver: clone landed detached at the 2026.7.6.649 tag inside the override directory, config pushed, notebook cell ran
Full API Changes (for automation & release notes)

Added

  • setup_colab.setup(..., workspace_dir: str = None) — clone-target override for CI Colab simulation; None keeps the registry's /content/<workspace> default.

🤖 Generated with Claude Code

The registry hardcodes Colab's /content/<workspace> directories, which CI
cannot write; PyAutoHeart's verify_install check F simulates the Colab
bootstrap in a throwaway venv and passes its own clone target through this
parameter. Default behavior unchanged.

Part of PyAutoLabs/PyAutoHeart#45

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 9, 2026
@Jammy2211 Jammy2211 merged commit 89c4714 into main Jul 9, 2026
4 checks passed
@Jammy2211 Jammy2211 deleted the feature/colab-sim-verify-install branch July 9, 2026 16:20
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