Skip to content

fix(python-sdk): harden pytest tempdir handling#451

Merged
santoshkumarradha merged 1 commit intomainfrom
fix/python-sdk-pytest-tempdir-cve
Apr 14, 2026
Merged

fix(python-sdk): harden pytest tempdir handling#451
santoshkumarradha merged 1 commit intomainfrom
fix/python-sdk-pytest-tempdir-cve

Conversation

@santoshkumarradha
Copy link
Copy Markdown
Member

@santoshkumarradha santoshkumarradha commented Apr 14, 2026

Summary

  • move Python 3.10+ dev dependencies to the patched pytest 9.0.3 line
  • update Python 3.10+ compatibility pins for pytest-asyncio and syrupy so the dev stack resolves cleanly with pytest 9
  • run SDK tests through a wrapper that sets a private PYTEST_DEBUG_TEMPROOT to avoid pytest's predictable default temp root in CI and local runs

Verification

  • installed the Python 3.12 dev dependency set from sdk/python/requirements-dev.txt in a clean venv
  • ran scripts/run_pytest.sh tests/test_memory_events.py -v --no-cov with pytest 9.0.3, pytest-asyncio 1.3.0, syrupy 5.1.0

@santoshkumarradha santoshkumarradha requested review from a team and AbirAbbas as code owners April 14, 2026 03:16
@santoshkumarradha santoshkumarradha merged commit 176db49 into main Apr 14, 2026
31 of 32 checks passed
@santoshkumarradha santoshkumarradha deleted the fix/python-sdk-pytest-tempdir-cve branch April 14, 2026 03:17
@github-actions
Copy link
Copy Markdown
Contributor

Performance

SDK Memory Δ Latency Δ Tests Status
Python 7.9 KB -13% 0.25 µs -29%

✓ No regressions detected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant