## Summary - Add `--progress=plain` to all `dagger call` invocations in mise tasks to prevent SIGTTOU hangs ## Root cause Mise runs task scripts in a child process group that is not the terminal's foreground group. When `dagger call` detects a TTY (inherited from the interactive shell), it tries to render its TUI progress display, which requires terminal ioctls. Since the process is not in the foreground group, the kernel sends SIGTTOU, stopping the process indefinitely. This only manifests when running from an interactive terminal (e.g. `pre-commit run --all-files` in fish/wezterm). CI and piped contexts are unaffected since there's no TTY. ## Changes - `mise-tasks/validate-workflows` — add `--progress=plain` - `mise-tasks/frigate-export-model` — add `--progress=plain` - `mise-tasks/provision-ringtail` — add `--progress=plain` ## Test plan - [x] `pre-commit run --all-files` completes without hanging - [ ] Verify in interactive fish/wezterm terminal 🤖 Generated with [Claude Code](https://claude.com/claude-code) Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/256
31 lines
976 B
Bash
Executable file
31 lines
976 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#MISE description="Run ansible playbook to provision ringtail (NixOS)"
|
|
|
|
set -euo pipefail
|
|
|
|
export MISE_TASK_OUTPUT=interleave
|
|
|
|
# Update flake.lock via Dagger before deploying
|
|
echo "Updating nixos/ringtail/flake.lock..."
|
|
dagger call --progress=plain flake-lock --src=. --flake-path=nixos/ringtail \
|
|
export --path=nixos/ringtail/flake.lock
|
|
|
|
if ! git diff --quiet nixos/ringtail/flake.lock; then
|
|
git add nixos/ringtail/flake.lock
|
|
echo "flake.lock changed and staged. Commit, push, and re-run."
|
|
exit 1
|
|
fi
|
|
|
|
COMMIT=$(git rev-parse HEAD)
|
|
REMOTE_REF=$(git ls-remote origin "$(git rev-parse --abbrev-ref HEAD)" 2>/dev/null | awk 'NR==1{print $1}')
|
|
|
|
if [[ "$REMOTE_REF" != "$COMMIT" ]]; then
|
|
echo "ERROR: Current commit $COMMIT is not pushed to forge."
|
|
echo "Push your changes first: git push"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Deploying commit $COMMIT to ringtail..."
|
|
|
|
cd ansible
|
|
ansible-playbook playbooks/ringtail.yml -e "ringtail_commit=$COMMIT" "$@"
|