Skip to content

Quick fix for pollution of zimcheck output#1105

Open
veloman-yunkan wants to merge 3 commits into
mainfrom
prevention_of_stdout_pollution
Open

Quick fix for pollution of zimcheck output#1105
veloman-yunkan wants to merge 3 commits into
mainfrom
prevention_of_stdout_pollution

Conversation

@veloman-yunkan

Copy link
Copy Markdown
Collaborator

Fixes openzim/zim-tools#507

Depends on openzim/zim-testing-suite#16 (so that unit-tests don't fail)

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.85%. Comparing base (4b71621) to head (ed3ccbd).

Files with missing lines Patch % Lines
src/tools.cpp 0.00% 9 Missing ⚠️
src/suggestion.cpp 0.00% 3 Missing ⚠️
src/search.cpp 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (4b71621) and HEAD (ed3ccbd). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (4b71621) HEAD (ed3ccbd)
3 2
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1105      +/-   ##
==========================================
- Coverage   56.39%   46.85%   -9.54%     
==========================================
  Files         100       94       -6     
  Lines        5050     4853     -197     
  Branches     2241     2104     -137     
==========================================
- Hits         2848     2274     -574     
- Misses        728     1517     +789     
+ Partials     1474     1062     -412     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Made the stemmer set-up code identical across
SuggestionDataBase::initXapianDb() and
XapianDbMetadata::XapianDbMetadata().
This is a quick fix to zimcheck's output being polluted by libzim's
own unsolicited messages.

Writer code keeps printing to stdout but it's less of a concern
@kelson42
kelson42 force-pushed the prevention_of_stdout_pollution branch from ede29ad to ed3ccbd Compare July 11, 2026 13:41
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.

Zimcheck still output errors in middle of the JSON file

1 participant