From ac193950dd2c2534d65059ba7bc6285504f9448c Mon Sep 17 00:00:00 2001 From: ilia Date: Sat, 10 Jan 2026 15:03:37 -0500 Subject: [PATCH] Fix CI: Prevent interactive prompts in sonar-analysis job ISSUE: ====== - CI job stuck waiting for tzdata timezone configuration - Interactive prompt blocks non-interactive CI environment - Job running for 30+ minutes waiting for user input FIX: ==== - Set DEBIAN_FRONTEND=noninteractive in all apt-get steps - Pre-configure timezone to UTC before package installation - Prevents interactive prompts during package configuration CHANGES: ======== - Install Node.js step: Added DEBIAN_FRONTEND=noninteractive - Install Java step: Added DEBIAN_FRONTEND=noninteractive - Install Python 3.11 step: Added DEBIAN_FRONTEND=noninteractive + TZ=UTC - Set timezone symlink before apt-get install to avoid tzdata prompt This ensures all package installations run non-interactively. --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4218f23..b6389cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -242,6 +242,7 @@ jobs: steps: - name: Install Node.js for checkout action run: | + export DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y curl curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs @@ -252,6 +253,7 @@ jobs: - name: Install Java and SonarScanner run: | set -e + export DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y wget curl unzip openjdk-21-jre # Use a known working version to avoid download issues @@ -346,6 +348,9 @@ jobs: - name: Install Python 3.11 and dependencies run: | + export DEBIAN_FRONTEND=noninteractive + export TZ=UTC + ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone apt-get update apt-get install -y software-properties-common add-apt-repository -y ppa:deadsnakes/ppa