forked from mtusi2026/mtusi2026lab7
feat: run isolated tests, fault stand, CI and bench over HTTPS and mTLS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+13
-1
@@ -10,6 +10,9 @@
|
||||
нет другой работы. Только stdlib. Методика — design change
|
||||
`perf-bottleneck-fix`, решения 7 и 9; без разложения внутри процесса —
|
||||
design change `bench-postgres`, решение 8.
|
||||
|
||||
С лабы 7 не поддерживается (change `https-tooling`): `problems()` всегда
|
||||
отказывает, до первого прогона и коммита.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
@@ -33,7 +36,16 @@ def git(*args: str) -> subprocess.CompletedProcess[str]:
|
||||
|
||||
def problems(args: argparse.Namespace) -> list[str]:
|
||||
"""Что мешает начать; пустой список — можно запускать."""
|
||||
found = []
|
||||
# с лабы 7 полная матрица и серии трека 1 не поддерживаются (рабочие
|
||||
# профили — SUPPORTED_PROFILES в run.py; change https-tooling, design,
|
||||
# решение 5): отказ до первого прогона и до любого коммита
|
||||
found = [
|
||||
"make bench_ab is not supported since lab 7: it runs the full matrix "
|
||||
"or track 1 series (make bench, make bench_scaling), and those "
|
||||
"profiles are not supported on the HTTPS and mTLS stand (change "
|
||||
"https-tooling); supported: uploads, uploads_quick, queue, "
|
||||
"queue_quick",
|
||||
]
|
||||
for name in (args.before, args.after):
|
||||
if not re.fullmatch(r"[A-Za-z0-9._-]+", name or ""):
|
||||
found.append(f"bad label {name!r}: use [A-Za-z0-9._-]")
|
||||
|
||||
Reference in New Issue
Block a user