Skip to content

fix: treat skipped CI jobs as failure, not pending#43

Open
markpolyak wants to merge 2 commits intomainfrom
fix/ci-skipped-conclusion
Open

fix: treat skipped CI jobs as failure, not pending#43
markpolyak wants to merge 2 commits intomainfrom
fix/ci-skipped-conclusion

Conversation

@markpolyak
Copy link
Copy Markdown
Owner

Проблема

При проверке работы, где один из CI-джобов имел статус skipped, система возвращала «CI-проверки ещё выполняются ⏳» вместо сообщения о провале тестов.

Причина: в evaluate_ci_results ветка else обрабатывала любой статус, не являющийся success или failure, как pending — включая skipped. В результате has_pending = True, и grader возвращал PENDING вместо failure.

Исправление

skipped в GitHub Actions — терминальный статус (джоб не запустился из-за условия if:). По смыслу совпадает с failure: тест не прошёл успешно.

  • grading/ci_checker.py: объединены "failure" и "skipped" в одну ветку → ❌
  • tests/test_ci_checker.py: добавлены 3 теста для skipped-сценариев

Тесты

27 passed in 0.60s

🤖 Generated with Claude Code

markpolyak and others added 2 commits March 31, 2026 15:03
GitHub Actions conclusion "skipped" is a terminal state (job did not run
due to a branch/event condition), not an in-progress one. Previously it
fell into the else-branch and set has_pending=True, causing the grader
to return "CI-проверки ещё выполняются ⏳" instead of a failure result.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant