|
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
3 | 3 | "$id": "https://raw.githubusercontent.com/eth-cscs/reframe/master/schemas/runreport.json", |
4 | 4 | "title": "Validation schema for ReFrame's run report", |
5 | | - "type": "array", |
6 | | - "items": { |
7 | | - "type": "object", |
8 | | - "properties": { |
9 | | - "testname": {"type": "string"}, |
10 | | - "description": {"type": ["string"]}, |
11 | | - "system": {"type": "string"}, |
12 | | - "environment": {"type": ["string", "null"]}, |
13 | | - "stagedir": {"type": ["string", "null"]}, |
14 | | - "outputdir": {"type": ["string", "null"]}, |
15 | | - "nodelist": { |
16 | | - "type": "array", |
17 | | - "items": {"type": "string"} |
| 5 | + "type": "object", |
| 6 | + "properties": { |
| 7 | + "reframe_info": { |
| 8 | + "type": "object", |
| 9 | + "properties": { |
| 10 | + "version": {"type": "string"}, |
| 11 | + "command": {"type": "string"}, |
| 12 | + "user": {"type": "string"}, |
| 13 | + "host": {"type": "string"}, |
| 14 | + "check_search_path": {"type": "string"}, |
| 15 | + "working_directory": {"type": "string"}, |
| 16 | + "recursive_search_path": {"type": "boolean"}, |
| 17 | + "settings_file": {"type": "string"}, |
| 18 | + "stage_prefix": {"type": "string"}, |
| 19 | + "output_prefix": {"type": "string"}, |
| 20 | + "start_time": {"type": "string"}, |
| 21 | + "end_time": {"type": "string"} |
18 | 22 | }, |
19 | | - "scheduler": {"type": ["string", "null"]}, |
20 | | - "jobid": {"type": ["number", "null"]}, |
21 | | - "result": { |
22 | | - "type": "string", |
23 | | - "enum": ["success", "fail"] |
24 | | - }, |
25 | | - "failing_phase": {"type": ["string", "null"]}, |
26 | | - "failing_reason": {"type": ["string", "null"]}, |
27 | | - "build_stdout": {"type": ["string", "null"]}, |
28 | | - "build_stderr": {"type": ["string", "null"]}, |
29 | | - "job_stdout": {"type": ["string", "null"]}, |
30 | | - "job_stderr": {"type": ["string", "null"]}, |
31 | | - "maintainers": { |
32 | | - "type": "array", |
33 | | - "items": {"type": ["string"]} |
34 | | - }, |
35 | | - "tags": { |
36 | | - "type": "array", |
37 | | - "items": {"type": ["string"]} |
38 | | - }, |
39 | | - "runid": {"type": "number"}, |
40 | | - "time_setup": {"type": ["number", "null"]}, |
41 | | - "time_compile": {"type": ["number", "null"]}, |
42 | | - "time_run": {"type": ["number", "null"]}, |
43 | | - "time_sanity": {"type": ["number", "null"]}, |
44 | | - "time_performance": {"type": ["number", "null"]}, |
45 | | - "time_total": {"type": ["number", "null"]} |
| 23 | + "additionalProperties": false, |
| 24 | + "required": ["check_search_path", "command", "end_time", "host", |
| 25 | + "output_prefix", "recursive_search_path", |
| 26 | + "stage_prefix", "start_time", "user", "version", |
| 27 | + "working_directory"] |
46 | 28 | }, |
47 | | - "additionalProperties": false, |
48 | | - "required": ["build_stderr", "build_stdout", "description", |
49 | | - "environment", "failing_phase", "failing_reason", |
50 | | - "job_stderr", "job_stdout", "jobid", "maintainers", |
51 | | - "nodelist", "outputdir", "result", "runid", |
52 | | - "scheduler", "stagedir", "system", "tags", "testname", |
53 | | - "time_compile", "time_performance", "time_run", |
54 | | - "time_sanity", "time_setup", "time_total"] |
55 | | - } |
| 29 | + "run_info": { |
| 30 | + "type": "array", |
| 31 | + "items": { |
| 32 | + "type": "object", |
| 33 | + "properties": { |
| 34 | + "runid": {"type": "number"}, |
| 35 | + "tests": { |
| 36 | + "type": "array", |
| 37 | + "items": { |
| 38 | + "type": "object", |
| 39 | + "properties": { |
| 40 | + "testname": {"type": "string"}, |
| 41 | + "description": {"type": "string"}, |
| 42 | + "system": {"type": "string"}, |
| 43 | + "environment": {"type": ["string", "null"]}, |
| 44 | + "stagedir": {"type": ["string", "null"]}, |
| 45 | + "outputdir": {"type": ["string", "null"]}, |
| 46 | + "nodelist": { |
| 47 | + "type": "array", |
| 48 | + "items": {"type": "string"} |
| 49 | + }, |
| 50 | + "scheduler": {"type": ["string", "null"]}, |
| 51 | + "jobid": {"type": ["number", "null"]}, |
| 52 | + "result": { |
| 53 | + "type": "string", |
| 54 | + "enum": ["success", "fail"] |
| 55 | + }, |
| 56 | + "failing_phase": {"type": ["string", "null"]}, |
| 57 | + "failing_reason": {"type": ["string", "null"]}, |
| 58 | + "build_stdout": {"type": ["string", "null"]}, |
| 59 | + "build_stderr": {"type": ["string", "null"]}, |
| 60 | + "job_stdout": {"type": ["string", "null"]}, |
| 61 | + "job_stderr": {"type": ["string", "null"]}, |
| 62 | + "maintainers": { |
| 63 | + "type": "array", |
| 64 | + "items": {"type": ["string"]} |
| 65 | + }, |
| 66 | + "tags": { |
| 67 | + "type": "array", |
| 68 | + "items": {"type": "string"} |
| 69 | + }, |
| 70 | + "runid": {"type": "number"}, |
| 71 | + "time_setup": {"type": ["number", "null"]}, |
| 72 | + "time_compile": {"type": ["number", "null"]}, |
| 73 | + "time_run": {"type": ["number", "null"]}, |
| 74 | + "time_sanity": {"type": ["number", "null"]}, |
| 75 | + "time_performance": {"type": ["number", "null"]}, |
| 76 | + "time_total": {"type": ["number", "null"]} |
| 77 | + }, |
| 78 | + "additionalProperties": false, |
| 79 | + "required": ["build_stderr", "build_stdout", "description", |
| 80 | + "environment", "failing_phase", "failing_reason", |
| 81 | + "job_stderr", "job_stdout", "jobid", "maintainers", |
| 82 | + "nodelist", "outputdir", "result", "scheduler", |
| 83 | + "stagedir", "system", "tags", "testname", |
| 84 | + "time_compile", "time_performance", "time_run", |
| 85 | + "time_sanity", "time_setup", "time_total"] |
| 86 | + }, |
| 87 | + "additionalProperties": false, |
| 88 | + "required": ["runid", "tests"] |
| 89 | + } |
| 90 | + } |
| 91 | + } |
| 92 | + } |
| 93 | + }, |
| 94 | + "additionalProperties": false, |
| 95 | + "required": ["reframe_info", "run_info"] |
56 | 96 | } |
0 commit comments