Orchestrata Ultimate › Tests › Reference › session › test_session_stress
Tests reference — tests/session/test_session_stress.py
Module of tests/session, split out because the directory page would be too large.
Prose pending.
tests/session/test_session_stress.py
source · 14 tests · 432 lines
Stress, load, memory, and concurrency tests for orchestrata_ultimate.session.
Covers: infra.redis_state, session.fact_emitter, session.redis_store, session.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestSequentialStress |
90 | Create and close 1000 sessions sequentially. |
| method | TestSequentialStress.test_create_close_1000_sessions |
93 | |
| method | TestSequentialStress.test_rapid_create_close_cycles |
106 | Rapid session creation/closure cycles without resource leak. |
| class | TestLargeFactSets |
121 | Emit 10000 facts to a single session and query them. |
| method | TestLargeFactSets.test_emit_10000_facts |
124 | |
| method | TestLargeFactSets.test_query_1000_facts |
139 | Query large fact sets (1000+ facts). |
| class | TestConcurrentSessionsWithFacts |
166 | 100 concurrent sessions with facts. |
| method | TestConcurrentSessionsWithFacts.test_100_concurrent_sessions |
169 | |
| method | TestConcurrentSessionsWithFacts.test_100_sessions_with_100_facts_each |
196 | 100 concurrent sessions with 100 facts each. |
| class | TestMemory |
229 | Memory usage tests for session operations. |
| method | TestMemory.test_no_memory_leak_1000_cycles |
232 | No memory leaks after 1000 session cycles. |
| method | TestMemory.test_memory_bounded_large_facts |
256 | Memory usage bounded with large fact sets. |
| method | TestMemory.test_memory_released_after_closure |
280 | Memory released after session closure. |
| method | TestMemory.test_memory_stable_many_sessions |
305 | Memory usage stable with many concurrent sessions. |
| class | TestConcurrency |
336 | Concurrent operation tests. |
| method | TestConcurrency.test_concurrent_fact_emission |
339 | Concurrent fact emission to same session. |
| method | TestConcurrency.test_concurrent_queries |
364 | Concurrent queries to same session. |
| method | TestConcurrency.test_concurrent_session_closure |
396 | Close multiple sessions concurrently. |
| method | TestConcurrency.test_close_sessions_random_order |
417 | Close sessions in random order. |