Project

General

Profile

Actions

action #122047

closed

coordination #109668: [saga][epic] Stable and updated non-qemu backends for SLE validation

coordination #109740: [epic] Stable os-autoinst unit tests with good coverage

[tools] tesseract ocr test fails

Added by osukup about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2022-12-15
Due date:
% Done:

0%

Estimated time:

Description

Motivation

with adding tesseract-ocr to deps in CI was uncovered this test is failing (os-autoinst/t/02-test_ocr.t)

Acceptance criteria

  • AC1: OCR test pass

Comments


Related issues 1 (0 open1 closed)

Copied from openQA Project (public) - action #121357: [easy][beginner] Ensure 100% test coverage of t/ in os-autoinst size:MResolvedosukup

Actions
Actions #1

Updated by osukup about 2 years ago

  • Copied from action #121357: [easy][beginner] Ensure 100% test coverage of t/ in os-autoinst size:M added
Actions #2

Updated by jbaier_cz about 2 years ago

It might be related to https://github.com/os-autoinst/os-autoinst/pull/1825 maybe? In that case, the fix might be just a simple extension of https://github.com/os-autoinst/os-autoinst/pull/1823.

Actions #3

Updated by osukup about 2 years ago

there is also another problem:

: "tesseract" unexpectedly returned exit value 1 at /opt/ppmclibs/blib/lib/tinycv.pm line 113.
631
7:  at /opt/ocr.pm line 20
632
7: # Tests were run but no plan was declared and done_testing() was not seen.
633
7: # Looks like your test exited with 1 just after 2.
634
7: [11:10:03] ./t/02-test_ocr.t .......................... 
635
7: Dubious, test returned 1 (wstat 256, 0x100)

and same problem in OBS:

[  128s] 3: "tesseract" unexpectedly returned exit value 1 at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1671105276.b860e7f/ppmclibs/blib/lib/tinycv.pm line 113.
[  128s] 3:  at /home/abuild/rpmbuild/BUILD/os-autoinst-4.6.1671105276.b860e7f/ocr.pm line 20
[  128s] 3: ok 2 - no (unexpected) warnings (via END block)
[  128s] 3: # Tests were run but no plan was declared and done_testing() was not seen.
[  128s] 3: # Looks like your test exited with 1 just after 2.
[  128s] 3: Dubious, test returned 1 (wstat 256, 0x100)
Actions #4

Updated by jbaier_cz about 2 years ago

For that, the cause might be in https://github.com/os-autoinst/os-autoinst/blob/master/ocr.pm#L20 because of the use autodie. If the exit value 1 from tesseract is expected or not is another question. The official documentation is not very helpful, there is a similar issue (although for a newer version) with the same question: https://github.com/tesseract-ocr/tesseract/issues/3675#issuecomment-990947190

Actions #5

Updated by osukup about 2 years ago

  • Status changed from New to Resolved
  • Assignee set to osukup

cause of problem was missing tesseract trained data, -> found after removing autodie from ocr.pm

Actions

Also available in: Atom PDF