Skip to content

test: Add Python custom metrics reload regression - #8892

Draft
goanpeca wants to merge 1 commit into
triton-inference-server:mainfrom
goanpeca:fix/8663-python-metric-storage
Draft

test: Add Python custom metrics reload regression#8892
goanpeca wants to merge 1 commit into
triton-inference-server:mainfrom
goanpeca:fix/8663-python-metric-storage

Conversation

@goanpeca

@goanpeca goanpeca commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Adds Python backend QA coverage for custom histogram metrics across model reloads. The new custom_metrics_reload model creates the same persistent histogram metric from three Python backend instances, then the test sends inference requests, touches model.py, reloads the model through explicit model control, and sends more requests to catch the stale shared metric crash path from issue #8663.

Linked issue

Relates to #8663

Tests run

  • mamba run -n server-issue-8663 python -m py_compile qa/python_models/custom_metrics_reload/model.py qa/L0_backend_python/custom_metrics/custom_metrics_reload_test.py qa/python_models/custom_metrics/model.py
  • bash -n qa/L0_backend_python/custom_metrics/test.sh

Full qa/L0_backend_python/custom_metrics/test.sh was not run locally because this checkout does not include a built tritonserver binary or Python backend artifacts.

Follow-up notes

The underlying MetricStorage lifecycle implementation is tracked in triton-inference-server/core#471; this PR adds server QA coverage for the Python backend reload scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant