Skip to content

chore(coverage): подтянуть ratchet frontend-common и убрать неиспользуемый импорт (LOS-54) - #450

Merged
LostPointer merged 1 commit into
developfrom
claude/project-thread-nylil9
Oct 26, 2026
Merged

LostPointer merged 1 commit into
developfrom
claude/project-thread-nylil9

Conversation

@LostPointer

Copy link
Copy Markdown
Contributor

Описание

До: ratchet frontend-common в reusable-frontend-tests.yml требовал только 94.65% lines и 82.60% branches, хотя vitest.config.ts и цель эпика LOS-54 требуют ≥90% branches. В test_api_scripts.py остался неиспользуемый import pytest (ruff F401), который ломал ruff check для тестов script-service.

После: workflow-ratchet frontend-common равен измеренным значениям (95.7% lines, 90.4% branches), поэтому регресс покрытия ниже цели эпика сразу виден в CI. Неиспользуемый импорт убран, ruff check для файла чистый.

Тип изменений

  • CI/CD (chore)

Что было сделано

  • .github/workflows/reusable-frontend-tests.yml: --min-lines 95.7 --min-branches 90.4 для frontend-common.
  • projects/backend/services/script-service/tests/integration/test_api_scripts.py: удалён import pytest, импорты отсортированы через ruff --fix.

Как тестировать

  1. cd projects/frontend/common && COVERAGE_ENFORCE_RATCHET=true npx vitest run --coverage: 38 тестов проходят, 95.72% lines и 90.43% branches.
  2. ruff check tests/integration/test_api_scripts.py в script-service: без замечаний.

Checklist

  • Все тесты проходят локально
  • Проведен self-review

Breaking Changes

  • Нет

Связанные задачи

Follow-up к LOS-54 (эпик уже в Done, остались только эти хвосты).


Generated by Claude Code

…уемый импорт (LOS-54)

Ratchet frontend-common в reusable-frontend-tests.yml отставал от vitest.config.ts
(branches 82.60 против цели 90): поднят до измеренных 95.7 lines и 90.4 branches.
В test_api_scripts.py удалён неиспользуемый import pytest (ruff F401).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UpqaGVW1WcMuhU2CWMoovN

Copy link
Copy Markdown
Contributor Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T07:15:05.246491Z 0a52c30 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 0a52c30661

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@LostPointer
LostPointer merged commit ceed712 into develop Oct 26, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants