Skip to content

[Bug] test_system_parser.py: SystemParser.__init__() got an unexpected keyword argument 'chunker' #1888

Closed

Description

@Memtensor-AI

Description

All 5 tests in tests/mem_reader/test_system_parser.py are failing with:

TypeError: SystemParser.__init__() got an unexpected keyword argument 'chunker'

This breaks CI for all branches (including dev and all AutoDev PRs).

Root Cause

The SystemParser class signature was changed (the chunker parameter was removed or renamed), but the corresponding tests still pass chunker as a keyword argument.

Affected Tests

  • test_parse_fast_preserves_tool_schema_memory_type
  • test_parse_fast_with_empty_content_returns_empty
  • test_parse_fast_with_internal_review_prompt_returns_empty
  • test_parse_fast_with_regular_system_prompt_returns_empty
  • test_parse_fast_with_tool_schema_creates_tool_schema_memory

Expected Fix

Update tests/mem_reader/test_system_parser.py to match the current SystemParser.__init__ signature (remove or replace the chunker keyword argument).

CI Evidence

571 passed, 5 failed — all failures are this single issue.

Activity

  1. added
    types:bugSomething isn't working | 功能异常
    ai:taskDispatched to AI coding agent | 已派发给 AI 编码任务
    contrib:help wantedExtra attention is needed | 需要社区帮助
    area:coreMOS 编排层 / 框架底座 / 跨模块问题
    ai:codingAI agent is coding | AI 正在编码
    on Jun 4, 2026
  2. self-assigned this
    on Jun 4, 2026
  3. Memtensor-AI commented on Jun 4, 2026

    @Memtensor-AI
    CollaboratorAuthor

    🤖 AutoDev has picked up this issue and started working on it.

    Task ID: fd17e167182d8111
    Working branch: bugfix/autodev-1888
    Target branch: main
    Workflow: opsp (analysis → coding → testing → PR)

    I will post the PR link here once done. If I need more information, I will ask in the comments.

  4. added a commit that references this issue on Jun 4, 2026
    e53059b
  5. Memtensor-AI commented on Jun 4, 2026

    @Memtensor-AI
    CollaboratorAuthor

    ✅ AutoDev task fd17e167182d8111 completed.

    Summary: Fixed all 5 failing tests in test_system_parser.py by removing the invalid chunker parameter from SystemParser instantiation.

    Root Cause

    The SystemParser.__init__() method signature was refactored to accept (embedder: BaseEmbedder, llm: BaseLLM | None = None), removing the chunker parameter. However, the test file at line 20 still used the old signature SystemParser(embedder=self.mock_embedder, chunker=None), causing a TypeError for all 5 test methods.

    Changes Made

    • File: tests/mem_reader/test_system_parser.py
    • Change: Removed chunker=None argument from line 20 in the setUp() method
    • Impact: All 5 tests now instantiate SystemParser correctly with the current signature

    Verification

    Tests Fixed

    1. test_parse_fast_preserves_tool_schema_memory_type
    2. test_parse_fast_with_empty_content_returns_empty
    3. test_parse_fast_with_internal_review_prompt_returns_empty
    4. test_parse_fast_with_regular_system_prompt_returns_empty
    5. test_parse_fast_with_tool_schema_creates_tool_schema_memory

    This fix unblocks CI for all branches including dev and all AutoDev PRs.

    Base branch: main
    Branch: bugfix/autodev-1888
    Commit: e53059b
    PR: #1889
    Assigned to: @MatthewZhuang, @CarltonXiang, @syzsunshine219
    Reviewers: @MatthewZhuang, @CarltonXiang, @syzsunshine219

  6. added
    ai:testingAI agent is running tests | AI 正在运行测试
    and removed
    ai:codingAI agent is coding | AI 正在编码
    ai:testingAI agent is running tests | AI 正在运行测试
    ai:taskDispatched to AI coding agent | 已派发给 AI 编码任务
    on Jun 4, 2026
  7. added a commit that references this issue on Jun 14, 2026
    576b408
  8. sarkarshrayan2-max commented on Jun 14, 2026

    @sarkarshrayan2-max

    can you assign me the work i want to work on this

  9. added a commit that references this issue on Jul 2, 2026
    4e9bbce
  10. added a commit that references this issue on Jul 2, 2026
    ca75756
  11. added 2 commits that reference this issue on Jul 23, 2026
    21a27ed
    63ddb97
  12. added 3 commits that reference this issue on Jul 23, 2026
    d9130a7
    87b0738
    f8a887d
  13. added a commit that references this issue on Jul 24, 2026
    e820406
  14. added 3 commits that reference this issue on Sep 18, 2026
    8001941
    c9a80d5
    a447579
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:coreMOS 编排层 / 框架底座 / 跨模块问题contrib:good-first-issueGood for newcomers | 适合新手contrib:help wantedExtra attention is needed | 需要社区帮助types:bugSomething isn't working | 功能异常

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions