Skip to content

fix(verify_install): check F re-runs the Colab setup cell after a restart request - #337

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/colab-restart-fix
Nov 12, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/colab-restart-fix

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Refs PyAutoLabs/PyAutoNerves#217.

Summary

Check F's driver treated the bootstrap's ColabRestartRequired as a failure. A real Colab user restarts the runtime and runs the cell again, so now:

  • the driver catches it by class name and exits 4;
  • the shell re-runs the cell once in a fresh process;
  • a second request (mapped to 41) or any other error is still a FAIL.

With PyAutoLabs/PyAutoNerves#217 the restart becomes rare. This makes the gate measure what users experience rather than failing on it.

API Changes

None (Heart check).

Test Plan

  • New tests run the real driver extracted from the script against a fake bootstrap: a restart request gives exit 4; any other error still fails. A wiring test checks exactly one re-run. Control: both fail on the old script.
  • Heart suite: 1327 passed; tenant firewall OK.
  • CI.

🤖 Generated with Claude Code

…a restart request

When the bootstrap raises ColabRestartRequired (it upgraded a package this
process had already loaded), do what a user does: run the cell again in a
fresh process. Exit 4 marks the request; a second request or any other
failure is still a FAIL. Matched by class name so older autonerves releases
are unaffected.

Refs PyAutoLabs/PyAutoNerves#217

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 9afbd3f into main Nov 12, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/colab-restart-fix branch November 12, 2026 15:49
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.

1 participant