Repository navigation
feat: wait for Docker, clean up after Ctrl+C, and show access info on reinstall - #102
Merged
Merged
Conversation
rboni-dk
reviewed
Nov 18, 2026
rboni-dk
left a comment
Contributor
There was a problem hiding this comment.
Nice work. Routing Ctrl+C through on_action_fail is the right shape, and keeping the password out of the access-info logs fixes a real leak. A few things:
- The Docker wait doesn't reach plain
tg install. With no--docker/--pip(and always from the .exe menu),_auto_select_modeprobes the prereqs quietly. When Docker is installed but the engine is down, it only offers pip, sowait_for_docker_enginenever runs. That's the case this feature is meant for. Could the picker offer "start Docker Desktop and press Enter" when Docker is installed but the engine isn't running? - Ctrl+C during demo data now deletes a working Docker install.
TestgenQuickStartStepis optional, but an interrupt in it fails the action, soComposeStartStep.on_action_failrunsdown --volumesand the compose file is removed. I'd treat an interrupt in a non-required step like a failure of that step and carry on, or at least skip the teardown once the app is up. - Suggestion: while Docker Desktop is starting, the CLI can hang rather than fail fast, so each poll may block for the full 30-second check timeout and the 60-second wait can stretch to about 90. WSL2 cold starts also often take more than 60 seconds. A shorter timeout per poll plus a longer overall wait (or a re-prompt on timeout) might make this more forgiving.
- Pip-mode interrupts still leave
config.envand the uv tool behind, since the pip steps have noon_action_failand the marker is only written on success. The PR description's cleanup claim is Docker-only. - Smaller ones:
- Ctrl+C at the "press Enter" prompt doesn't set
docker_engine_wait=interrupted. - After a successful cleanup we still print "may result in an inconsistent application state". For pip and upgrade runs, "Cleaning up..." prints with nothing to clean.
NothingToDostill rewrites the install marker'slast_updated_on.
- Ctrl+C at the "press Enter" prompt doesn't set
- Missing tests:
- Ctrl+C at the prompt and during the wait
- skipping the wait when
docker -vfails - the access info printed by
tg installover an existing install version_updated- the
ObsFetchCurrentVersionStepmessage suppression
… reinstall - When Docker is installed but its engine is not running, ask the user to start it and wait up to 60 seconds instead of stopping. - Running install over an existing install prints its URLs and credentials and how to start it, keeping the password out of the logs (access-info too). - Ctrl+C during a step runs the same cleanup as a failed step, so an interrupted install no longer leaves containers and volumes behind. - An upgrade with nothing to update succeeds instead of aborting, and upgrade events report version_updated. - The message for an unreachable TestGen image mentions proxies, --image, and installing with pip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aarthy-dk
force-pushed
the
feat/analytics-outcome-fields
branch
from
November 19, 2026 05:11
ad7e3ea to
fd47c2c
Compare
aarthy-dk
force-pushed
the
feat/installer-ux-fixes
branch
from
November 19, 2026 05:11
a3c7172 to
b365f41
Compare
Contributor
Author
|
Thanks, all addressed in b365f41 (rebased onto the updated #101):
I updated the PR description to match. |
rboni-dk
approved these changes
Nov 19, 2026
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.
Stacked on #101: review and merge that first. This PR's diff is only the last commit.
Summary
tg install(no--docker/--pip, and always from the.exemenu) offers Docker in this case too. Choosing it leads to the same prompt. Without a terminal, the picker falls back to offering pip only.docker_engine_waitasstarted,timed_out, orinterrupted(including Ctrl+C at the prompt).installon an existing install prints the app's URLs and credentials, plus how to start, upgrade, or remove it, instead of only stopping. The password stays out of the session logs, here and inaccess-info.tg delete --keep-data). Pip installs also clean up this way after a failed step.INTERRUPTED. Installs print "Cleaning up..." and then "The partial installation was removed." When a cleanup hook fails, or for upgrades, which have nothing to undo, the existing "inconsistent state" warning prints instead.version_updatedwhen both the installed and latest versions are known.--imagefor a registry mirror, and installing with pip.Test plan
ruff check/ruff format --checkcleanpytest: 326 passeddocker -vfailstg installover an existing install, and the password staying out of the logsversion_updatedfor Docker and pip upgradestg installover an existing pip install: access info and hints printed, and the password is not in the session ziptg install, start Docker Desktop at the prompt, and the install continuestg installagain and it doesn't report an existing install🤖 Generated with Claude Code