From 0b489766ff133ecae372e4e1350f318e4bf5d424 Mon Sep 17 00:00:00 2001 From: furionw Date: Wed, 23 Sep 2026 01:15:44 +0000 Subject: [PATCH 1/2] test(examples): cover the remote custom encoder topology end to end The in-process CustomEncoder topology has a serve test; the remote one had none, so nothing exercised the encoder handoff over a real request plane: the existing unit tests mock both the handoff and the generator. Add an agg_custom_remote topology that launches the example's own script and asserts the same phrase-splice semantics as agg_custom, plus a text-only turn so a conversation's non-image messages stay served. The wrapper script maps the harness's dynamic system ports onto the two the example names, so parallel topologies do not collide on its 8081/8082 defaults. Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: furionw --- .../launch/agg_custom_remote.sh | 20 +++++ tests/serve/multimodal_profiles/vllm.py | 36 +++++++++ tests/utils/multimodal.py | 79 +++++++++++++++++++ tests/utils/test_multimodal.py | 46 +++++++++++ 4 files changed, 181 insertions(+) create mode 100755 examples/custom_encoder/launch/agg_custom_remote.sh diff --git a/examples/custom_encoder/launch/agg_custom_remote.sh b/examples/custom_encoder/launch/agg_custom_remote.sh new file mode 100755 index 000000000000..2799a36da7a9 --- /dev/null +++ b/examples/custom_encoder/launch/agg_custom_remote.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 +# +# Serve-test entry point for the remote CustomEncoder topology. +# +# The serve harness launches "/launch/