Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: modifying stat count for L0_server_status (#7820) #7821

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions qa/L0_server_status/server_status_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

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

except InferenceServerException as ex:
Expand Down
8 changes: 7 additions & 1 deletion qa/L0_server_status/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -89,6 +89,12 @@ rm -fr models/onnx_int32_int32_int32/2 models/onnx_int32_int32_int32/3
cp -r models/graphdef_float16_float32_float32/1 models/graphdef_float16_float32_float32/7
sleep 3

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

set +e

python $SERVER_STATUS_TEST ModelMetadataTest >>$CLIENT_LOG 2>&1
Expand Down
Loading