console-header.star 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. # Copyright 2020 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. load("//lib/branches.star", "branches")
  5. load("//lib/headers.star", "headers")
  6. load(".//project.star", "ACTIVE_MILESTONES", "settings")
  7. HEADER = headers.header(
  8. oncalls = [
  9. headers.oncall(
  10. name = "Chromium",
  11. url = "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-build-sheriff",
  12. ),
  13. headers.oncall(
  14. name = "Chromium Branches",
  15. branch_selector = [branches.STANDARD_BRANCHES, branches.DESKTOP_EXTENDED_STABLE_BRANCHES],
  16. url = "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-branch-sheriff",
  17. ),
  18. headers.oncall(
  19. name = "Android",
  20. url = "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-android-sheriff",
  21. ),
  22. headers.oncall(
  23. name = "iOS",
  24. url = "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ios",
  25. ),
  26. headers.oncall(
  27. name = "ChromeOS",
  28. url = "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chromeos-gardeners",
  29. ),
  30. headers.oncall(
  31. name = "Fuchsia",
  32. url = "https://chrome-ops-rotation-proxy.appspot.com/current/grotation:chrome-fuchsia-gardener",
  33. ),
  34. headers.oncall(
  35. name = "GPU",
  36. url = "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-gpu-pixel-wrangler-weekly",
  37. ),
  38. headers.oncall(
  39. name = "ANGLE",
  40. url = "https://chrome-ops-rotation-proxy.appspot.com/current/grotation:angle-wrangler",
  41. ),
  42. headers.oncall(
  43. name = "Perf",
  44. url = "https://chrome-ops-rotation-proxy.appspot.com/current/grotation:chromium-perf-regression-sheriff",
  45. ),
  46. headers.oncall(
  47. name = "Perfbot",
  48. url = "https://chrome-ops-rotation-proxy.appspot.com/current/grotation:chromium-perf-bot-sheriff",
  49. ),
  50. headers.oncall(
  51. name = "Trooper",
  52. branch_selector = branches.ALL_BRANCHES,
  53. url = "https://chrome-ops-rotation-proxy.appspot.com/current/oncallator:chrome-ops-client-infra",
  54. show_primary_secondary_labels = True,
  55. ),
  56. ],
  57. link_groups = [
  58. headers.link_group(
  59. name = "Builds",
  60. links = [
  61. headers.link(
  62. text = "continuous",
  63. branch_selector = branches.ALL_BRANCHES,
  64. url = "https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html",
  65. alt = "Continuous browser snapshots",
  66. ),
  67. headers.link(
  68. text = "symbols",
  69. branch_selector = branches.ALL_BRANCHES,
  70. url = "https://www.chromium.org/developers/how-tos/debugging-on-windows",
  71. alt = "Windows Symbols",
  72. ),
  73. headers.link(
  74. text = "status",
  75. url = "https://chromium-status.appspot.com/",
  76. alt = "Current tree status",
  77. ),
  78. ],
  79. ),
  80. headers.link_group(
  81. name = "Dashboards",
  82. links = [
  83. headers.link(
  84. text = "perf",
  85. branch_selector = branches.ALL_BRANCHES,
  86. url = "https://chromeperf.appspot.com/",
  87. alt = "Chrome perf dashboard",
  88. ),
  89. headers.link(
  90. text = "flake-portal",
  91. branch_selector = branches.ALL_BRANCHES,
  92. url = "https://analysis.chromium.org/p/chromium/flake-portal",
  93. alt = "New flake portal",
  94. ),
  95. headers.link(
  96. text = "legacy-flakiness",
  97. branch_selector = branches.ALL_BRANCHES,
  98. url = "https://test-results.appspot.com/dashboards/flakiness_dashboard.html",
  99. alt = "Legacy flakiness dashboard",
  100. ),
  101. ],
  102. ),
  103. headers.link_group(
  104. name = "Chromium",
  105. links = [
  106. headers.link(
  107. text = "source",
  108. branch_selector = branches.ALL_BRANCHES,
  109. url = branches.value(
  110. {
  111. branches.MAIN: "https://chromium.googlesource.com/chromium/src",
  112. },
  113. default = "https://chromium.googlesource.com/chromium/src/+/{}".format(settings.ref),
  114. ),
  115. alt = "Chromium source code repository",
  116. ),
  117. headers.link(
  118. text = "reviews",
  119. branch_selector = branches.ALL_BRANCHES,
  120. url = "https://chromium-review.googlesource.com",
  121. alt = "Chromium code review tool",
  122. ),
  123. headers.link(
  124. text = "bugs",
  125. branch_selector = branches.ALL_BRANCHES,
  126. url = "https://crbug.com",
  127. alt = "Chromium bug tracker",
  128. ),
  129. headers.link(
  130. text = "coverage",
  131. branch_selector = branches.ALL_BRANCHES,
  132. url = "https://analysis.chromium.org/coverage/p/chromium",
  133. alt = "Chromium code coverage dashboard",
  134. ),
  135. headers.link(
  136. text = "dev",
  137. branch_selector = branches.ALL_BRANCHES,
  138. url = "https://dev.chromium.org/Home",
  139. alt = "Chromium developer home page",
  140. ),
  141. headers.link(
  142. text = "support",
  143. branch_selector = branches.ALL_BRANCHES,
  144. url = "https://support.google.com/chrome/#topic=7438008",
  145. alt = "Google Chrome help center",
  146. ),
  147. ],
  148. ),
  149. headers.link_group(
  150. name = "Consoles",
  151. links = [
  152. headers.link(
  153. text = "android",
  154. branch_selector = branches.STANDARD_MILESTONE,
  155. url = "/p/{}/g/chromium.android".format(settings.project),
  156. alt = "Chromium Android console",
  157. ),
  158. headers.link(
  159. text = "clang",
  160. url = "/p/{}/g/chromium.clang".format(settings.project),
  161. alt = "Chromium Clang console",
  162. ),
  163. headers.link(
  164. text = "dawn",
  165. branch_selector = branches.STANDARD_MILESTONE,
  166. url = "/p/{}/g/chromium.dawn".format(settings.project),
  167. alt = "Chromium Dawn console",
  168. ),
  169. headers.link(
  170. text = "fuzz",
  171. url = "/p/{}/g/chromium.fuzz".format(settings.project),
  172. alt = "Chromium Fuzz console",
  173. ),
  174. headers.link(
  175. text = "fuchsia",
  176. branch_selector = branches.FUCHSIA_LTS_MILESTONE,
  177. url = "/p/{}/g/chromium.fuchsia".format(settings.project),
  178. alt = "Chromium Fuchsia console",
  179. ),
  180. headers.link(
  181. text = "fyi",
  182. branch_selector = branches.STANDARD_MILESTONE,
  183. url = "/p/{}/g/chromium.fyi".format(settings.project),
  184. alt = "Chromium FYI console",
  185. ),
  186. headers.link(
  187. text = "gpu",
  188. branch_selector = branches.STANDARD_MILESTONE,
  189. url = "/p/{}/g/chromium.gpu".format(settings.project),
  190. alt = "Chromium GPU console",
  191. ),
  192. headers.link(
  193. text = "packager",
  194. url = "/p/{}/g/chromium.packager".format(settings.project),
  195. alt = "Chromium Packager console",
  196. ),
  197. headers.link(
  198. text = "perf",
  199. url = "/p/chrome/g/chrome.perf/console",
  200. alt = "Chromium Perf console",
  201. ),
  202. headers.link(
  203. text = "perf.fyi",
  204. url = "/p/chrome/g/chrome.perf.fyi/console",
  205. alt = "Chromium Perf FYI console",
  206. ),
  207. headers.link(
  208. text = "angle",
  209. url = "/p/{}/g/chromium.angle".format(settings.project),
  210. alt = "Chromium ANGLE console",
  211. ),
  212. headers.link(
  213. text = "swangle",
  214. url = "/p/{}/g/chromium.swangle".format(settings.project),
  215. alt = "Chromium SWANGLE console",
  216. ),
  217. headers.link(
  218. text = "updater",
  219. url = "/p/{}/g/chromium.updater".format(settings.project),
  220. alt = "Chromium Updater console",
  221. ),
  222. headers.link(
  223. text = "webrtc",
  224. url = "/p/{}/g/chromium.webrtc".format(settings.project),
  225. alt = "Chromium WebRTC console",
  226. ),
  227. headers.link(
  228. text = "chromiumos",
  229. branch_selector = branches.CROS_LTS_MILESTONE,
  230. url = "/p/{}/g/chromium.chromiumos".format(settings.project),
  231. alt = "ChromiumOS console",
  232. ),
  233. headers.link(
  234. text = "flakiness",
  235. url = "/p/{}/g/chromium.flakiness".format(settings.project),
  236. alt = "Chromium Flakiness console",
  237. ),
  238. ],
  239. ),
  240. headers.link_group(
  241. name = "Branch Consoles",
  242. links = [
  243. headers.link(
  244. text = milestone,
  245. url = "/p/{}/g/main/console".format(details.project),
  246. )
  247. for milestone, details in ACTIVE_MILESTONES.items()
  248. ] + [
  249. headers.link(
  250. text = "trunk",
  251. branch_selector = branches.ALL_BRANCHES,
  252. url = "/p/chromium/g/main/console",
  253. alt = "Trunk (ToT) console",
  254. ),
  255. ],
  256. ),
  257. headers.link_group(
  258. name = "Tryservers",
  259. links = [
  260. headers.link(
  261. text = "android",
  262. branch_selector = branches.STANDARD_MILESTONE,
  263. url = "/p/{}/g/tryserver.chromium.android/builders".format(settings.project),
  264. alt = "Android",
  265. ),
  266. headers.link(
  267. text = "angle",
  268. url = "/p/{}/g/tryserver.chromium.angle/builders".format(settings.project),
  269. alt = "Angle",
  270. ),
  271. headers.link(
  272. text = "blink",
  273. branch_selector = branches.STANDARD_MILESTONE,
  274. url = "/p/{}/g/tryserver.blink/builders".format(settings.project),
  275. alt = "Blink",
  276. ),
  277. headers.link(
  278. text = "chrome",
  279. url = "/p/chrome/g/tryserver.chrome/builders",
  280. alt = "Chrome",
  281. ),
  282. headers.link(
  283. text = "chromiumos",
  284. branch_selector = branches.CROS_LTS_MILESTONE,
  285. url = "/p/{}/g/tryserver.chromium.chromiumos/builders".format(settings.project),
  286. alt = "ChromiumOS",
  287. ),
  288. headers.link(
  289. text = "fuchsia",
  290. branch_selector = branches.FUCHSIA_LTS_MILESTONE,
  291. url = "/p/{}/g/tryserver.chromium.fuchsia/builders".format(settings.project),
  292. alt = "Fuchsia",
  293. ),
  294. headers.link(
  295. text = "linux",
  296. branch_selector = branches.STANDARD_MILESTONE,
  297. url = "/p/{}/g/tryserver.chromium.linux/builders".format(settings.project),
  298. alt = "Linux",
  299. ),
  300. headers.link(
  301. text = "mac",
  302. branch_selector = branches.STANDARD_MILESTONE,
  303. url = "/p/{}/g/tryserver.chromium.mac/builders".format(settings.project),
  304. alt = "Mac",
  305. ),
  306. headers.link(
  307. text = "swangle",
  308. url = "/p/{}/g/tryserver.chromium.swangle/builders".format(settings.project),
  309. alt = "SWANGLE",
  310. ),
  311. headers.link(
  312. text = "tricium",
  313. url = "/p/{}/g/tryserver.chromium.tricium/builders".format(settings.project),
  314. alt = "Tricium",
  315. ),
  316. headers.link(
  317. text = "win",
  318. branch_selector = branches.STANDARD_MILESTONE,
  319. url = "/p/{}/g/tryserver.chromium.win/builders".format(settings.project),
  320. alt = "Win",
  321. ),
  322. ],
  323. ),
  324. headers.link_group(
  325. name = "Navigate",
  326. links = [
  327. headers.link(
  328. text = "about",
  329. branch_selector = branches.ALL_BRANCHES,
  330. url = "http://dev.chromium.org/developers/testing/chromium-build-infrastructure/tour-of-the-chromium-buildbot",
  331. alt = "Tour of the console",
  332. ),
  333. headers.link(
  334. text = "customize",
  335. branch_selector = branches.ALL_BRANCHES,
  336. url = "https://chromium.googlesource.com/chromium/src/+/{}/infra/config/generated/luci/luci-milo.cfg".format(settings.ref),
  337. alt = "Customize this console",
  338. ),
  339. ],
  340. ),
  341. ],
  342. console_groups = [
  343. headers.console_group(
  344. title = headers.link(
  345. text = "Tree Closers",
  346. url = "https://chromium-status.appspot.com/",
  347. ),
  348. console_ids = [
  349. "chromium/chromium",
  350. "chromium/chromium.win",
  351. "chromium/chromium.mac",
  352. "chromium/chromium.linux",
  353. "chromium/chromium.chromiumos",
  354. "chromium/chromium.fuchsia",
  355. "chrome/chrome",
  356. "chromium/chromium.memory",
  357. "chromium/chromium.gpu",
  358. ],
  359. ),
  360. headers.console_group(
  361. console_ids = [
  362. "chromium/chromium.android",
  363. "chrome/chrome.perf",
  364. "chromium/chromium.fuchsia.fyi",
  365. "chromium/chromium.gpu.fyi",
  366. "chromium/chromium.angle",
  367. "chromium/chromium.swangle",
  368. "chromium/chromium.fuzz",
  369. ],
  370. ),
  371. headers.console_group(
  372. branch_selector = branches.STANDARD_BRANCHES,
  373. console_ids = ["{}/{}".format(settings.project, c) for c in [
  374. "chromium",
  375. "chromium.win",
  376. "chromium.mac",
  377. "chromium.linux",
  378. "chromium.chromiumos",
  379. "chromium.memory",
  380. "chromium.gpu",
  381. "chromium.android",
  382. ]],
  383. ),
  384. headers.console_group(
  385. branch_selector = branches.CROS_LTS_BRANCHES,
  386. console_ids = ["{}/{}".format(settings.project, c) for c in [
  387. "chromium.chromiumos",
  388. ]],
  389. ),
  390. ],
  391. tree_status_host = "chromium-status.appspot.com" if settings.is_main else None,
  392. )