You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by wa...@apache.org on 2026/02/19 22:25:26 UTC

(tooling-trusted-releases) branch introduce-atr-status-config created (now ccbb72f5)

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

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


      at ccbb72f5 Introduce ATR_STATUS and control recipient lists

This branch includes the following new commits:

     new ccbb72f5 Introduce ATR_STATUS and control recipient lists

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


(tooling-trusted-releases) 01/01: Introduce ATR_STATUS and control recipient lists

Posted by wa...@apache.org.
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 <da...@comcast.net>
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("announce@apache.org")
+    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: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org