From f070a7226056fdc35b77901b288cb8766ee23bab Mon Sep 17 00:00:00 2001 From: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Date: Wed, 28 Jan 2026 15:20:22 -0800 Subject: [PATCH] Fix CI UI test log handling --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6c5177c..cfab384b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,7 +53,7 @@ jobs: - name: Run UI tests run: | set -euo pipefail - log_file="$(mktemp /tmp/cmux-ui-tests.XXXXXX.log)" + log_file="$(mktemp /tmp/cmux-ui-tests.XXXXXX)" console_user="$(stat -f%Su /dev/console)" console_uid="" if [ "$console_user" != "root" ]; then @@ -105,9 +105,10 @@ jobs: status=${PIPESTATUS[0]} fi - rm -f "$log_file" if [ "$status" -ne 0 ] && grep -q "Timed out while enabling automation mode" "$log_file"; then echo "UI automation mode is unavailable on this runner. Skipping UI tests." + rm -f "$log_file" exit 0 fi + rm -f "$log_file" exit "$status"