From da08cfd84095a030dada0ecf272b0af3cfc56dd5 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 24 Apr 2026 17:46:50 -0700 Subject: [PATCH] test(e2e): bump CLI timeouts from 5s to 30s for slow CI runners MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darwin_amd64 GitHub runners exceed the 5s ProcessTimeoutError on simple `supsrc --help` invocations: 8 e2e tests fail there, all 4 other test matrixes (linux_amd64, linux_arm64, darwin_arm64, windows_amd64) pass. 30s gives slow CI environments room while still catching genuine hangs (a help command taking >30s would indicate a real regression). The 10s timeouts are left alone — they already tolerate slow runners. --- tests/e2e/test_cli_integration.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/e2e/test_cli_integration.py b/tests/e2e/test_cli_integration.py index 2379a143..61ea7fd7 100644 --- a/tests/e2e/test_cli_integration.py +++ b/tests/e2e/test_cli_integration.py @@ -85,7 +85,7 @@ def test_watch_command_dry_run(self) -> None: # Just test --help to verify command exists and works result = run( [sys.executable, "-m", "supsrc.cli.main", "watch", "--help"], - timeout=5, + timeout=30, check=False, ) @@ -110,7 +110,7 @@ def test_watch_command_with_explicit_config(self) -> None: str(config_path), "--help", ], - timeout=5, + timeout=30, check=False, ) @@ -127,7 +127,7 @@ def test_sui_command_help(self) -> None: """Test that sui command shows help correctly.""" result = run( [sys.executable, "-m", "supsrc.cli.main", "sui", "--help"], - timeout=5, + timeout=30, check=False, ) @@ -152,7 +152,7 @@ def test_sui_command_validation_only(self) -> None: str(config_path), "--help", ], - timeout=5, + timeout=30, check=False, ) @@ -168,7 +168,7 @@ def test_invalid_command_handling(self) -> None: """Test handling of invalid commands.""" result = run( [sys.executable, "-m", "supsrc.cli.main", "nonexistent-command"], - timeout=5, + timeout=30, check=False, ) @@ -179,7 +179,7 @@ def test_version_command(self) -> None: """Test version command works.""" result = run( [sys.executable, "-m", "supsrc.cli.main", "--version"], - timeout=5, + timeout=30, check=False, ) @@ -190,7 +190,7 @@ def test_help_command(self) -> None: """Test help command works.""" result = run( [sys.executable, "-m", "supsrc.cli.main", "--help"], - timeout=5, + timeout=30, check=False, ) @@ -235,7 +235,7 @@ def test_cli_python_path_handling(self) -> None: # Test running as module result = run( [sys.executable, "-m", "supsrc.cli.main", "--help"], - timeout=5, + timeout=30, check=False, ) @@ -249,7 +249,7 @@ def test_cli_signal_handling(self) -> None: # Test basic CLI command execution result = run( [sys.executable, "-m", "supsrc.cli.main", "watch", "--help"], - timeout=5, + timeout=30, check=False, ) @@ -287,7 +287,7 @@ def test_config_validation_error_reporting(self) -> None: try: result = run( [sys.executable, "-m", "supsrc.cli.main", "config", "show", "-c", invalid_config], - timeout=5, + timeout=30, check=False, )