spcl/serverless-benchmarks

Sanitize input on Python benchmarks

Aberta

#118 aberto em 20 de fev. de 2023

 (18 comentários) (2 reações) (0 responsável)Python (99 forks)auto 404
buggood first issue

Métricas do repositório

Stars
 (196 estrelas)
Métricas de merge de PR
 (Mesclagem média 2d 9h) (6 fundiu PRs em 30d)

Description

All Python benchmarks require JSON as input. However, we never verify that the provided input matches expectations. When users invoke benchmarks incorrectly, they should receive a helpful notification. Right now, they usually receive a Python exception where a variable loaded from JSON ends up being None.

All benchmarks should verify that the input values are provided in the JSON and are of correct type, and return a clear error message upon a failure.

Guia do colaborador