fix: no-input app deployment when no tty is present #718

Merged
decentral1se merged 1 commits from Apfelwurm/abra:feature/noninteractivedeploy into main 2025-11-04 13:52:29 +00:00
Member

Running abra app deploy APPNAME -f --no-input in a non tty environment like Ansible, does not work right now, since bubbletea breaks when it is trying to open the tty:

waitOnServices: error running TUI: could not open a new TTY: open /dev/tty: no such device or address"

skipping the converge-checks would work, but since bubbletea has support for disabling the render and the input, this solution is cleaner, to make sure the converge checks are running, but not all details are shown dynamically instead.

Running `abra app deploy APPNAME -f --no-input ` in a non tty environment like Ansible, does not work right now, since bubbletea breaks when it is trying to open the tty: ``` waitOnServices: error running TUI: could not open a new TTY: open /dev/tty: no such device or address" ``` skipping the converge-checks would work, but since bubbletea has support for disabling the render and the input, this solution is cleaner, to make sure the converge checks are running, but not all details are shown dynamically instead.
Apfelwurm added 1 commit 2025-11-04 13:43:21 +00:00
fix no-input app deployment when no tty is present
Some checks failed
continuous-integration/drone/pr Build is failing
30a6517bdb
Apfelwurm requested review from decentral1se 2025-11-04 13:43:23 +00:00
decentral1se reviewed 2025-11-04 13:52:00 +00:00
decentral1se left a comment
Owner

Nice, thank you!

Didn't test this but assume you have 🙃

One word of warning, if you don't provide TIMEOUT=... in your app .env, the deploy converge checking will never time out since v0.11. I guess this might make any ansible logic pretty flaky. It would also be possible to add a --timeout X flag for this kind of automation. But for now, it's possible by passing it via the .env.

Nice, thank you! Didn't test this but assume you have 🙃 One word of warning, if you don't provide `TIMEOUT=...` in your app `.env`, the deploy converge checking will never time out since `v0.11`. I guess this might make any ansible logic pretty flaky. It would also be possible to add a `--timeout X` flag for this kind of automation. But for now, it's possible by passing it via the `.env`.
decentral1se merged commit 1bdc11ba62 into main 2025-11-04 13:52:29 +00:00
decentral1se changed title from fix no-input app deployment when no tty is present to fix: no-input app deployment when no tty is present 2025-11-04 13:52:34 +00:00
decentral1se added this to the Abra v0.12 project 2025-11-04 13:52:40 +00:00
decentral1se moved this to Done in Abra v0.12 on 2025-11-04 13:52:59 +00:00
Sign in to join this conversation.
No description provided.