| 1 |
{ |
| 2 |
"definitions": { |
| 3 |
"application_schema": { |
| 4 |
"properties": { |
| 5 |
"name": { |
| 6 |
"title": "Application under performance test", |
| 7 |
"enum": [ |
| 8 |
"firefox", |
| 9 |
"chrome", |
| 10 |
"chrome-m", |
| 11 |
"fennec", |
| 12 |
"geckoview", |
| 13 |
"refbrow", |
| 14 |
"fenix", |
| 15 |
"focus", |
| 16 |
"safari", |
| 17 |
"safari-tp", |
| 18 |
"custom-car", |
| 19 |
"cstm-car-m" |
| 20 |
], |
| 21 |
"maxLength": 10, |
| 22 |
"type": "string" |
| 23 |
}, |
| 24 |
"version": { |
| 25 |
"title": "Application's version", |
| 26 |
"maxLength": 40, |
| 27 |
"type": "string" |
| 28 |
} |
| 29 |
}, |
| 30 |
"required": ["name"], |
| 31 |
"type": "object" |
| 32 |
}, |
| 33 |
"framework_schema": { |
| 34 |
"properties": { |
| 35 |
"name": { |
| 36 |
"title": "Framework name", |
| 37 |
"type": "string" |
| 38 |
} |
| 39 |
}, |
| 40 |
"type": "object" |
| 41 |
}, |
| 42 |
"subtest_schema": { |
| 43 |
"properties": { |
| 44 |
"name": { |
| 45 |
"title": "Subtest name", |
| 46 |
"type": "string" |
| 47 |
}, |
| 48 |
"publicName": { |
| 49 |
"title": "Public subtest name", |
| 50 |
"description": "Allows renaming test's name, without breaking existing performance data series", |
| 51 |
"maxLength": 30, |
| 52 |
"type": "string" |
| 53 |
}, |
| 54 |
"value": { |
| 55 |
"description": "Summary value for subtest", |
| 56 |
"title": "Subtest value", |
| 57 |
"type": "number", |
| 58 |
"minimum": -1000000000000.0, |
| 59 |
"maximum": 1000000000000.0 |
| 60 |
}, |
| 61 |
"unit": { |
| 62 |
"title": "Measurement unit", |
| 63 |
"type": "string", |
| 64 |
"minLength": 1, |
| 65 |
"maxLength": 20 |
| 66 |
}, |
| 67 |
"lowerIsBetter": { |
| 68 |
"description": "Whether lower values are better for subtest", |
| 69 |
"title": "Lower is better", |
| 70 |
"type": "boolean" |
| 71 |
}, |
| 72 |
"shouldAlert": { |
| 73 |
"description": "Whether we should alert", |
| 74 |
"title": "Should alert", |
| 75 |
"type": "boolean" |
| 76 |
}, |
| 77 |
"alertThreshold": { |
| 78 |
"description": "% change threshold before alerting", |
| 79 |
"title": "Alert threshold", |
| 80 |
"type": "number", |
| 81 |
"minimum": 0.0, |
| 82 |
"maximum": 1000.0 |
| 83 |
}, |
| 84 |
"minBackWindow": { |
| 85 |
"description": "Minimum back window to use for alerting", |
| 86 |
"title": "Minimum back window", |
| 87 |
"type": "number", |
| 88 |
"minimum": 1, |
| 89 |
"maximum": 255 |
| 90 |
}, |
| 91 |
"maxBackWindow": { |
| 92 |
"description": "Maximum back window to use for alerting", |
| 93 |
"title": "Maximum back window", |
| 94 |
"type": "number", |
| 95 |
"minimum": 1, |
| 96 |
"maximum": 255 |
| 97 |
}, |
| 98 |
"foreWindow": { |
| 99 |
"description": "Fore window to use for alerting", |
| 100 |
"title": "Fore window", |
| 101 |
"type": "number", |
| 102 |
"minimum": 1, |
| 103 |
"maximum": 255 |
| 104 |
} |
| 105 |
}, |
| 106 |
"required": ["name", "value"], |
| 107 |
"type": "object" |
| 108 |
}, |
| 109 |
"suite_schema": { |
| 110 |
"properties": { |
| 111 |
"name": { |
| 112 |
"title": "Suite name", |
| 113 |
"type": "string" |
| 114 |
}, |
| 115 |
"publicName": { |
| 116 |
"title": "Public suite name", |
| 117 |
"description": "Allows renaming suite's name, without breaking existing performance data series", |
| 118 |
"maxLength": 30, |
| 119 |
"type": "string" |
| 120 |
}, |
| 121 |
"tags": { |
| 122 |
"type": "array", |
| 123 |
"title": "Free form tags, which ease the grouping & searching of performance tests", |
| 124 |
"description": "Similar to extraOptions, except it does not break existing performance data series", |
| 125 |
"items": { |
| 126 |
"type": "string", |
| 127 |
"pattern": "^[a-zA-Z0-9-]{1,24}$" |
| 128 |
}, |
| 129 |
"uniqueItems": true, |
| 130 |
"maxItems": 14 |
| 131 |
}, |
| 132 |
"extraOptions": { |
| 133 |
"type": "array", |
| 134 |
"title": "Extra options used in running suite", |
| 135 |
"items": { |
| 136 |
"type": "string", |
| 137 |
"maxLength": 100 |
| 138 |
}, |
| 139 |
"uniqueItems": true, |
| 140 |
"maxItems": 8 |
| 141 |
}, |
| 142 |
"subtests": { |
| 143 |
"items": { |
| 144 |
"$ref": "#/definitions/subtest_schema" |
| 145 |
}, |
| 146 |
"title": "Subtests", |
| 147 |
"type": "array" |
| 148 |
}, |
| 149 |
"value": { |
| 150 |
"title": "Suite value", |
| 151 |
"type": "number", |
| 152 |
"minimum": -1000000000000.0, |
| 153 |
"maximum": 1000000000000.0 |
| 154 |
}, |
| 155 |
"unit": { |
| 156 |
"title": "Measurement unit", |
| 157 |
"type": "string", |
| 158 |
"minLength": 1, |
| 159 |
"maxLength": 20 |
| 160 |
}, |
| 161 |
"lowerIsBetter": { |
| 162 |
"description": "Whether lower values are better for suite", |
| 163 |
"title": "Lower is better", |
| 164 |
"type": "boolean" |
| 165 |
}, |
| 166 |
"shouldAlert": { |
| 167 |
"description": "Whether we should alert on this suite (overrides default behaviour)", |
| 168 |
"title": "Should alert", |
| 169 |
"type": "boolean" |
| 170 |
}, |
| 171 |
"alertThreshold": { |
| 172 |
"description": "% change threshold before alerting", |
| 173 |
"title": "Alert threshold", |
| 174 |
"type": "number", |
| 175 |
"minimum": 0.0, |
| 176 |
"maximum": 1000.0 |
| 177 |
}, |
| 178 |
"minBackWindow": { |
| 179 |
"description": "Minimum back window to use for alerting", |
| 180 |
"title": "Minimum back window", |
| 181 |
"type": "integer", |
| 182 |
"minimum": 1, |
| 183 |
"maximum": 255 |
| 184 |
}, |
| 185 |
"maxBackWindow": { |
| 186 |
"description": "Maximum back window to use for alerting", |
| 187 |
"title": "Maximum back window", |
| 188 |
"type": "integer", |
| 189 |
"minimum": 1, |
| 190 |
"maximum": 255 |
| 191 |
}, |
| 192 |
"foreWindow": { |
| 193 |
"description": "Fore window to use for alerting", |
| 194 |
"title": "Fore window", |
| 195 |
"type": "integer", |
| 196 |
"minimum": 1, |
| 197 |
"maximum": 255 |
| 198 |
} |
| 199 |
}, |
| 200 |
"required": ["name", "subtests"], |
| 201 |
"type": "object" |
| 202 |
} |
| 203 |
}, |
| 204 |
"description": "Structure for submitting performance data as part of a job", |
| 205 |
"id": "https://treeherder.mozilla.org/schemas/v1/performance-artifact.json#", |
| 206 |
"properties": { |
| 207 |
"application": { |
| 208 |
"$ref": "#/definitions/application_schema" |
| 209 |
}, |
| 210 |
"framework": { |
| 211 |
"$ref": "#/definitions/framework_schema" |
| 212 |
}, |
| 213 |
"suites": { |
| 214 |
"description": "List of suite-level data submitted as part of this structure", |
| 215 |
"items": { |
| 216 |
"$ref": "#/definitions/suite_schema" |
| 217 |
}, |
| 218 |
"title": "Performance suites", |
| 219 |
"type": "array" |
| 220 |
} |
| 221 |
}, |
| 222 |
"required": ["framework", "suites"], |
| 223 |
"title": "Perfherder Schema", |
| 224 |
"type": "object" |
| 225 |
} |