gh#198: a deferred handle does not touch the device until it loads

Tests › tests/unit/inference/deferred_load_test.cpp

absent Not in the packaged run: no test report names it.

What this test is for

Why it exists

The test says nothing about why.

tests/unit/inference/deferred_load_test.cpp:238 · its file's page

What it checks (5)

  1. REQUIRE(orch.initialize(config)) observes initialize
  2. CHECK(entropic::device_memory_query_count() == before) observes device_memory_query_count
  3. CHECK(entropic::device_memory_query_count() == at_first_ask + 1) observes device_memory_query_count
  4. CHECK(entropic::device_memory_query_count() == at_second) observes device_memory_query_count
  5. CHECK(entropic::device_memory_query_count() == before + 1) observes device_memory_query_count

Where the product reaches it

No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.

Call flow

gh#198: a deferred handle does not touch the device until it loads→write_not_a_model→WHEN→one_tier→device_memory_query_count→REQUIRE→initialize→ensure_model

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

gh#198: a deferred handle does not touch the device until it loads · 5 checksWHENfailure_detailREQ-API-012 · inferredinitializeactivate_routerensure_loadedload_and_activateREQ-INFER-002 · inferredinitializeload_bundled_grammarsload_bundledREQ-INFER-007 · inferredinitializecreate_tier_backendscreate_adapterREQ-INFER-012 · inferredensure_modelREQ-INFER-019 · inferredinitializebuild_routing_tablesREQ-INFER-020 · inferredensure_modelget_modelactivate_and_trackpreload_adapters_for_modelREQ-INFER-023 · inferred
Also reaches 7 requirements

Its run touches their code; that is reach, not proof.