Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

KServe REST parser drops requested outputs except the last

Đang mở
#4,690 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@YugShah1510 đang làm issue này rồi.

Từ ngày 22/10/2026.

  • #4691 của @YugShah1510 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

Start with KFSRestParser::parseOutputs() and parseOutput() in the REST parser, then review src/test/kfs_rest_parser_test.cpp. Add coverage using the two-output request from the issue and verify both names are preserved in order in the parsed ModelInferRequest. An open linked pull request (#4691) is already addressing this issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

A KServe v2 REST inference request can specify multiple requested outputs, but the parser currently retains only the last entry in the outputs array.

Reproduction

Send a request containing two requested outputs:

{
  "inputs": [{"name":"input0","shape":[1],"datatype":"FP32","data":[1.0]}],
  "outputs": [{"name":"output0"},{"name":"output1"}]
}

Actual behavior

The parser returns successfully, but its ModelInferRequest protobuf contains only output1. KFSRestParser::parseOutputs() iterates over the JSON array and calls parseOutput() for each entry. parseOutput() calls requestProto.mutable_outputs()->Clear() before adding the current output, so each iteration erases the previous entries.

Expected behavior

Both requested outputs should be preserved, in request order. The KServe request schema defines outputs as a repeated field.

Evidence and test status

This is a deterministic source-level reproduction from the two-output JSON above and the Clear() inside the per-entry parser. Existing src/test/kfs_rest_parser_test.cpp tests cover single-output requests only. The targeted C++ parser test will be added; Bazel/Bazelisk and a built test binary are not available in the current environment, so runtime execution may not be possible here.

Ngôn ngữ chính
C++
Star
952
Fork
285
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openvinotoolkit/model_server

Tất cả issue của openvinotoolkit/model_server

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.