provide-testkit
2026-03-21
Add memray allocation profiling tests and bump to v0.3.21
15 files · 239+ · 11-
Memray allocation profiling
9 files changed
memray_fixture_creation_stress.pyNew 86-line stress script profiling mock_logger, AutoPatch, SleepTracker, and Hub/Container creation (18K cycles)memray_foundation_reset_stress.pyNew 39-line stress script profiling reset_foundation_setup_for_testing and reset_foundation_state (10K cycles)memray_test_case_setup_stress.pyNew 47-line stress script profiling FoundationTestCase.setup_method and _needs_full_reset (11K cycles)__init__.pyNew empty init for memray test packagebaselines.jsonNew allocation baselines: fixture_creation 232K, foundation_reset 38K, test_case_setup 228Kconftest.pyImports wrknv memray fixturestest_fixture_creation_allocations.pyNew memray allocation test for fixture creationtest_foundation_reset_allocations.pyNew memray allocation test for foundation resettest_test_case_setup_allocations.pyNew memray allocation test for test case setup
- Introduced memray-based allocation profiling with stress scripts and pytest integration to track memory usage regressions in fixture creation, Foundation reset, and test case setup hot paths
qualify
behavioral
3 files
memray_fixture_creation_stress.pybaselines.jsontest_fixture_creation_allocations.py
Version and dependency updates
2 files changed
VERSIONBumped from 0.3.0 to 0.3.21pyproject.tomlPinned provide-foundation>=0.3.21, excluded memray tests from default run via norecursedirs and marker, added memray marker
Gitignore and crypto fixture adjustments
3 files changed
.gitignoreAdded memray-output/ directory and .actrc to gitignorefixtures.pyReverted is_debug_enabled() guard, keeping simple logger.debug() callswrknv.tomlAdded memray-related wrknv tasks
- Reverted debug guard optimization in crypto fixtures in favor of simpler direct logger.debug() calls
streamline
internal
1 file
fixtures.py