fix(channels): wire SCHEMA_DRIFT error_type for api/crawl4ai JSON parse failures

Analysed against ccf242e84 files changedby 1012839419a-alt
Open PR on GitHub

Change-risk score

7.3out of 10Typical
Repository health
5.3to5.3base against this head

This change sits in the middle third of this repository's own risk distribution, so it is about as risky as the work around it. It is riskier than 43% of this repository's own commits.

No changed file lost health in this diff. Nothing outside this PR depends on a contract it changed.

Files changed
4
in this diff
Contracts changed
0
removed or signature
Outside callers
0
not in this diff
Findings added
2
3 resolved

Blast radius on the repo map

Every file in the repository, grouped into its own directories and sized by lines. The ones this PR changes are lit, and everything that imports them is marked.

backendchromecompatdocsfrontendiiiopenspecscriptstestsapibrowser_act_packsschemasservicesskillsworkflowdify_gra…appcomponentslibchangesintegrationunitecommercelead-generationsocial-listeningintellige…(app)flowrecordsuiunlumen-uiflowworkflowapichannelscontrolpipeline
changed, health fellchanged, health rosechanged, health heldimports a changed fileuntouchedchanged by this PR

Drawing 1,488 of 1,631 files at a readable size, grouped by directory and sized by lines of code. 4 changed here reach 2 more by import. 143 are too small to see at this width, which is what the frame below is for.

Inside backend/channels

api_channe…base.pybrowser_act_channel.pycli_channel.pycrawl4ai_channel.pydoubao_research_channel.…douyin_detail_channel.pyopencli_channel.pyregis…rss_channel.pyskill_channel.pyweb_scrape…

13 files, 2 changed by this PR and 2 that import one. This PR changes 4 files in total, spread across more than one top-level directory. Click any directory above to frame it instead.

Changed

What this PR added, and what it took away

Introduced findings are the ones inside the lines this PR added, not the file's existing ones. The resolved column is the only place in the product that lists them.

Introduced (2)
  • mediumduplicated assertion block
    tests/unit/channels/test_crawl4ai_channel.py:137

    assertion block at lines 137-138 is duplicated in tests/unit/channels/test_api_channel.py

  • mediumduplicated assertion block
    tests/unit/channels/test_api_channel.py:677

    assertion block at lines 677-678 is duplicated in tests/unit/channels/test_crawl4ai_channel.py

Resolved (3)
  • function hotspot
    backend/channels/api_channel.py
  • dry violation
    backend/channels/api_channel.py
  • function hotspot
    backend/channels/crawl4ai_channel.py

Who else knows this code

The primary author of each changed file by share of its recent commits, mined from git history. Advisory: it says who has context, not who must review.

  • tests/unit/channels/test_api_channel.pyCurry 57% of 10 commits
  • backend/channels/api_channel.pyCurry 78% of 14 commits
  • tests/unit/channels/test_crawl4ai_channel.pyCurry 87% of 3 commits
  • backend/channels/crawl4ai_channel.pyCurry 100% of 8 commits

Tests that cover this change

Test files that import a file this PR changes. Not a coverage measurement: it is the import graph, so it says which tests are worth running, not which lines they reach.

  • tests/unit/channels/test_api_auth_deprecation.py

3 changed files have no test importing them.

Get this on your own pull requests

This page came from an index of 2233admin/opencli-Razormind. No model calls, no configuration, and it refreshes on every push. Install the bot and every pull request gets one of these.

fix(channels): wire SCHEMA_DRIFT error_type for api/crawl4ai JSON parse failures · 2233admin/opencli-Razormind #71 · Repowise