[DOC] Generate gRPC API reference from the .proto files
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 50/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- grpc
- Área
- api, documentation
Línea de trabajo
Start with docs/cuopt/source/cuopt-grpc/api.rst, which lists the proto paths and is missing cuopt_remote_data.proto, and with cpp/src/grpc/GRPC_INTERFACE.md for the wire-format content. Check whether the comments on ArrayFieldId and ArrayId in cpp/src/grpc/codegen/generated/cuopt_remote_data.proto are complete enough to generate from, and pick a generator such as protoc-gen-doc for the docs build. Done means reference pages exist for the five .proto files, api.rst links them with :download: links to the protos, and GRPC_INTERFACE.md is included or linked.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
Anyone writing their own client for cuopt_grpc_server has to work from the .proto files, but the published docs don't carry them:
docs/cuopt/source/cuopt-grpc/api.rstlists four repo paths as plain text. There are no links, downloads or includes.cuopt_remote_data.proto, which holds the actual LP/MIP/QP problem fields, is not listed. It is generated fromcpp/src/grpc/codegen/field_registry.yamland committed undercpp/src/grpc/codegen/generated/.- The element layout and dtype of each array is documented only in comments on
ArrayFieldIdand the nestedArrayIdenums. The docs don't show those comments. - The chunked-transfer wire format (raw native-endian bytes,
container_field_num/container_index, NUL-joined string blobs, message-size limits) is incpp/src/grpc/GRPC_INTERFACE.md, which the published docs don't include or link to. - The protos are not in the
libcuopt-clientwheel I checked, so users must find them in git at the matching release.
Proposal
Generate reference pages from the protos during the docs build, for example with protoc-gen-doc. The field comments then flow into the docs and can't drift from the code.
- Generate pages for
cuopt_remote_service.proto,cuopt_remote.proto,cuopt_remote_data.proto,cuopt_routing.protoandcuopt_routing_solution.proto. - Link them from
cuopt-grpc/api.rst, and add:download:links to the.protofiles. - Bring the content of
GRPC_INTERFACE.mdinto the docs, or link to it. - Fix the file-name list in
api.rstso it includescuopt_remote_data.proto.
Notes
- Check that the proto comments are complete enough to serve as the reference. The generated pages are only as good as those comments.
- Shipping the protos with a release package and adding server reflection are separate options and are not part of this issue.
- Lenguaje dominante
- Cuda
- Estrellas
- 1.1k
- Forks
- 249
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 123
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de NVIDIA/cuopt
-
[BUG] Constraint validation reports CSR offset count as the number of rowsPosiblemente ocupada @0z5a la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
ci: pr-test-summary job shows red when the GitHub API returns persistent 5xx errorsPosiblemente ocupada @0z5a la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
[BUG] Dataset downloader reports success and replaces data after a failed downloadPosiblemente ocupada @0z5a la tomó hoy. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
Todos los issues de NVIDIA/cuopt
Issues similares
-
BUG: catalog database credentials printed to logs at startupPosiblemente ocupada @cjboyle la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
backend bug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
geolens-io/geolens#3639 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/maven-enforcer#1074 ·
Los mantenedores suelen responder en 1 día
-
bug libcudf
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días