summary.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. <html>
  2. <head>
  3. <style>
  4. body {
  5. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  6. margin: 0;
  7. padding: 0;
  8. box-sizing: border-box;
  9. width: 100%;
  10. }
  11. h1 {
  12. font-size: 20px;
  13. }
  14. th {
  15. text-transform: uppercase;
  16. }
  17. th, td {
  18. padding: 5px;
  19. word-break: break-word; /* Allow breaking long words */
  20. font-size: 14px;
  21. min-width: 80px;
  22. }
  23. td.test_name{
  24. min-width: 72.5vw;
  25. max-width: 72.5vw;
  26. }
  27. td.test_name.with_history{
  28. min-width: 62vw;
  29. max-width: 62vw;
  30. }
  31. table {
  32. border-collapse: collapse;
  33. width: 100%;
  34. left: 5;
  35. }
  36. span.test_status {
  37. font-weight: bold;
  38. }
  39. span.test_fail {
  40. color: red;
  41. }
  42. span.test_pass {
  43. color: green;
  44. }
  45. span.test_mute {
  46. color: blue;
  47. }
  48. .svg_passed {
  49. fill: green;
  50. }
  51. .svg_failure {
  52. fill: red;
  53. }
  54. .svg_skipped {
  55. fill: gray;
  56. }
  57. .svg_mute {
  58. fill: blue;
  59. }
  60. .svg-icon {
  61. float: left;
  62. width: 14px;
  63. height: 14px;
  64. padding-left: 1px;
  65. padding-right: 1px;
  66. margin-right: 0px;
  67. border-radius: 50%;
  68. position: relative; /* Essential for tooltips */
  69. cursor: pointer;
  70. }
  71. .button {
  72. display: inline-flex;
  73. align-items: center;
  74. justify-content: left;
  75. padding: 4px;
  76. border: none;
  77. background: none;
  78. cursor: pointer;
  79. position: relative;
  80. }
  81. .button svg {
  82. fill: #4b535c;
  83. fill-rule: evenodd;
  84. }
  85. .button svg:hover {
  86. fill: #0366d6;
  87. fill-rule: evenodd;
  88. }
  89. .button-group {
  90. display: inline-flex;
  91. float: right;
  92. align-items: center;
  93. position: relative; /* Added for positioning the dropdown */
  94. white-space: nowrap;
  95. }
  96. .button-group > button {
  97. margin-left: 5px;
  98. padding: 4px 8px;
  99. border: none;
  100. background: none;
  101. cursor: pointer;
  102. white-space: nowrap;
  103. }
  104. .button-group > button svg {
  105. fill: #4b535c;
  106. fill-rule: evenodd;
  107. }
  108. .button-group > button svg:hover {
  109. fill: #0366d6;
  110. fill-rule: evenodd;
  111. }
  112. .button-group .icon-container .show_history_svg {
  113. fill: #ffffff;
  114. stroke: #000;
  115. stroke-width: 2.5;
  116. fill-rule: evenodd;
  117. }
  118. .button-group .icon-container .show_history_svg:hover {
  119. stroke: #0366d6;
  120. }
  121. .button-group .button-text {
  122. color: #4b535c;
  123. }
  124. .button-group .button-text:hover {
  125. color: #0366d6;
  126. }
  127. .button-group .dropdown {
  128. display: none; /* Hide the dropdown by default */
  129. position: absolute;
  130. top: 100%;
  131. right: 0;
  132. background-color: white;
  133. border: 1px solid #ddd;
  134. border-radius: 4px;
  135. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  136. padding: 8px;
  137. z-index: 10; /* Ensure the dropdown is above other content */
  138. width: 160;
  139. }
  140. .button-group .dropdown.show {
  141. display: block; /* Show the dropdown when active */
  142. }
  143. .button-group .dropdown > button {
  144. display: table; /* Make each button in the dropdown take up full width */
  145. margin-bottom: 3px; /* Add spacing between dropdown buttons */
  146. }
  147. .button-group button .icon-container {
  148. display: inline-block; /* Align SVG with text */
  149. vertical-align: middle; /* Center SVG vertically */
  150. margin-right: 3px; /* Add spacing between SVG and text */
  151. }
  152. .button-group button .button-text {
  153. margin-left: 5px; /* Add spacing between icon and text */
  154. cursor: pointer; /* Make text clickable */
  155. }
  156. .button-group button::after { /* Target the "Copy" button specifically */
  157. position: absolute;
  158. top: 100%;
  159. left: 50%;
  160. transform: translateX(-50%);
  161. background-color: #7d7d92; /* Same as your tooltip background */
  162. color: white;
  163. padding: 2px 5px;
  164. border-radius: 3px;
  165. visibility: hidden; /* Hide by default */
  166. opacity: 0;
  167. transition: visibility 0.2s, opacity 0.2s;
  168. }
  169. .button-group button:hover::after {
  170. visibility: visible;
  171. opacity: 1;
  172. }
  173. .tooltip {
  174. visibility: hidden;
  175. max-width: 340px;
  176. min-width: 260px;
  177. word-break: break-word;
  178. background-color: #7d7d92;
  179. color: #fff;
  180. text-align: left;
  181. border-radius: 5px;
  182. padding: 5px;
  183. position: absolute;
  184. z-index: 3;
  185. bottom: 100%; /* Positioned above the svg icon */
  186. left: 50%; /* Center the tooltip */
  187. margin-left: -95px; /* Use negative margin to actually center the tooltip */
  188. opacity: 0;
  189. transition: opacity 0.3s;
  190. overflow: hidden;
  191. white-space: nowrap; /* Don't forget this one */
  192. text-overflow: ellipsis;
  193. }
  194. .tooltip::after {
  195. content: "";
  196. position: absolute;
  197. top: 100%; /* Arrow will be positioned at the bottom of the tooltip */
  198. left: 50%;
  199. margin-left: -5px;
  200. border-width: 5px;
  201. border-style: solid;
  202. border-color: #7d7d92 transparent transparent transparent; /* Arrow color */
  203. }
  204. .tooltip.visible {
  205. visibility: visible;
  206. opacity: 1;
  207. }
  208. table > tbody > tr > td:nth-child(2),
  209. table > tbody > tr > td:nth-child(3),
  210. table > tbody > tr > td:nth-child(4) {
  211. text-align: left;
  212. }
  213. .collapsible-content {
  214. display: table-row-group;
  215. position: absolute;
  216. top: -9999px;
  217. left: -9999px;
  218. height: 0;
  219. overflow: hidden;
  220. }
  221. .collapsible-content.active {
  222. position: relative;
  223. top: 0;
  224. left: 5;
  225. height: auto;
  226. }
  227. .collapsible-header {
  228. cursor: pointer;
  229. background-color: #f2f2f2;
  230. padding: 10px;
  231. border: 1px solid #ddd;
  232. margin-bottom: 5px;
  233. }
  234. .toggle-visibility-buttons {
  235. margin-bottom: 10px;
  236. overflow:hidden;
  237. float: right;
  238. }
  239. </style>
  240. <script>
  241. function findParentBySelector(elm, selector) {
  242. var all = document.querySelectorAll(selector);
  243. var cur = elm.parentNode;
  244. while(cur && !collectionHas(all, cur)) { //keep going up until you find a match
  245. cur = cur.parentNode; //go up
  246. }
  247. return cur; //will return null if not found
  248. }
  249. function collectionHas(a, b) { //helper function (see below)
  250. for(var i = 0, len = a.length; i < len; i ++) {
  251. if(a[i] == b) return true;
  252. }
  253. return false;
  254. }
  255. function copyTestNameToClipboard(text) {
  256. const full_name = text.trim();
  257. const pieces = /(.+)\/([^$]+)$/.exec(full_name);
  258. if (!pieces) {
  259. console.error("Unable to split path/test name from %o", full_name);
  260. return;
  261. }
  262. let [path, testName] = [pieces[1], pieces[2]];
  263. const namePieces = testName.split('.');
  264. if (namePieces.length === 2) {
  265. testName = namePieces[0] + '::' + namePieces[1];
  266. } else {
  267. testName = namePieces[0] + '.' + namePieces[1] + '::' + namePieces.slice(2).join('::');
  268. }
  269. const cmdArg = `./ya make -ttt --build relwithdebinfo -k -F '${testName}' ${path}`;
  270. console.log(cmdArg);
  271. navigator.clipboard.writeText(cmdArg).then(
  272. () => {
  273. console.log("Copied!");
  274. showCopiedTooltip();
  275. },
  276. () => {
  277. console.error("Unable to copy %o to clipboard", cmdArg);
  278. }
  279. );
  280. }
  281. function copyTestNameForMuteToClipboard(text) {
  282. const full_name = text.trim();
  283. const pieces = /(.+)\/([^$]+)$/.exec(full_name);
  284. if (!pieces) {
  285. console.error("Unable to split path/test name from %o", full_name);
  286. return;
  287. }
  288. let [path, testName] = [pieces[1], pieces[2]];
  289. const cmdArg = `${path} ${testName}`;
  290. console.log(cmdArg);
  291. navigator.clipboard.writeText(cmdArg).then(
  292. () => {
  293. console.log("Copied!");
  294. showCopiedTooltip();
  295. },
  296. () => {
  297. console.error("Unable to copy %o to clipboard", cmdArg);
  298. }
  299. );
  300. }
  301. function createIssue(test,owner,success_count, fail_count) {
  302. const full_name = test.trim();
  303. const pieces = /(.+)\/([^$]+)$/.exec(full_name);
  304. if (!pieces) {
  305. console.error("Unable to split path/test name from %o", full_name);
  306. return;
  307. }
  308. let [path, testName] = [pieces[1], pieces[2]];
  309. if (success_count + fail_count != 0){
  310. let url = "https://github.com/ydb-platform/ydb/issues/new?title=Mute "+ encodeURIComponent(path)+"/"+ encodeURIComponent(testName) + "&body=" + encodeURIComponent(path)+"/"+ encodeURIComponent(testName) +"%0A%0A**Add%20line%20to%20[muted_ya.txt](https://github.com/ydb-platform/ydb/blob/main/.github/config/muted_ya.txt):**%0A%60" + encodeURIComponent(path)+"/"+ encodeURIComponent(testName)+"%60%0A%0A%20Owner:%20[TEAM:@ydb-platform/"+owner+"](https://github.com/orgs/ydb-platform/teams/"+owner+")%0A%0A**Read%20more%20in%20[mute_rules.md](https://github.com/ydb-platform/ydb/blob/main/.github/config/mute_rules.md)**%20%20%0A%0A**Summary%20history:**%0A%20Success%20rate%20**"+(success_count/(success_count+fail_count)*100)+"%25**%0APass:"+success_count+"%20Fail:"+fail_count+"%20%0A%0A**Test%20run%20history:**%20[link](https://datalens.yandex/34xnbsom67hcq?full_name=" +path+ "/"+ testName+ ")%0A%0AMore%20info%20in%20[dashboard](https://datalens.yandex/4un3zdm0zcnyr)&labels=mute"
  311. window.open(url, '_blank');
  312. }
  313. else {
  314. let url = "https://github.com/ydb-platform/ydb/issues/new?title=Mute "+ encodeURIComponent(path)+"/"+ encodeURIComponent(testName) + "&body=" + encodeURIComponent(path)+"/"+ encodeURIComponent(testName) +"%0A%0A**Add%20line%20to%20[muted_ya.txt](https://github.com/ydb-platform/ydb/blob/main/.github/config/muted_ya.txt):**%0A%60" + encodeURIComponent(path)+"/"+ encodeURIComponent(testName)+"%60%0A%0A%20Owner:%20[TEAM:@ydb-platform/"+owner+"](https://github.com/orgs/ydb-platform/teams/"+owner+")%0A%0A**Read%20more%20in%20[mute_rules.md](https://github.com/ydb-platform/ydb/blob/main/.github/config/mute_rules.md)**%20%20%0A%0A**Summary%20history:**%0APass:"+success_count+"%20Fail:"+fail_count+"%20%0A%0A**Test%20run%20history:**%20[link](https://datalens.yandex/34xnbsom67hcq?full_name=" +path+ "/"+ testName+ ")%0A%0AMore%20info%20in%20[dashboard](https://datalens.yandex/4un3zdm0zcnyr)&labels=mute"
  315. window.open(url, '_blank');
  316. }
  317. }
  318. function openHistory(test) {
  319. const full_name = test.trim();
  320. let url = "https://datalens.yandex/34xnbsom67hcq?full_name="+full_name
  321. window.open(url, '_blank');
  322. }
  323. let lastOpenedTooltip = null;
  324. function toggleTooltip(event) {
  325. event.stopPropagation();
  326. const tooltip = event.currentTarget.querySelector('.tooltip');
  327. if (tooltip.classList.contains('visible')) {
  328. tooltip.classList.remove('visible');
  329. lastOpenedTooltip = null;
  330. } else {
  331. hideTooltips();
  332. tooltip.classList.add('visible');
  333. lastOpenedTooltip = tooltip;
  334. }
  335. }
  336. function hideTooltips() {
  337. if (lastOpenedTooltip) {
  338. lastOpenedTooltip.classList.remove('visible');
  339. lastOpenedTooltip = null;
  340. }
  341. }
  342. function toggleAllTables(action) {
  343. const contents = document.querySelectorAll('.collapsible-content');
  344. if (action === 'expand') {
  345. contents.forEach(content => content.classList.add('active'));
  346. } else if (action === 'collapse') {
  347. contents.forEach(content => content.classList.remove('active'));
  348. }
  349. }
  350. function ButtonIconsClick(button){
  351. button.addEventListener('click', function() {
  352. const iconContainer = button.querySelector('.icon-container');
  353. const initialIcon = iconContainer.querySelector('svg:first-child');
  354. const doneIcon = iconContainer.querySelector('svg:last-child');
  355. // Swap icon visibility
  356. initialIcon.style.display = 'none';
  357. doneIcon.style.display = 'block';
  358. // You can add any additional actions here, like:
  359. // - Disabling the button
  360. // - Changing the button's title
  361. // - Triggering other effects
  362. });
  363. }
  364. document.addEventListener("DOMContentLoaded", function() {
  365. let openDropdown = null; // Track the currently open dropdown
  366. const buttonGroups = document.querySelectorAll(".button-group");
  367. buttonGroups.forEach(buttonGroup => {
  368. const dropdown = buttonGroup.querySelector('.dropdown');
  369. const toggleButton = buttonGroup.querySelector('button:first-child'); // The "..." button
  370. toggleButton.addEventListener('click', function() {
  371. // Close any previously open dropdown
  372. if (openDropdown && openDropdown !== dropdown) {
  373. openDropdown.classList.remove('show');
  374. }
  375. dropdown.classList.toggle('show');
  376. openDropdown = dropdown.classList.contains('show') ? dropdown : null;
  377. const iconContainer = dropdown.querySelectorAll('.icon-container');
  378. iconContainer.forEach(element=>{
  379. const initialIcon = element.querySelector('svg:first-child');
  380. const doneIcon = element.querySelector('svg:last-child');
  381. // Swap icon visibility
  382. initialIcon.style.display = 'block';
  383. doneIcon.style.display = 'none';
  384. });
  385. });
  386. // Close the dropdown when clicking outside of it
  387. document.addEventListener('click', function(event) {
  388. if (!event.target.closest('.button-group')) {
  389. dropdown.classList.remove('show');
  390. openDropdown = null;
  391. }
  392. });
  393. buttonGroup.querySelectorAll('.button-group .dropdown .button').forEach(button => {
  394. ButtonIconsClick(button)
  395. });
  396. });
  397. document.addEventListener('keydown', function(event) {
  398. if ((event.ctrlKey && event.keyCode == 70) || (event.metaKey && event.keyCode == 70)) {
  399. toggleAllTables('expand');
  400. }
  401. });
  402. document.addEventListener('click', function(event) {
  403. if (!event.target.closest('.svg-icon') && !event.target.classList.contains('copy')) {
  404. hideTooltips();
  405. }
  406. });
  407. const svgIcons = document.querySelectorAll('.svg-icon');
  408. svgIcons.forEach(icon => {
  409. icon.addEventListener('click', toggleTooltip);
  410. });
  411. const copyButtons = document.querySelectorAll(".copy");
  412. copyButtons.forEach(button => {
  413. button.addEventListener('click', function(event) {
  414. event.preventDefault();
  415. copyTestNameToClipboard(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  416. });
  417. });
  418. const muteButtons = document.querySelectorAll(".mute");
  419. muteButtons.forEach(button => {
  420. button.addEventListener('click', function(event) {
  421. event.preventDefault();
  422. copyTestNameForMuteToClipboard(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  423. });
  424. });
  425. const historyButton = document.querySelectorAll(".open_history");
  426. historyButton.forEach(button => {
  427. button.addEventListener('click', function(event) {
  428. event.preventDefault();
  429. openHistory(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  430. });
  431. });
  432. const createIssueButton = document.querySelectorAll(".create_issue");
  433. createIssueButton.forEach(button => {
  434. button.addEventListener('click', function(event) {
  435. event.preventDefault();
  436. const success_count = findParentBySelector(event.target,'tr').querySelectorAll('.svg_passed').length
  437. const fail_count = findParentBySelector(event.target,'tr').querySelectorAll('.svg_failure').length + findParentBySelector(event.target,'tr').querySelectorAll('.svg_mute').length
  438. createIssue(
  439. findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText,
  440. findParentBySelector(event.target,'tr').querySelector('.test_owner').innerText,
  441. success_count,fail_count
  442. );
  443. });
  444. });
  445. const headers = document.querySelectorAll(".collapsible-header");
  446. headers.forEach(header => {
  447. header.addEventListener('click', function() {
  448. const content = this.nextElementSibling;
  449. if (content.classList.contains('active')) {
  450. content.classList.remove('active');
  451. } else {
  452. content.classList.add('active');
  453. }
  454. });
  455. });
  456. document.getElementById('expand-all').addEventListener('click', function(event) {
  457. toggleAllTables('expand');
  458. });
  459. document.getElementById('collapse-all').addEventListener('click', function(event) {
  460. toggleAllTables('collapse');
  461. });
  462. });
  463. </script>
  464. </head>
  465. <body>
  466. <div class="toggle-visibility-buttons">
  467. <button id="expand-all">Expand All</button>
  468. <button id="collapse-all">Collapse All</button>
  469. </div>
  470. {% for status in status_order %}
  471. <h1 id="{{ status.name}}" class="collapsible-header">{{ status.name }} ({{ tests[status] | length }})</h1>
  472. <table class="collapsible-content active" border="1">
  473. <thead>
  474. <tr>
  475. <th>test owner</th>
  476. <th>test name</th>
  477. {% if status.is_error and history%}
  478. <th>history<br>
  479. old->new
  480. </th>
  481. {% endif %}
  482. <th>elapsed</th>
  483. <th>status</th>
  484. {% if status in has_any_log %}
  485. <th>LOG</th>
  486. {% endif %}
  487. </tr>
  488. </thead>
  489. <tbody>
  490. {% for t in tests[status] %}
  491. <tr>
  492. <td class="test_owner">
  493. <a href="https://github.com/orgs/ydb-platform/teams/{{ t.owners.replace('TEAM:@ydb-platform/','')}}" target="_blank">{{ t.owners.replace('TEAM:@ydb-platform/','')}}</a>
  494. </td>
  495. {% if status.is_error %}
  496. <td class="test_name with_history">
  497. {% else %}
  498. <td class="test_name">
  499. {% endif %}
  500. <span>{{ t.full_name }}</span>
  501. {% if status.is_error %}
  502. <div class="button-group">
  503. <button class="button" title="Show options">
  504. <svg class="more" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" stroke="none" aria-hidden="true" viewBox="0 0 448 512">
  505. <path d="M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" clip-rule="evenodd"></path>
  506. </svg>
  507. </button>
  508. <div class="dropdown">
  509. <button class="button copy" title="Copy test filter to clipboard" >
  510. <div class="icon-container">
  511. <svg class="copy_svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" stroke="none" aria-hidden="true" viewBox="0 0 16 16">
  512. <path d="M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5" clip-rule="evenodd"></path>
  513. </svg>
  514. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  515. <path class="cls-2" d="M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"/>
  516. <path class="cls-2" d="M14.7,8.39l-3.78,5L9.29,11.28a1,1,0,0,0-1.58,1.23l2.43,3.11a1,1,0,0,0,.79.38h0a1,1,0,0,0,.79-.39l4.57-6a1,1,0,1,0-1.6-1.22Z"/>
  517. </svg>
  518. </div>
  519. <span class="button-text">Copy run command</span>
  520. </button>
  521. {% if status.name == "FAIL" %}
  522. <button class="button mute" title="Copy mute string to clipboard" >
  523. <div class="icon-container">
  524. <svg class="mute_svg" xmlns="http://www.w3.org/2000/svg" width="32" height="14" position="left" stroke="none" viewBox="2 0 30 17">
  525. <!-- First icon: copied squares -->
  526. <path transform="translate(20, 0)" d="M12 2.5H8A1.5 1.5 0 0 0 6.5 4v1H8a3 3 0 0 1 3 3v1.5h1A1.5 1.5 0 0 0 13.5 8V4A1.5 1.5 0 0 0 12 2.5M11 11h1a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3H8a3 3 0 0 0-3 3v1H4a3 3 0 0 0-3 3v4a3 3 0 0 0 3 3h4a3 3 0 0 0 3-3zM4 6.5h4A1.5 1.5 0 0 1 9.5 8v4A1.5 1.5 0 0 1 8 13.5H4A1.5 1.5 0 0 1 2.5 12V8A1.5 1.5 0 0 1 4 6.5" />
  527. <!-- Second icon: microphone -->
  528. <path transform="translate(0, 0)" d="M5.06 9.94A1.5 1.5 0 0 0 4 9.5H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h2a1.5 1.5 0 0 0 1.06-.44l2.483-2.482a.268.268 0 0 1 .457.19v8.464a.268.268 0 0 1-.457.19zM2 5h2l2.482-2.482A1.768 1.768 0 0 1 9.5 3.768v8.464a1.768 1.768 0 0 1-3.018 1.25L4 11H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2m10.28.72a.75.75 0 1 0-1.06 1.06L12.44 8l-1.22 1.22a.75.75 0 1 0 1.06 1.06l1.22-1.22 1.22 1.22a.75.75 0 1 0 1.06-1.06L14.56 8l1.22-1.22a.75.75 0 0 0-1.06-1.06L13.5 6.94z" />
  529. </svg>
  530. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  531. <path class="cls-2" d="M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"/>
  532. <path class="cls-2" d="M14.7,8.39l-3.78,5L9.29,11.28a1,1,0,0,0-1.58,1.23l2.43,3.11a1,1,0,0,0,.79.38h0a1,1,0,0,0,.79-.39l4.57-6a1,1,0,1,0-1.6-1.22Z"/>
  533. </svg>
  534. </div>
  535. <span class="button-text">Copy mute string</span>
  536. </button>
  537. <button class="button create_issue" title="Create issue">
  538. <div class="icon-container">
  539. <svg class="issue_svg" xmlns="http://www.w3.org/2000/svg" width="32" height="14" position="left" stroke="none" viewBox="2 0 30 17">
  540. <!-- First icon: plus -->
  541. <path transform="translate(20, 0)" d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M8.75 5.5a.75.75 0 0 0-1.5 0v1.75H5.5a.75.75 0 0 0 0 1.5h1.75v1.75a.75.75 0 0 0 1.5 0V8.75h1.75a.75.75 0 0 0 0-1.5H8.75z" />
  542. <!-- Second icon: microphone -->
  543. <path transform="translate(0, 0)" d="M5.06 9.94A1.5 1.5 0 0 0 4 9.5H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h2a1.5 1.5 0 0 0 1.06-.44l2.483-2.482a.268.268 0 0 1 .457.19v8.464a.268.268 0 0 1-.457.19zM2 5h2l2.482-2.482A1.768 1.768 0 0 1 9.5 3.768v8.464a1.768 1.768 0 0 1-3.018 1.25L4 11H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2m10.28.72a.75.75 0 1 0-1.06 1.06L12.44 8l-1.22 1.22a.75.75 0 1 0 1.06 1.06l1.22-1.22 1.22 1.22a.75.75 0 1 0 1.06-1.06L14.56 8l1.22-1.22a.75.75 0 0 0-1.06-1.06L13.5 6.94z" />
  544. </svg>
  545. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  546. <path class="cls-2" d="M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"/>
  547. <path class="cls-2" d="M14.7,8.39l-3.78,5L9.29,11.28a1,1,0,0,0-1.58,1.23l2.43,3.11a1,1,0,0,0,.79.38h0a1,1,0,0,0,.79-.39l4.57-6a1,1,0,1,0-1.6-1.22Z"/>
  548. </svg>
  549. </div>
  550. <span class="button-text">Create mute issue</span>
  551. </button>
  552. {% endif %}
  553. <button class="button open_history" title="Show history">
  554. <div class="icon-container">
  555. <svg class="show_history_svg" width="18" height="18" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  556. <path d="M42 24V9C42 7.34315 40.6569 6 39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H24" stroke-linecap="round" stroke-linejoin="round"/>
  557. <circle cx="32" cy="32" r="6" />
  558. <path d="M37 36L42 40" stroke-linecap="round" stroke-linejoin="round"/>
  559. <path d="M14 16H34" stroke-linecap="round" stroke-linejoin="round"/>
  560. <path d="M14 24L22 24" stroke-linecap="round" stroke-linejoin="round"/>
  561. </svg>
  562. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  563. <path class="cls-2" d="M12,2A10,10,0,1,0,22,12,10,10,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z"/>
  564. <path class="cls-2" d="M14.7,8.39l-3.78,5L9.29,11.28a1,1,0,0,0-1.58,1.23l2.43,3.11a1,1,0,0,0,.79.38h0a1,1,0,0,0,.79-.39l4.57-6a1,1,0,1,0-1.6-1.22Z"/>
  565. </svg>
  566. </div>
  567. <span class="button-text">Open test history</span>
  568. </button>
  569. </div>
  570. </div>
  571. {% endif %}
  572. </td>
  573. {% if (status.is_error and t.full_name in history) %}
  574. <td>
  575. {% for h in history[t.full_name] %}
  576. <span class="svg-icon">
  577. {% if history[t.full_name][h].status == 'failure' %}
  578. <svg class="svg_failure" viewBox="0 0 16 16" >
  579. <path fill-rule="evenodd" d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0M6.53 5.47a.75.75 0 0 0-1.06 1.06L6.94 8 5.47 9.47a.75.75 0 1 0 1.06 1.06L8 9.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L9.06 8l1.47-1.47a.75.75 0 1 0-1.06-1.06L8 6.94z" clip-rule="evenodd"></path>
  580. </svg>
  581. {% elif history[t.full_name][h].status == 'passed' %}
  582. <svg class="svg_passed" viewBox="0 0 16 16" >
  583. <path fill-rule="evenodd" d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858 6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z" clip-rule="evenodd"></path>
  584. </svg>
  585. {% elif history[t.full_name][h].status == 'mute' %}
  586. <svg class="svg_mute" viewBox="0 0 17 16" >
  587. <path fill-rule="evenodd" d="M5.06 9.94A1.5 1.5 0 0 0 4 9.5H2a.5.5 0 0 1-.5-.5V7a.5.5 0 0 1 .5-.5h2a1.5 1.5 0 0 0 1.06-.44l2.483-2.482a.268.268 0 0 1 .457.19v8.464a.268.268 0 0 1-.457.19zM2 5h2l2.482-2.482A1.768 1.768 0 0 1 9.5 3.768v8.464a1.768 1.768 0 0 1-3.018 1.25L4 11H2a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2m10.28.72a.75.75 0 1 0-1.06 1.06L12.44 8l-1.22 1.22a.75.75 0 1 0 1.06 1.06l1.22-1.22 1.22 1.22a.75.75 0 1 0 1.06-1.06L14.56 8l1.22-1.22a.75.75 0 0 0-1.06-1.06L13.5 6.94z" clip-rule="evenodd"></path> </svg>
  588. </svg>
  589. {% endif %}
  590. <span class="tooltip">
  591. Status: {{history[t.full_name][h].status}}<br>
  592. Date: {{ history[t.full_name][h].datetime }}<br>
  593. {% if history[t.full_name][h].status_description != "" %}
  594. Info: {{ history[t.full_name][h].status_description.split(';')[0][0:100] }}<br>
  595. {% endif %}
  596. SHA: <a href="https://github.com/ydb-platform/ydb//commit/{{ history[t.full_name][h].commit }}" style="color: #00f;" target="_blank">{{history[t.full_name][h].commit[0:8]}}</a>
  597. </span>
  598. </span>
  599. {% endfor %}
  600. </td>
  601. {% elif (status.is_error and history) %}
  602. <td></td>
  603. {% elif status.is_error %}
  604. {% endif %}
  605. <td><span title="{{ t.elapsed }}s">{{ t.elapsed_display }}</span></td>
  606. <td>
  607. <span class="test_status test_{{ t.status_display }}">{{ t.status_display }}</span>
  608. </td>
  609. {% if status in has_any_log %}
  610. <td>
  611. {% if t.log_urls %}
  612. {% for log_name, log_url in t.log_urls.items() %}
  613. <a href="{{ log_url }}">{{ log_name }}</a>{% if not loop.last %} | {% endif %}
  614. {% endfor %}
  615. {% else %}
  616. &nbsp;
  617. {% endif %}
  618. </td>
  619. {% endif %}
  620. </tr>
  621. {% endfor %}
  622. </tbody>
  623. </table>
  624. {% endfor %}
  625. </body>
  626. </html>