…emoryResource
Many memory IPC tests use the pool half of the IPC protocol (allocation
handles, from_allocation_handle, the registry, uuid, pool import). A
VirtualMemoryResource has none of these, so their VirtualMR cases skipped
at runtime on every runner and could never run.
Add ipc_pool_memory_resource (DeviceMR, PinnedMR) and
ipc_pool_memory_resource_factory (DeviceMR) to conftest.py, sharing setup
and teardown with the existing fixtures, and use them in the pool-only
tests. This replaces the in-body skips, the ChildErrorHarness POOL_ONLY
flag, and the class-local pool_resource fixtures. Split the alloc_handle
case of test_pass_object into test_pass_alloc_handle so its other VirtualMR
cases keep running. Remove the "not currently run in any CI job" markers
on these cases.
Closes NVIDIA#3568.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closes #3568. Part of #2077.
Summary
Pool-only IPC tests were parametrized over
VirtualMemoryResource, which has no allocation handles, registry,uuid, or pool import. TheirVirtualMRcases skipped at runtime on every runner, so they could never run. They now use pool-only fixtures, so those cases are no longer collected.test_errors.py: the registry and allocation-handle tests use the pool fixtures.ChildErrorHarness.POOL_ONLYis replaced by a class-levelipc_memory_resourceoverride inTestDanglingBuffer.test_ipc_pool_kind.py,test_ipc_pool_duplicate_import.py: the class-localpool_resourcefixtures, which skippedVirtualMR, are replaced byipc_pool_memory_resource.test_leaks.py:test_alloc_handleuses the pool fixture. Thealloc_handlecase oftest_pass_objectbecomestest_pass_alloc_handle, sotest_pass_objectkeeps its 9 runnableVirtualMRcases.test_send_buffers.py::TestIpcReexport,test_workerpool.py::TestIpcWorkerPoolUsingRegistry: pool fixtures. The VMM limits behind their old skips already have negative tests (test_vmm_ipc.py::TestReexport, and theVirtualMRcases of the other worker-pool tests).test_register_keeps_the_uuid_object_the_resource_already_hashad the same never-runsVirtualMRskip. It wasn't in the issue's list, but is included.Evidence
Collected test IDs,
mainvs this branch:VirtualMRcases that could never run are no longer collected. The issue counted 22;test_ipc_pool_duplicate_import.pyhas gained tests since (18 there now).test_pass_object[...-alloc_handle]IDs are nowtest_pass_alloc_handle[...].cuda_core/tests/memory_ipclocally (Linux, RTX 5070 + RTX A400),mainvs this branch:main: 161 passed, 42 skipped, 14 failed.The failure sets are identical: they come from a stale local cuda.core build, not this change.
test_ipc_pool_duplicate_import.pycan't be imported with that build, so it was excluded from both runs and checked by collection only.Confirming in CI: in this PR's CI run, the Linux
corejobs should report no[VirtualMRIDs for the tests above, and should report their DeviceMR/PinnedMR cases PASSED as onmain. For example:Merge Danger
Door: two-way. Test-only change.
Blast Radius:
cuda_core/tests/memory_ipc. No test that ran before stops running; only always-skipped cases disappear, and 6 test IDs are renamed.Reviewers: please feel free to push commits directly to this PR to improve it.
🤖 Generated with Claude Code