Full log
219/303 Test #219: interface.ToolCallRequestTest.ToolsNotArrayRejected .................................................. Passed 0.01 sec
Start 220: interface.ToolCallRequestTest.ToolsObjectRejected
220/303 Test #220: interface.ToolCallRequestTest.ToolsObjectRejected .................................................... Passed 0.01 sec
Start 221: interface.ToolCallRequestTest.ToolChoiceNumberRejected
221/303 Test #221: interface.ToolCallRequestTest.ToolChoiceNumberRejected ............................................... Passed 0.01 sec
Start 222: interface.ToolCallRequestTest.InvalidToolChoiceObjectRejected
222/303 Test #222: interface.ToolCallRequestTest.InvalidToolChoiceObjectRejected ........................................ Passed 0.01 sec
Start 223: interface.ToolCallRequestTest.ToolChoiceArrayRejected
223/303 Test #223: interface.ToolCallRequestTest.ToolChoiceArrayRejected ................................................ Passed 0.02 sec
Start 224: interface.ToolCallForwardTest.ToolsAndToolChoiceForwardsAsToolCallTask
224/303 Test #224: interface.ToolCallForwardTest.ToolsAndToolChoiceForwardsAsToolCallTask ............................... Passed 0.06 sec
Start 225: interface.ToolCallForwardTest.ToolChoiceDefaultsToAutoWhenOmitted
225/303 Test #225: interface.ToolCallForwardTest.ToolChoiceDefaultsToAutoWhenOmitted .................................... Passed 0.06 sec
Start 226: interface.ToolCallForwardTest.ToolChoiceAutoForwardsAsToolCallTask
226/303 Test #226: interface.ToolCallForwardTest.ToolChoiceAutoForwardsAsToolCallTask ................................... Passed 0.06 sec
Start 227: interface.ToolCallForwardTest.ToolChoiceFunctionObjectForwardsAsToolCallTask
227/303 Test #227: interface.ToolCallForwardTest.ToolChoiceFunctionObjectForwardsAsToolCallTask ......................... Passed 0.06 sec
Start 228: interface.ToolCallForwardTest.EmptyToolsArrayDoesNotForwardAsToolCall
228/303 Test #228: interface.ToolCallForwardTest.EmptyToolsArrayDoesNotForwardAsToolCall ................................ Passed 0.06 sec
Start 229: interface.ToolCallForwardTest.MissingToolsDoesNotForwardAsToolCall
229/303 Test #229: interface.ToolCallForwardTest.MissingToolsDoesNotForwardAsToolCall ................................... Passed 0.06 sec
Start 230: interface.ToolCallForwardTest.ToolChoiceWithoutToolsDoesNotForwardAsToolCall
230/303 Test #230: interface.ToolCallForwardTest.ToolChoiceWithoutToolsDoesNotForwardAsToolCall ......................... Passed 0.06 sec
Start 231: api.GewuSmartServeApiTest.NullArgumentsReturnInvalidArgument
231/303 Test #231: api.GewuSmartServeApiTest.NullArgumentsReturnInvalidArgument ......................................... Passed 0.01 sec
Start 232: api.GewuSmartServeApiTest.EmptyArgumentsAreRejectedAtThePublicBoundary
232/303 Test #232: api.GewuSmartServeApiTest.EmptyArgumentsAreRejectedAtThePublicBoundary ............................... Passed 0.01 sec
Start 233: api.GewuSmartServeApiTest.ModelsDirectoryRequiresCanonicalAbsolutePath
233/303 Test #233: api.GewuSmartServeApiTest.ModelsDirectoryRequiresCanonicalAbsolutePath ............................... Passed 0.01 sec
Start 234: api.GewuSmartServeApiTest.ModelsDirectoryRejectsGroupOrWorldWritableRoot
234/303 Test #234: api.GewuSmartServeApiTest.ModelsDirectoryRejectsGroupOrWorldWritableRoot ............................. Passed 0.06 sec
Start 235: api.GewuSmartServeApiTest.InitializeFinalizeAreIdempotent
235/303 Test #235: api.GewuSmartServeApiTest.InitializeFinalizeAreIdempotent ............................................ Passed 0.60 sec
Start 236: api.GewuSmartServeApiTest.FinalizeOwnsOuterLeaseUntilPublicEntryReturns
236/303 Test #236: api.GewuSmartServeApiTest.FinalizeOwnsOuterLeaseUntilPublicEntryReturns .............................. Passed 0.62 sec
Start 237: api.GewuSmartServeApiTest.FailedFinalizeMustBeRetriedBeforeInitialize
237/303 Test #237: api.GewuSmartServeApiTest.FailedFinalizeMustBeRetriedBeforeInitialize ................................ Passed 0.63 sec
Start 238: api.GewuSmartServeApiTest.FinalizeWaitsForActiveSdkCall
238/303 Test #238: api.GewuSmartServeApiTest.FinalizeWaitsForActiveSdkCall .............................................. Passed 0.63 sec
Start 239: api.GewuSmartServeApiTest.FinalizeIsRejectedFromSdkCallback
239/303 Test #239: api.GewuSmartServeApiTest.FinalizeIsRejectedFromSdkCallback .......................................... Passed 0.63 sec
Start 240: api.GewuSmartServeApiTest.CACertificatePathRoundTrips
240/303 Test #240: api.GewuSmartServeApiTest.CACertificatePathRoundTrips ................................................ Passed 0.03 sec
Start 241: api.GewuSmartServeApiTest.InvalidJsonIsRejectedBeforeServiceInitialization
241/303 Test #241: api.GewuSmartServeApiTest.InvalidJsonIsRejectedBeforeServiceInitialization ........................... Passed 0.02 sec
Start 242: api.GewuSmartServeApiTest.VersionAndListEnginesReturnValidData
242/303 Test #242: api.GewuSmartServeApiTest.VersionAndListEnginesReturnValidData ....................................... Passed 0.60 sec
Start 243: api.GewuSmartServeApiTest.ChatCompletionsRejectsMalformedOrIncompleteRequests
243/303 Test #243: api.GewuSmartServeApiTest.ChatCompletionsRejectsMalformedOrIncompleteRequests ........................ Passed 0.62 sec
Start 244: api.GewuSmartServeApiTest.ConfigJsonValidation
244/303 Test #244: api.GewuSmartServeApiTest.ConfigJsonValidation ....................................................... Passed 0.09 sec
Start 245: api.GewuSmartServeApiTest.ConfigJsonCopiesInputBuffer
245/303 Test #245: api.GewuSmartServeApiTest.ConfigJsonCopiesInputBuffer ................................................ Passed 0.60 sec
Start 246: api.GewuSmartServeApiTest.SetModelsConfigPathLoadsConfigFile
246/303 Test #246: api.GewuSmartServeApiTest.SetModelsConfigPathLoadsConfigFile ......................................... Passed 0.63 sec
Start 247: api.GewuSmartServeApiTest.SetModelsConfigPathRejectsRelativeAndSymlinkPaths
247/303 Test #247: api.GewuSmartServeApiTest.SetModelsConfigPathRejectsRelativeAndSymlinkPaths .......................... Passed 0.04 sec
Start 248: api.GewuSmartServeApiTest.SetModelsConfigJsonRejectsSymlinkedDerivedPathsBeforeCommit
248/303 Test #248: api.GewuSmartServeApiTest.SetModelsConfigJsonRejectsSymlinkedDerivedPathsBeforeCommit ................ Passed 0.61 sec
Start 249: api.GewuSmartServeApiTest.CachedConfigJsonDoesNotReloadRelativePathFromWorkingDirectory
249/303 Test #249: api.GewuSmartServeApiTest.CachedConfigJsonDoesNotReloadRelativePathFromWorkingDirectory .............. Passed 0.63 sec
Start 250: api.GewuSmartServeApiTest.OversizedModelsConfigInputsAreRejectedWithoutReplacingCurrentConfig
250/303 Test #250: api.GewuSmartServeApiTest.OversizedModelsConfigInputsAreRejectedWithoutReplacingCurrentConfig ........ Passed 0.63 sec
Start 251: api.GewuSmartServeApiTest.SetModelsConfigPathRejectsInvalidFilesImmediately
251/303 Test #251: api.GewuSmartServeApiTest.SetModelsConfigPathRejectsInvalidFilesImmediately .......................... Passed 0.10 sec
Start 252: api.GewuSmartServeApiTest.ListModelsUsesGewuOwnerAndOpenAIShape
252/303 Test #252: api.GewuSmartServeApiTest.ListModelsUsesGewuOwnerAndOpenAIShape ...................................... Passed 0.60 sec
Start 253: api.GewuSmartServeApiTest.GetModelInfoAndDownloadInvalidModel
253/303 Test #253: api.GewuSmartServeApiTest.GetModelInfoAndDownloadInvalidModel ........................................ Passed 0.63 sec
Start 254: api.GewuSmartServeApiTest.ConcurrentListModelsAndErrorStringCallsAreThreadSafe
254/303 Test #254: api.GewuSmartServeApiTest.ConcurrentListModelsAndErrorStringCallsAreThreadSafe ....................... Passed 0.63 sec
Start 255: api.GewuSmartServeApiTest.ErrorStringCoversPublicErrorCodes
255/303 Test #255: api.GewuSmartServeApiTest.ErrorStringCoversPublicErrorCodes .......................................... Passed 0.04 sec
Start 256: api.GewuSmartServeApiTest.SmartServeEngineWrappersRegisterListAndUnregister
256/303 Test #256: api.GewuSmartServeApiTest.SmartServeEngineWrappersRegisterListAndUnregister .......................... Passed 0.61 sec
Start 257: api.GewuSmartServeApiTest.RegisterEngineCanBeUnregistered
257/303 Test #257: api.GewuSmartServeApiTest.RegisterEngineCanBeUnregistered ............................................ Passed 0.63 sec
Start 258: api.GewuSmartServeApiTest.BuiltInEngineCannotBeExternallyRegisteredOrUnregistered
258/303 Test #258: api.GewuSmartServeApiTest.BuiltInEngineCannotBeExternallyRegisteredOrUnregistered .................... Passed 0.63 sec
Start 259: api.GewuSmartServeApiTest.AppleFoundationModelCanBeRegisteredAfterInitializeAndServeChat
259/303 Test #259: api.GewuSmartServeApiTest.AppleFoundationModelCanBeRegisteredAfterInitializeAndServeChat ............. Passed 0.64 sec
Start 260: api.GewuSmartServeApiTest.SmartServeApiRegistersSystemEngineAndServesChat
260/303 Test #260: api.GewuSmartServeApiTest.SmartServeApiRegistersSystemEngineAndServesChat ............................ Passed 0.63 sec
Start 261: api.GewuSmartServeApiTest.AppleFoundationModelHandlesConcurrentRequests
261/303 Test #261: api.GewuSmartServeApiTest.AppleFoundationModelHandlesConcurrentRequests .............................. Passed 0.63 sec
Start 262: api.GewuSmartServeApiTest.AppleFoundationModelStreamingReturnsChunksAndEof
262/303 Test #262: api.GewuSmartServeApiTest.AppleFoundationModelStreamingReturnsChunksAndEof ........................... Passed 0.62 sec
Start 263: api.GewuSmartServeApiTest.CancelActiveRequestReturnsCancelledOnGetResponse
263/303 Test #263: api.GewuSmartServeApiTest.CancelActiveRequestReturnsCancelledOnGetResponse ........................... Passed 0.63 sec
Start 264: api.GewuSmartServeApiTest.DestroyRequestIsSafeWhileGetResponseIsRunning
264/303 Test #264: api.GewuSmartServeApiTest.DestroyRequestIsSafeWhileGetResponseIsRunning .............................. Passed 0.63 sec
Start 265: api.GewuSmartServeApiTest.FinalizeCancelsActiveRequestAndClearsOpaqueHandle
265/303 Test #265: api.GewuSmartServeApiTest.FinalizeCancelsActiveRequestAndClearsOpaqueHandle .......................... Passed 0.63 sec
Start 266: api.GewuSmartServeApiTest.CancelCompletedRequestReturnsOk
266/303 Test #266: api.GewuSmartServeApiTest.CancelCompletedRequestReturnsOk ............................................ Passed 0.63 sec
Start 267: api.GewuSmartServeApiTest.StreamingRequestCanBeCancelledAfterFirstChunk
267/303 Test #267: api.GewuSmartServeApiTest.StreamingRequestCanBeCancelledAfterFirstChunk .............................. Passed 0.62 sec
Start 268: api.GewuSmartServeApiTest.UnloadReturnsBusyAndDeleteRejectsSystemModelWhileInferenceIsActive
268/303 Test #268: api.GewuSmartServeApiTest.UnloadReturnsBusyAndDeleteRejectsSystemModelWhileInferenceIsActive ......... Passed 0.63 sec
Start 269: api.GewuSmartServeApiTest.DeleteSystemModelDoesNotRemoveSameNamedDirectory
269/303 Test #269: api.GewuSmartServeApiTest.DeleteSystemModelDoesNotRemoveSameNamedDirectory ........................... Passed 0.63 sec
Start 270: api.GewuSmartServeApiTest.InferenceRejectsConfiguredModelWithMissingDeclaredFiles
270/303 Test #270: api.GewuSmartServeApiTest.InferenceRejectsConfiguredModelWithMissingDeclaredFiles .................... Passed 0.63 sec
Start 271: api.GewuSmartServeApiTest.AppleFoundationModelLoadsFromConfigPathAfterInitializeAndRegister
271/303 Test #271: api.GewuSmartServeApiTest.AppleFoundationModelLoadsFromConfigPathAfterInitializeAndRegister .......... Passed 0.64 sec
Start 272: api.GewuSmartServeApiTest.PreinstalledModelWithoutVerifiedDownloadIsNotLoadable
272/303 Test #272: api.GewuSmartServeApiTest.PreinstalledModelWithoutVerifiedDownloadIsNotLoadable ...................... Passed 0.63 sec
Start 273: api.GewuSmartServeApiTest.MultiFileDownloadReportsInstalledFileProgressProportionally
273/303 Test #273: api.GewuSmartServeApiTest.MultiFileDownloadReportsInstalledFileProgressProportionally ................ Passed 0.63 sec
Start 274: api.GewuSmartServeApiTest.SingleFileDownloadUsesNameInsideModelPathDirectory
274/303 Test #274: api.GewuSmartServeApiTest.SingleFileDownloadUsesNameInsideModelPathDirectory ......................... Passed 0.63 sec
Start 275: api.GewuSmartServeApiTest.DownloadAcceptsCustomHttpsAndRejectsInsecureSources
275/303 Test #275: api.GewuSmartServeApiTest.DownloadAcceptsCustomHttpsAndRejectsInsecureSources ........................ Passed 0.63 sec
Start 276: api.GewuSmartServeApiTest.SingleFileDirectoryPathIsNotReportedDownloaded
276/303 Test #276: api.GewuSmartServeApiTest.SingleFileDirectoryPathIsNotReportedDownloaded ............................. Passed 0.63 sec
Start 277: api.GewuSmartServeApiTest.MultiFileModelRequiresValidChecksumsToBeDownloaded
277/303 Test #277: api.GewuSmartServeApiTest.MultiFileModelRequiresValidChecksumsToBeDownloaded ......................... Passed 0.63 sec
Start 278: api.GewuSmartServeApiTest.DownloadRejectsPathTraversalInModelAndFilePaths
278/303 Test #278: api.GewuSmartServeApiTest.DownloadRejectsPathTraversalInModelAndFilePaths ............................ Passed 0.63 sec
Start 279: api.GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
279/303 Test #279: api.GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory ................***Failed 0.63 sec
Running main() from /Users/linhan/repos/ci_smartserve/smartserve/third-party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from GewuSmartServeApiTest
[ RUN ] GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
ggml_metal_device_init: tensor API disabled for pre-M5 and pre-A19 devices
ggml_metal_library_init: using embedded metal library
ggml_metal_library_init: loaded in 0.007 sec
ggml_metal_rsets_init: creating a residency set collection (keep_alive = 180 s)
ggml_metal_device_init: GPU name: MTL0 (Apple M4 Pro)
ggml_metal_device_init: GPU family: MTLGPUFamilyApple9 (1009)
ggml_metal_device_init: GPU family: MTLGPUFamilyCommon3 (3003)
ggml_metal_device_init: GPU family: MTLGPUFamilyMetal4 (5002)
ggml_metal_device_init: simdgroup reduction = true
ggml_metal_device_init: simdgroup matrix mul. = true
ggml_metal_device_init: has unified memory = true
ggml_metal_device_init: has bfloat = true
ggml_metal_device_init: has tensor = false
ggml_metal_device_init: use residency sets = true
ggml_metal_device_init: use shared buffers = true
ggml_metal_device_init: recommendedMaxWorkingSetSize = 19069.67 MB
2026-08-18 20:37:37.671 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:37.671 [ WARN][SmartServe][SmartServeAppInit] No models loaded from config
2026-08-18 20:37:37.671 [ WARN][SmartServe][Service] single-file-path-engine engine not registered, skipping model: single-file-service-model
2026-08-18 20:37:37.671 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: single-file-service-model
2026-08-18 20:37:37.671 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: single-file-service-model
2026-08-18 20:37:37.671 [ERROR][SmartServe][SessionManager] Model not registered: single-file-service-model
2026-08-18 20:37:37.671 [ERROR][SmartServe][ClientAPI] EvalTask failed to create session: model=single-file-service-model engine=single-file-path-engine backend=
2026-08-18 20:37:37.671 [ERROR][SmartServe][ClientAPI] EvalTask failed for model: single-file-service-model
2026-08-18 20:37:37.671 [ERROR][SmartServe][GewuSmartServeChatCompletions] Serve error model=single-file-service-model msg=Requested resource does not exist.
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_model_files_api_test.cpp:397: Failure
Expected equality of these values:
GewuSmartServeChatCompletions(requestJson.c_str(), &request)
Which is: -4
GEWU_SMARTSERVE_OK
Which is: 0
[ FAILED ] GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory (84 ms)
[----------] 1 test from GewuSmartServeApiTest (84 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (84 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
1 FAILED TEST
Start 280: api.GewuSmartServeApiTest.ServiceLoadModelsRejectsDirectoryForSingleFileModel
280/303 Test #280: api.GewuSmartServeApiTest.ServiceLoadModelsRejectsDirectoryForSingleFileModel ........................ Passed 0.63 sec
Start 281: api.GewuSmartServeApiTest.ServiceLoadModelsRejectsEscapedConfiguredPaths
281/303 Test #281: api.GewuSmartServeApiTest.ServiceLoadModelsRejectsEscapedConfiguredPaths ............................. Passed 0.63 sec
Start 282: api.GewuSmartServeApiTest.DownloadPersistsMetadataAndDeleteCleansIt
282/303 Test #282: api.GewuSmartServeApiTest.DownloadPersistsMetadataAndDeleteCleansIt .................................. Passed 0.63 sec
Start 283: api.GewuSmartServeApiTest.PauseDownloadCancelsAndNextDownloadResumes
283/303 Test #283: api.GewuSmartServeApiTest.PauseDownloadCancelsAndNextDownloadResumes ................................. Passed 0.64 sec
Start 284: api.GewuSmartServeApiTest.ProgressCallbackRejectsBlockingLifecycleReentryWithoutDeadlock
284/303 Test #284: api.GewuSmartServeApiTest.ProgressCallbackRejectsBlockingLifecycleReentryWithoutDeadlock ............. Passed 0.63 sec
Start 285: api.GewuSmartServeApiTest.ThreeConcurrentDownloadsOfSameModelAreIdempotent
285/303 Test #285: api.GewuSmartServeApiTest.ThreeConcurrentDownloadsOfSameModelAreIdempotent ........................... Passed 0.63 sec
Start 286: api.GewuSmartServeApiTest.DeleteDuringDownloadCancelsAndRemovesPartialModel
286/303 Test #286: api.GewuSmartServeApiTest.DeleteDuringDownloadCancelsAndRemovesPartialModel .......................... Passed 0.62 sec
Start 287: api.GewuSmartServeApiTest.DownloadStartedDuringDeleteWaitsAndRestoresModel
287/303 Test #287: api.GewuSmartServeApiTest.DownloadStartedDuringDeleteWaitsAndRestoresModel ........................... Passed 0.64 sec
Start 288: api.GewuSmartServeApiTest.InferenceStartedDuringDeleteIsRejected
288/303 Test #288: api.GewuSmartServeApiTest.InferenceStartedDuringDeleteIsRejected ..................................... Passed 0.64 sec
Start 289: api.GewuSmartServeApiTest.ConcurrentRepeatedDeleteHasDeterministicNotFoundResult
289/303 Test #289: api.GewuSmartServeApiTest.ConcurrentRepeatedDeleteHasDeterministicNotFoundResult ..................... Passed 0.64 sec
Start 290: api.GewuSmartServeApiTest.ModelQueriesDoNotWaitForActiveDownload
290/303 Test #290: api.GewuSmartServeApiTest.ModelQueriesDoNotWaitForActiveDownload ..................................... Passed 0.63 sec
Start 291: api.GewuSmartServeApiTest.ModelQueriesReturnBusyDuringDelete
291/303 Test #291: api.GewuSmartServeApiTest.ModelQueriesReturnBusyDuringDelete ......................................... Passed 0.63 sec
Start 292: api.GewuSmartServeApiTest.DeletingLargeModelDoesNotBlockUnrelatedEngineRegistration
292/303 Test #292: api.GewuSmartServeApiTest.DeletingLargeModelDoesNotBlockUnrelatedEngineRegistration .................. Passed 2.07 sec
Start 293: api.GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
293/303 Test #293: api.GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted ...........................***Failed 0.62 sec
Running main() from /Users/linhan/repos/ci_smartserve/smartserve/third-party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from GewuSmartServeApiTest
[ RUN ] GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
ggml_metal_device_init: tensor API disabled for pre-M5 and pre-A19 devices
ggml_metal_library_init: using embedded metal library
ggml_metal_library_init: loaded in 0.008 sec
ggml_metal_rsets_init: creating a residency set collection (keep_alive = 180 s)
ggml_metal_device_init: GPU name: MTL0 (Apple M4 Pro)
ggml_metal_device_init: GPU family: MTLGPUFamilyApple9 (1009)
ggml_metal_device_init: GPU family: MTLGPUFamilyCommon3 (3003)
ggml_metal_device_init: GPU family: MTLGPUFamilyMetal4 (5002)
ggml_metal_device_init: simdgroup reduction = true
ggml_metal_device_init: simdgroup matrix mul. = true
ggml_metal_device_init: has unified memory = true
ggml_metal_device_init: has bfloat = true
ggml_metal_device_init: has tensor = false
ggml_metal_device_init: use residency sets = true
ggml_metal_device_init: use shared buffers = true
ggml_metal_device_init: recommendedMaxWorkingSetSize = 19069.67 MB
2026-08-18 20:37:47.975 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:47.975 [ WARN][SmartServe][SmartServeAppInit] No models loaded from config
2026-08-18 20:37:47.975 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:47.975 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: load-during-delete-model
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_model_lifecycle_api_test.cpp:523: Failure
Value of: OHOS::SmartServe::Service::LoadModels()
Actual: false
Expected: true
[ FAILED ] GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted (85 ms)
[----------] 1 test from GewuSmartServeApiTest (85 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (85 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
1 FAILED TEST
Start 294: api.GewuSmartServeApiTest.DeleteUnloadsRuntimeModelWhenFilesAndMetadataAreAlreadyMissing
294/303 Test #294: api.GewuSmartServeApiTest.DeleteUnloadsRuntimeModelWhenFilesAndMetadataAreAlreadyMissing ............. Passed 0.63 sec
Start 295: api.GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
295/303 Test #295: api.GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum ..................................***Failed 0.63 sec
Running main() from /Users/linhan/repos/ci_smartserve/smartserve/third-party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from GewuSmartServeApiTest
[ RUN ] GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
ggml_metal_device_init: tensor API disabled for pre-M5 and pre-A19 devices
ggml_metal_library_init: using embedded metal library
ggml_metal_library_init: loaded in 0.008 sec
ggml_metal_rsets_init: creating a residency set collection (keep_alive = 180 s)
ggml_metal_device_init: GPU name: MTL0 (Apple M4 Pro)
ggml_metal_device_init: GPU family: MTLGPUFamilyApple9 (1009)
ggml_metal_device_init: GPU family: MTLGPUFamilyCommon3 (3003)
ggml_metal_device_init: GPU family: MTLGPUFamilyMetal4 (5002)
ggml_metal_device_init: simdgroup reduction = true
ggml_metal_device_init: simdgroup matrix mul. = true
ggml_metal_device_init: has unified memory = true
ggml_metal_device_init: has bfloat = true
ggml_metal_device_init: has tensor = false
ggml_metal_device_init: use residency sets = true
ggml_metal_device_init: use shared buffers = true
ggml_metal_device_init: recommendedMaxWorkingSetSize = 19069.67 MB
2026-08-18 20:37:49.236 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:49.236 [ WARN][SmartServe][SmartServeAppInit] No models loaded from config
2026-08-18 20:37:49.237 [ WARN][SmartServe][Service] preinstalled-integrity-engine engine not registered, skipping model: preinstalled-integrity-model
2026-08-18 20:37:49.237 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: preinstalled-integrity-model
2026-08-18 20:37:49.237 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: preinstalled-integrity-model
2026-08-18 20:37:49.237 [ERROR][SmartServe][SessionManager] Model not registered: preinstalled-integrity-model
2026-08-18 20:37:49.237 [ERROR][SmartServe][ClientAPI] EvalTask failed to create session: model=preinstalled-integrity-model engine=preinstalled-integrity-engine backend=
2026-08-18 20:37:49.237 [ERROR][SmartServe][ClientAPI] EvalTask failed for model: preinstalled-integrity-model
2026-08-18 20:37:49.237 [ERROR][SmartServe][GewuSmartServeChatCompletions] Serve error model=preinstalled-integrity-model msg=Requested resource does not exist.
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_api_test_base.cpp:122: Failure
Expected equality of these values:
GewuSmartServeChatCompletions(requestJson.c_str(), &request)
Which is: -4
GEWU_SMARTSERVE_OK
Which is: 0
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_model_lifecycle_api_test.cpp:614: Failure
Expected equality of these values:
GewuSmartServeUnloadModel(modelId.c_str())
Which is: -4
GEWU_SMARTSERVE_OK
Which is: 0
[ FAILED ] GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum (84 ms)
[----------] 1 test from GewuSmartServeApiTest (84 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (84 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
1 FAILED TEST
Start 296: api.GewuSmartServeApiTest.PreinstalledModelWithoutChecksumIsRejected
296/303 Test #296: api.GewuSmartServeApiTest.PreinstalledModelWithoutChecksumIsRejected ................................. Passed 0.63 sec
Start 297: api.GewuSmartServeApiTest.DeleteRejectsIntermediateSymlinkEscapingModelRoot
297/303 Test #297: api.GewuSmartServeApiTest.DeleteRejectsIntermediateSymlinkEscapingModelRoot .......................... Passed 0.63 sec
Start 298: model_runtime.MultiSessionTest.MultiSessionAndSingleSessionMultiTask
298/303 Test #298: model_runtime.MultiSessionTest.MultiSessionAndSingleSessionMultiTask .................................***Skipped 0.63 sec
Start 299: model_runtime.MultiSessionTest.LlamaCppHonorsRequestOutputLimit
299/303 Test #299: model_runtime.MultiSessionTest.LlamaCppHonorsRequestOutputLimit ......................................***Skipped 0.63 sec
Start 300: model_runtime.MultiSessionTest.RuntimeCancelThenImmediateNewRequest
300/303 Test #300: model_runtime.MultiSessionTest.RuntimeCancelThenImmediateNewRequest ..................................***Skipped 0.63 sec
Start 301: model_runtime.SmartServeTest.SmartServeLLMInterfaceTest
301/303 Test #301: model_runtime.SmartServeTest.SmartServeLLMInterfaceTest ..............................................***Skipped 0.62 sec
Start 302: model_runtime.SmartServeTest.SmartServeMnnLoraInterfaceTest
302/303 Test #302: model_runtime.SmartServeTest.SmartServeMnnLoraInterfaceTest ..........................................***Skipped 0.63 sec
Start 303: model_runtime.SmartServeTest.SmartServeVLMInterfaceTest
303/303 Test #303: model_runtime.SmartServeTest.SmartServeVLMInterfaceTest ..............................................***Skipped 0.62 sec
99% tests passed, 3 tests failed out of 303
Total Test time (real) = 48.75 sec
The following tests did not run:
298 - model_runtime.MultiSessionTest.MultiSessionAndSingleSessionMultiTask (Skipped)
299 - model_runtime.MultiSessionTest.LlamaCppHonorsRequestOutputLimit (Skipped)
300 - model_runtime.MultiSessionTest.RuntimeCancelThenImmediateNewRequest (Skipped)
301 - model_runtime.SmartServeTest.SmartServeLLMInterfaceTest (Skipped)
302 - model_runtime.SmartServeTest.SmartServeMnnLoraInterfaceTest (Skipped)
303 - model_runtime.SmartServeTest.SmartServeVLMInterfaceTest (Skipped)
The following tests FAILED:
279 - api.GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory (Failed)
293 - api.GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted (Failed)
295 - api.GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum (Failed)
Errors while running CTest
[1;33mSome tests failed; rerunning failed tests once...[0m
Test project /Users/linhan/repos/ci_smartserve/smartserve/build/macos
Start 279: api.GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
1/3 Test #279: api.GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory ...***Failed 0.60 sec
Running main() from /Users/linhan/repos/ci_smartserve/smartserve/third-party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from GewuSmartServeApiTest
[ RUN ] GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
ggml_metal_device_init: tensor API disabled for pre-M5 and pre-A19 devices
ggml_metal_library_init: using embedded metal library
ggml_metal_library_init: loaded in 0.008 sec
ggml_metal_rsets_init: creating a residency set collection (keep_alive = 180 s)
ggml_metal_device_init: GPU name: MTL0 (Apple M4 Pro)
ggml_metal_device_init: GPU family: MTLGPUFamilyApple9 (1009)
ggml_metal_device_init: GPU family: MTLGPUFamilyCommon3 (3003)
ggml_metal_device_init: GPU family: MTLGPUFamilyMetal4 (5002)
ggml_metal_device_init: simdgroup reduction = true
ggml_metal_device_init: simdgroup matrix mul. = true
ggml_metal_device_init: has unified memory = true
ggml_metal_device_init: has bfloat = true
ggml_metal_device_init: has tensor = false
ggml_metal_device_init: use residency sets = true
ggml_metal_device_init: use shared buffers = true
ggml_metal_device_init: recommendedMaxWorkingSetSize = 19069.67 MB
2026-08-18 20:37:54.911 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:54.911 [ WARN][SmartServe][SmartServeAppInit] No models loaded from config
2026-08-18 20:37:54.912 [ WARN][SmartServe][Service] single-file-path-engine engine not registered, skipping model: single-file-service-model
2026-08-18 20:37:54.912 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: single-file-service-model
2026-08-18 20:37:54.912 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: single-file-service-model
2026-08-18 20:37:54.912 [ERROR][SmartServe][SessionManager] Model not registered: single-file-service-model
2026-08-18 20:37:54.912 [ERROR][SmartServe][ClientAPI] EvalTask failed to create session: model=single-file-service-model engine=single-file-path-engine backend=
2026-08-18 20:37:54.912 [ERROR][SmartServe][ClientAPI] EvalTask failed for model: single-file-service-model
2026-08-18 20:37:54.912 [ERROR][SmartServe][GewuSmartServeChatCompletions] Serve error model=single-file-service-model msg=Requested resource does not exist.
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_model_files_api_test.cpp:397: Failure
Expected equality of these values:
GewuSmartServeChatCompletions(requestJson.c_str(), &request)
Which is: -4
GEWU_SMARTSERVE_OK
Which is: 0
[ FAILED ] GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory (74 ms)
[----------] 1 test from GewuSmartServeApiTest (74 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (74 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory
1 FAILED TEST
Start 293: api.GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
2/3 Test #293: api.GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted ..............***Failed 0.63 sec
Running main() from /Users/linhan/repos/ci_smartserve/smartserve/third-party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from GewuSmartServeApiTest
[ RUN ] GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
ggml_metal_device_init: tensor API disabled for pre-M5 and pre-A19 devices
ggml_metal_library_init: using embedded metal library
ggml_metal_library_init: loaded in 0.008 sec
ggml_metal_rsets_init: creating a residency set collection (keep_alive = 180 s)
ggml_metal_device_init: GPU name: MTL0 (Apple M4 Pro)
ggml_metal_device_init: GPU family: MTLGPUFamilyApple9 (1009)
ggml_metal_device_init: GPU family: MTLGPUFamilyCommon3 (3003)
ggml_metal_device_init: GPU family: MTLGPUFamilyMetal4 (5002)
ggml_metal_device_init: simdgroup reduction = true
ggml_metal_device_init: simdgroup matrix mul. = true
ggml_metal_device_init: has unified memory = true
ggml_metal_device_init: has bfloat = true
ggml_metal_device_init: has tensor = false
ggml_metal_device_init: use residency sets = true
ggml_metal_device_init: use shared buffers = true
ggml_metal_device_init: recommendedMaxWorkingSetSize = 19069.67 MB
2026-08-18 20:37:55.538 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:55.538 [ WARN][SmartServe][SmartServeAppInit] No models loaded from config
2026-08-18 20:37:55.538 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:55.538 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: load-during-delete-model
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_model_lifecycle_api_test.cpp:523: Failure
Value of: OHOS::SmartServe::Service::LoadModels()
Actual: false
Expected: true
[ FAILED ] GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted (84 ms)
[----------] 1 test from GewuSmartServeApiTest (84 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (84 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted
1 FAILED TEST
Start 295: api.GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
3/3 Test #295: api.GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum .....................***Failed 0.63 sec
Running main() from /Users/linhan/repos/ci_smartserve/smartserve/third-party/googletest/googletest/src/gtest_main.cc
Note: Google Test filter = GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from GewuSmartServeApiTest
[ RUN ] GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
ggml_metal_device_init: tensor API disabled for pre-M5 and pre-A19 devices
ggml_metal_library_init: using embedded metal library
ggml_metal_library_init: loaded in 0.007 sec
ggml_metal_rsets_init: creating a residency set collection (keep_alive = 180 s)
ggml_metal_device_init: GPU name: MTL0 (Apple M4 Pro)
ggml_metal_device_init: GPU family: MTLGPUFamilyApple9 (1009)
ggml_metal_device_init: GPU family: MTLGPUFamilyCommon3 (3003)
ggml_metal_device_init: GPU family: MTLGPUFamilyMetal4 (5002)
ggml_metal_device_init: simdgroup reduction = true
ggml_metal_device_init: simdgroup matrix mul. = true
ggml_metal_device_init: has unified memory = true
ggml_metal_device_init: has bfloat = true
ggml_metal_device_init: has tensor = false
ggml_metal_device_init: use residency sets = true
ggml_metal_device_init: use shared buffers = true
ggml_metal_device_init: recommendedMaxWorkingSetSize = 19069.67 MB
2026-08-18 20:37:56.170 [ERROR][SmartServe][Service] MODEL_CONFIG_PATH is not configured; keeping the previous model state
2026-08-18 20:37:56.170 [ WARN][SmartServe][SmartServeAppInit] No models loaded from config
2026-08-18 20:37:56.170 [ WARN][SmartServe][Service] preinstalled-integrity-engine engine not registered, skipping model: preinstalled-integrity-model
2026-08-18 20:37:56.170 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: preinstalled-integrity-model
2026-08-18 20:37:56.170 [ERROR][SmartServe][Service] Model was not downloaded and verified by SmartServe: preinstalled-integrity-model
2026-08-18 20:37:56.170 [ERROR][SmartServe][SessionManager] Model not registered: preinstalled-integrity-model
2026-08-18 20:37:56.170 [ERROR][SmartServe][ClientAPI] EvalTask failed to create session: model=preinstalled-integrity-model engine=preinstalled-integrity-engine backend=
2026-08-18 20:37:56.170 [ERROR][SmartServe][ClientAPI] EvalTask failed for model: preinstalled-integrity-model
2026-08-18 20:37:56.170 [ERROR][SmartServe][GewuSmartServeChatCompletions] Serve error model=preinstalled-integrity-model msg=Requested resource does not exist.
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_api_test_base.cpp:122: Failure
Expected equality of these values:
GewuSmartServeChatCompletions(requestJson.c_str(), &request)
Which is: -4
GEWU_SMARTSERVE_OK
Which is: 0
/Users/linhan/repos/ci_smartserve/smartserve/test/api/gewu_smartserve_model_lifecycle_api_test.cpp:614: Failure
Expected equality of these values:
GewuSmartServeUnloadModel(modelId.c_str())
Which is: -4
GEWU_SMARTSERVE_OK
Which is: 0
[ FAILED ] GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum (80 ms)
[----------] 1 test from GewuSmartServeApiTest (80 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (81 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum
1 FAILED TEST
0% tests passed, 3 tests failed out of 3
Total Test time (real) = 1.87 sec
The following tests FAILED:
279 - api.GewuSmartServeApiTest.ServiceLoadModelsUsesSingleFileNameInsideModelPathDirectory (Failed)
293 - api.GewuSmartServeApiTest.LoadModelsSkipsModelWhileItsFilesAreBeingDeleted (Failed)
295 - api.GewuSmartServeApiTest.PreinstalledModelRequiresMatchingChecksum (Failed)
Errors while running CTest
=== finished status=failure exit=8 duration=245s timeout_sec=900 attempts=2 ===