diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..382c886 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +# Changelog + +## 2.2.56 + +- Removed process timeout from reachability analysis subprocess. Timeouts are now only passed to the Coana CLI via the `--analysis-timeout` flag. diff --git a/README.md b/README.md index 6dd5d1b..ab489ee 100644 --- a/README.md +++ b/README.md @@ -527,3 +527,4 @@ pre-commit install ``` > **Note**: This manual setup is an alternative to the streamlined Make targets described above. For most development workflows, using `make first-time-setup` or `make first-time-local-setup` is recommended. + diff --git a/pyproject.toml b/pyproject.toml index 12fa227..8ef524c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "socketsecurity" -version = "2.2.55" +version = "2.2.56" requires-python = ">= 3.10" license = {"file" = "LICENSE"} dependencies = [ diff --git a/socketsecurity/__init__.py b/socketsecurity/__init__.py index 0feb3be..b9372d7 100644 --- a/socketsecurity/__init__.py +++ b/socketsecurity/__init__.py @@ -1,3 +1,3 @@ __author__ = 'socket.dev' -__version__ = '2.2.55' +__version__ = '2.2.56' USER_AGENT = f'SocketPythonCLI/{__version__}' diff --git a/socketsecurity/core/tools/reachability.py b/socketsecurity/core/tools/reachability.py index 2ac3e6c..f757a17 100644 --- a/socketsecurity/core/tools/reachability.py +++ b/socketsecurity/core/tools/reachability.py @@ -220,7 +220,6 @@ def run_reachability_analysis( cwd=target_directory, stdout=sys.stderr, # Send stdout to stderr so user sees it stderr=sys.stderr, # Send stderr to stderr - timeout=timeout + 60 if timeout else None # Add buffer to subprocess timeout ) if result.returncode != 0: @@ -240,9 +239,6 @@ def run_reachability_analysis( "tar_hash_used": tar_hash } - except subprocess.TimeoutExpired: - log.error(f"Reachability analysis timed out after {timeout} seconds") - raise Exception(f"Reachability analysis timed out after {timeout} seconds") except Exception as e: log.error(f"Failed to run reachability analysis: {str(e)}") raise Exception(f"Failed to run reachability analysis: {str(e)}")