Skip to content

Commit b06d1b0

Browse files
ci: modifying stat count for L0_server_status (#7820)
1 parent 5666634 commit b06d1b0

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

qa/L0_server_status/server_status_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
# Copyright 2018-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+
# Copyright 2018-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
44
#
55
# Redistribution and use in source and binary forms, with or without
66
# modification, are permitted provided that the following conditions
@@ -723,8 +723,8 @@ def test_infer_stats_no_model(self):
723723
stats = infer_stats.model_stats
724724
self.assertEqual(
725725
len(stats),
726-
219,
727-
"expected 219 infer stats for all ready versions of all model",
726+
221,
727+
"expected 221 infer stats for all ready versions of all model",
728728
)
729729

730730
except InferenceServerException as ex:

qa/L0_server_status/test.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
2+
# Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
33
#
44
# Redistribution and use in source and binary forms, with or without
55
# modification, are permitted provided that the following conditions
@@ -89,6 +89,12 @@ rm -fr models/onnx_int32_int32_int32/2 models/onnx_int32_int32_int32/3
8989
cp -r models/graphdef_float16_float32_float32/1 models/graphdef_float16_float32_float32/7
9090
sleep 3
9191

92+
# Dumping the contents of the models that are currently loaded for debugging purposes
93+
# Primarily meant to assist in debugging ModelMetadataTest::test_infer_stats_no_model
94+
# Diff the output with a previous L0_server_status job to catch any changes to
95+
# /data/inferenceserver/${REPO_VERSION}/qa_model_repository that were not accounted for.
96+
curl -X POST http://localhost:8000/v2/repository/index
97+
9298
set +e
9399

94100
python $SERVER_STATUS_TEST ModelMetadataTest >>$CLIENT_LOG 2>&1

0 commit comments

Comments
 (0)