You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/06/01 15:47:29 UTC
(tooling-trusted-releases) branch arm updated: #1279 - add a test podling committee and project
This is an automated email from the ASF dual-hosted git repository.
alitheg pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/arm by this push:
new 11525c3e #1279 - add a test podling committee and project
11525c3e is described below
commit 11525c3e99b9ec46ee42572f11e0946c5087813a
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Mon Jun 1 16:47:11 2026 +0100
#1279 - add a test podling committee and project
---
atr/server.py | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/atr/server.py b/atr/server.py
index ce55436a..72ba2b81 100644
--- a/atr/server.py
+++ b/atr/server.py
@@ -843,6 +843,33 @@ async def _initialise_test_environment(conf: type[config.AppConfig]) -> None:
data.add(test_project)
await data.commit()
+ # A podling equivalent, so we can exercise incubator/podling behaviours in tests
+ test_podling_committee = await data.committee(key="test-podling").get()
+ if not test_podling_committee:
+ test_podling_committee = sql.Committee(
+ key="test-podling",
+ name="Test Podling",
+ is_podling=True,
+ committee_members=["test"],
+ committers=["test"],
+ release_managers=["test"],
+ )
+ data.add(test_podling_committee)
+ await data.commit()
+
+ test_podling_project = await data.project(key="test-podling").get()
+ if not test_podling_project:
+ test_podling_project = sql.Project(
+ key="test-podling",
+ name="Apache Test Podling",
+ status=sql.ProjectStatus.ACTIVE,
+ committee_key="test-podling",
+ created=datetime.datetime.now(datetime.UTC),
+ created_by="test",
+ )
+ data.add(test_podling_project)
+ await data.commit()
+
def _is_hot_reload() -> bool:
proc = multiprocessing.current_process()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org