Portable result export: to_openeval()/from_openeval() for EvalInstance/EvalOutput?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Empieza leyendo benchmarks/utils/models.py y CONTRIBUTING.md, luego revisa la especificación de EvalPort enlazada y las rutas existentes de salida de benchmarks. Confirma con los maintainers si se desea una utilidad dentro del repositorio o un adaptador independiente antes de definir conversiones en ambas direcciones. Se considera terminado cuando se hayan acordado el alcance y la correspondencia de formatos, seguidos de la validación y las pruebas de la interfaz aceptada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
Would to_openeval() / from_openeval() helpers for this repo's EvalInstance / EvalOutput models be useful, so runs from any of the ~20 benchmark harnesses here (SWE-Bench, GAIA, Harbor/TerminalBench, Commit0, etc.) could be exported into a portable, framework-agnostic result format?
Context
I looked through benchmarks/utils/models.py and CONTRIBUTING.md — this repo already has a clean, shared shape across every benchmark folder:
EvalInstance(id: str, data: dict[str, Any])— the per-task input, produced by every benchmark'sprepare_instances().EvalOutput(instance_id, attempt, test_result: dict[str, Any], instruction, metadata: EvalMetadata, history: list[Event], metrics: Metrics, error, instance, runtime_runs)— the per-task result, produced byevaluate_instance()and written out by everyeval_infer.py.EvalMetadata(llm, dataset, dataset_split, max_iterations, eval_output_dir, critic, workspace_type, ...)— the run-level config.
That's a real, shared, installable schema (not per-benchmark ad hoc JSON), which is exactly the situation EvalPort (spec: https://github.com/adhabnr-ux/evalport/blob/main/spec/SPEC.md) is meant for: a small JSON-Schema-defined format for portable eval test cases and result sets, with a Python SDK (evalport-sdk on PyPI, openeval.validate.validate_suite() / validate_result_set()) and 35+ community adapter packages (example: autogen-openeval-adapter).
What I'm proposing
Not a change to the harness itself — just two small, optional conversion functions (could live in benchmarks/utils/ or as a separate benchmarks-openeval-adapter package, whichever this repo prefers):
# sketch — field names taken from benchmarks/utils/models.py
from benchmarks.utils.models import EvalInstance, EvalOutput
def to_openeval_case(instance: EvalInstance, suite_id: str) -> dict:
"""EvalInstance -> an EvalPort testcase.json-shaped record."""
return {
"case_id": instance.id,
"suite_id": suite_id,
"input": instance.data,
}
def to_openeval_result(output: EvalOutput, suite_id: str) -> dict:
"""EvalOutput -> an EvalPort resultset.json-shaped record."""
return {
"suite_id": suite_id,
"case_id": output.instance_id,
"attempt": output.attempt,
"raw_result": output.test_result,
"error": output.error,
"cost_usd": getattr(output.metrics, "accumulated_cost", None)
if output.metrics
else None,
}
with the reverse direction (from_openeval_case → EvalInstance) letting an external OpenEval-format suite be dropped straight into prepare_instances().
Why this might be worth it for this repo specifically: with 20+ benchmark integrations already normalized to EvalInstance/EvalOutput, this would be the cheapest path to (a) comparing results across benchmarks and external tools in one place, and (b) letting other eval tooling consume benchmarks/ output without hand-writing a parser per benchmark.
Happy to put together a draft PR (either inside this repo under benchmarks/utils/, or as a standalone adapter package under evalport's adapters/) if this is a direction the maintainers are interested in — or to hear that it isn't a good fit given where the harness is headed.
- Lenguaje dominante
- Python
- Estrellas
- 134
- Forks
- 97
- Merge medio
- 8 d 23 h
- PR fusionados (30 d)
- 2
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 OpenHands/benchmarks
-
SWE-bench Pro and ProgramBench reports leave out instances that errored during inferenceQuizá libre de nuevo @jahanvipandey22 la tomó hace 8 días y no hay ningún pull request abierto. Abierto
Dificultad 3/5 Medio día Aptitud para principiantes 62/100
OpenHands/benchmarks#791 · 1 comentario ·
-
create_docker_workspace never reuses locally-built images (tag mismatch with DockerDevWorkspace)Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
OpenHands/benchmarks#779 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
OpenHands/benchmarks#764 · 16 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
OpenHands/benchmarks#744 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
OpenHands/benchmarks#726 ·
Todos los issues de OpenHands/benchmarks
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
trycua/hermes-cua-spaces#17 ·
-
area:codegen backend:hip bug direction:output good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
status:waiting-for-triage type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
microsoftgraph/msgraph-sdk-python#1628 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
nautechsystems/nautilus_trader#5718 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: reme CLI crashes when the running server used a relative config pathPosiblemente ocupada @nurlanmnn la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
agentscope-ai/ReMe#770 ·
Los mantenedores suelen responder en 1 día