fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging.moleculesai.app #3148
Reference in New Issue
Block a user
Delete Branch "feat/prune-cf-e2e-dns"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging.moleculesai.app
Related to #3140. Tracker: #3147.
#3146 already retargeted the
prune-stale-e2e-dnscontinue-on-error / bp-required tracker to mc#3147. This PR adds the remaining Researcher RC 13130 correctness blocker:PRUNE_ZONE_DOMAINis nowstaging.moleculesai.app, the observed domain for leakede2e-smoke-*/e2e-tmpl-*records.PRUNE_ZONE_DOMAINaccepts a comma-separated list (e.g.moleculesai.app,staging.moleculesai.app) for multi-zone sweeps.Test plan
bash tests/ops/test_prune_cf_e2e_dns_fail_closed.sh→ 18/18 pass locally.python3 .gitea/scripts/lint-workflow-yaml.py --workflow-dir .gitea/workflows→ clean.python3 .gitea/scripts/lint_continue_on_error_tracking.py .gitea/workflows/e2e-staging-saas.yml→ mc#3147 tracker valid.🤖 Generated with Claude Code
6f0ccb4ccato397469151b5-axis current-head review: approved. The change keeps the CF prune scope conservative: default matching is now anchored to staging.moleculesai.app, apex matching is opt-in, comma-separated domains are trimmed and regex-escaped, and the ephemeral-name regex still requires exact e2e-smoke-/e2e-tmpl- prefixes plus a non-empty suffix. The regression test continues to use the delete sentinel boundary and now covers default staging deletion, staging-only apex/dev-subdomain keeps, explicit apex deletion, multi-zone matching, and staging near-miss keeps. Diff also retargets the best-effort continue-on-error tracker to mc#3147 without changing job behavior, secrets, permissions, or deletion flags. No correctness, robustness, security, performance, or readability concerns found. Not merging from this review because checks are still pending and current rollup is not green.
APPROVED on current head
397469151b.5-axis safety review:
PRUNE_ZONE_DOMAINnow defaults tostaging.moleculesai.appand supports comma-separated domains. Matching remains opt-in by configured domain, with each domainre.escaped before regex construction, so dots are literal and multi-zone does not broaden to arbitrary suffixes. The prefix remains anchored to exacte2e-smoke-/e2e-tmpl-plus at least one suffix char.bash tests/ops/test_prune_cf_e2e_dns_fail_closed.shpassed 18/18. The tests cover non-2xx/malformed/non-array abort-before-delete, default staging match, apex keep under staging-only, explicit apex delete, multi-zone staging/apex delete, and near-miss keeps.--apply, min-age,MAX_DELETE_PCT, and fail-closed CF list handling are intact. Near-miss tenant/non-ephemeral names remain out of scope.Status note: rollup is currently pending, not a code failure at review time. The visible blockers are CI still running: E2E Staging SaaS Platform Boot / Concierge Creates Workspace and Local Provision Lifecycle advisory are pending, and
CI / all-requiredis waiting to run. I do not yet see the DNS-quota 81045 failure on this head.397469151btodae54f0144fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging + tracker retargetto fix(scripts/ops): #3140 ADDENDUM — PRUNE_ZONE_DOMAIN covers staging.moleculesai.appFresh current-head review for
dae54f01: approved. The diff is now focused on PRUNE_ZONE_DOMAIN behavior only: default scope becomes staging.moleculesai.app, apex/multi-zone matching is explicit opt-in, configured domains are trimmed and regex-escaped, and the e2e-smoke-/e2e-tmpl- prefix+suffixed-name guard remains intact. Tests preserve the delete-sentinel boundary and cover default staging deletion, staging-only apex/dev-subdomain keeps, explicit apex deletion, multi-zone matching, and staging near-miss keeps. No behavior outside the CF prune matcher/tests changed; no secrets, permissions, or delete-flag widening. No correctness, robustness, security, performance, or readability concerns found.APPROVED on current head
dae54f0144.Re-reviewed after the post-#3146 rebase. The diff is limited to scripts/ops/prune_cf_e2e_dns.sh and tests/ops/test_prune_cf_e2e_dns_fail_closed.sh.
5-axis summary: