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
|
"""Orchestration: enter / cleanup / sync for manual fast-unmute."""
import datetime
import logging
import os
from collections import defaultdict
from github_issue_utils import (
DEFAULT_BUILD_TYPE,
)
from mute.constants import (
get_manual_unmute_issue_closed_lookback_days,
get_manual_unmute_min_runs,
get_manual_unmute_ttl_calendar_days,
get_manual_unmute_window_days,
get_mute_window_days,
)
from mute.fast_unmute_comments import (
COMMENT_ABANDON_NOT_COMPLETED,
COMMENT_ENTER,
COMMENT_PROGRESS,
COMMENT_SUCCESS,
COMMENT_TTL_INCOMPLETE,
format_bullet_list,
)
from mute.fast_unmute_github import (
PROJECT_ID,
PROJECT_STATUS_ON_FAST_UNMUTE_FAIL,
PROJECT_STATUS_ON_FAST_UNMUTE_REOPEN,
PROJECT_STATUS_ON_FAST_UNMUTE_SUCCESS,
add_label_to_issue,
fetch_issue_closers,
fetch_issue_label_names,
fetch_issue_numbers_in_manual_unmute_project,
fetch_issue_project_statuses,
fetch_issue_states,
remove_label_from_issue,
reopen_issue,
set_manual_unmute_project_board_status,
)
from mute.fast_unmute_ydb import (
_coerce_dt,
count_rows_per_issue,
create_fast_unmute_grace_table,
create_manual_unmute_table,
delete_grace_row,
delete_row,
expire_fast_unmute_grace,
fetch_all_rows,
fetch_candidate_issues,
fetch_currently_muted,
upsert_fast_unmute_grace_row,
upsert_rows,
)
from mute.update_mute_issues import (
add_issue_comment,
MANUAL_FAST_UNMUTE_FINISHED_GITHUB_LABEL,
MANUAL_FAST_UNMUTE_GITHUB_LABEL,
parse_body,
)
# GitHub ``__typename`` is ``User`` for PAT-based bot accounts; skip known bot logins (M2).
BOT_LOGINS = frozenset({'ydbot', 'github-actions'})
_LOG = logging.getLogger('manual_unmute')
def issue_eligible_for_manual_fast_unmute_entry(state, state_reason):
"""Gate for manual fast-unmute: issue must be CLOSED as COMPLETED."""
return (state or '').strip().upper() == 'CLOSED' and (state_reason or '').strip().upper() == 'COMPLETED'
def grace_ttl_calendar_days(mute_window_days, manual_unmute_window_days):
"""Calendar days a ``fast_unmute_grace`` row is kept (same rule as ``expire_fast_unmute_grace``).
Stored on insert so dashboards and TTL stay interpretable even if ``mute_config.json`` changes later.
"""
return max(1, int(mute_window_days) - int(manual_unmute_window_days))
def load_config():
"""Fast-track window/min-runs — same keys as ``mute.constants`` / ``mute_config.json``."""
return {
'window_days': get_manual_unmute_window_days(),
'min_runs': get_manual_unmute_min_runs(),
}
def _delete_fast_unmute_row_and_grace(
ydb_wrapper, table_path, grace_table_path, full_name, branch, build_type, *, log_prefix
):
"""Remove one ``fast_unmute_active`` row and best-effort matching ``fast_unmute_grace`` row."""
delete_row(ydb_wrapper, table_path, full_name, branch, build_type)
if not grace_table_path:
return
try:
delete_grace_row(ydb_wrapper, grace_table_path, full_name, branch, build_type)
except Exception as exc:
logging.warning(
'%s: grace delete %s %s %s: %s',
log_prefix,
full_name,
branch,
build_type,
exc,
)
def abandon_fast_unmute_if_issue_not_completed(ydb_wrapper, table_path, grace_table_path):
"""Drop fast-unmute rows when the issue is no longer CLOSED+COMPLETED on GitHub (e.g. reopened).
Clears ``fast_unmute_active`` (and matching ``fast_unmute_grace`` rows when configured),
removes the label, sets project Status → Muted, and posts ``COMMENT_ABANDON_NOT_COMPLETED``.
"""
rows = fetch_all_rows(ydb_wrapper, table_path)
if not rows:
return
by_issue = defaultdict(list)
for row in rows:
inn = row.get('github_issue_number')
if inn is None:
continue
by_issue[int(inn)].append(row)
if not by_issue:
return
states = fetch_issue_states(list(by_issue.keys()))
run_url = workflow_run_url()
abandoned = 0
rows_deleted = 0
for issue_number in sorted(by_issue.keys()):
meta = states.get(issue_number) or {}
issue_id = meta.get('id')
state = meta.get('state') or ''
state_reason = meta.get('state_reason') or ''
if issue_eligible_for_manual_fast_unmute_entry(state, state_reason):
continue
if not issue_id:
logging.warning(
'manual_unmute_abandon: issue #%s has fast-unmute rows but no GitHub node id; skip',
issue_number,
)
continue
for row in by_issue[issue_number]:
fn, br, bt = row.get('full_name'), row.get('branch'), row.get('build_type')
if not fn or not br or not bt:
continue
_delete_fast_unmute_row_and_grace(
ydb_wrapper, table_path, grace_table_path, fn, br, bt, log_prefix='manual_unmute_abandon'
)
rows_deleted += 1
remove_label_from_issue(issue_id, MANUAL_FAST_UNMUTE_GITHUB_LABEL)
set_manual_unmute_project_board_status(issue_id, PROJECT_STATUS_ON_FAST_UNMUTE_FAIL)
add_issue_comment(
issue_id,
COMMENT_ABANDON_NOT_COMPLETED.format(workflow_run_url=run_url),
)
abandoned += 1
if abandoned:
logging.info(
'manual_unmute_abandon: cleared %d issue(s), %d fast_unmute row(s) (issue not CLOSED+COMPLETED)',
abandoned,
rows_deleted,
)
def workflow_run_url():
server = os.environ.get('GITHUB_SERVER_URL', 'https://github.com')
repo = os.environ.get('GITHUB_REPOSITORY', '')
run_id = os.environ.get('GITHUB_RUN_ID', '')
if repo and run_id:
return f"{server}/{repo}/actions/runs/{run_id}"
return 'N/A'
def enter_manual_unmute(ydb_wrapper, table_path, issues_table_path, tests_monitor_path, window_days, min_runs):
"""Discover newly-closed-by-human issues and register their still-muted tests."""
existing = {
(r['full_name'], r['branch'], r['build_type']): r
for r in fetch_all_rows(ydb_wrapper, table_path)
if r.get('full_name') and r.get('branch') and r.get('build_type')
}
raw_candidates = fetch_candidate_issues(
ydb_wrapper, issues_table_path, get_manual_unmute_issue_closed_lookback_days()
)
candidates = list(
{int(c['issue_number']): c for c in raw_candidates if c.get('issue_number') is not None}.values()
)
if not candidates:
logging.info('manual_unmute_enter: no CLOSED+COMPLETED candidates in lookback window')
return
issue_numbers = {int(c['issue_number']) for c in candidates if c.get('issue_number') is not None}
in_project_issue_numbers = fetch_issue_numbers_in_manual_unmute_project(issue_numbers)
closers = fetch_issue_closers(in_project_issue_numbers)
labels_by_issue = fetch_issue_label_names(in_project_issue_numbers)
muted_cache = {}
now = datetime.datetime.now(tz=datetime.timezone.utc)
run_url = workflow_run_url()
new_rows = []
for issue in candidates:
issue_number_raw = issue.get('issue_number')
issue_id = issue.get('issue_id')
if issue_number_raw is None or not issue_id:
_LOG.debug(
'enter: skip candidate without issue_number/issue_id: number=%r id=%r',
issue_number_raw,
issue_id,
)
continue
issue_number = int(issue_number_raw)
if issue_number not in in_project_issue_numbers:
_LOG.debug(
'enter: skip #%s: issue is not in project %s',
issue_number,
PROJECT_ID,
)
continue
closer = closers.get(issue_number) or {}
if closer.get('type') != 'User':
_LOG.debug(
'enter: skip #%s: closer is not User (login=%r type=%r)',
issue_number,
closer.get('login'),
closer.get('type'),
)
continue
login = (closer.get('login') or '').lower()
if login in BOT_LOGINS:
_LOG.debug(
'enter: skip #%s: closer login %r is bot-denylisted',
issue_number,
login,
)
continue
labels = labels_by_issue.get(issue_number) or set()
if MANUAL_FAST_UNMUTE_FINISHED_GITHUB_LABEL in labels:
_LOG.debug(
'enter: skip #%s: already has label %r',
issue_number,
MANUAL_FAST_UNMUTE_FINISHED_GITHUB_LABEL,
)
continue
parsed = parse_body(issue.get('body') or '')
tests = parsed.tests
branches = parsed.branches or ['main']
build_type = parsed.build_type or DEFAULT_BUILD_TYPE
if not tests:
_LOG.debug('enter: skip #%s: no tests parsed from issue body', issue_number)
continue
issue_rows = []
for full_name in tests:
for branch in branches:
cache_key = (branch, build_type)
if cache_key not in muted_cache:
muted_cache[cache_key] = fetch_currently_muted(
ydb_wrapper, tests_monitor_path, branch, build_type
)
if full_name not in muted_cache[cache_key]:
_LOG.debug(
'enter: skip #%s test %r: not currently muted on branch=%r build_type=%r',
issue_number,
full_name,
branch,
build_type,
)
continue
row_key = (full_name, branch, build_type)
if row_key in existing:
_LOG.debug(
'enter: skip #%s test %r: row already in fast_unmute_active %s',
issue_number,
full_name,
row_key,
)
continue
issue_rows.append({
'full_name': full_name,
'branch': branch,
'build_type': build_type,
'github_issue_number': issue_number,
'requested_at': now,
'window_days': window_days,
})
if not issue_rows:
_LOG.debug(
'enter: skip #%s: zero rows after filtering (parsed tests=%s branches=%s build_type=%s)',
issue_number,
sorted(tests),
branches,
build_type,
)
continue
upsert_rows(ydb_wrapper, table_path, issue_rows)
set_manual_unmute_project_board_status(issue_id, PROJECT_STATUS_ON_FAST_UNMUTE_REOPEN)
raw_login = (closer.get('login') or '').strip()
closer_mention_line = f'@{raw_login}\n\n' if raw_login else ''
add_issue_comment(
issue_id,
COMMENT_ENTER.format(
closer_mention_line=closer_mention_line,
closer_login=raw_login or 'unknown',
window_days=window_days,
min_runs=min_runs,
tests_bullet_list=format_bullet_list(r['full_name'] for r in issue_rows),
workflow_run_url=run_url,
),
)
add_label_to_issue(issue_id, MANUAL_FAST_UNMUTE_GITHUB_LABEL)
new_rows.extend(issue_rows)
for row in issue_rows:
existing[(row['full_name'], row['branch'], row['build_type'])] = row
logging.info(
'manual_unmute_enter: inserted %d row(s) from %d candidate issue(s)',
len(new_rows),
len(candidates),
)
def cleanup_manual_unmute(ydb_wrapper, table_path, tests_monitor_path):
"""Drop rows: unmuted in CI, or whole issue on TTL miss."""
rows = fetch_all_rows(ydb_wrapper, table_path)
if not rows:
return
now = datetime.datetime.now(tz=datetime.timezone.utc)
run_url = workflow_run_url()
ttl_days = get_manual_unmute_ttl_calendar_days()
ttl_delta = datetime.timedelta(days=ttl_days)
grouped = {}
for row in rows:
key = (row.get('branch'), row.get('build_type'))
if not key[0] or not key[1]:
continue
grouped.setdefault(key, []).append(row)
affected_issues = set()
issues_cleared_via_unmute = set()
unmuted_tests_by_issue = defaultdict(list)
delete_count = 0
grace_table_path = None
try:
grace_table_path = ydb_wrapper.get_table_path('fast_unmute_grace')
create_fast_unmute_grace_table(ydb_wrapper, grace_table_path)
except KeyError:
pass
grace_ttl_snapshot = grace_ttl_calendar_days(
get_mute_window_days(), get_manual_unmute_window_days()
)
issues_ttl_shutdown = set()
ttl_stuck_tests_by_issue = defaultdict(list)
for (branch, build_type), group_rows in grouped.items():
currently_muted = fetch_currently_muted(ydb_wrapper, tests_monitor_path, branch, build_type)
for row in group_rows:
full_name = row.get('full_name')
if not full_name:
continue
requested_at = _coerce_dt(row.get('requested_at'))
issue_number = row.get('github_issue_number')
if full_name not in currently_muted:
if grace_table_path:
try:
ft_at = requested_at or now
upsert_fast_unmute_grace_row(
ydb_wrapper,
grace_table_path,
full_name,
branch,
build_type,
int(issue_number or 0),
ft_at,
now,
grace_ttl_snapshot,
)
except Exception as exc:
logging.warning('Failed to record fast-unmute grace for %s: %s', full_name, exc)
delete_row(ydb_wrapper, table_path, full_name, branch, build_type)
delete_count += 1
if issue_number:
inum = int(issue_number)
affected_issues.add(inum)
issues_cleared_via_unmute.add(inum)
unmuted_tests_by_issue[inum].append(full_name)
logging.info('manual_unmute_cleanup: %s (already unmuted)', full_name)
continue
if requested_at and (now - requested_at) > ttl_delta:
if issue_number:
inum = int(issue_number)
issues_ttl_shutdown.add(inum)
ttl_stuck_tests_by_issue[inum].append(full_name)
affected_issues.add(inum)
logging.info(
'manual_unmute_cleanup: %s (ttl %s calendar days exceeded, still muted)',
full_name,
ttl_days,
)
continue
ttl_bulk_removed_by_issue = defaultdict(set)
if issues_ttl_shutdown:
for row in fetch_all_rows(ydb_wrapper, table_path):
inn = row.get('github_issue_number')
if inn is None or int(inn) not in issues_ttl_shutdown:
continue
fn, br, bt = row.get('full_name'), row.get('branch'), row.get('build_type')
if not fn or not br or not bt:
continue
delete_row(ydb_wrapper, table_path, fn, br, bt)
delete_count += 1
ttl_bulk_removed_by_issue[int(inn)].add(fn)
logging.info('manual_unmute_cleanup: %s (bulk clear issue #%s after ttl)', fn, int(inn))
if affected_issues:
remaining = count_rows_per_issue(ydb_wrapper, table_path, affected_issues)
issues_to_delabel = {num for num in affected_issues if remaining.get(num, 0) == 0}
issue_ids = {
issue_number: data['id']
for issue_number, data in fetch_issue_states(affected_issues).items()
}
for issue_number in sorted(issues_ttl_shutdown):
issue_id = issue_ids.get(issue_number)
if not issue_id:
logging.warning(
'manual_unmute: ttl shutdown for issue #%s: YDB cleared but no GitHub node id',
issue_number,
)
continue
stuck = sorted(set(ttl_stuck_tests_by_issue.get(issue_number, [])))
graduated = sorted(set(unmuted_tests_by_issue.get(issue_number, [])))
bulk_all = sorted(ttl_bulk_removed_by_issue.get(issue_number, set()))
cleared_other = sorted(set(bulk_all) - set(stuck))
reopen_issue(issue_id)
add_issue_comment(
issue_id,
COMMENT_TTL_INCOMPLETE.format(
ttl_days=ttl_days,
graduated_bullets=format_bullet_list(graduated)
if graduated
else '- _(none)_',
stuck_bullets=format_bullet_list(stuck) if stuck else '- _(none)_',
cleared_other_bullets=format_bullet_list(cleared_other)
if cleared_other
else '- _(none)_',
workflow_run_url=run_url,
),
)
set_manual_unmute_project_board_status(
issue_id, PROJECT_STATUS_ON_FAST_UNMUTE_FAIL
)
for issue_number in sorted(issues_cleared_via_unmute):
if remaining.get(issue_number, 0) == 0:
continue
if issue_number in issues_ttl_shutdown:
continue
issue_id = issue_ids.get(issue_number)
if not issue_id:
continue
names = sorted(set(unmuted_tests_by_issue.get(issue_number, [])))
if not names:
continue
add_issue_comment(
issue_id,
COMMENT_PROGRESS.format(
unmuted_bullets=format_bullet_list(names),
workflow_run_url=run_url,
),
)
success_comment_issues = (
(issues_to_delabel & issues_cleared_via_unmute) - issues_ttl_shutdown
)
for issue_number in sorted(success_comment_issues):
issue_id = issue_ids.get(issue_number)
if not issue_id:
continue
add_issue_comment(
issue_id,
COMMENT_SUCCESS.format(workflow_run_url=run_url),
)
set_manual_unmute_project_board_status(
issue_id, PROJECT_STATUS_ON_FAST_UNMUTE_SUCCESS
)
remove_label_from_issue(issue_id, MANUAL_FAST_UNMUTE_GITHUB_LABEL)
add_label_to_issue(issue_id, MANUAL_FAST_UNMUTE_FINISHED_GITHUB_LABEL)
# Success-branch issues already had the label removed above; skip them
# to avoid an extra round-trip to GitHub.
for issue_number in issues_to_delabel - success_comment_issues:
issue_id = issue_ids.get(issue_number)
if issue_id:
remove_label_from_issue(issue_id, MANUAL_FAST_UNMUTE_GITHUB_LABEL)
logging.info('manual_unmute_cleanup: removed %d row(s)', delete_count)
# Project statuses from which the reconciler is allowed to flip to ``Unmuted``.
# Anything else (e.g. ``Muted`` set by abandon/TTL-fail, or a state a human picked
# intentionally) is left alone to avoid clobbering meaningful state.
_RECONCILE_STATUS_ALLOWED_FROM = frozenset(
s.lower() for s in (PROJECT_STATUS_ON_FAST_UNMUTE_REOPEN, '')
)
def reconcile_manual_fast_unmute_labels(ydb_wrapper, table_path, issues_table_path):
"""Repair label/status for finished manual fast-unmute issues.
For issues that:
- are in the lookback YDB candidate set (CLOSED+COMPLETED there), and
- are still CLOSED+COMPLETED on GitHub (live re-check — YDB export can lag), and
- no longer have rows in ``fast_unmute_active``, and
- already participate in manual fast-unmute label flow
(have either ``manual-fast-unmute`` or ``fast-unmute-finished``):
we
- remove stale ``manual-fast-unmute`` label,
- ensure ``fast-unmute-finished`` label is present,
- flip project Status to ``Unmuted`` (only from ``Observation`` / empty, and
only for issues already on the manual-unmute project board — we never add
cards from here and never override ``Muted``).
"""
raw_candidates = fetch_candidate_issues(
ydb_wrapper, issues_table_path, get_manual_unmute_issue_closed_lookback_days()
)
issue_meta = {
int(c['issue_number']): c.get('issue_id')
for c in raw_candidates
if c.get('issue_number') is not None and c.get('issue_id')
}
if not issue_meta:
return
issue_numbers = set(issue_meta.keys())
remaining = count_rows_per_issue(ydb_wrapper, table_path, issue_numbers)
zero_row_issues = {n for n in issue_numbers if remaining.get(n, 0) == 0}
if not zero_row_issues:
return
live_states = fetch_issue_states(zero_row_issues)
eligible_issues = {
n for n in zero_row_issues
if issue_eligible_for_manual_fast_unmute_entry(
(live_states.get(n) or {}).get('state'),
(live_states.get(n) or {}).get('state_reason'),
)
}
if not eligible_issues:
return
live_status_by_issue = fetch_issue_project_statuses(eligible_issues)
labels_by_issue = fetch_issue_label_names(eligible_issues)
label_ops = 0
status_flips = 0
for issue_number in sorted(eligible_issues):
labels = labels_by_issue.get(issue_number) or set()
has_manual = MANUAL_FAST_UNMUTE_GITHUB_LABEL in labels
has_finished = MANUAL_FAST_UNMUTE_FINISHED_GITHUB_LABEL in labels
if not (has_manual or has_finished):
continue
issue_id = (live_states.get(issue_number) or {}).get('id') or issue_meta.get(issue_number)
if not issue_id:
continue
# Only touch project status for issues that already have a card; never
# implicitly add cards from the reconciler.
if issue_number in live_status_by_issue:
project_status = str(live_status_by_issue[issue_number] or '').strip().lower()
if (
project_status != PROJECT_STATUS_ON_FAST_UNMUTE_SUCCESS.lower()
and project_status in _RECONCILE_STATUS_ALLOWED_FROM
):
set_manual_unmute_project_board_status(
issue_id, PROJECT_STATUS_ON_FAST_UNMUTE_SUCCESS
)
status_flips += 1
if has_manual:
if remove_label_from_issue(issue_id, MANUAL_FAST_UNMUTE_GITHUB_LABEL):
label_ops += 1
if not has_finished:
if add_label_to_issue(issue_id, MANUAL_FAST_UNMUTE_FINISHED_GITHUB_LABEL):
label_ops += 1
if label_ops or status_flips:
logging.info(
'manual_unmute_reconcile: %d label op(s), %d status flip(s)',
label_ops,
status_flips,
)
def sync(ydb_wrapper):
config = load_config()
table_path = ydb_wrapper.get_table_path('fast_unmute_active')
issues_table_path = ydb_wrapper.get_table_path('issues')
tests_monitor_path = ydb_wrapper.get_table_path('tests_monitor')
create_manual_unmute_table(ydb_wrapper, table_path)
try:
grace_table_path = ydb_wrapper.get_table_path('fast_unmute_grace')
create_fast_unmute_grace_table(ydb_wrapper, grace_table_path)
except KeyError:
grace_table_path = None
abandon_fast_unmute_if_issue_not_completed(ydb_wrapper, table_path, grace_table_path)
enter_manual_unmute(
ydb_wrapper,
table_path,
issues_table_path,
tests_monitor_path,
config['window_days'],
config['min_runs'],
)
cleanup_manual_unmute(ydb_wrapper, table_path, tests_monitor_path)
reconcile_manual_fast_unmute_labels(ydb_wrapper, table_path, issues_table_path)
if grace_table_path:
expire_fast_unmute_grace(ydb_wrapper, grace_table_path)
|