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