tempest/releasenotes/notes/random-bytes-size-limit-ee94a8c6534fe916.yaml
Dan Smith 8663655afa Make random_bytes() enforce sane size limits
This makes random_bytes() refuse to generate more than 1MiB of data
at a time. This should almost never be necessary, and we have chased
actual gate OOM failures related to sloppy handling of even
moderately-sized test buffers.

Change-Id: I9cebe778a9309a0f4f5d78be97d062864e1849f1
2021-01-14 12:43:29 -08:00

10 lines
420 B
YAML

---
upgrade:
- |
The ``tempest.lib.common.utils.data_utils.random_bytes()`` helper
function will no longer allow a ``size`` of more than 1MiB. Tests
generally do not need to generate and use large payloads for
feature verification and it is easy to lose track of and duplicate
large buffers. The sum total of such errors can become problematic
in paralllelized and constrained CI environments.