Skip to content

test: skip OCR integration tests when OCR server is not running#179

Merged
WallBreaker2 merged 1 commit intomasterfrom
codex/investigate-ci-failure-related-to-test-ocr
Feb 24, 2026
Merged

test: skip OCR integration tests when OCR server is not running#179
WallBreaker2 merged 1 commit intomasterfrom
codex/investigate-ci-failure-related-to-test-ocr

Conversation

@WallBreaker2
Copy link
Owner

Motivation

  • CI runs were failing because OCR integration tests used ASSERT_TRUE(IsOcrServerHealthy()) and the local ocr_server dependency is not started in the CI environment, causing false-negative test failures.

Description

  • Replace the hard assertion in OcrTest::SetUp() with a conditional check that calls GTEST_SKIP() and emits instructions for starting the server when IsOcrServerHealthy() returns false.
  • Change performed in tests/main.cpp so OCR tests are executed when ocr_server is available and skipped otherwise.

Testing

  • No automated test suite was executed with this patch; the change is a test-only modification intended to prevent CI failures by skipping OCR integration tests when the external service is unavailable.

Codex Task

@WallBreaker2 WallBreaker2 merged commit 1266e3e into master Feb 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant