This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch introduce-atr-status-config
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit ccbb72f5f6fff060e776eff2f73bd6e6689419f9
Author: Dave Fisher <[email protected]>
AuthorDate: Thu Feb 19 14:25:19 2026 -0800

    Introduce ATR_STATUS and control recipient lists
---
 atr/config.py |  1 +
 atr/util.py   | 18 ++++++++++++------
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/atr/config.py b/atr/config.py
index 4535fd19..c42763dd 100644
--- a/atr/config.py
+++ b/atr/config.py
@@ -70,6 +70,7 @@ def _config_secrets_get(
 class AppConfig:
     ABSOLUTE_SESSION_MAX_SECONDS = 
decouple.config("ABSOLUTE_SESSION_MAX_SECONDS", default=60 * 60 * 72, cast=int)
     ALLOW_TESTS = decouple.config("ALLOW_TESTS", default=False, cast=bool)
+    ATR_STATUS = decouple.config("ATR_STATUS", default="ALPHA", cast=str)
     DISABLE_CHECK_CACHE = decouple.config("DISABLE_CHECK_CACHE", 
default=False, cast=bool)
     APP_HOST = decouple.config("APP_HOST", default="127.0.0.1")
     SSH_HOST = decouple.config("SSH_HOST", default="0.0.0.0")
diff --git a/atr/util.py b/atr/util.py
index 60a78df9..a5e78132 100644
--- a/atr/util.py
+++ b/atr/util.py
@@ -830,12 +830,16 @@ def paths_to_inodes(directory: pathlib.Path) -> dict[str, 
int]:
 
 
 def permitted_announce_recipients(asf_uid: str) -> list[str]:
-    return [
+    recipients = [
         # f"dev@{committee.name}.apache.org",
         # f"private@{committee.name}.apache.org",
-        USER_TESTS_ADDRESS,
-        f"{asf_uid}@apache.org",
     ]
+    if config.get().ATR_STATUS == "ALPHA":
+        recipients.append(USER_TESTS_ADDRESS)
+        recipients.append(f"{asf_uid}@apache.org")
+    else:
+        recipients.append("[email protected]")
+    return recipients
 
 
 def permitted_archive_roots(basename_from_filename: str) -> list[str]:
@@ -848,12 +852,14 @@ def permitted_archive_roots(basename_from_filename: str) 
-> list[str]:
 
 
 def permitted_voting_recipients(asf_uid: str, committee_name: str) -> 
list[str]:
-    return [
+    recipients = [
         f"dev@{committee_name}.apache.org",
         f"private@{committee_name}.apache.org",
-        USER_TESTS_ADDRESS,
-        f"{asf_uid}@apache.org",
     ]
+    if config.get().ATR_STATUS == "ALPHA":
+        recipients.append(USER_TESTS_ADDRESS)
+        recipients.append(f"{asf_uid}@apache.org")
+    return recipients
 
 
 def plural(count: int, singular: str, plural_form: str | None = None, *, 
include_count: bool = True) -> str:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to