gh#164: release evicts the model and the next use brings it back¶
Tests › tests/unit/inference/release_model_test.cpp
What this test is for
Why it exists
The test says nothing about why.
tests/unit/inference/release_model_test.cpp:105 · its file's page
What it checks (17)
REQUIRE(orch.initialize(config))observesinitializeREQUIRE(orch.loaded_models().size() == 1)observesloaded_modelsCHECK(rc == ENTROPIC_OK)observesrelease_modelsviarcCHECK(log.count(ModelOrchestrator::ResidencyEvent::Evicted) == 1)not attributedREQUIRE_FALSE(log.tiers.empty())not attributedCHECK(log.tiers.front() == "lead")not attributedCHECK(orch.loaded_models().empty())observesloaded_modelsCHECK(orch.last_used_tier().empty())observeslast_used_tierCHECK(orch.residency_snapshot_json() .find("\"tier\":\"lead\"") == std::string::npos)observesresidency_snapshot_jsonREQUIRE(model != nullptr)not attributedCHECK(log.count( ModelOrchestrator::ResidencyEvent::Loaded) == 1)not attributedCHECK(orch.loaded_models().size() == 1)observesloaded_modelsCHECK(again == ENTROPIC_OK)observesrelease_modelsviaagainCHECK(log.events.empty())not attributedCHECK(rc == ENTROPIC_OK)observesrelease_modelsviarcCHECK(log.count(ModelOrchestrator::ResidencyEvent::Evicted) == 1)not attributedCHECK(orch.loaded_models().empty())observesloaded_models
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#164: release evicts the model and the next use brings it back→small_model→one_tier→REQUIRE→initialize→loaded_models→observe→WHEN→release_models→last_used_tier→residency_snapshot_json→clear→ensure_model→shutdownWhat 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.
Also reaches 7 requirements
Its run touches their code; that is reach, not proof.
- REQ-API-012 inferred
- REQ-INFER-002 inferred
- REQ-INFER-007 inferred
- REQ-INFER-012 inferred
- REQ-INFER-019 inferred
- REQ-INFER-020 inferred
- REQ-INFER-023 inferred