spcl/serverless-benchmarks

Sanitize input on Python benchmarks

Offen

#118 geöffnet am 20.02.2023

 (18 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Python (99 Forks)auto 404
buggood first issue

Repository-Metriken

Stars
 (196 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide