Unverified Commit ca5cac99 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

xinfo-stream add minimum to seen-time, skip logreqres in fuzzer (#13056)



Recently I saw in CI that reply-schemas-validator fails here:
```
Failed validating 'minimum' in schema[1]['properties']['groups']['items']['properties']['consumers']['items']['properties']['active-time']:
    {'description': 'Last time this consumer was active (successful '
                    'reading/claiming).',
     'minimum': 0,
     'type': 'integer'}

On instance['groups'][0]['consumers'][0]['active-time']:
    -1729380548878722639
```

The reason is that in fuzzer, we may restore corrupted active-time,
which will cause the reply schema CI to fail.

The fuzzer can cause corrupt the state in many places, which will
bugs that mess up the reply, so we decided to skip logreqres.

Also, seen-time is the same type as active-time, adding the minimum.

---------
Co-authored-by: default avatarOran Agra <oran@redislabs.com>
parent 3c2ea1ea
......@@ -292,7 +292,8 @@
},
"seen-time": {
"description": "timestamp of the last interaction attempt of the consumer",
"type": "integer"
"type": "integer",
"minimum": 0
},
"pel-count": {
"description": "number of unacknowledged entries that belong to the consumer",
......
# tests of corrupt listpack payload with valid CRC
tags {"dump" "corruption" "external:skip"} {
# The fuzzer can cause corrupt the state in many places, which could
# mess up the reply, so we decided to skip logreqres.
tags {"dump" "corruption" "external:skip" "logreqres:skip"} {
# catch sigterm so that in case one of the random command hangs the test,
# usually due to redis not putting a response in the output buffers,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment