Skip to content

feat: web progress bar#423

Open
NikitaKrinkin wants to merge 1 commit into
mainfrom
web-prog-ui
Open

feat: web progress bar#423
NikitaKrinkin wants to merge 1 commit into
mainfrom
web-prog-ui

Conversation

@NikitaKrinkin

Copy link
Copy Markdown
Collaborator

@NikitaKrinkin NikitaKrinkin requested a review from Artanias July 7, 2026 14:50
@NikitaKrinkin NikitaKrinkin self-assigned this Jul 7, 2026
@NikitaKrinkin NikitaKrinkin added the enhancement New feature or request label Jul 7, 2026
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Coverage

Comment thread src/imgtests/runner.py
test_runs_count: int = 1,
config: dict[str, Any] | None = None,
) -> None:
from imgtests.suites.map import ALL_SUITES # noqa: PLC0415

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше по возможности вообще не делать так импорты без крайней необходимости, а если таким образом попытка избежать циклических импортов -> скорее всего требуется провести рефакторинг кода или поместить логику в другой модуль.

with Path.open(PROG_LOG_PATH, encoding="utf-8") as file:
data = json.load(file)
return JsonResponse(data)
except json.decoder.JSONDecodeError:

@Artanias Artanias Jul 11, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут скорее 238 и 239 строки нужно обернуть, 240 уже не вернёт такую ошибку.

progress_file = Path(PROG_LOG_PATH)
if progress_file.exists():
try:
with Path.open(PROG_LOG_PATH, encoding="utf-8") as file:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если параллельно запускать это всё, то не будет ли гонки при записи в один и тот же файл и потом как отличить где какой запуск?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants