-
Notifications
You must be signed in to change notification settings - Fork 0
test(e2e): bump CLI timeouts from 5s to 30s for slow CI runners #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tests |
||
| 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, | ||
| ) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hardcoded timeout of
30is duplicated across 10 test cases in this PR, which is a maintainability concern. Additionally, this creates an inconsistency with other CLI tests in the same file (e.g., lines 35, 50, 68) that still use a10second timeout for more complex operations likeconfig show. If the environment is slow enough to require 30s for a--helpcommand, the 10s limit for configuration loading is likely to cause intermittent failures.\n\nConsider defining a module-level constant (e.g.,DEFAULT_CLI_TIMEOUT = 30) and applying it consistently to all CLI integration tests.