smoke-test: docker exec -u developer for runtime deployment checks
Publish Docker Image / smoke (push) Successful in 5m22s
Publish Docker Image / publish (push) Failing after 10m40s
Publish Docker Image / update-description (push) Has been skipped

Without -u, docker exec runs as root and $HOME expands to /root, so
the test looks for ~/.pi/agent/keybindings.json under /root instead
of /home/developer. install.sh actually deploys correctly — the test
was just probing the wrong home directory.

Match opencode-devbox/scripts/smoke-test.sh's pattern.
This commit is contained in:
2026-05-15 01:01:54 +02:00
parent 5a6721819b
commit 8ab0f9c760
+1 -1
View File
@@ -68,7 +68,7 @@ done
exec_test() { exec_test() {
local label="$1"; local cmd="$2" local label="$1"; local cmd="$2"
if docker exec "$CID" sh -c "$cmd" >/dev/null 2>&1; then if docker exec -u developer "$CID" sh -c "$cmd" >/dev/null 2>&1; then
printf " ✅ %s\n" "$label"; PASS=$((PASS+1)) printf " ✅ %s\n" "$label"; PASS=$((PASS+1))
else else
printf " ❌ %s\n" "$label"; FAIL=$((FAIL+1)) printf " ❌ %s\n" "$label"; FAIL=$((FAIL+1))