<#1041 fix: surface devbox docker/kubeconfig error...
# flyte-github
a
#1041 fix: surface devbox docker/kubeconfig errors as ClickException Pull request opened by EngHabu Summary • Wrap the docker volume/ps subprocess calls in
_devbox.py
with a small
_run_docker
helper that converts non-zero exits into
click.ClickException
with stderr details, instead of bubbling raw
CalledProcessError
up the stack. • Use
unlink(missing_ok=True)
and translate
PermissionError
on the stale k3s kubeconfig into an actionable
ClickException
. Closes • FLYTE-SDK-D —
docker volume ls
non-zero exit reported as raw subprocess crash • FLYTE-SDK-1H —
PermissionError
unlinking
/tmp/.kube/kubeconfig
Test plan • New unit tests in
tests/cli/test_devbox.py
cover the failure paths for
_ensure_volume
,
_container_is_running
,
_container_is_paused
. • Existing devbox tests still pass. • Manual:
flyte start devbox
with docker stopped → friendly message; with a root-owned
/tmp/.kube/kubeconfig
→ friendly message. 🤖 Generated with Claude Code flyteorg/flyte-sdk