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

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-releases-client.git


The following commit(s) were added to refs/heads/main by this push:
     new 44a5240  Add tests to ensure that a vote cannot be started during 
checks
44a5240 is described below

commit 44a52407e781247c2c0b4d10527bb7bf4546870e
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Jul 24 15:27:55 2025 +0100

    Add tests to ensure that a vote cannot be started during checks
---
 pyproject.toml        |  4 ++--
 tests/cli_slow_task.t | 39 +++++++++++++++++++++++++++++++++++++++
 uv.lock               | 10 +++++-----
 3 files changed, 46 insertions(+), 7 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index d881a2c..910394e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,7 +11,7 @@ build-backend = "hatchling.build"
 
 [project]
 name            = "apache-trusted-releases"
-version         = "0.20250723.1944"
+version         = "0.20250724.1424"
 description     = "ATR CLI and Python API"
 readme          = "README.md"
 requires-python = ">=3.13"
@@ -72,4 +72,4 @@ select = [
 ]
 
 [tool.uv]
-exclude-newer = "2025-07-23T19:44:00Z"
+exclude-newer = "2025-07-24T14:24:00Z"
diff --git a/tests/cli_slow_task.t b/tests/cli_slow_task.t
new file mode 100644
index 0000000..7a6f822
--- /dev/null
+++ b/tests/cli_slow_task.t
@@ -0,0 +1,39 @@
+$ atr set atr.host 127.0.0.1:8080
+Set atr.host to "127.0.0.1:8080".
+
+$ atr dev user
+<?user?>
+
+$ atr set asf.uid <!user!>
+Set asf.uid to "<!user!>".
+
+$ atr dev pat
+<?pat?>
+
+$ atr set tokens.pat <!pat!>
+Set tokens.pat to "<!pat!>".
+
+<# delete any existing draft, ignoring errors #>
+* atr dev delete tooling-test-example 0.3+slow
+<.etc.>
+
+$ atr release start tooling-test-example 0.3+slow
+<.skip.>created<.skip.>
+
+$ atr config path
+<?config_rel_path?>
+
+$ atr upload tooling-test-example 0.3+slow 
/deliberately_slow_ATR_task_filename.txt <!config_rel_path!>
+<.skip.>created<.skip.>
+
+! atr vote start tooling-test-example 0.3+slow 00002 -m "<!user!>@apache.org"
+<.stderr.>
+atr: error: Error message from the API:
+400 https://127.0.0.1:8080/api/vote/start
+{
+  "error": "All checks must be completed before starting a vote"
+}
+
+<# tidy up #>
+* atr dev delete tooling-test-example 0.3+slow
+<.etc.>
diff --git a/uv.lock b/uv.lock
index 1b14201..233dc59 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2,7 +2,7 @@ version = 1
 requires-python = ">=3.13"
 
 [options]
-exclude-newer = "2025-07-23T19:44:00Z"
+exclude-newer = "2025-07-24T14:24:00Z"
 
 [[package]]
 name = "aiohappyeyeballs"
@@ -83,7 +83,7 @@ wheels = [
 
 [[package]]
 name = "apache-trusted-releases"
-version = "0.20250723.1944"
+version = "0.20250724.1424"
 source = { editable = "." }
 dependencies = [
     { name = "aiohttp" },
@@ -157,7 +157,7 @@ wheels = [
 
 [[package]]
 name = "cyclopts"
-version = "3.22.2"
+version = "3.22.3"
 source = { registry = "https://pypi.org/simple"; }
 dependencies = [
     { name = "attrs" },
@@ -165,9 +165,9 @@ dependencies = [
     { name = "rich" },
     { name = "rich-rst" },
 ]
-sdist = { url = 
"https://files.pythonhosted.org/packages/cc/2e/8c45ef5b00bd48d7cabbf6f90b7f12df4c232755cd46e6dbc6690f9ac0c5/cyclopts-3.22.2.tar.gz";,
 hash = 
"sha256:d3495231af6ae86479579777d212ddf77b113200f828badeaf401162ed87227d", size 
= 74520 }
+sdist = { url = 
"https://files.pythonhosted.org/packages/c8/05/9d5a0a8f4628f6a1230b43e0c34a7dc45c40a17045a09f4a5d7145da12e2/cyclopts-3.22.3.tar.gz";,
 hash = 
"sha256:7df1d05e4b56b07079e13880b457b78522101531e2947af1a68f182e89742b34", size 
= 74837 }
 wheels = [
-    { url = 
"https://files.pythonhosted.org/packages/83/5b/5939e05d87def1612c494429bee705d6b852fad1d21dd2dee1e3ce39997e/cyclopts-3.22.2-py3-none-any.whl";,
 hash = 
"sha256:6681b0815fa2de2bccc364468fd25b15aa9617cb505c0b16ca62e2b18a57619e", size 
= 84578 },
+    { url = 
"https://files.pythonhosted.org/packages/16/1f/4b9f6986add9f6ff361c1bfffeb08fc2f2f6752f8adf8d4dcf0a988b6f28/cyclopts-3.22.3-py3-none-any.whl";,
 hash = 
"sha256:771ae584868c8beeac74184a96e9fad3726c787b17e47a6f0d5f42cece1df57a", size 
= 84941 },
 ]
 
 [[package]]


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

Reply via email to