From 5c0a48f0f5c2a44bc0fa2b89b22767459af7a108 Mon Sep 17 00:00:00 2001 From: claude-ceo-assistant Date: Sat, 23 May 2026 22:09:50 -0700 Subject: [PATCH] fix(ci): make prod deploy wait on aggregate context --- .gitea/scripts/prod-auto-deploy.py | 4 ---- .gitea/scripts/tests/test_prod_auto_deploy.py | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/scripts/prod-auto-deploy.py b/.gitea/scripts/prod-auto-deploy.py index 32b633c3..67fd46d4 100644 --- a/.gitea/scripts/prod-auto-deploy.py +++ b/.gitea/scripts/prod-auto-deploy.py @@ -21,10 +21,6 @@ from urllib.parse import quote TRUE_VALUES = {"1", "true", "yes", "on", "disabled", "disable"} PROD_CP_URL = "https://api.moleculesai.app" DEFAULT_REQUIRED_CONTEXTS = [ - "CI / Platform (Go) (push)", - "CI / Canvas (Next.js) (push)", - "CI / Shellcheck (E2E scripts) (push)", - "CI / Python Lint & Test (push)", "CI / all-required (push)", "Secret scan / Scan diff for credential-shaped strings (push)", ] diff --git a/.gitea/scripts/tests/test_prod_auto_deploy.py b/.gitea/scripts/tests/test_prod_auto_deploy.py index d3437340..f1417c8a 100644 --- a/.gitea/scripts/tests/test_prod_auto_deploy.py +++ b/.gitea/scripts/tests/test_prod_auto_deploy.py @@ -146,3 +146,10 @@ def test_context_is_terminal_failure_rejects_cancelled_and_skipped(): assert prod.context_is_terminal_failure(state) is True for state in ("pending", "missing", "success"): assert prod.context_is_terminal_failure(state) is False + + +def test_default_required_contexts_delegate_path_gating_to_all_required(): + assert prod.required_contexts({}) == [ + "CI / all-required (push)", + "Secret scan / Scan diff for credential-shaped strings (push)", + ]