letitloop 0.7.2__tar.gz → 0.7.3__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 (104) hide show
  1. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/ci.yml +4 -4
  2. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/pr-health-guard.yml +1 -1
  3. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/release-drafter.yml +1 -1
  4. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/release-pypi.yml +2 -2
  5. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/scorecard.yml +1 -1
  6. {letitloop-0.7.2 → letitloop-0.7.3}/CHANGELOG.md +9 -0
  7. {letitloop-0.7.2 → letitloop-0.7.3}/PKG-INFO +3 -3
  8. {letitloop-0.7.2 → letitloop-0.7.3}/README.md +1 -1
  9. {letitloop-0.7.2 → letitloop-0.7.3}/docs/ARCHITECTURE_AND_TRADE_OFFS.md +1 -1
  10. {letitloop-0.7.2 → letitloop-0.7.3}/docs/adr/README.md +1 -1
  11. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/__init__.py +1 -1
  12. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop.egg-info/PKG-INFO +3 -3
  13. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/__init__.py +1 -1
  14. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/cli.py +2 -2
  15. {letitloop-0.7.2 → letitloop-0.7.3}/pyproject.toml +2 -2
  16. {letitloop-0.7.2 → letitloop-0.7.3}/requirements-ci.txt +2 -2
  17. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_durable_async.py +21 -11
  18. {letitloop-0.7.2 → letitloop-0.7.3}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  19. {letitloop-0.7.2 → letitloop-0.7.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  20. {letitloop-0.7.2 → letitloop-0.7.3}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  21. {letitloop-0.7.2 → letitloop-0.7.3}/.github/dependabot.yml +0 -0
  22. {letitloop-0.7.2 → letitloop-0.7.3}/.github/release-drafter.config.yml +0 -0
  23. {letitloop-0.7.2 → letitloop-0.7.3}/.github/release-drafter.yml +0 -0
  24. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/codeql.yml +0 -0
  25. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/dependency-review.yml +0 -0
  26. {letitloop-0.7.2 → letitloop-0.7.3}/.github/workflows/pages.yml +0 -0
  27. {letitloop-0.7.2 → letitloop-0.7.3}/LICENSE +0 -0
  28. {letitloop-0.7.2 → letitloop-0.7.3}/MANIFEST.in +0 -0
  29. {letitloop-0.7.2 → letitloop-0.7.3}/docs/adapters.md +0 -0
  30. {letitloop-0.7.2 → letitloop-0.7.3}/docs/adr/0001-write-ahead-logging.md +0 -0
  31. {letitloop-0.7.2 → letitloop-0.7.3}/docs/adr/template.md +0 -0
  32. {letitloop-0.7.2 → letitloop-0.7.3}/docs/state_machine.md +0 -0
  33. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/adapters/__init__.py +0 -0
  34. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/adapters/autogen.py +0 -0
  35. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/adapters/crewai.py +0 -0
  36. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/adapters/fastapi.py +0 -0
  37. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/adapters/langgraph.py +0 -0
  38. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/adapters/smolagents.py +0 -0
  39. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/__init__.py +0 -0
  40. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/__init__.py +0 -0
  41. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/_durable_mixin.py +0 -0
  42. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/atomic_wal_adapter.py +0 -0
  43. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/autogen_adapter.py +0 -0
  44. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/base.py +0 -0
  45. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/crewai_adapter.py +0 -0
  46. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/in_memory_adapter.py +0 -0
  47. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/json_checkpoint_adapter.py +0 -0
  48. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/langgraph_adapter.py +0 -0
  49. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/letitloop_adapter.py +0 -0
  50. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/llamaindex_adapter.py +0 -0
  51. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/raw_python_adapter.py +0 -0
  52. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/snapshot_graph_adapter.py +0 -0
  53. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/sqlite_wal_adapter.py +0 -0
  54. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/swarm_adapter.py +0 -0
  55. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/adapters/unmanaged_script_adapter.py +0 -0
  56. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/harness/__init__.py +0 -0
  57. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/harness/injector.py +0 -0
  58. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/harness/runner.py +0 -0
  59. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/harness/schema.py +0 -0
  60. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/harness/synthetic_engine.py +0 -0
  61. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/reporter.py +0 -0
  62. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop/conformance/scenarios/__init__.py +0 -0
  63. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop.egg-info/SOURCES.txt +0 -0
  64. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop.egg-info/dependency_links.txt +0 -0
  65. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop.egg-info/entry_points.txt +0 -0
  66. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop.egg-info/requires.txt +0 -0
  67. {letitloop-0.7.2 → letitloop-0.7.3}/letitloop.egg-info/top_level.txt +0 -0
  68. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/codecs.py +0 -0
  69. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/decorators.py +0 -0
  70. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/exceptions.py +0 -0
  71. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/lock.py +0 -0
  72. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/process_guard.py +0 -0
  73. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/state.py +0 -0
  74. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/supervisor/__init__.py +0 -0
  75. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/supervisor/liveness.py +0 -0
  76. {letitloop-0.7.2 → letitloop-0.7.3}/orchestrator/token_gate.py +0 -0
  77. {letitloop-0.7.2 → letitloop-0.7.3}/pytest.ini +0 -0
  78. {letitloop-0.7.2 → letitloop-0.7.3}/setup.cfg +0 -0
  79. {letitloop-0.7.2 → letitloop-0.7.3}/tests/__init__.py +0 -0
  80. {letitloop-0.7.2 → letitloop-0.7.3}/tests/adapters/__init__.py +0 -0
  81. {letitloop-0.7.2 → letitloop-0.7.3}/tests/adapters/test_adapters_init.py +0 -0
  82. {letitloop-0.7.2 → letitloop-0.7.3}/tests/adapters/test_autogen.py +0 -0
  83. {letitloop-0.7.2 → letitloop-0.7.3}/tests/adapters/test_crewai.py +0 -0
  84. {letitloop-0.7.2 → letitloop-0.7.3}/tests/adapters/test_fastapi.py +0 -0
  85. {letitloop-0.7.2 → letitloop-0.7.3}/tests/adapters/test_langgraph.py +0 -0
  86. {letitloop-0.7.2 → letitloop-0.7.3}/tests/adapters/test_smolagents.py +0 -0
  87. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_atomic_marker_concurrency.py +0 -0
  88. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_browser_use_cookbook.py +0 -0
  89. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_cli_watch.py +0 -0
  90. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_codecs.py +0 -0
  91. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_conformance_benchmark.py +0 -0
  92. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_cookbooks.py +0 -0
  93. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_durable_decorator.py +0 -0
  94. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_fuzz_wal_corruptions.py +0 -0
  95. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_interactive_demo.py +0 -0
  96. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_lock.py +0 -0
  97. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_playwright_scraper_cookbook.py +0 -0
  98. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_process_guard.py +0 -0
  99. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_state.py +0 -0
  100. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_step_failclosed.py +0 -0
  101. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_supervise.py +0 -0
  102. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_token_gate.py +0 -0
  103. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_wal_corruption_recovery.py +0 -0
  104. {letitloop-0.7.2 → letitloop-0.7.3}/tests/test_wal_v2_checksums.py +0 -0
@@ -28,7 +28,7 @@ jobs:
28
28
  - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29
29
 
30
30
  - name: Set up Python ${{ matrix.python-version }}
31
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
31
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
32
32
  with:
33
33
  python-version: ${{ matrix.python-version }}
34
34
  cache: 'pip'
@@ -66,7 +66,7 @@ jobs:
66
66
  - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
67
67
 
68
68
  - name: Set up Python 3.11
69
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
69
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
70
70
  with:
71
71
  python-version: '3.11'
72
72
  cache: 'pip'
@@ -88,7 +88,7 @@ jobs:
88
88
  - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
89
89
 
90
90
  - name: Set up Python 3.11
91
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
91
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
92
92
  with:
93
93
  python-version: '3.11'
94
94
  cache: 'pip'
@@ -110,7 +110,7 @@ jobs:
110
110
  - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
111
111
 
112
112
  - name: Set up Python 3.11
113
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
113
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
114
114
  with:
115
115
  python-version: '3.11'
116
116
  cache: 'pip'
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: ubuntu-latest
14
14
  steps:
15
15
  - name: Inspect PR Health
16
- uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
16
+ uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
17
17
  with:
18
18
  github-token: ${{ secrets.GITHUB_TOKEN }}
19
19
  script: |
@@ -15,7 +15,7 @@ jobs:
15
15
  update_release_draft:
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
- - uses: release-drafter/release-drafter@v6
18
+ - uses: release-drafter/release-drafter@v7
19
19
  with:
20
20
  config-name: release-drafter.yml
21
21
  env:
@@ -1,4 +1,4 @@
1
- name: Publish Python Distribution to PyPI
1
+ name: Publish Python Distribution to PyPI
2
2
 
3
3
  on:
4
4
  release:
@@ -19,7 +19,7 @@ jobs:
19
19
  steps:
20
20
  - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
21
  - name: Set up Python
22
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
22
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
23
23
  with:
24
24
  python-version: '3.11'
25
25
  - name: Install build dependencies
@@ -27,7 +27,7 @@ jobs:
27
27
  persist-credentials: false
28
28
 
29
29
  - name: "Run analysis"
30
- uses: ossf/scorecard-action@v2.4.1
30
+ uses: ossf/scorecard-action@v2.6.0
31
31
  with:
32
32
  results_file: results.sarif
33
33
  results_format: sarif
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project are documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [0.7.3] - 2026-11-23
7
+
8
+ ### 🔧 CI Determinism, Metadata Alignment & Workflow Maintenance
9
+ - **Deterministic Async Concurrency Test (`tests/test_durable_async.py`)**: Replaced the wall-clock `< 0.35s` timing assertion in `test_async_steps_gather_runs_truly_concurrently` with a deterministic 3-task `asyncio.Event` entry barrier (`max_in_flight == 3`), eliminating false CI flakes caused by Windows NTFS `fsync()` jitter.
10
+ - **Package & CLI Description Alignment (`pyproject.toml`, `orchestrator/cli.py`)**: Aligned PyPI package summary and CLI help text to the single-process local `LILWAL02` WAL & process supervisor contract.
11
+ - **CI Dependency & Action Upgrades**: Updated `actions/setup-python` (`v7.1.0`), `actions/github-script` (`v9.0.0`), `release-drafter` (`v7`), `ossf/scorecard-action` (`v2.6.0`), `coverage` (`>=7.17.3`), and `pytest-benchmark` (`>=5.3.1`).
12
+
13
+ ---
14
+
6
15
  ## [0.7.2] - 2026-11-23
7
16
 
8
17
  ### 🔒 Kernel Correctness Fixes, Async Parallelism & Protocol Hardening
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: letitloop
3
- Version: 0.7.2
4
- Summary: The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.
3
+ Version: 0.7.3
4
+ Summary: Single-process local Write-Ahead Log (LILWAL02) and process supervisor for Python scripts.
5
5
  Author-email: sdageltc <sdageltc@users.noreply.github.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://sdageltc.github.io/letitloop/
@@ -49,7 +49,7 @@ Dynamic: license-file
49
49
 
50
50
  # let it loop (LIL)
51
51
 
52
- **Single-Process Local Write-Ahead Log (`LILWAL02`) & Process Supervisor for Python Scripts (`v0.7.2`)**
52
+ **Single-Process Local Write-Ahead Log (`LILWAL02`) & Process Supervisor for Python Scripts (`v0.7.3`)**
53
53
 
54
54
  [![Official Website](https://img.shields.io/badge/Website-LetItLoop-0284c7?logo=googlechrome&logoColor=white)](https://sdageltc.github.io/letitloop/)
55
55
  [![PyPI version](https://img.shields.io/pypi/v/letitloop.svg?color=blue)](https://pypi.org/project/letitloop/)
@@ -6,7 +6,7 @@
6
6
 
7
7
  # let it loop (LIL)
8
8
 
9
- **Single-Process Local Write-Ahead Log (`LILWAL02`) & Process Supervisor for Python Scripts (`v0.7.2`)**
9
+ **Single-Process Local Write-Ahead Log (`LILWAL02`) & Process Supervisor for Python Scripts (`v0.7.3`)**
10
10
 
11
11
  [![Official Website](https://img.shields.io/badge/Website-LetItLoop-0284c7?logo=googlechrome&logoColor=white)](https://sdageltc.github.io/letitloop/)
12
12
  [![PyPI version](https://img.shields.io/pypi/v/letitloop.svg?color=blue)](https://pypi.org/project/letitloop/)
@@ -1,4 +1,4 @@
1
- # Architectural Design, Contract Boundaries & Trade-Offs (`v0.7.2`)
1
+ # Architectural Design, Contract Boundaries & Trade-Offs (`v0.7.3`)
2
2
 
3
3
  This document specifies what `letitloop` guarantees, where its single-process local filesystem model stops, and when you should use an established database-backed workflow engine instead.
4
4
 
@@ -1,4 +1,4 @@
1
1
  # Architecture Decision Records (ADRs)
2
2
 
3
3
  - [ADR-0001: Write-Ahead Logging (`LILWAL02`) & Torn-Tail Recovery](0001-write-ahead-logging.md)
4
- - [Architecture, Contract Boundaries & Trade-Offs (`v0.7.2`)](../ARCHITECTURE_AND_TRADE_OFFS.md)
4
+ - [Architecture, Contract Boundaries & Trade-Offs (`v0.7.3`)](../ARCHITECTURE_AND_TRADE_OFFS.md)
@@ -1,6 +1,6 @@
1
1
  """LetItLoop — Deterministic durability kernel and crash-resilient execution gate."""
2
2
 
3
- __version__ = "0.7.2"
3
+ __version__ = "0.7.3"
4
4
 
5
5
  from orchestrator.decorators import (
6
6
  DurableSerializationError,
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: letitloop
3
- Version: 0.7.2
4
- Summary: The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents.
3
+ Version: 0.7.3
4
+ Summary: Single-process local Write-Ahead Log (LILWAL02) and process supervisor for Python scripts.
5
5
  Author-email: sdageltc <sdageltc@users.noreply.github.com>
6
6
  License: MIT
7
7
  Project-URL: Homepage, https://sdageltc.github.io/letitloop/
@@ -49,7 +49,7 @@ Dynamic: license-file
49
49
 
50
50
  # let it loop (LIL)
51
51
 
52
- **Single-Process Local Write-Ahead Log (`LILWAL02`) & Process Supervisor for Python Scripts (`v0.7.2`)**
52
+ **Single-Process Local Write-Ahead Log (`LILWAL02`) & Process Supervisor for Python Scripts (`v0.7.3`)**
53
53
 
54
54
  [![Official Website](https://img.shields.io/badge/Website-LetItLoop-0284c7?logo=googlechrome&logoColor=white)](https://sdageltc.github.io/letitloop/)
55
55
  [![PyPI version](https://img.shields.io/pypi/v/letitloop.svg?color=blue)](https://pypi.org/project/letitloop/)
@@ -1,6 +1,6 @@
1
1
  """orchestrator — deterministic durability kernel and crash-resilient execution."""
2
2
 
3
- __version__ = "0.7.2"
3
+ __version__ = "0.7.3"
4
4
 
5
5
  from .codecs import (
6
6
  DEFAULT_CODEC_REGISTRY,
@@ -28,7 +28,7 @@ def _get_version() -> str:
28
28
 
29
29
  return __version__
30
30
  except Exception:
31
- return "0.7.2"
31
+ return "0.7.3"
32
32
 
33
33
 
34
34
  def cmd_watch(a) -> None:
@@ -279,7 +279,7 @@ def cmd_bench(args) -> None:
279
279
 
280
280
  def main():
281
281
  parser = argparse.ArgumentParser(
282
- description="LetItLoop — The SQLite of Durable Execution",
282
+ description="LetItLoop — Single-process local WAL (LILWAL02) and process supervisor",
283
283
  formatter_class=argparse.RawDescriptionHelpFormatter,
284
284
  )
285
285
  parser.add_argument(
@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "letitloop"
7
- version = "0.7.2"
8
- description = "The SQLite of Durable Execution — Zero-daemon in-process durability and process supervisor for Python functions & AI agents."
7
+ version = "0.7.3"
8
+ description = "Single-process local Write-Ahead Log (LILWAL02) and process supervisor for Python scripts."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
11
11
  requires-python = ">=3.11"
@@ -1,6 +1,6 @@
1
1
  pytest>=7.0
2
- pytest-benchmark>=5.2.3
2
+ pytest-benchmark>=5.3.1
3
3
  pytest-cov>=4.0
4
- coverage[toml]>=7.15.4
4
+ coverage[toml]>=7.17.3
5
5
  pyyaml>=6.0
6
6
  ruff>=0.1.0
@@ -200,23 +200,33 @@ async def test_async_step_non_serializable_raises(tmp_path):
200
200
  @pytest.mark.asyncio
201
201
  async def test_async_steps_gather_runs_truly_concurrently(tmp_path):
202
202
  wal_dir = str(tmp_path / "wal_true_parallel")
203
-
204
- async def _sleep_step(x: int) -> int:
205
- await asyncio.sleep(0.15)
206
- return x * 10
203
+ in_flight = 0
204
+ max_in_flight = 0
205
+ all_entered = asyncio.Event()
206
+
207
+ async def _barrier_step(x: int) -> int:
208
+ nonlocal in_flight, max_in_flight
209
+ in_flight += 1
210
+ max_in_flight = max(max_in_flight, in_flight)
211
+ if in_flight == 3:
212
+ all_entered.set()
213
+ try:
214
+ # If async_step serialized asyncio.gather() behind a lock, tasks 2 and 3
215
+ # could never enter while task 1 awaits here, triggering TimeoutError.
216
+ await asyncio.wait_for(all_entered.wait(), timeout=2.0)
217
+ return x * 10
218
+ finally:
219
+ in_flight -= 1
207
220
 
208
221
  @durable_async(goal_id="parallel_gather", wal_dir=wal_dir)
209
222
  async def wf():
210
223
  r1, r2, r3 = await asyncio.gather(
211
- async_step("p1", _sleep_step, 1),
212
- async_step("p2", _sleep_step, 2),
213
- async_step("p3", _sleep_step, 3),
224
+ async_step("p1", _barrier_step, 1),
225
+ async_step("p2", _barrier_step, 2),
226
+ async_step("p3", _barrier_step, 3),
214
227
  )
215
228
  return r1 + r2 + r3
216
229
 
217
- t0 = time.perf_counter()
218
230
  total = await wf()
219
- elapsed = time.perf_counter() - t0
220
231
  assert total == 60
221
- # 3 x 0.15s sequential would take >= 0.45s; parallel execution must finish well under 0.35s
222
- assert elapsed < 0.35, f"async_step serialized asyncio.gather: took {elapsed:.3f}s"
232
+ assert max_in_flight == 3, f"async_step serialized asyncio.gather: max_in_flight={max_in_flight}"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes