From 5144712ab623b0ae975e8369c30cb5d35dbb2615 Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza <8016841+diegosouzapw@users.noreply.github.com> Date: Wed, 8 Jul 2026 18:37:04 -0300 Subject: [PATCH] =?UTF-8?q?ci(vps):=20honor=20VPS=5FALWAYS=5FON=20?= =?UTF-8?q?=E2=80=94=20release=20teardown=20is=20a=20no-op=20on=20the=20de?= =?UTF-8?q?dicated=2024/7=20host=20(#6693)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The .113 VM is now a dedicated, always-on CI host so day-to-day quality.yml PRs (PR→release/**) use the 32-core VPS, not just release CI. release-runner-down.sh must not flip USE_VPS_RUNNER=false / shut the VM down when VPS_ALWAYS_ON=true, or every PR after a release would fall back to ubuntu-latest. Legacy on-demand teardown still applies when the var is unset/false. --- scripts/vps/release-runner-down.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/vps/release-runner-down.sh b/scripts/vps/release-runner-down.sh index dd27087cad..f65e0ace8e 100755 --- a/scripts/vps/release-runner-down.sh +++ b/scripts/vps/release-runner-down.sh @@ -10,6 +10,17 @@ VM_ID="${VM_ID:-113}" REPO="${REPO:-diegosouzapw/OmniRoute}" SSH="ssh -o BatchMode=yes -o ConnectTimeout=8" +# 0) Always-on mode. When the repo var VPS_ALWAYS_ON=true, the VM 113 is a DEDICATED, +# 24/7 CI host (32c/24GB, exclusive to this project) — the day-to-day quality.yml PRs +# (PR→release/**) route to it too, not just release CI. In that mode the release MUST NOT +# tear the VM down or flip USE_VPS_RUNNER off, or every subsequent PR would fall back to +# ubuntu-latest until the next release. Teardown/flag-off is the LEGACY on-demand-per-release +# model only. (Set/unset with: gh variable set VPS_ALWAYS_ON --body true|false.) +if [ "$(gh variable get VPS_ALWAYS_ON --repo "$REPO" 2>/dev/null)" = "true" ]; then + echo "[release-runner] VPS_ALWAYS_ON=true — dedicated 24/7 host; leaving VM $VM_ID up and USE_VPS_RUNNER=true." + exit 0 +fi + # 1) Volta o CI para ubuntu-latest ANTES de derrubar a VM (evita jobs presos). echo "[release-runner] USE_VPS_RUNNER=false (CI volta ao GitHub-hosted)." gh variable set USE_VPS_RUNNER --repo "$REPO" --body "false" >/dev/null 2>&1 || true