From 6d74874348d4d524ae10ae09d13a6a004626ad2f Mon Sep 17 00:00:00 2001 From: Wildan M <willnode@wellosoft.net> Date: Wed, 18 Sep 2024 08:18:09 +0700 Subject: [PATCH] Progress bar stays minimal in CI --- src/executor/runner.js | 3 ++- src/executor/runnercode.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/executor/runner.js b/src/executor/runner.js index b3fe196..db18b17 100644 --- a/src/executor/runner.js +++ b/src/executor/runner.js @@ -282,7 +282,8 @@ export default async function runConfig(config, domain, writer, sandbox = false) } } await sshExec('unset HISTFILE TERM', false); // https://stackoverflow.com/a/9039154/3908409 - await sshExec(`export CI=true CONTINUOUS_INTEGRATION=true LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8`, false); + await sshExec(`export CI=true CONTINUOUS_INTEGRATION=true LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 `, false); + await sshExec(`export PIP_PROGRESS_BAR=off BUILDKIT_PROGRESS=plain`, false); await sshExec(`USERNAME='${domaindata['Username']}' PASSWORD='${domaindata['Password']}'`, false); const firewallOn = await firewallStatus(); if (config.subdomain) { diff --git a/src/executor/runnercode.js b/src/executor/runnercode.js index cff61f0..97d64a7 100644 --- a/src/executor/runnercode.js +++ b/src/executor/runnercode.js @@ -55,7 +55,6 @@ export async function runConfigCodeFeatures(key, value, writeLog, domaindata, ss await sshExec(`pyenv install ${parg.version} -s`); } await sshExec(`pyenv global ${parg.version.replace(":latest", "")}`); - await sshExec(`[[ -z $PIP_PROGRESS_BAR ]] && echo "export PIP_PROGRESS_BAR=off" >> ~/.bashrc`) await sshExec(`source ~/.bashrc`, false) await sshExec("python --version"); }