• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

deepset-ai / haystack / 22134834013
93%

Build:
DEFAULT BRANCH: main
Ran 18 Feb 2026 09:55AM UTC
Jobs 1
Files 254
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Feb 2026 09:52AM UTC coverage: 92.699% (+0.03%) from 92.667%
22134834013

push

github

web-flow
refactor: JSON parsing utility function (#10597)

* Standardize JSON parsing in QueryExpander, LLMEvaluator, and LLMMetadataExtractor

- Introduce haystack.utils.json_utils with extract_json_from_text and parse_json_from_text.
- Expose these utilities in haystack.utils for cleaner imports.
- Refactor QueryExpander, LLMEvaluator, and LLMMetadataExtractor to use parse_json_from_text.
- Standardize error handling and logging for JSON parsing failures.
- Update unit tests to reflect these changes.

* Address CodeRabbit feedback: Handle generic code blocks and remove unused logger

* Fix corrupted test file and add priority test case for json extraction

* formatted files for removing formatting issues

* Fix import sorting in json_utils.py and test_json_utils.py

* Add release note for JSON parsing standardization

* Fix release note formatting: use double backticks for inline code

* Address code review: rename parse_json_from_text to internal _parse_json_from_text, simplify error handling

* removed releasenotes

* Address Code Review Feedback: merged extract to parse_json_to_test

* Address Code Review Feedback: remove markdown support from internal json utility

* Address Code Review Feedback: add raise_on_failure to json utility

* Address CodeRabbit Feedback: add tests for raise_on_failure=False

* Address Formatting Issues: add missing license header

* Address Formatting Issues: use haystack logger and mock in tests

* Address Formatting Issues: fix logging format to use kwargs

* refinements

* fix type

* fixes

* more fixes

---------

Co-authored-by: anakin87 <stefanofiorucci@gmail.com>

15286 of 16490 relevant lines covered (92.7%)

0.93 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
98.17
3.04% components/evaluators/llm_evaluator.py
10
85.14
8.05% utils/misc.py
15
83.05
0.55% components/extractors/llm_metadata_extractor.py
Jobs
ID Job ID Ran Files Coverage
1 22134834013.1 18 Feb 2026 09:55AM UTC 254
92.7
GitHub Action Run
Source Files on build 22134834013
  • Tree
  • List 254
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22134834013
  • d133829a on github
  • Prev Build on main (#22134258391)
  • Next Build on main (#22137060558)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc