summary.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  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. let pieces
  258. if (full_name.includes('.py.'))
  259. {
  260. pieces = /(.+)\/(.*py.*[^\/]+)$/.exec(full_name);
  261. } else
  262. {
  263. pieces = /(.+)\/([^$]+)$/.exec(full_name);
  264. }
  265. if (!pieces) {
  266. console.error("Unable to split path/test name from %o", full_name);
  267. return;
  268. }
  269. let [path, testName] = [pieces[1], pieces[2]];
  270. const namePieces = testName.split('.');
  271. if (namePieces.length === 2) {
  272. testName = namePieces[0] + '::' + namePieces[1];
  273. } else {
  274. testName = namePieces[0] + '.' + namePieces[1] + '::' + namePieces.slice(2).join('::');
  275. }
  276. const cmdArg = `./ya make -ttt {{ build_preset }} -F '${testName}' ${path}`;
  277. console.log(cmdArg);
  278. navigator.clipboard.writeText(cmdArg).then(
  279. () => {
  280. console.log("Copied!");
  281. showCopiedTooltip();
  282. },
  283. () => {
  284. console.error("Unable to copy %o to clipboard", cmdArg);
  285. }
  286. );
  287. }
  288. function copyTestNameForMuteToClipboard(text) {
  289. const full_name = text.trim();
  290. const pieces = /(.+)\/([^$]+)$/.exec(full_name);
  291. if (!pieces) {
  292. console.error("Unable to split path/test name from %o", full_name);
  293. return;
  294. }
  295. let [path, testName] = [pieces[1], pieces[2]];
  296. const cmdArg = `${path} ${testName}`;
  297. console.log(cmdArg);
  298. navigator.clipboard.writeText(cmdArg).then(
  299. () => {
  300. console.log("Copied!");
  301. showCopiedTooltip();
  302. },
  303. () => {
  304. console.error("Unable to copy %o to clipboard", cmdArg);
  305. }
  306. );
  307. }
  308. function createIssue(test,owner,success_count, fail_count) {
  309. const full_name = test.trim();
  310. const pieces = /(.+)\/([^$]+)$/.exec(full_name);
  311. if (!pieces) {
  312. console.error("Unable to split path/test name from %o", full_name);
  313. return;
  314. }
  315. let [path, testName] = [pieces[1], pieces[2]];
  316. if (success_count + fail_count != 0){
  317. 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"
  318. window.open(url, '_blank');
  319. }
  320. else {
  321. 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"
  322. window.open(url, '_blank');
  323. }
  324. }
  325. function openHistory(test) {
  326. const full_name = test.trim();
  327. let url = "https://datalens.yandex/34xnbsom67hcq?full_name="+full_name
  328. window.open(url, '_blank');
  329. }
  330. let lastOpenedTooltip = null;
  331. function toggleTooltip(event) {
  332. event.stopPropagation();
  333. const tooltip = event.currentTarget.querySelector('.tooltip');
  334. if (tooltip.classList.contains('visible')) {
  335. tooltip.classList.remove('visible');
  336. lastOpenedTooltip = null;
  337. } else {
  338. hideTooltips();
  339. tooltip.classList.add('visible');
  340. lastOpenedTooltip = tooltip;
  341. }
  342. }
  343. function hideTooltips() {
  344. if (lastOpenedTooltip) {
  345. lastOpenedTooltip.classList.remove('visible');
  346. lastOpenedTooltip = null;
  347. }
  348. }
  349. function toggleAllTables(action) {
  350. const contents = document.querySelectorAll('.collapsible-content');
  351. if (action === 'expand') {
  352. contents.forEach(content => content.classList.add('active'));
  353. } else if (action === 'collapse') {
  354. contents.forEach(content => content.classList.remove('active'));
  355. }
  356. }
  357. function ButtonIconsClick(button){
  358. button.addEventListener('click', function() {
  359. const iconContainer = button.querySelector('.icon-container');
  360. const initialIcon = iconContainer.querySelector('svg:first-child');
  361. const doneIcon = iconContainer.querySelector('svg:last-child');
  362. // Swap icon visibility
  363. initialIcon.style.display = 'none';
  364. doneIcon.style.display = 'block';
  365. // You can add any additional actions here, like:
  366. // - Disabling the button
  367. // - Changing the button's title
  368. // - Triggering other effects
  369. });
  370. }
  371. document.addEventListener("DOMContentLoaded", function() {
  372. let openDropdown = null; // Track the currently open dropdown
  373. const buttonGroups = document.querySelectorAll(".button-group");
  374. buttonGroups.forEach(buttonGroup => {
  375. const dropdown = buttonGroup.querySelector('.dropdown');
  376. const toggleButton = buttonGroup.querySelector('button:first-child'); // The "..." button
  377. toggleButton.addEventListener('click', function() {
  378. // Close any previously open dropdown
  379. if (openDropdown && openDropdown !== dropdown) {
  380. openDropdown.classList.remove('show');
  381. }
  382. dropdown.classList.toggle('show');
  383. openDropdown = dropdown.classList.contains('show') ? dropdown : null;
  384. const iconContainer = dropdown.querySelectorAll('.icon-container');
  385. iconContainer.forEach(element=>{
  386. const initialIcon = element.querySelector('svg:first-child');
  387. const doneIcon = element.querySelector('svg:last-child');
  388. // Swap icon visibility
  389. initialIcon.style.display = 'block';
  390. doneIcon.style.display = 'none';
  391. });
  392. });
  393. // Close the dropdown when clicking outside of it
  394. document.addEventListener('click', function(event) {
  395. if (!event.target.closest('.button-group')) {
  396. dropdown.classList.remove('show');
  397. openDropdown = null;
  398. }
  399. });
  400. buttonGroup.querySelectorAll('.button-group .dropdown .button').forEach(button => {
  401. ButtonIconsClick(button)
  402. });
  403. });
  404. document.addEventListener('keydown', function(event) {
  405. if ((event.ctrlKey && event.keyCode == 70) || (event.metaKey && event.keyCode == 70)) {
  406. toggleAllTables('expand');
  407. }
  408. });
  409. document.addEventListener('click', function(event) {
  410. if (!event.target.closest('.svg-icon') && !event.target.classList.contains('copy')) {
  411. hideTooltips();
  412. }
  413. });
  414. const svgIcons = document.querySelectorAll('.svg-icon');
  415. svgIcons.forEach(icon => {
  416. icon.addEventListener('click', toggleTooltip);
  417. });
  418. const copyButtons = document.querySelectorAll(".copy");
  419. copyButtons.forEach(button => {
  420. button.addEventListener('click', function(event) {
  421. event.preventDefault();
  422. copyTestNameToClipboard(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  423. });
  424. });
  425. const muteButtons = document.querySelectorAll(".mute");
  426. muteButtons.forEach(button => {
  427. button.addEventListener('click', function(event) {
  428. event.preventDefault();
  429. copyTestNameForMuteToClipboard(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  430. });
  431. });
  432. const historyButton = document.querySelectorAll(".open_history");
  433. historyButton.forEach(button => {
  434. button.addEventListener('click', function(event) {
  435. event.preventDefault();
  436. openHistory(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  437. });
  438. });
  439. const createIssueButton = document.querySelectorAll(".create_issue");
  440. createIssueButton.forEach(button => {
  441. button.addEventListener('click', function(event) {
  442. event.preventDefault();
  443. const success_count = findParentBySelector(event.target,'tr').querySelectorAll('.svg_passed').length
  444. const fail_count = findParentBySelector(event.target,'tr').querySelectorAll('.svg_failure').length + findParentBySelector(event.target,'tr').querySelectorAll('.svg_mute').length
  445. createIssue(
  446. findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText,
  447. findParentBySelector(event.target,'tr').querySelector('.test_owner').innerText,
  448. success_count,fail_count
  449. );
  450. });
  451. });
  452. const headers = document.querySelectorAll(".collapsible-header");
  453. headers.forEach(header => {
  454. header.addEventListener('click', function() {
  455. const content = this.nextElementSibling;
  456. if (content.classList.contains('active')) {
  457. content.classList.remove('active');
  458. } else {
  459. content.classList.add('active');
  460. }
  461. });
  462. });
  463. document.getElementById('expand-all').addEventListener('click', function(event) {
  464. toggleAllTables('expand');
  465. });
  466. document.getElementById('collapse-all').addEventListener('click', function(event) {
  467. toggleAllTables('collapse');
  468. });
  469. });
  470. </script>
  471. </head>
  472. <body>
  473. <div class="toggle-visibility-buttons">
  474. <button id="expand-all">Expand All</button>
  475. <button id="collapse-all">Collapse All</button>
  476. </div>
  477. {% for status in status_order %}
  478. <h1 id="{{ status.name}}" class="collapsible-header">{{ status.name }} ({{ tests[status] | length }})</h1>
  479. <table class="collapsible-content active" border="1">
  480. <thead>
  481. <tr>
  482. <th>test owner</th>
  483. <th>test name</th>
  484. {% if status.is_error and history%}
  485. <th>history<br>
  486. old->new
  487. </th>
  488. {% endif %}
  489. <th>elapsed</th>
  490. <th>status</th>
  491. {% if status in has_any_log %}
  492. <th>LOG</th>
  493. {% endif %}
  494. </tr>
  495. </thead>
  496. <tbody>
  497. {% for t in tests[status] %}
  498. <tr>
  499. <td class="test_owner">
  500. <a href="https://github.com/orgs/ydb-platform/teams/{{ t.owners.replace('TEAM:@ydb-platform/','')}}" target="_blank">{{ t.owners.replace('TEAM:@ydb-platform/','')}}</a>
  501. </td>
  502. {% if status.is_error %}
  503. <td class="test_name with_history">
  504. {% else %}
  505. <td class="test_name">
  506. {% endif %}
  507. <span>{{ t.full_name }}</span>
  508. {% if status.is_error %}
  509. <div class="button-group">
  510. <button class="button" title="Show options">
  511. <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">
  512. <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>
  513. </svg>
  514. </button>
  515. <div class="dropdown">
  516. <button class="button copy" title="Copy test filter to clipboard" >
  517. <div class="icon-container">
  518. <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">
  519. <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>
  520. </svg>
  521. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  522. <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"/>
  523. <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"/>
  524. </svg>
  525. </div>
  526. <span class="button-text">Copy run command</span>
  527. </button>
  528. {% if status.name == "FAIL" %}
  529. <button class="button mute" title="Copy mute string to clipboard" >
  530. <div class="icon-container">
  531. <svg class="mute_svg" xmlns="http://www.w3.org/2000/svg" width="32" height="14" position="left" stroke="none" viewBox="2 0 30 17">
  532. <!-- First icon: copied squares -->
  533. <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" />
  534. <!-- Second icon: microphone -->
  535. <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" />
  536. </svg>
  537. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  538. <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"/>
  539. <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"/>
  540. </svg>
  541. </div>
  542. <span class="button-text">Copy mute string</span>
  543. </button>
  544. <button class="button create_issue" title="Create issue">
  545. <div class="icon-container">
  546. <svg class="issue_svg" xmlns="http://www.w3.org/2000/svg" width="32" height="14" position="left" stroke="none" viewBox="2 0 30 17">
  547. <!-- First icon: plus -->
  548. <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" />
  549. <!-- Second icon: microphone -->
  550. <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" />
  551. </svg>
  552. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  553. <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"/>
  554. <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"/>
  555. </svg>
  556. </div>
  557. <span class="button-text">Create mute issue</span>
  558. </button>
  559. {% endif %}
  560. <button class="button open_history" title="Show history">
  561. <div class="icon-container">
  562. <svg class="show_history_svg" width="18" height="18" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  563. <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"/>
  564. <circle cx="32" cy="32" r="6" />
  565. <path d="M37 36L42 40" stroke-linecap="round" stroke-linejoin="round"/>
  566. <path d="M14 16H34" stroke-linecap="round" stroke-linejoin="round"/>
  567. <path d="M14 24L22 24" stroke-linecap="round" stroke-linejoin="round"/>
  568. </svg>
  569. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  570. <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"/>
  571. <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"/>
  572. </svg>
  573. </div>
  574. <span class="button-text">Open test history</span>
  575. </button>
  576. </div>
  577. </div>
  578. {% endif %}
  579. </td>
  580. {% if (status.is_error and t.full_name in history) %}
  581. <td>
  582. {% for h in history[t.full_name] %}
  583. <span class="svg-icon">
  584. {% if history[t.full_name][h].status == 'failure' %}
  585. <svg class="svg_failure" viewBox="0 0 16 16" >
  586. <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>
  587. </svg>
  588. {% elif history[t.full_name][h].status == 'passed' %}
  589. <svg class="svg_passed" viewBox="0 0 16 16" >
  590. <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>
  591. </svg>
  592. {% elif history[t.full_name][h].status == 'mute' %}
  593. <svg class="svg_mute" viewBox="0 0 17 16" >
  594. <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>
  595. </svg>
  596. {% endif %}
  597. <span class="tooltip">
  598. Status: {{history[t.full_name][h].status}}<br>
  599. Date: {{ history[t.full_name][h].datetime }}<br>
  600. {% if history[t.full_name][h].status_description != "" %}
  601. Info: {{ history[t.full_name][h].status_description.split(';')[0][0:100] }}<br>
  602. {% endif %}
  603. 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>
  604. </span>
  605. </span>
  606. {% endfor %}
  607. </td>
  608. {% elif (status.is_error and history) %}
  609. <td></td>
  610. {% elif status.is_error %}
  611. {% endif %}
  612. <td><span title="{{ t.elapsed }}s">{{ t.elapsed_display }}</span></td>
  613. <td>
  614. <span class="test_status test_{{ t.status_display }}">{{ t.status_display }}</span>
  615. </td>
  616. {% if status in has_any_log %}
  617. <td>
  618. {% if t.log_urls %}
  619. {% for log_name, log_url in t.log_urls.items() %}
  620. <a href="{{ log_url }}">{{ log_name }}</a>{% if not loop.last %} | {% endif %}
  621. {% endfor %}
  622. {% else %}
  623. &nbsp;
  624. {% endif %}
  625. </td>
  626. {% endif %}
  627. </tr>
  628. {% endfor %}
  629. </tbody>
  630. </table>
  631. {% endfor %}
  632. </body>
  633. </html>