wup 0.2.44__tar.gz → 0.2.46__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. {wup-0.2.44/wup.egg-info → wup-0.2.46}/PKG-INFO +6 -6
  2. {wup-0.2.44 → wup-0.2.46}/README.md +5 -5
  3. {wup-0.2.44 → wup-0.2.46}/pyproject.toml +1 -1
  4. {wup-0.2.44 → wup-0.2.46}/tests/test_wup.py +17 -0
  5. {wup-0.2.44 → wup-0.2.46}/wup/__init__.py +1 -1
  6. {wup-0.2.44 → wup-0.2.46}/wup/config.py +45 -1
  7. {wup-0.2.44 → wup-0.2.46}/wup/testql_watcher.py +22 -7
  8. {wup-0.2.44 → wup-0.2.46/wup.egg-info}/PKG-INFO +6 -6
  9. {wup-0.2.44 → wup-0.2.46}/LICENSE +0 -0
  10. {wup-0.2.44 → wup-0.2.46}/setup.cfg +0 -0
  11. {wup-0.2.44 → wup-0.2.46}/tests/test_auto_detection.py +0 -0
  12. {wup-0.2.44 → wup-0.2.46}/tests/test_cli_filtering.py +0 -0
  13. {wup-0.2.44 → wup-0.2.46}/tests/test_e2e.py +0 -0
  14. {wup-0.2.44 → wup-0.2.46}/tests/test_monitoring_manifest.py +0 -0
  15. {wup-0.2.44 → wup-0.2.46}/tests/test_service_inference.py +0 -0
  16. {wup-0.2.44 → wup-0.2.46}/tests/test_testql_monitor.py +0 -0
  17. {wup-0.2.44 → wup-0.2.46}/tests/test_testql_watcher.py +0 -0
  18. {wup-0.2.44 → wup-0.2.46}/tests/test_web_client.py +0 -0
  19. {wup-0.2.44 → wup-0.2.46}/wup/_ast_detector.py +0 -0
  20. {wup-0.2.44 → wup-0.2.46}/wup/_base_detector.py +0 -0
  21. {wup-0.2.44 → wup-0.2.46}/wup/_hash_detector.py +0 -0
  22. {wup-0.2.44 → wup-0.2.46}/wup/_yaml_detector.py +0 -0
  23. {wup-0.2.44 → wup-0.2.46}/wup/anomaly_detector.py +0 -0
  24. {wup-0.2.44 → wup-0.2.46}/wup/anomaly_models.py +0 -0
  25. {wup-0.2.44 → wup-0.2.46}/wup/assistant.py +0 -0
  26. {wup-0.2.44 → wup-0.2.46}/wup/bus.py +0 -0
  27. {wup-0.2.44 → wup-0.2.46}/wup/cli.py +0 -0
  28. {wup-0.2.44 → wup-0.2.46}/wup/cli_config_generator.py +0 -0
  29. {wup-0.2.44 → wup-0.2.46}/wup/cli_scanner.py +0 -0
  30. {wup-0.2.44 → wup-0.2.46}/wup/core.py +0 -0
  31. {wup-0.2.44 → wup-0.2.46}/wup/dependency_mapper.py +0 -0
  32. {wup-0.2.44 → wup-0.2.46}/wup/event_store.py +0 -0
  33. {wup-0.2.44 → wup-0.2.46}/wup/file_watcher/events/file_events.py +0 -0
  34. {wup-0.2.44 → wup-0.2.46}/wup/models/__init__.py +0 -0
  35. {wup-0.2.44 → wup-0.2.46}/wup/models/config.py +0 -0
  36. {wup-0.2.44 → wup-0.2.46}/wup/monitoring_manifest.py +0 -0
  37. {wup-0.2.44 → wup-0.2.46}/wup/planfile_reporter.py +0 -0
  38. {wup-0.2.44 → wup-0.2.46}/wup/testing/events/health_events.py +0 -0
  39. {wup-0.2.44 → wup-0.2.46}/wup/testing/events/test_results.py +0 -0
  40. {wup-0.2.44 → wup-0.2.46}/wup/testing/handlers/event_handlers.py +0 -0
  41. {wup-0.2.44 → wup-0.2.46}/wup/testing/handlers/health_handlers.py +0 -0
  42. {wup-0.2.44 → wup-0.2.46}/wup/testing/queries/health_queries.py +0 -0
  43. {wup-0.2.44 → wup-0.2.46}/wup/testql_cli_generator.py +0 -0
  44. {wup-0.2.44 → wup-0.2.46}/wup/testql_discovery.py +0 -0
  45. {wup-0.2.44 → wup-0.2.46}/wup/testql_monitor.py +0 -0
  46. {wup-0.2.44 → wup-0.2.46}/wup/visual_diff.py +0 -0
  47. {wup-0.2.44 → wup-0.2.46}/wup/web_client.py +0 -0
  48. {wup-0.2.44 → wup-0.2.46}/wup.egg-info/SOURCES.txt +0 -0
  49. {wup-0.2.44 → wup-0.2.46}/wup.egg-info/dependency_links.txt +0 -0
  50. {wup-0.2.44 → wup-0.2.46}/wup.egg-info/entry_points.txt +0 -0
  51. {wup-0.2.44 → wup-0.2.46}/wup.egg-info/requires.txt +0 -0
  52. {wup-0.2.44 → wup-0.2.46}/wup.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wup
3
- Version: 0.2.44
3
+ Version: 0.2.46
4
4
  Summary: WUP (What's Up) - Intelligent file watcher for regression testing in large projects
5
5
  Author-email: Tom Sapletta <tom@sapletta.com>
6
6
  License-Expression: Apache-2.0
@@ -31,17 +31,17 @@ Dynamic: license-file
31
31
 
32
32
  ## AI Cost Tracking
33
33
 
34
- ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.2.44-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
35
- ![AI Cost](https://img.shields.io/badge/AI%20Cost-$3.38-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-21.2h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
34
+ ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.2.46-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
35
+ ![AI Cost](https://img.shields.io/badge/AI%20Cost-$3.47-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-23.0h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
36
36
 
37
- - 🤖 **LLM usage:** $3.3790 (54 commits)
38
- - 👤 **Human dev:** ~$2122 (21.2h @ $100/h, 30min dedup)
37
+ - 🤖 **LLM usage:** $3.4717 (56 commits)
38
+ - 👤 **Human dev:** ~$2304 (23.0h @ $100/h, 30min dedup)
39
39
 
40
40
  Generated on 2026-05-23 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
41
41
 
42
42
  ---
43
43
 
44
- ![PyPI](https://img.shields.io/badge/pypi-wup-blue) ![Version](https://img.shields.io/badge/version-0.2.44-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
44
+ ![PyPI](https://img.shields.io/badge/pypi-wup-blue) ![Version](https://img.shields.io/badge/version-0.2.46-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
45
45
 
46
46
  **WUP (What's Up)** - Intelligent file watcher for regression testing in large projects.
47
47
 
@@ -3,17 +3,17 @@
3
3
 
4
4
  ## AI Cost Tracking
5
5
 
6
- ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.2.44-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
7
- ![AI Cost](https://img.shields.io/badge/AI%20Cost-$3.38-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-21.2h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
6
+ ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.2.46-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
7
+ ![AI Cost](https://img.shields.io/badge/AI%20Cost-$3.47-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-23.0h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
8
8
 
9
- - 🤖 **LLM usage:** $3.3790 (54 commits)
10
- - 👤 **Human dev:** ~$2122 (21.2h @ $100/h, 30min dedup)
9
+ - 🤖 **LLM usage:** $3.4717 (56 commits)
10
+ - 👤 **Human dev:** ~$2304 (23.0h @ $100/h, 30min dedup)
11
11
 
12
12
  Generated on 2026-05-23 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
13
13
 
14
14
  ---
15
15
 
16
- ![PyPI](https://img.shields.io/badge/pypi-wup-blue) ![Version](https://img.shields.io/badge/version-0.2.44-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
16
+ ![PyPI](https://img.shields.io/badge/pypi-wup-blue) ![Version](https://img.shields.io/badge/version-0.2.46-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
17
17
 
18
18
  **WUP (What's Up)** - Intelligent file watcher for regression testing in large projects.
19
19
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wup"
7
- version = "0.2.44"
7
+ version = "0.2.46"
8
8
  description = "WUP (What's Up) - Intelligent file watcher for regression testing in large projects"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -1345,6 +1345,23 @@ project:
1345
1345
  with pytest.raises(ValueError, match="project.name"):
1346
1346
  load_config(Path(tmpdir), config_path)
1347
1347
 
1348
+ def test_load_config_extra_args_normalization(self):
1349
+ """Test that testql.extra_args parses space-separated strings and converts seconds to milliseconds."""
1350
+ with tempfile.TemporaryDirectory() as tmpdir:
1351
+ config_content = """
1352
+ project:
1353
+ name: "test-project"
1354
+ testql:
1355
+ extra_args:
1356
+ - "--timeout 10s"
1357
+ - "--other-arg"
1358
+ - "--timeout=5s"
1359
+ """
1360
+ config_path = Path(tmpdir) / "wup.yaml"
1361
+ config_path.write_text(config_content)
1362
+ config = load_config(Path(tmpdir), config_path)
1363
+ assert config.testql.extra_args == ["--timeout", "10000", "--other-arg", "--timeout=5000"]
1364
+
1348
1365
  def test_save_and_load_visual_diff_config(self):
1349
1366
  """Test that visual_diff section is correctly saved and reloaded."""
1350
1367
  with tempfile.TemporaryDirectory() as tmpdir:
@@ -7,7 +7,7 @@ WUP monitors file changes and runs intelligent regression tests using a 3-layer
7
7
  3. Detail Layer: Full tests with blame reports (only on failure)
8
8
  """
9
9
 
10
- __version__ = "0.2.44"
10
+ __version__ = "0.2.46"
11
11
  __author__ = "Tom Sapletta"
12
12
 
13
13
  from .config import load_config, save_config, get_default_config
@@ -171,11 +171,55 @@ def validate_config(raw: dict) -> WupConfig:
171
171
 
172
172
  # Parse testql config
173
173
  testql_raw = raw.get("testql", {})
174
+ extra_args_raw = testql_raw.get("extra_args", ["--timeout", "10"])
175
+ extra_args = []
176
+ if isinstance(extra_args_raw, str):
177
+ extra_args_raw = extra_args_raw.split()
178
+ elif isinstance(extra_args_raw, list):
179
+ temp = []
180
+ for arg in extra_args_raw:
181
+ if isinstance(arg, str):
182
+ temp.extend(arg.split())
183
+ else:
184
+ temp.append(str(arg))
185
+ extra_args_raw = temp
186
+ else:
187
+ extra_args_raw = ["--timeout", "10"]
188
+
189
+ normalized_extra_args = []
190
+ i = 0
191
+ while i < len(extra_args_raw):
192
+ arg = extra_args_raw[i]
193
+ if arg == "--timeout" and i + 1 < len(extra_args_raw):
194
+ val = extra_args_raw[i+1]
195
+ if val.endswith("s"):
196
+ try:
197
+ seconds = float(val[:-1])
198
+ val = str(int(seconds * 1000))
199
+ except ValueError:
200
+ pass
201
+ normalized_extra_args.append(arg)
202
+ normalized_extra_args.append(val)
203
+ i += 2
204
+ elif arg.startswith("--timeout="):
205
+ val = arg.partition("=")[2]
206
+ if val.endswith("s"):
207
+ try:
208
+ seconds = float(val[:-1])
209
+ val = str(int(seconds * 1000))
210
+ except ValueError:
211
+ pass
212
+ normalized_extra_args.append(f"--timeout={val}")
213
+ i += 1
214
+ else:
215
+ normalized_extra_args.append(arg)
216
+ i += 1
217
+
174
218
  testql = TestQLConfig(
175
219
  scenario_dir=testql_raw.get("scenario_dir", "scenarios/tests"),
176
220
  smoke_scenario=testql_raw.get("smoke_scenario", "smoke.testql.toon.yaml"),
177
221
  output_format=testql_raw.get("output_format", "json"),
178
- extra_args=testql_raw.get("extra_args", ["--timeout", "10"]),
222
+ extra_args=normalized_extra_args,
179
223
  endpoint_discovery=testql_raw.get("endpoint_discovery", True),
180
224
  probe_interval_s=int(testql_raw.get("probe_interval_s", 0) or 0),
181
225
  health_scenario=testql_raw.get("health_scenario", ""),
@@ -380,15 +380,30 @@ class TestQLWatcher(WupWatcher):
380
380
  text=True,
381
381
  timeout=timeout,
382
382
  )
383
+ except subprocess.TimeoutExpired:
384
+ return subprocess.CompletedProcess(
385
+ args=cmd,
386
+ returncode=124,
387
+ stdout="",
388
+ stderr=f"Error: TestQL command timed out after {timeout} seconds",
389
+ )
383
390
  except FileNotFoundError:
384
391
  fallback_cmd = ["python3", "-m", "testql.cli", *args]
385
- return subprocess.run(
386
- fallback_cmd,
387
- cwd=str(self.project_root),
388
- capture_output=True,
389
- text=True,
390
- timeout=timeout,
391
- )
392
+ try:
393
+ return subprocess.run(
394
+ fallback_cmd,
395
+ cwd=str(self.project_root),
396
+ capture_output=True,
397
+ text=True,
398
+ timeout=timeout,
399
+ )
400
+ except subprocess.TimeoutExpired:
401
+ return subprocess.CompletedProcess(
402
+ args=fallback_cmd,
403
+ returncode=124,
404
+ stdout="",
405
+ stderr=f"Error: TestQL command timed out after {timeout} seconds",
406
+ )
392
407
 
393
408
  def _write_track(self, *, service: str, stage: str, scenario: Optional[Path], result: subprocess.CompletedProcess) -> Path:
394
409
  ts = int(time.time())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wup
3
- Version: 0.2.44
3
+ Version: 0.2.46
4
4
  Summary: WUP (What's Up) - Intelligent file watcher for regression testing in large projects
5
5
  Author-email: Tom Sapletta <tom@sapletta.com>
6
6
  License-Expression: Apache-2.0
@@ -31,17 +31,17 @@ Dynamic: license-file
31
31
 
32
32
  ## AI Cost Tracking
33
33
 
34
- ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.2.44-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
35
- ![AI Cost](https://img.shields.io/badge/AI%20Cost-$3.38-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-21.2h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
34
+ ![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.2.46-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
35
+ ![AI Cost](https://img.shields.io/badge/AI%20Cost-$3.47-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-23.0h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
36
36
 
37
- - 🤖 **LLM usage:** $3.3790 (54 commits)
38
- - 👤 **Human dev:** ~$2122 (21.2h @ $100/h, 30min dedup)
37
+ - 🤖 **LLM usage:** $3.4717 (56 commits)
38
+ - 👤 **Human dev:** ~$2304 (23.0h @ $100/h, 30min dedup)
39
39
 
40
40
  Generated on 2026-05-23 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
41
41
 
42
42
  ---
43
43
 
44
- ![PyPI](https://img.shields.io/badge/pypi-wup-blue) ![Version](https://img.shields.io/badge/version-0.2.44-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
44
+ ![PyPI](https://img.shields.io/badge/pypi-wup-blue) ![Version](https://img.shields.io/badge/version-0.2.46-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
45
45
 
46
46
  **WUP (What's Up)** - Intelligent file watcher for regression testing in large projects.
47
47
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes