1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
{ "native-protocol":
{ "type": ["end-to-end", "with remote"]
, "name": ["native-protocol"]
, "test": ["native-protocol.sh"]
, "deps": [["", "tool-under-test"], ["", "mr-tool-under-test"]]
}
, "large-blobs":
{ "type": ["end-to-end", "with remote"]
, "name": ["large-blobs"]
, "test": ["large-blobs.sh"]
, "deps": [["", "tool-under-test"]]
}
, "upload-test":
{ "type": ["end-to-end", "with remote"]
, "name": ["upload-test"]
, "test": ["upload-test.sh"]
, "deps": [["", "tool-under-test"]]
}
, "install":
{ "type": ["end-to-end", "with remote"]
, "name": ["install"]
, "test": ["install.sh"]
, "deps": [["", "tool-under-test"]]
}
, "execute":
{ "type": ["end-to-end", "with remote"]
, "name": ["execute"]
, "test": ["execute.sh"]
, "deps": [["", "tool-under-test"]]
}
, "install-cas":
{ "type": ["end-to-end", "with remote"]
, "name": ["install-cas"]
, "test": ["install-cas.sh"]
, "deps": [["", "tool-under-test"]]
, "keep":
[ "out/stdout/remote"
, "out/stdout/remote-raw"
, "out/stdout/local"
, "out/stdout/local-raw"
]
}
, "dispatch":
{ "type": ["end-to-end", "with remote"]
, "name": ["dispatch"]
, "test": ["dispatch.sh"]
, "deps": [["", "tool-under-test"]]
}
, "split-splice (raw)":
{ "type": ["end-to-end", "with remote"]
, "name": ["split-splice"]
, "test": ["split-splice.sh"]
, "deps": [["", "tool-under-test"]]
}
, "split-splice":
{ "type": "configure"
, "tainted": ["test"]
, "target": "split-splice (raw)"
, "arguments_config": ["TIMEOUT_SCALE"]
, "config":
{ "type": "singleton_map"
, "key": "TIMEOUT_SCALE"
, "value":
{ "type": "*"
, "$1": [10, {"type": "var", "name": "TIMEOUT_SCALE", "default": 1.0}]
}
}
}
, "add-to-cas":
{ "type": ["end-to-end", "with remote"]
, "name": ["add-to-cas"]
, "test": ["add-to-cas.sh"]
, "deps": [["", "tool-under-test"], ["", "mr-tool-under-test"]]
}
, "TESTS":
{ "type": ["@", "rules", "test", "suite"]
, "stage": ["remote-execution"]
, "arguments_config":
["TEST_COMPATIBLE_REMOTE", "TEST_BOOTSTRAP_JUST_MR", "DROP_IO_HEAVY_TESTS"]
, "deps":
{ "type": "++"
, "$1":
[ [ "native-protocol"
, "large-blobs"
, "upload-test"
, "install"
, "install-cas"
, "dispatch"
, "execute"
]
, { "type": "if"
, "cond":
{ "type": "or"
, "$1":
[ {"type": "var", "name": "TEST_BOOTSTRAP_JUST_MR"}
, {"type": "var", "name": "TEST_COMPATIBLE_REMOTE"}
]
}
, "then": []
, "else": ["add-to-cas"]
}
, { "type": "if"
, "cond": {"type": "var", "name": "DROP_IO_HEAVY_TESTS"}
, "else": ["split-splice"]
}
]
}
}
}
|