summary.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  1. <html>
  2. <head>
  3. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism-themes/1.9.0/prism-vs.min.css">
  4. <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
  5. <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script>
  6. <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-c.min.js"></script>
  7. <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-cpp.min.js"></script>
  8. <style>
  9. body {
  10. font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
  11. margin: 0;
  12. padding: 0;
  13. box-sizing: border-box;
  14. width: 100%;
  15. }
  16. h1 {
  17. font-size: 20px;
  18. }
  19. th {
  20. text-transform: uppercase;
  21. }
  22. th, td {
  23. padding: 5px;
  24. word-break: break-word; /* Allow breaking long words */
  25. font-size: 14px;
  26. min-width: 80px;
  27. }
  28. td.test_name{
  29. min-width: 72.5vw;
  30. max-width: 72.5vw;
  31. }
  32. td.test_name.with_history{
  33. min-width: 62vw;
  34. max-width: 62vw;
  35. }
  36. table {
  37. border-collapse: collapse;
  38. width: 100%;
  39. left: 5;
  40. }
  41. span.test_status {
  42. font-weight: bold;
  43. }
  44. span.test_fail {
  45. color: red;
  46. }
  47. span.test_pass {
  48. color: green;
  49. }
  50. span.test_mute {
  51. color: blue;
  52. }
  53. .svg_passed {
  54. fill: green;
  55. }
  56. .svg_failure {
  57. fill: red;
  58. }
  59. .svg_skipped {
  60. fill: gray;
  61. }
  62. .svg_mute {
  63. fill: blue;
  64. }
  65. .svg-icon {
  66. float: left;
  67. width: 14px;
  68. height: 14px;
  69. padding-left: 1px;
  70. padding-right: 1px;
  71. margin-right: 0px;
  72. border-radius: 50%;
  73. position: relative; /* Essential for tooltips */
  74. cursor: pointer;
  75. }
  76. .button {
  77. display: inline-flex;
  78. align-items: center;
  79. justify-content: left;
  80. padding: 4px;
  81. border: none;
  82. background: none;
  83. cursor: pointer;
  84. position: relative;
  85. }
  86. .button svg {
  87. fill: #4b535c;
  88. fill-rule: evenodd;
  89. }
  90. .button svg:hover {
  91. fill: #0366d6;
  92. fill-rule: evenodd;
  93. }
  94. .button-group {
  95. display: inline-flex;
  96. float: right;
  97. align-items: center;
  98. position: relative; /* Added for positioning the dropdown */
  99. white-space: nowrap;
  100. }
  101. .button-group > button {
  102. margin-left: 5px;
  103. padding: 4px 8px;
  104. border: none;
  105. background: none;
  106. cursor: pointer;
  107. white-space: nowrap;
  108. }
  109. .button-group > button svg {
  110. fill: #4b535c;
  111. fill-rule: evenodd;
  112. }
  113. .button-group > button svg:hover {
  114. fill: #0366d6;
  115. fill-rule: evenodd;
  116. }
  117. .button-group .icon-container .show_history_svg {
  118. fill: #ffffff;
  119. stroke: #000;
  120. stroke-width: 2.5;
  121. fill-rule: evenodd;
  122. }
  123. .button-group .icon-container .show_history_svg:hover {
  124. stroke: #0366d6;
  125. }
  126. .button-group .button-text {
  127. color: #4b535c;
  128. }
  129. .button-group .button-text:hover {
  130. color: #0366d6;
  131. }
  132. .button-group .dropdown {
  133. display: none; /* Hide the dropdown by default */
  134. position: absolute;
  135. top: 100%;
  136. right: 0;
  137. background-color: white;
  138. border: 1px solid #ddd;
  139. border-radius: 4px;
  140. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  141. padding: 8px;
  142. z-index: 10; /* Ensure the dropdown is above other content */
  143. width: 160;
  144. }
  145. .button-group .dropdown.show {
  146. display: block; /* Show the dropdown when active */
  147. }
  148. .button-group .dropdown > button {
  149. display: table; /* Make each button in the dropdown take up full width */
  150. margin-bottom: 3px; /* Add spacing between dropdown buttons */
  151. }
  152. .button-group button .icon-container {
  153. display: inline-block; /* Align SVG with text */
  154. vertical-align: middle; /* Center SVG vertically */
  155. margin-right: 3px; /* Add spacing between SVG and text */
  156. }
  157. .button-group button .button-text {
  158. margin-left: 5px; /* Add spacing between icon and text */
  159. cursor: pointer; /* Make text clickable */
  160. }
  161. .button-group button::after { /* Target the "Copy" button specifically */
  162. position: absolute;
  163. top: 100%;
  164. left: 50%;
  165. transform: translateX(-50%);
  166. background-color: #7d7d92; /* Same as your tooltip background */
  167. color: white;
  168. padding: 2px 5px;
  169. border-radius: 3px;
  170. visibility: hidden; /* Hide by default */
  171. opacity: 0;
  172. transition: visibility 0.2s, opacity 0.2s;
  173. }
  174. .button-group button:hover::after {
  175. visibility: visible;
  176. opacity: 1;
  177. }
  178. .tooltip {
  179. visibility: hidden;
  180. max-width: 340px;
  181. min-width: 260px;
  182. word-break: break-word;
  183. background-color: #7d7d92;
  184. color: #fff;
  185. text-align: left;
  186. border-radius: 5px;
  187. padding: 5px;
  188. position: absolute;
  189. z-index: 3;
  190. bottom: 100%; /* Positioned above the svg icon */
  191. left: 50%; /* Center the tooltip */
  192. margin-left: -95px; /* Use negative margin to actually center the tooltip */
  193. opacity: 0;
  194. transition: opacity 0.3s;
  195. overflow: hidden;
  196. white-space: nowrap; /* Don't forget this one */
  197. text-overflow: ellipsis;
  198. }
  199. .tooltip::after {
  200. content: "";
  201. position: absolute;
  202. top: 100%; /* Arrow will be positioned at the bottom of the tooltip */
  203. left: 50%;
  204. margin-left: -5px;
  205. border-width: 5px;
  206. border-style: solid;
  207. border-color: #7d7d92 transparent transparent transparent; /* Arrow color */
  208. }
  209. .tooltip.visible {
  210. visibility: visible;
  211. opacity: 1;
  212. }
  213. table > tbody > tr > td:nth-child(2),
  214. table > tbody > tr > td:nth-child(3),
  215. table > tbody > tr > td:nth-child(4) {
  216. text-align: left;
  217. }
  218. .collapsible-content {
  219. display: table-row-group;
  220. position: absolute;
  221. top: -9999px;
  222. left: -9999px;
  223. height: 0;
  224. overflow: hidden;
  225. }
  226. .collapsible-content.active {
  227. position: relative;
  228. top: 0;
  229. left: 5;
  230. height: auto;
  231. }
  232. .collapsible-header {
  233. cursor: pointer;
  234. background-color: #f2f2f2;
  235. padding: 10px;
  236. border: 1px solid #ddd;
  237. margin-bottom: 5px;
  238. }
  239. .toggle-visibility-buttons {
  240. margin-bottom: 10px;
  241. overflow:hidden;
  242. float: right;
  243. }
  244. .error-button {
  245. border: none;
  246. cursor: pointer;
  247. background: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz48L3N2Zz4=") no-repeat 50% 50% / 1em 1em;
  248. width: 1em;
  249. height: 1em;
  250. content: "";
  251. transition: transform .5s;
  252. }
  253. pre>code[class*=language-] {
  254. font-size: x-small;
  255. }
  256. .console-frame {
  257. font-size: x-small;
  258. display: grid;
  259. border-radius: 4px;
  260. overscroll-behavior: none;
  261. background: #ddd;
  262. padding: 5px;
  263. color: #f1f2f3;
  264. overflow-y: auto;
  265. font-family: monospace;
  266. word-break: keep-all;
  267. font-size: x-small;
  268. }
  269. .console-frame::-webkit-scrollbar {
  270. width: 10px;
  271. }
  272. .console-frame::-webkit-scrollbar-track {
  273. background: #c5c6c8;
  274. }
  275. .console-frame::-webkit-scrollbar-thumb {
  276. background: #838485;
  277. border-radius: 4px;
  278. }
  279. pre[class*=language-] {
  280. padding: 1em;
  281. margin: 0;
  282. overflow: auto;
  283. }
  284. </style>
  285. <script>
  286. function findParentBySelector(elm, selector) {
  287. var all = document.querySelectorAll(selector);
  288. var cur = elm.parentNode;
  289. while(cur && !collectionHas(all, cur)) { //keep going up until you find a match
  290. cur = cur.parentNode; //go up
  291. }
  292. return cur; //will return null if not found
  293. }
  294. function collectionHas(a, b) { //helper function (see below)
  295. for(var i = 0, len = a.length; i < len; i ++) {
  296. if(a[i] == b) return true;
  297. }
  298. return false;
  299. }
  300. function copyTestNameToClipboard(text) {
  301. const full_name = text.trim();
  302. let pieces
  303. if (full_name.includes('.py.'))
  304. {
  305. pieces = /(.+)\/(.*py.*[^\/]+)$/.exec(full_name);
  306. } else
  307. {
  308. pieces = /(.+)\/([^$]+)$/.exec(full_name);
  309. }
  310. if (!pieces) {
  311. console.error("Unable to split path/test name from %o", full_name);
  312. return;
  313. }
  314. let [path, testName] = [pieces[1], pieces[2]];
  315. const namePieces = testName.split('.');
  316. if (namePieces.length === 2) {
  317. testName = namePieces[0] + '::' + namePieces[1];
  318. } else {
  319. testName = namePieces[0] + '.' + namePieces[1] + '::' + namePieces.slice(2).join('::');
  320. }
  321. const cmdArg = `./ya make -ttt {{ build_preset }} -F '${testName}' ${path}`;
  322. console.log(cmdArg);
  323. navigator.clipboard.writeText(cmdArg).then(
  324. () => {
  325. console.log("Copied!");
  326. showCopiedTooltip();
  327. },
  328. () => {
  329. console.error("Unable to copy %o to clipboard", cmdArg);
  330. }
  331. );
  332. }
  333. function copyTestNameForMuteToClipboard(text) {
  334. const full_name = text.trim();
  335. const pieces = /(.+)\/([^$]+)$/.exec(full_name);
  336. if (!pieces) {
  337. console.error("Unable to split path/test name from %o", full_name);
  338. return;
  339. }
  340. let [path, testName] = [pieces[1], pieces[2]];
  341. const cmdArg = `${path} ${testName}`;
  342. console.log(cmdArg);
  343. navigator.clipboard.writeText(cmdArg).then(
  344. () => {
  345. console.log("Copied!");
  346. showCopiedTooltip();
  347. },
  348. () => {
  349. console.error("Unable to copy %o to clipboard", cmdArg);
  350. }
  351. );
  352. }
  353. function createIssue(test,owner,success_count, fail_count) {
  354. const full_name = test.trim();
  355. const pieces = /(.+)\/([^$]+)$/.exec(full_name);
  356. if (!pieces) {
  357. console.error("Unable to split path/test name from %o", full_name);
  358. return;
  359. }
  360. let [path, testName] = [pieces[1], pieces[2]];
  361. if (success_count + fail_count != 0){
  362. 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"
  363. window.open(url, '_blank');
  364. }
  365. else {
  366. 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"
  367. window.open(url, '_blank');
  368. }
  369. }
  370. function openHistory(test) {
  371. const full_name = test.trim();
  372. let url = "https://datalens.yandex/34xnbsom67hcq?full_name="+full_name
  373. window.open(url, '_blank');
  374. }
  375. let lastOpenedTooltip = null;
  376. function toggleTooltip(event) {
  377. event.stopPropagation();
  378. const tooltip = event.currentTarget.querySelector('.tooltip');
  379. if (tooltip.classList.contains('visible')) {
  380. tooltip.classList.remove('visible');
  381. lastOpenedTooltip = null;
  382. } else {
  383. hideTooltips();
  384. tooltip.classList.add('visible');
  385. lastOpenedTooltip = tooltip;
  386. }
  387. }
  388. function hideTooltips() {
  389. if (lastOpenedTooltip) {
  390. lastOpenedTooltip.classList.remove('visible');
  391. lastOpenedTooltip = null;
  392. }
  393. }
  394. function toggleAllTables(action) {
  395. const contents = document.querySelectorAll('.collapsible-content');
  396. if (action === 'expand') {
  397. contents.forEach(content => content.classList.add('active'));
  398. } else if (action === 'collapse') {
  399. contents.forEach(content => content.classList.remove('active'));
  400. }
  401. }
  402. function ButtonIconsClick(button){
  403. button.addEventListener('click', function() {
  404. const iconContainer = button.querySelector('.icon-container');
  405. const initialIcon = iconContainer.querySelector('svg:first-child');
  406. const doneIcon = iconContainer.querySelector('svg:last-child');
  407. // Swap icon visibility
  408. initialIcon.style.display = 'none';
  409. doneIcon.style.display = 'block';
  410. // You can add any additional actions here, like:
  411. // - Disabling the button
  412. // - Changing the button's title
  413. // - Triggering other effects
  414. });
  415. }
  416. document.addEventListener("DOMContentLoaded", function() {
  417. let openDropdown = null; // Track the currently open dropdown
  418. const buttonGroups = document.querySelectorAll(".button-group");
  419. buttonGroups.forEach(buttonGroup => {
  420. const dropdown = buttonGroup.querySelector('.dropdown');
  421. const toggleButton = buttonGroup.querySelector('button:first-child'); // The "..." button
  422. toggleButton.addEventListener('click', function() {
  423. // Close any previously open dropdown
  424. if (openDropdown && openDropdown !== dropdown) {
  425. openDropdown.classList.remove('show');
  426. }
  427. dropdown.classList.toggle('show');
  428. openDropdown = dropdown.classList.contains('show') ? dropdown : null;
  429. const iconContainer = dropdown.querySelectorAll('.icon-container');
  430. iconContainer.forEach(element=>{
  431. const initialIcon = element.querySelector('svg:first-child');
  432. const doneIcon = element.querySelector('svg:last-child');
  433. // Swap icon visibility
  434. initialIcon.style.display = 'block';
  435. doneIcon.style.display = 'none';
  436. });
  437. });
  438. // Close the dropdown when clicking outside of it
  439. document.addEventListener('click', function(event) {
  440. if (!event.target.closest('.button-group')) {
  441. dropdown.classList.remove('show');
  442. openDropdown = null;
  443. }
  444. });
  445. buttonGroup.querySelectorAll('.button-group .dropdown .button').forEach(button => {
  446. ButtonIconsClick(button)
  447. });
  448. });
  449. document.addEventListener('keydown', function(event) {
  450. if ((event.ctrlKey && event.keyCode == 70) || (event.metaKey && event.keyCode == 70)) {
  451. toggleAllTables('expand');
  452. }
  453. });
  454. document.addEventListener('click', function(event) {
  455. if (!event.target.closest('.svg-icon') && !event.target.classList.contains('copy')) {
  456. hideTooltips();
  457. }
  458. });
  459. const svgIcons = document.querySelectorAll('.svg-icon');
  460. svgIcons.forEach(icon => {
  461. icon.addEventListener('click', toggleTooltip);
  462. });
  463. const copyButtons = document.querySelectorAll(".copy");
  464. copyButtons.forEach(button => {
  465. button.addEventListener('click', function(event) {
  466. event.preventDefault();
  467. copyTestNameToClipboard(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  468. });
  469. });
  470. const muteButtons = document.querySelectorAll(".mute");
  471. muteButtons.forEach(button => {
  472. button.addEventListener('click', function(event) {
  473. event.preventDefault();
  474. copyTestNameForMuteToClipboard(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  475. });
  476. });
  477. const historyButton = document.querySelectorAll(".open_history");
  478. historyButton.forEach(button => {
  479. button.addEventListener('click', function(event) {
  480. event.preventDefault();
  481. openHistory(findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText);
  482. });
  483. });
  484. const createIssueButton = document.querySelectorAll(".create_issue");
  485. createIssueButton.forEach(button => {
  486. button.addEventListener('click', function(event) {
  487. event.preventDefault();
  488. const success_count = findParentBySelector(event.target,'tr').querySelectorAll('.svg_passed').length
  489. const fail_count = findParentBySelector(event.target,'tr').querySelectorAll('.svg_failure').length + findParentBySelector(event.target,'tr').querySelectorAll('.svg_mute').length
  490. createIssue(
  491. findParentBySelector(event.target,'tr').querySelector('.test_name').querySelector('span').innerText,
  492. findParentBySelector(event.target,'tr').querySelector('.test_owner').innerText,
  493. success_count,fail_count
  494. );
  495. });
  496. });
  497. const headers = document.querySelectorAll(".collapsible-header");
  498. headers.forEach(header => {
  499. header.addEventListener('click', function() {
  500. const content = this.nextElementSibling;
  501. if (content.classList.contains('active')) {
  502. content.classList.remove('active');
  503. } else {
  504. content.classList.add('active');
  505. }
  506. });
  507. });
  508. document.getElementById('expand-all').addEventListener('click', function(event) {
  509. toggleAllTables('expand');
  510. });
  511. document.getElementById('collapse-all').addEventListener('click', function(event) {
  512. toggleAllTables('collapse');
  513. });
  514. });
  515. function toggleError(button) {
  516. const errorContent = button.nextElementSibling;
  517. const consoleFrame = errorContent.querySelector('.console-frame');
  518. if (errorContent.style.display === 'none') {
  519. errorContent.style.display = 'block';
  520. consoleFrame.style.display = 'block';
  521. button.style.transform = "rotate(90deg)"
  522. } else {
  523. errorContent.style.display = 'none';
  524. consoleFrame.style.display = 'none';
  525. button.style.transform = "rotate(0deg)"
  526. }
  527. }
  528. </script>
  529. </head>
  530. <body>
  531. <div class="toggle-visibility-buttons">
  532. <button id="expand-all">Expand All</button>
  533. <button id="collapse-all">Collapse All</button>
  534. </div>
  535. {% for status in status_order %}
  536. <h1 id="{{ status.name}}" class="collapsible-header">{{ status.name }} ({{ tests[status] | length }})</h1>
  537. <table class="collapsible-content active" border="1">
  538. <thead>
  539. <tr>
  540. <th>test owner</th>
  541. <th>test name</th>
  542. {% if status.is_error and history%}
  543. <th>history<br>
  544. old->new
  545. </th>
  546. {% endif %}
  547. <th>elapsed</th>
  548. <th>status</th>
  549. {% if status in has_any_log %}
  550. <th>LOG</th>
  551. {% endif %}
  552. </tr>
  553. </thead>
  554. <tbody>
  555. {% for t in tests[status] %}
  556. <tr>
  557. <td class="test_owner">
  558. <a href="https://github.com/orgs/ydb-platform/teams/{{ t.owners.replace('TEAM:@ydb-platform/','')}}" target="_blank">{{ t.owners.replace('TEAM:@ydb-platform/','')}}</a>
  559. </td>
  560. {% if status.is_error %}
  561. <td class="test_name with_history">
  562. {% else %}
  563. <td class="test_name">
  564. {% endif %}
  565. <span>{{ t.full_name }}</span>
  566. {% if status.is_error %}
  567. <div class="button-group">
  568. <button class="button" title="Show options">
  569. <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">
  570. <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>
  571. </svg>
  572. </button>
  573. <div class="dropdown">
  574. <button class="button copy" title="Copy test filter to clipboard" >
  575. <div class="icon-container">
  576. <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">
  577. <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>
  578. </svg>
  579. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  580. <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"/>
  581. <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"/>
  582. </svg>
  583. </div>
  584. <span class="button-text">Copy run command</span>
  585. </button>
  586. {% if status.name == "FAIL" %}
  587. <button class="button mute" title="Copy mute string to clipboard" >
  588. <div class="icon-container">
  589. <svg class="mute_svg" xmlns="http://www.w3.org/2000/svg" width="32" height="14" position="left" stroke="none" viewBox="2 0 30 17">
  590. <!-- First icon: copied squares -->
  591. <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" />
  592. <!-- Second icon: microphone -->
  593. <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" />
  594. </svg>
  595. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  596. <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"/>
  597. <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"/>
  598. </svg>
  599. </div>
  600. <span class="button-text">Copy mute string</span>
  601. </button>
  602. <button class="button create_issue" title="Create issue">
  603. <div class="icon-container">
  604. <svg class="issue_svg" xmlns="http://www.w3.org/2000/svg" width="32" height="14" position="left" stroke="none" viewBox="2 0 30 17">
  605. <!-- First icon: plus -->
  606. <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" />
  607. <!-- Second icon: microphone -->
  608. <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" />
  609. </svg>
  610. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  611. <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"/>
  612. <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"/>
  613. </svg>
  614. </div>
  615. <span class="button-text">Create mute issue</span>
  616. </button>
  617. {% endif %}
  618. <button class="button open_history" title="Show history">
  619. <div class="icon-container">
  620. <svg class="show_history_svg" width="18" height="18" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
  621. <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"/>
  622. <circle cx="32" cy="32" r="6" />
  623. <path d="M37 36L42 40" stroke-linecap="round" stroke-linejoin="round"/>
  624. <path d="M14 16H34" stroke-linecap="round" stroke-linejoin="round"/>
  625. <path d="M14 24L22 24" stroke-linecap="round" stroke-linejoin="round"/>
  626. </svg>
  627. <svg class="done-icon" width="16" height="16" viewBox="0 0 26 26" fill="green" display="none">
  628. <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"/>
  629. <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"/>
  630. </svg>
  631. </div>
  632. <span class="button-text">Open test history</span>
  633. </button>
  634. </div>
  635. </div>
  636. {% endif %}
  637. {% if t.status_description %}
  638. <button class="error-button" onclick="toggleError(this)"></button>
  639. <div style="display: none;" class="error-content">
  640. <div class="console-frame" style="display: none;">
  641. <pre><code class="language-{{ 'python' if '.py' in t.full_name else 'cpp'}}">{{ t.status_description | default("Status description missed") }}</code></pre>
  642. </div>
  643. </div>
  644. {% endif %}
  645. </td>
  646. {% if (status.is_error and t.full_name in history) %}
  647. <td>
  648. {% for h in history[t.full_name] %}
  649. <span class="svg-icon">
  650. {% if history[t.full_name][h].status == 'failure' %}
  651. <svg class="svg_failure" viewBox="0 0 16 16" >
  652. <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>
  653. </svg>
  654. {% elif history[t.full_name][h].status == 'passed' %}
  655. <svg class="svg_passed" viewBox="0 0 16 16" >
  656. <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>
  657. </svg>
  658. {% elif history[t.full_name][h].status == 'mute' %}
  659. <svg class="svg_mute" viewBox="0 0 17 16" >
  660. <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>
  661. </svg>
  662. {% endif %}
  663. <span class="tooltip">
  664. Status: {{history[t.full_name][h].status}}<br>
  665. Date: {{ history[t.full_name][h].datetime }}<br>
  666. {% if history[t.full_name][h].status_description != "" %}
  667. Info: {{ history[t.full_name][h].status_description.split(';')[0][0:100] }}<br>
  668. {% endif %}
  669. 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>
  670. </span>
  671. </span>
  672. {% endfor %}
  673. </td>
  674. {% elif (status.is_error and history) %}
  675. <td></td>
  676. {% elif status.is_error %}
  677. {% endif %}
  678. <td><span title="{{ t.elapsed }}s">{{ t.elapsed_display }}</span></td>
  679. <td>
  680. <span class="test_status test_{{ t.status_display }}">{{ t.status_display }}</span>
  681. </td>
  682. {% if status in has_any_log %}
  683. <td>
  684. {% if t.log_urls %}
  685. {% for log_name, log_url in t.log_urls.items() %}
  686. <a href="{{ log_url }}">{{ log_name }}</a>{% if not loop.last %} | {% endif %}
  687. {% endfor %}
  688. {% else %}
  689. &nbsp;
  690. {% endif %}
  691. </td>
  692. {% endif %}
  693. </tr>
  694. {% endfor %}
  695. </tbody>
  696. </table>
  697. {% endfor %}
  698. </body>
  699. </html>