schema.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. {
  2. "$schema": "http://json-schema.org/draft-06/schema#",
  3. "$ref": "#/definitions/Test",
  4. "definitions": {
  5. "Test": {
  6. "type": "object",
  7. "additionalProperties": false,
  8. "properties": {
  9. "name": {
  10. "type": "string"
  11. },
  12. "group": {
  13. "type": "string"
  14. },
  15. "working_dir": {
  16. "type": "string"
  17. },
  18. "env": {
  19. "type": "string"
  20. },
  21. "stable": {
  22. "type": "boolean"
  23. },
  24. "jailed": {
  25. "type": "boolean"
  26. },
  27. "python": {
  28. "type": "string",
  29. "enum": [
  30. "3.7",
  31. "3.8",
  32. "3.9"
  33. ]
  34. },
  35. "frequency": {
  36. "type": "string",
  37. "enum": [
  38. "manual",
  39. "multi",
  40. "nightly",
  41. "nightly-3x",
  42. "weekly"
  43. ]
  44. },
  45. "team": {
  46. "type": "string"
  47. },
  48. "cluster": {
  49. "$ref": "#/definitions/Cluster"
  50. },
  51. "run": {
  52. "$ref": "#/definitions/Run"
  53. },
  54. "smoke_test": {
  55. "$ref": "#/definitions/SmokeTest"
  56. },
  57. "alert": {
  58. "type": "string"
  59. }
  60. },
  61. "required": [
  62. "cluster",
  63. "frequency",
  64. "name",
  65. "run",
  66. "team",
  67. "working_dir"
  68. ],
  69. "title": "Test"
  70. },
  71. "Cluster": {
  72. "type": "object",
  73. "additionalProperties": false,
  74. "properties": {
  75. "cluster_env": {
  76. "type": "string"
  77. },
  78. "cluster_compute": {
  79. "type": "string"
  80. },
  81. "autosuspend_mins": {
  82. "type": "integer",
  83. "minimum": -1
  84. },
  85. "cloud_id": {
  86. "type": "string"
  87. },
  88. "cloud_name": {
  89. "type": "string"
  90. },
  91. "byod": {
  92. "$ref": "#/definitions/Byod"
  93. }
  94. },
  95. "required": [
  96. "cluster_compute",
  97. "cluster_env"
  98. ],
  99. "title": "Cluster"
  100. },
  101. "Byod": {
  102. "type": "object",
  103. "additionalProperties": false,
  104. "properties": {
  105. "type": {
  106. "type": "string",
  107. "enum": [
  108. "cpu",
  109. "gpu"
  110. ]
  111. },
  112. "pre_run_cmds": {
  113. "type": "array"
  114. },
  115. "runtime_env": {
  116. "type": "array"
  117. }
  118. },
  119. "required": [
  120. ],
  121. "title": "Byod"
  122. },
  123. "Run": {
  124. "type": "object",
  125. "additionalProperties": false,
  126. "properties": {
  127. "type": {
  128. "type": "string",
  129. "enum": [
  130. "command",
  131. "sdk_command",
  132. "job",
  133. "client",
  134. "anyscale_job"
  135. ]
  136. },
  137. "wait_for_nodes": {
  138. "$ref": "#/definitions/WaitForNodes"
  139. },
  140. "prepare": {
  141. "type": "string"
  142. },
  143. "prepare_timeout": {
  144. "type": "integer"
  145. },
  146. "script": {
  147. "type": "string"
  148. },
  149. "timeout": {
  150. "type": "integer"
  151. },
  152. "long_running": {
  153. "type": "boolean"
  154. },
  155. "artifact_path": {
  156. "type": "string"
  157. }
  158. },
  159. "required": [
  160. "script",
  161. "timeout"
  162. ],
  163. "title": "Run"
  164. },
  165. "WaitForNodes": {
  166. "type": "object",
  167. "additionalProperties": false,
  168. "properties": {
  169. "num_nodes": {
  170. "type": "integer"
  171. },
  172. "timeout": {
  173. "type": "integer"
  174. }
  175. },
  176. "required": [
  177. "num_nodes"
  178. ],
  179. "title": "WaitForNodes"
  180. },
  181. "SmokeTest": {
  182. "type": "object",
  183. "additionalProperties": false,
  184. "title": "SmokeTest",
  185. "properties": {
  186. "working_dir": {
  187. "type": "string"
  188. },
  189. "env": {
  190. "type": "string"
  191. },
  192. "cluster": {
  193. "type": "object"
  194. },
  195. "run": {
  196. "type": "object"
  197. },
  198. "alert": {
  199. "type": "string"
  200. },
  201. "frequency": {
  202. "type": "string",
  203. "enum": [
  204. "manual",
  205. "multi",
  206. "nightly",
  207. "nightly-3x",
  208. "weekly"
  209. ]
  210. }
  211. },
  212. "required": [
  213. "frequency"
  214. ]
  215. }
  216. }
  217. }