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/08/03 14:23:42 UTC
(tooling-trusted-releases) branch arm updated: #1449 - add error for incomplete metadata from release start API
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 4da7ac40 #1449 - add error for incomplete metadata from release start API
4da7ac40 is described below
commit 4da7ac40026992361e191da1dd66a4e9e7b8631b
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Mon Aug 3 15:23:06 2026 +0100
#1449 - add error for incomplete metadata from release start API
---
atr/storage/writers/release.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/atr/storage/writers/release.py b/atr/storage/writers/release.py
index 05532fd8..42393a04 100644
--- a/atr/storage/writers/release.py
+++ b/atr/storage/writers/release.py
@@ -49,6 +49,7 @@ import atr.models.results as results
import atr.models.safe as safe
import atr.models.sql as sql
import atr.paths as paths
+import atr.shared.start as start
import atr.storage as storage
import atr.storage.datatypes as datatypes
import atr.svn as svn
@@ -291,6 +292,10 @@ async def _start_release(
raise storage.AccessError(f"Project {project_key} not found", status=404)
_assert_can_start(asf_uid, project)
+ if missing := start.missing_release_metadata(project):
+ raise storage.AccessError(
+ f"Project metadata incomplete, cannot start a release: {', '.join(missing)}", status=400
+ )
if expedited and (project.committee is not None) and project.committee.is_podling:
raise storage.AccessError("Expedited releases are not available for podling projects.", status=400)
await _assert_no_existing_release(data, project, project_key, version)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org