Skip to content

Commit

Permalink
work on schema
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed May 23, 2017
1 parent fc4cb75 commit db3585e
Showing 1 changed file with 65 additions and 63 deletions.
128 changes: 65 additions & 63 deletions benchpress/suite_schema.json
Original file line number Diff line number Diff line change
@@ -1,73 +1,75 @@
{
"id": "https://raw.githubusercontent.com/bh107/benchpress/master/benchpress/suite_schema.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Benchpress Suite Schema",
"description": "Benchpress Suite file that contains the commands to execute and their results",
"type": "object",
"properties": {
"creation_date_utc": {
"description": "The creation time of the suite file in UTC",
"id": "https://raw.githubusercontent.com/bh107/benchpress/master/benchpress/suite_schema.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Benchpress Suite Schema",
"description": "Benchpress Suite file that contains the commands to execute and their results",
"type": "object",
"properties": {
"creation_date_utc": {
"description": "The creation time of the suite file in UTC",
"type": "string"
},
"cmd_list": {
"description": "List of the commands that makes up this benchmark suite",
"type": "array",
"item": {
"properties": {
"cmd": {
"description": "A command to execute",
"type": "string"
},
"env": {
"description": "The environment variables to define",
"type": "object"
},
"label": {
"description": "The label of the command",
"type": "string"
},
"cmd_list": {
"description": "List of the commands that makes up this benchmark suite",
},
"jobs": {
"description": "List of scheduled commands",
"type": "array",
"properties": {
"cmd": {
"description": "A command to execute",
"status": {
"description": "The status of the scheduled command",
"type": "string",
"pattern": "finished|failed|pending"
},
"nruns": {
"description": "The number of times to executed the scheduled command",
"type": "number",
"minimum": 1
},
"warmup": {
"description": "Include a warm up run before the recorded runs",
"type": "boolean"
},
"results": {
"description": "List of recorded results",
"type": "array",
"properties": {
"success": {
"description": "Did the run succeed",
"type": "boolean"
},
"stderr": {
"description": "The standard error output",
"type": "string"
},
"env": {
"description": "The environment variables to define",
"type": "object"
},
"label": {
"description": "The label of the command",
},
"stdout": {
"description": "The standard output",
"type": "string"
}
},
"jobs": {
"description": "List of scheduled commands",
"type": "array",
"properties": {
"status": {
"description": "The status of the scheduled command",
"type": "string",
"pattern": "finished|failed|pending"
},
"nruns": {
"description": "The number of times to executed the scheduled command",
"type": "number",
"minimum": 1
},
"warmup": {
"description": "Include a warm up run before the recorded runs",
"type": "boolean"
},
"results": {
"description": "List of recorded results",
"type": "array",
"properties": {
"success": {
"description": "Did the run succeed",
"type": "boolean"
},
"stderr": {
"description": "The standard error output",
"type": "string"
},
"stdout": {
"description": "The standard output",
"type": "string"
}
},
"required": ["success"]
}
},
"required": ["status", "nruns"]
}
"required": ["success"]
}
},
"required": ["cmd", "env", "label"]
"required": ["status", "nruns"]
}
}
},
"required": ["creation_date_utc", "cmd_list"]
},
"required": ["cmd", "env", "label"]
}
},
"required": ["creation_date_utc", "cmd_list"]
}

0 comments on commit db3585e

Please sign in to comment.