From 9321bedf3ead0e1484991845f24fa001f944b7f4 Mon Sep 17 00:00:00 2001 From: Divine Date: Mon, 13 Apr 2026 21:10:57 -0400 Subject: [PATCH] fix: regression mode skips task/full gates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The nightly regression workflow failed every night because gates.sh regression ran all task gates (build, vet, lint, etc.) before the regression loop. golangci-lint wasn't installed on the nightly runner, causing an immediate exit. Regression mode now skips directly to the regression test loop. CI already runs all task/full gates on every push — running them again in the nightly is redundant. Closes #9, #10, #16. --- scripts/gates.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/gates.sh b/scripts/gates.sh index c06c6e0..0ecf45d 100755 --- a/scripts/gates.sh +++ b/scripts/gates.sh @@ -94,7 +94,15 @@ skip_gate() { # job AND with the linters-settings.gosec.excludes block in .golangci.yml. GOSEC_EXCLUDE="G117,G304,G101" -# --- TASK gates --- +# --- TASK gates (skipped in regression mode — CI already ran them on push) --- + +if [[ "$MODE" == "regression" ]]; then + echo "" + echo "=== Skipping task/full gates in regression mode ===" + echo "(CI gates run on every push; regression mode only runs test suites)" +fi + +if [[ "$MODE" != "regression" ]]; then run_gate "build" go build ./cmd/broker ./cmd/awrit @@ -192,6 +200,8 @@ if [[ "$MODE" == "full" ]]; then ' fi +fi # end of MODE != regression + # --- REGRESSION gates (only if mode is regression) --- if [[ "$MODE" == "regression" ]]; then