Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

KServe REST parser drops requested outputs except the last

Aperta
#4,690 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@YugShah1510 ci sta già lavorando.

Dal 22/10/2026.

  • #4691 di @YugShah1510 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
952
Fork
285
Merge medio
3g 5h
PR unite (30g)
45

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openvinotoolkit/model_server

Tutte le issue di openvinotoolkit/model_server

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.