Orchestrata Ultimate › Tests › Reference › session › test_session_system_limits

Tests reference — tests/session/test_session_system_limits.py

Module of tests/session, split out because the directory page would be too large.

Prose pending.

tests/session/test_session_system_limits.py

source · 11 tests · 447 lines

System limit tests for spec 006.

Covers: infra.redis_state, session.fact_emitter, session.redis_store, session.types

Kind Name Line Description
class TestDiskFullScenarios 70 Redis operations continue even when local disk is full.
method TestDiskFullScenarios.test_redis_save_session_survives_full_tmpdir 77 save_session works even when local temp dir is full.
method TestDiskFullScenarios.test_redis_fact_emission_survives_full_tmpdir 114 Fact emission works even when local temp dir is full.
method TestDiskFullScenarios.test_redis_delete_survives_full_tmpdir 141 Session deletion works under disk pressure.
method TestDiskFullScenarios.test_redis_operations_independent_of_local_fs 168 Full CRUD cycle works when local FS is under pressure.
class TestMemoryPressure 215 Session operations under constrained memory.
method TestMemoryPressure.test_session_crud_under_memory_cap 229 Basic CRUD works within a reasonable memory budget.
method TestMemoryPressure.test_batch_emit_under_memory_pressure 270 Batch emission of 1000 facts under memory constraints.
method TestMemoryPressure.test_many_sessions_under_memory_pressure 300 Create and close 100 sessions under memory constraints.
method TestMemoryPressure.test_memory_not_leaked_after_operations 334 Verify no significant memory growth after session operations.
class TestLargeDataEdgeCases 373 Test behavior with unusually large payloads.
method TestLargeDataEdgeCases.test_large_fact_data_payload 376 Session handles facts with large data payloads.
method TestLargeDataEdgeCases.test_many_context_keys 399 Session handles many context key-value pairs.
method TestLargeDataEdgeCases.test_session_with_deeply_nested_data 419 Session handles deeply nested JSON structures.