[INFO] cloning repository https://github.com/ziggornif/text-recognition [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ziggornif/text-recognition" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fziggornif%2Ftext-recognition"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fziggornif%2Ftext-recognition'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 4b45a3e10c5a55380440ee8f300d7446ace8c8ba [INFO] testing ziggornif/text-recognition against 1.101.0-beta.1+cargoflags=--release for beta-release-1.101-2 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fziggornif%2Ftext-recognition" "/workspace/builds/worker-7-tc2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/ziggornif/text-recognition [INFO] finished tweaking git repo https://github.com/ziggornif/text-recognition [INFO] tweaked toml for git repo https://github.com/ziggornif/text-recognition written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ziggornif/text-recognition on toolchain 1.101.0-beta.1 [INFO] running `"cargo" "+1.101.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"` [INFO] crate git repo https://github.com/ziggornif/text-recognition already has a lockfile, it will not be regenerated [INFO] running `"cargo" "+1.101.0-beta.1" "fetch" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"` [INFO] [stdout] 6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2 [INFO] running `"docker" "start" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2"` [INFO] running `"docker" "inspect" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "metadata" "--no-deps" "--format-version=1"` [INFO] running `"docker" "inspect" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "build" "--frozen" "--message-format=json" "--release"` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling unicode-ident v1.0.23 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling libc v0.2.182 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling regex-syntax v0.8.9 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling libloading v0.8.9 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling bindgen v0.64.0 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling simd-adler32 v0.3.8 [INFO] [stderr] Compiling anyhow v1.0.101 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling clang-sys v1.8.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling zerocopy v0.8.39 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling as-slice v0.2.1 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Compiling built v0.8.0 [INFO] [stderr] Compiling syn v2.0.115 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling nom v8.0.0 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Compiling core2 v0.4.0 [INFO] [stderr] Compiling aligned v0.4.3 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling y4m v0.8.0 [INFO] [stderr] Compiling bitstream-io v4.9.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling flate2 v1.1.9 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling regex-automata v0.4.14 [INFO] [stderr] Compiling weezl v0.1.12 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling getrandom v0.4.1 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling which v4.4.2 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling imgref v1.12.0 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling anstyle-query v1.1.5 [INFO] [stderr] Compiling anstream v0.6.21 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling zune-jpeg v0.4.21 [INFO] [stderr] Compiling pxfm v0.1.27 [INFO] [stderr] Compiling avif-serialize v0.8.8 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling fdeflate v0.3.7 [INFO] [stderr] Compiling rgb v0.8.52 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling lebe v0.5.3 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling zune-core v0.5.1 [INFO] [stderr] Compiling bytemuck v1.25.0 [INFO] [stderr] Compiling bit_field v0.10.3 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling clap_lex v1.0.0 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling regex v1.12.3 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling winnow v0.7.14 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling gif v0.14.1 [INFO] [stderr] Compiling clap_builder v4.5.58 [INFO] [stderr] Compiling image-webp v0.2.4 [INFO] [stderr] Compiling zune-jpeg v0.5.12 [INFO] [stderr] Compiling png v0.18.0 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling tempfile v3.25.0 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling zerocopy-derive v0.8.39 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling profiling v1.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Compiling moxcms v0.7.11 [INFO] [stderr] Compiling equator v0.4.2 [INFO] [stderr] Compiling clap_derive v4.5.55 [INFO] [stderr] Compiling aligned-vec v0.6.4 [INFO] [stderr] Compiling fax v0.2.6 [INFO] [stderr] Compiling v_frame v0.3.9 [INFO] [stderr] Compiling av1-grain v0.2.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling clap v4.5.58 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling leptonica-sys v0.4.9 [INFO] [stderr] Compiling tesseract-sys v0.6.3 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling half v2.7.1 [INFO] [stderr] Compiling tiff v0.10.3 [INFO] [stderr] Compiling exr v1.74.0 [INFO] [stderr] Compiling ravif v0.12.0 [INFO] [stderr] Compiling leptonica-plumbing v1.4.0 [INFO] [stderr] Compiling tesseract-plumbing v0.11.1 [INFO] [stderr] Compiling tesseract v0.15.2 [INFO] [stderr] Compiling image v0.25.9 [INFO] [stderr] Compiling text-recognition v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 3m 22s [INFO] running `"docker" "inspect" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json" "--release"` [INFO] [stderr] Compiling text-recognition v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `release` profile [optimized] target(s) in 18.32s [INFO] running `"docker" "inspect" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2"` [INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "test" "--frozen" "--release"` [INFO] [stderr] Finished `release` profile [optimized] target(s) in 0.34s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/release/build/text-recognition/71e39244ac8f9b8e/out/text_recognition-71e39244ac8f9b8e) [INFO] [stdout] [INFO] [stdout] running 124 tests [INFO] [stdout] test config::tests::test_default_config ... ok [INFO] [stdout] test config::tests::test_single_line_preset ... ok [INFO] [stdout] test config::tests::test_config_clone ... ok [INFO] [stdout] test config::tests::test_photo_preset ... ok [INFO] [stdout] test config::tests::test_page_seg_mode_conversion ... ok [INFO] [stdout] test config_file::tests::test_load_json_invalid_content ... ok [INFO] [stdout] test config_file::tests::test_load_json_ocr_only ... ok [INFO] [stdout] test config_file::tests::test_load_json_preprocessing_only ... ok [INFO] [stdout] test config::tests::test_screenshot_preset ... ok [INFO] [stdout] test config_file::tests::test_load_json_full_config ... ok [INFO] [stdout] test hocr::tests::test_hocr_document_new ... ok [INFO] [stdout] test hocr::tests::test_extract_bbox ... ok [INFO] [stdout] test config_file::tests::test_load_toml_ocr_only ... ok [INFO] [stdout] test config_file::tests::test_load_unsupported_extension ... ok [INFO] [stdout] test hocr::tests::test_bbox_from_hocr_string ... ok [INFO] [stdout] test hocr::tests::test_hocr_line_add_word ... ok [INFO] [stdout] test hocr::tests::test_hocr_paragraph_add_line ... ok [INFO] [stdout] test config_file::tests::test_load_toml_invalid_content ... ok [INFO] [stdout] test config::tests::test_document_preset ... ok [INFO] [stdout] test hocr::tests::test_hocr_word_new ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_more_than_100_percent ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_completely_wrong ... ok [INFO] [stdout] test hocr::tests::test_extract_confidence ... ok [INFO] [stdout] test hocr::tests::test_extract_word_text ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_multiple_errors ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_empty_ocr ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_single_error ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_character_difference_in_word ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_unicode ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_multiple_errors ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_identical_texts ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_more_than_100_percent ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_case_sensitive ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_whitespace ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_extra_whitespace ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_empty_reference ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_case_sensitive ... ok [INFO] [stdout] test metrics::tests::test_calculate_cer_identical_texts ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_empty_reference ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_single_word_substitution ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_word_deletion ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_word_insertion ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_accuracy ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_missing_word ... ok [INFO] [stdout] test hocr::tests::test_bbox_from_hocr_string_invalid ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_single_character_error ... ok [INFO] [stdout] test config_file::tests::test_load_nonexistent_file ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_unicode ... ok [INFO] [stdout] test config_file::tests::test_load_toml_full_config ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_empty_ocr ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_completely_different ... ok [INFO] [stdout] test metrics::tests::test_french_generate_report ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_empty_reference ... ok [INFO] [stdout] test metrics::tests::test_french_text_accent_errors_cer ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_empty_texts ... ok [INFO] [stdout] test metrics::tests::test_french_text_apostrophe ... ok [INFO] [stdout] test metrics::tests::test_french_multiline ... ok [INFO] [stdout] test metrics::tests::test_french_text_complex_sentence ... ok [INFO] [stdout] test metrics::tests::test_french_text_perfect_match ... ok [INFO] [stdout] test metrics::tests::test_french_text_ligature_oe ... ok [INFO] [stdout] test metrics::tests::test_french_text_cedilla ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_empty_texts ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_perfect_match ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_multiline_text ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_poor_quality ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_multiple_word_errors ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_format ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_good_quality ... ok [INFO] [stdout] test metrics::tests::test_french_text_with_accents ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_comparison_section ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_excellent_quality ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_fair_quality ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_statistics ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_single_insertion ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_single_substitution ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_unicode ... ok [INFO] [stdout] test metrics::tests::test_to_csv_accuracy_calculation ... ok [INFO] [stdout] test metrics::tests::test_to_csv_exact_match ... ok [INFO] [stdout] test metrics::tests::test_to_csv_metadata_alphabetical_order ... ok [INFO] [stdout] test metrics::tests::test_generate_diff_report_truncation ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_completely_different ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_multiple_operations ... ok [INFO] [stdout] test metrics::tests::test_to_csv_multiple_metrics ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_single_deletion ... ok [INFO] [stdout] test metrics::tests::test_to_csv_with_headers_without_metadata ... ok [INFO] [stdout] test metrics::tests::test_to_csv_metadata_with_special_characters ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_empty_strings ... ok [INFO] [stdout] test preprocessing::tests::test_adjust_contrast_clamping ... ok [INFO] [stdout] test metrics::tests::test_to_csv_with_metadata ... ok [INFO] [stdout] test metrics::tests::test_to_csv_without_headers_without_metadata ... ok [INFO] [stdout] test preprocessing::tests::test_adjust_contrast_increase ... ok [INFO] [stdout] test metrics::tests::test_word_levenshtein_distance ... ok [INFO] [stdout] test preprocessing::tests::test_binarization_method_clone ... ok [INFO] [stdout] test preprocessing::tests::test_adjust_contrast_decrease ... ok [INFO] [stdout] test preprocessing::tests::test_adjust_contrast_no_change ... ok [INFO] [stdout] test preprocessing::tests::test_binarization_method_equality ... ok [INFO] [stdout] test preprocessing::tests::test_binarize_adaptive ... ok [INFO] [stdout] test preprocessing::tests::test_binarize_all_methods ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_case_sensitive ... ok [INFO] [stdout] test preprocessing::tests::test_binarize_fixed ... ok [INFO] [stdout] test metrics::tests::test_levenshtein_identical_strings ... ok [INFO] [stdout] test preprocessing::tests::test_denoise_median_calculation ... ok [INFO] [stdout] test preprocessing::tests::test_denoise_removes_salt_and_pepper ... ok [INFO] [stdout] test preprocessing::tests::test_calculate_otsu_threshold ... ok [INFO] [stdout] test preprocessing::tests::test_preprocess_contrast_then_binarize ... ok [INFO] [stdout] test preprocessing::tests::test_binarize_otsu ... ok [INFO] [stdout] test preprocessing::tests::test_preprocessing_config_clone ... ok [INFO] [stdout] test preprocessing::tests::test_preprocessing_config_default ... ok [INFO] [stdout] test preprocessing::tests::test_deskew_preserves_dimensions ... ok [INFO] [stdout] test preprocessing::tests::test_preprocess_only_binarization ... ok [INFO] [stdout] test preprocessing::tests::test_rotate_image_zero_angle ... ok [INFO] [stdout] test preprocessing::tests::test_deskew_uniform_image_unchanged ... ok [INFO] [stdout] test preprocessing::tests::test_preprocess_denoise_then_binarize ... ok [INFO] [stdout] test preprocessing::tests::test_preprocess_with_minimal_config ... ok [INFO] [stdout] test preprocessing::tests::test_detect_skew_angle_horizontal_lines ... ok [INFO] [stdout] test preprocessing::tests::test_to_grayscale_from_rgb ... ok [INFO] [stdout] test preprocessing::tests::test_preprocess_pipeline_order ... ok [INFO] [stdout] test preprocessing::tests::test_denoise_preserves_edges ... ok [INFO] [stdout] test config::tests::test_presets_are_distinct ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_completely_wrong ... ok [INFO] [stdout] test metrics::tests::test_calculate_wer_empty_ocr ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_extra_word ... ok [INFO] [stdout] test metrics::tests::test_compare_ocr_result_identical_texts ... ok [INFO] [stdout] test metrics::tests::test_french_proper_nouns ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 124 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/release/build/text-recognition/c95c43e214d643d7/out/text_recognition-c95c43e214d643d7) [INFO] [stderr] Running tests/integration_tests.rs (/opt/rustwide/target/release/build/text-recognition/98f5d8ecab19b139/out/integration_tests-98f5d8ecab19b139) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test test_create_engine_with_different_configs ... ok [INFO] [stdout] test test_extract_text_nonexistent_file ... ok [INFO] [stderr] Error opening data file /usr/share/tesseract-ocr/5/tessdata/fra.traineddata [INFO] [stderr] Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. [INFO] [stderr] Failed loading language 'fra' [INFO] [stderr] Tesseract couldn't load any languages! [INFO] [stderr] Error opening data file /usr/share/tesseract-ocr/5/tessdata/fra.traineddata [INFO] [stderr] Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. [INFO] [stderr] Failed loading language 'fra' [INFO] [stderr] Tesseract couldn't load any languages! [INFO] [stderr] Error opening data file /usr/share/tesseract-ocr/5/tessdata/fra.traineddata [INFO] [stderr] Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. [INFO] [stderr] Failed loading language 'fra' [INFO] [stderr] Tesseract couldn't load any languages! [INFO] [stderr] Error opening data file /usr/share/tesseract-ocr/5/tessdata/fra.traineddata [INFO] [stderr] Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. [INFO] [stderr] Failed loading language 'fra' [INFO] [stderr] Tesseract couldn't load any languages! [INFO] [stdout] test test_extract_with_document_preset ... FAILED [INFO] [stderr] Error opening data file /usr/share/tesseract-ocr/5/tessdata/fra.traineddata [INFO] [stdout] test test_multiple_extractions_same_engine ... FAILED [INFO] [stderr] Please make sure the TESSDATA_PREFIX environment variable is set to your "tessdata" directory. [INFO] [stdout] test test_extract_text_all_simple_images ... FAILED [INFO] [stderr] Failed loading language 'fra' [INFO] [stdout] test test_extract_text_simple_image ... FAILED [INFO] [stderr] Tesseract couldn't load any languages! [INFO] [stdout] test test_extract_with_preprocessing ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- test_extract_with_document_preset stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_extract_with_document_preset' (3899) panicked at tests/integration_tests.rs:132:5: [INFO] [stdout] L'extraction avec preset document a échoué : Some(Échec de l'initialisation de Tesseract [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: TessBaseApi failed to initialize [INFO] [stdout] 1: TessBaseApi failed to initialize [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: ::ext_context::<&str> [INFO] [stdout] 1: ::extract_text_from_file [INFO] [stdout] 2: >::call_once [INFO] [stdout] 3: test::__rust_begin_short_backtrace::, fn() -> core::result::Result<(), alloc::string::String>> [INFO] [stdout] 4: test::run_test::{closure#0} [INFO] [stdout] 5: std::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 6: ::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 7: ::new::thread_start [INFO] [stdout] 8: [INFO] [stdout] 9: clone) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x635b7c475ca1 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x635b7c48c7da - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x635b7c47aadc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x635b7c450bf6 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x635b7c46d939 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x635b7bfbf920 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x635b7c46dc62 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x635b7c450ca2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x635b7c448f29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x635b7c4519bd - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x635b7c48d52c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x635b7bfb1e2e - >::call_once [INFO] [stdout] 12: 0x635b7bfb278b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 13: 0x635b7bfbff45 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 14: 0x635b7bfb9394 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x635b7bfc2ed2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x635b7c47552f - ::new::thread_start [INFO] [stdout] 17: 0x7de1112c3dfa - [INFO] [stdout] 18: 0x7de1113573d4 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test_multiple_extractions_same_engine stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_multiple_extractions_same_engine' (3901) panicked at tests/integration_tests.rs:158:9: [INFO] [stdout] L'extraction a échoué pour resources/simple/img-3.png lors du traitement multiple [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x635b7c475ca1 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x635b7c48c7da - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x635b7c47aadc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x635b7c450bf6 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x635b7c46d939 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x635b7bfbf920 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x635b7c46dc62 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x635b7c450ca2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x635b7c448f29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x635b7c4519bd - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x635b7c48d52c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x635b7bfb243a - >::call_once [INFO] [stdout] 12: 0x635b7bfb278b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 13: 0x635b7bfbff45 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 14: 0x635b7bfb9394 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x635b7bfc2ed2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x635b7c47552f - ::new::thread_start [INFO] [stdout] 17: 0x7de1112c3dfa - [INFO] [stdout] 18: 0x7de1113573d4 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test_extract_text_all_simple_images stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_extract_text_all_simple_images' (3896) panicked at tests/integration_tests.rs:103:9: [INFO] [stdout] L'extraction a échoué pour resources/simple/img-1.png : Some(Échec de l'initialisation de Tesseract [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: TessBaseApi failed to initialize [INFO] [stdout] 1: TessBaseApi failed to initialize [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: ::ext_context::<&str> [INFO] [stdout] 1: ::extract_text_from_file [INFO] [stdout] 2: >::call_once [INFO] [stdout] 3: test::__rust_begin_short_backtrace::, fn() -> core::result::Result<(), alloc::string::String>> [INFO] [stdout] 4: test::run_test::{closure#0} [INFO] [stdout] 5: std::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 6: ::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 7: ::new::thread_start [INFO] [stdout] 8: [INFO] [stdout] 9: clone) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x635b7c475ca1 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x635b7c48c7da - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x635b7c47aadc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x635b7c450bf6 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x635b7c46d939 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x635b7bfbf920 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x635b7c46dc62 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x635b7c450ca2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x635b7c448f29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x635b7c4519bd - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x635b7c48d52c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x635b7bfb2297 - >::call_once [INFO] [stdout] 12: 0x635b7bfb278b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 13: 0x635b7bfbff45 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 14: 0x635b7bfb9394 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x635b7bfc2ed2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x635b7c47552f - ::new::thread_start [INFO] [stdout] 17: 0x7de1112c3dfa - [INFO] [stdout] 18: 0x7de1113573d4 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test_extract_text_simple_image stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_extract_text_simple_image' (3898) panicked at tests/integration_tests.rs:26:5: [INFO] [stdout] L'extraction de texte a échoué : Some(Échec de l'initialisation de Tesseract [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: TessBaseApi failed to initialize [INFO] [stdout] 1: TessBaseApi failed to initialize [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: ::ext_context::<&str> [INFO] [stdout] 1: ::extract_text_from_file [INFO] [stdout] 2: >::call_once [INFO] [stdout] 3: test::__rust_begin_short_backtrace::, fn() -> core::result::Result<(), alloc::string::String>> [INFO] [stdout] 4: test::run_test::{closure#0} [INFO] [stdout] 5: std::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 6: ::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 7: ::new::thread_start [INFO] [stdout] 8: [INFO] [stdout] 9: clone) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x635b7c475ca1 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x635b7c48c7da - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x635b7c47aadc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x635b7c450bf6 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x635b7c46d939 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x635b7bfbf920 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x635b7c46dc62 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x635b7c450ca2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x635b7c448f29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x635b7c4519bd - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x635b7c48d52c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x635b7bfb1a11 - >::call_once [INFO] [stdout] 12: 0x635b7bfb278b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 13: 0x635b7bfbff45 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 14: 0x635b7bfb9394 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x635b7bfc2ed2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x635b7c47552f - ::new::thread_start [INFO] [stdout] 17: 0x7de1112c3dfa - [INFO] [stdout] 18: 0x7de1113573d4 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- test_extract_with_preprocessing stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'test_extract_with_preprocessing' (3900) panicked at tests/integration_tests.rs:183:5: [INFO] [stdout] L'extraction avec prétraitement a échoué : Some(Échec de l'initialisation de Tesseract [INFO] [stdout] [INFO] [stdout] Caused by: [INFO] [stdout] 0: TessBaseApi failed to initialize [INFO] [stdout] 1: TessBaseApi failed to initialize [INFO] [stdout] [INFO] [stdout] Stack backtrace: [INFO] [stdout] 0: ::ext_context::<&str> [INFO] [stdout] 1: ::extract_text_from_image [INFO] [stdout] 2: ::extract_text_from_file [INFO] [stdout] 3: >::call_once [INFO] [stdout] 4: test::__rust_begin_short_backtrace::, fn() -> core::result::Result<(), alloc::string::String>> [INFO] [stdout] 5: test::run_test::{closure#0} [INFO] [stdout] 6: std::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 7: ::{closure#1} as core::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 8: ::new::thread_start [INFO] [stdout] 9: [INFO] [stdout] 10: clone) [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x635b7c475ca1 - <::print::DisplayBacktrace as core[5c14b8d5a259cc4e]::fmt::Display>::fmt [INFO] [stdout] 1: 0x635b7c48c7da - core[5c14b8d5a259cc4e]::fmt::write [INFO] [stdout] 2: 0x635b7c47aadc - as core[5c14b8d5a259cc4e]::io::write::Write>::write_fmt [INFO] [stdout] 3: 0x635b7c450bf6 - std[218a0f7bb9a8af32]::panicking::default_hook::{closure#0} [INFO] [stdout] 4: 0x635b7c46d939 - std[218a0f7bb9a8af32]::panicking::default_hook [INFO] [stdout] 5: 0x635b7bfbf920 - test[2df5162924bba3e2]::test_main_inner::{closure#0} [INFO] [stdout] 6: 0x635b7c46dc62 - std[218a0f7bb9a8af32]::panicking::panic_with_hook [INFO] [stdout] 7: 0x635b7c450ca2 - std[218a0f7bb9a8af32]::panicking::panic_handler::{closure#0} [INFO] [stdout] 8: 0x635b7c448f29 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] 9: 0x635b7c4519bd - __rustc[abc93889656912e2]::rust_begin_unwind [INFO] [stdout] 10: 0x635b7c48d52c - core[5c14b8d5a259cc4e]::panicking::panic_fmt [INFO] [stdout] 11: 0x635b7bfb1c41 - >::call_once [INFO] [stdout] 12: 0x635b7bfb278b - test[2df5162924bba3e2]::__rust_begin_short_backtrace::, fn() -> core[5c14b8d5a259cc4e]::result::Result<(), alloc[f65cf102c2e86268]::string::String>> [INFO] [stdout] 13: 0x635b7bfbff45 - test[2df5162924bba3e2]::run_test::{closure#0} [INFO] [stdout] 14: 0x635b7bfb9394 - std[218a0f7bb9a8af32]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] 15: 0x635b7bfc2ed2 - ::{closure#1} as core[5c14b8d5a259cc4e]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] 16: 0x635b7c47552f - ::new::thread_start [INFO] [stdout] 17: 0x7de1112c3dfa - [INFO] [stdout] 18: 0x7de1113573d4 - clone [INFO] [stdout] 19: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] test_extract_text_all_simple_images [INFO] [stdout] test_extract_text_simple_image [INFO] [stdout] test_extract_with_document_preset [INFO] [stdout] test_extract_with_preprocessing [INFO] [stdout] test_multiple_extractions_same_engine [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--test integration_tests` [INFO] running `"docker" "inspect" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2"` [INFO] running `"docker" "rm" "-f" "6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2"` [INFO] [stdout] 6c2ba85c3a5c9d8fdf96b62b5077dbd290d40a4e935eaf324f83b2cb6e3dfed2