1
0
forked from baron/baron-sso

런트 CI 안정화를 위한 React 중복 해석 방지 및 설치 재시도 추가

This commit is contained in:
2026-05-18 09:58:56 +09:00
parent f22a914586
commit 36fc945eaf
3 changed files with 5552 additions and 4 deletions

View File

@@ -62,6 +62,31 @@ find_available_port() {
'
}
run_with_retry() {
local max_attempts="$1"
shift
local attempt=1
local exit_code=0
while [ "$attempt" -le "$max_attempts" ]; do
if "$@"; then
return 0
fi
exit_code=$?
if [ "$attempt" -ge "$max_attempts" ]; then
return "$exit_code"
fi
echo "==> command failed (attempt $attempt/$max_attempts): $*"
echo "==> retrying in 10 seconds..."
sleep 10
attempt=$((attempt + 1))
done
return "$exit_code"
}
playwright_install_cmd=(npx playwright install)
playwright_install_desc="npx playwright install"
playwright_project_args=()
@@ -134,7 +159,8 @@ fi
set +e
(
cd "$tmp_dir/adminfront"
npm install -g pnpm && pnpm install -C ../common --no-frozen-lockfile
run_with_retry 3 npm install -g pnpm
run_with_retry 3 pnpm install -C ../common --no-frozen-lockfile
) 2>&1 | tee reports/adminfront-install.log
install_exit_code=${PIPESTATUS[0]}
set -e