Browse Source

Upgrade jsonschema upper version

In [1], requirements.upper-constraints.txt, jsonschema library upper
version was bumped to 3.0.1. To avoid CI problems like [2], we should
remove the version limitation in this project.

[1]https://review.opendev.org/#/c/649789/
[2]https://d4b9765f6ab6e1413c28-81a8be848ef91b58aa974b4cb791a408.ssl.cf5.rackcdn.com/680427/2/check/neutron-rally-task/01b2c1c/controller/logs/devstacklog.txt.gz

Closes-Bug: #1843282
Change-Id: I0ac00de6987de8835d9cac8f73fdae00d2f212d6
tags/2.0.0
Rodolfo Alonso Hernandez 5 months ago
parent
commit
60d39f3a37
8 changed files with 8 additions and 8 deletions
  1. +1
    -1
      rally/consts.py
  2. +1
    -1
      rally/plugins/common/runners/rps.py
  3. +1
    -1
      rally/plugins/common/sla/iteration_time.py
  4. +1
    -1
      rally/plugins/common/sla/max_average_duration.py
  5. +1
    -1
      rally/plugins/common/sla/outliers.py
  6. +1
    -1
      rally/task/utils.py
  7. +1
    -1
      requirements.txt
  8. +1
    -1
      upper-constraints.txt

+ 1
- 1
rally/consts.py View File

@@ -24,7 +24,7 @@ for each enum. (e.g. TaskStatus)
from rally.common import utils


JSON_SCHEMA = "http://json-schema.org/draft-04/schema"
JSON_SCHEMA = "http://json-schema.org/draft-07/schema"


class _TaskStatus(utils.ImmutableMixin, utils.EnumMixin):

+ 1
- 1
rally/plugins/common/runners/rps.py View File

@@ -160,7 +160,7 @@ class RPSScenarioRunner(runner.ScenarioRunner):
"description": "Generate constant requests per second "
"during the whole workload.",
"type": "number",
"exclusiveMinimum": True,
"exclusiveMinimum": 0,
"minimum": 0
},
{

+ 1
- 1
rally/plugins/common/sla/iteration_time.py View File

@@ -26,7 +26,7 @@ from rally.task import sla
class IterationTime(sla.SLA):
"""Maximum time for one iteration in seconds."""
CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
"exclusiveMinimum": True}
"exclusiveMinimum": 0.0}

def __init__(self, criterion_value):
super(IterationTime, self).__init__(criterion_value)

+ 1
- 1
rally/plugins/common/sla/max_average_duration.py View File

@@ -27,7 +27,7 @@ from rally.task import sla
class MaxAverageDuration(sla.SLA):
"""Maximum average duration of one iteration in seconds."""
CONFIG_SCHEMA = {"type": "number", "minimum": 0.0,
"exclusiveMinimum": True}
"exclusiveMinimum": 0.0}

def __init__(self, criterion_value):
super(MaxAverageDuration, self).__init__(criterion_value)

+ 1
- 1
rally/plugins/common/sla/outliers.py View File

@@ -38,7 +38,7 @@ class Outliers(sla.SLA):
"max": {"type": "integer", "minimum": 0},
"min_iterations": {"type": "integer", "minimum": 3},
"sigmas": {"type": "number", "minimum": 0.0,
"exclusiveMinimum": True}
"exclusiveMinimum": 0.0}
},
"additionalProperties": False,
}

+ 1
- 1
rally/task/utils.py View File

@@ -326,7 +326,7 @@ class ActionBuilder(object):
ITEM_TEMPLATE = {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": True,
"exclusiveMinimum": 0.0,
"optional": True
}


+ 1
- 1
requirements.txt View File

@@ -6,7 +6,7 @@
alembic # MIT
decorator # new BSD License
Jinja2 # BSD
jsonschema<3.0.0 # MIT
jsonschema # MIT
netaddr # BSD
oslo.config!=4.3.0,!=4.4.0 # Apache Software License
# do not forget to remove `testresources` from test-requirements. it is a

+ 1
- 1
upper-constraints.txt View File

@@ -17,7 +17,7 @@ idna==2.6
ipaddress==1.0.19
iso8601==0.1.12
Jinja2==2.10
jsonschema==2.6.0
jsonschema==3.0.1
linecache2==1.0.0
Mako==1.0.7
MarkupSafe==1.0

Loading…
Cancel
Save