Skip to content

test(task): expect 1 chunk after #17739 global merge - #17841

Merged
yuzhichang merged 1 commit into
infiniflow:mainfrom
xugangqiang:fix/task-chunker-test-want1
Aug 5, 2026
Merged

yuzhichang merged 1 commit into
infiniflow:mainfrom
xugangqiang:fix/task-chunker-test-want1

Conversation

@xugangqiang

Copy link
Copy Markdown
Contributor

Two real-pipeline integration tests asserted exactly 2 chunks. After #17739 (JSON path merges globally, keeping over-budget items whole), the Go TokenChunker collapses adjacent text across items into one global token budget, so these pipelines now emit 1 chunk. The want 2 expectation was stale.

  • TestPipelineExecutor_Run_RealCanvasDSL_UsesGeneralPipeline
  • TestRunPipeline_RealPipelineOutput_ProducesIndexFields

Unchanged per-chunk checks (content_with_weight non-empty, doc_id match, ltks) still guard correctness.

Related: #17739 (root cause), #17835 (chunker OVER_CAP alignment).

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Aug 5, 2026
@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f1cbf6db-9826-45cf-9847-583366ae0c5e

📥 Commits

Reviewing files that changed from the base of the PR and between f057544 and d3f93b0.

📒 Files selected for processing (1)
  • internal/ingestion/task/pipeline_real_integration_test.go

📝 Walkthrough

Walkthrough

Two real pipeline integration tests now expect one inserted or processed chunk instead of two.

Changes

Pipeline test updates

Layer / File(s) Summary
Update chunk count assertions
internal/ingestion/task/pipeline_real_integration_test.go
Two real pipeline integration tests now expect exactly one chunk.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: jinhai-cn

Poem

A rabbit checks the chunk count bright,
One piece remains, just right.
The pipeline hops through every test,
Two became one, the new request.
Nibble, pass, and rest!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states that the tests now expect one chunk after the global merge introduced by #17739.
Description check ✅ Passed The description explains the change, its cause, affected tests, retained checks, and related issues.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@xugangqiang xugangqiang added the ci Continue Integration label Aug 5, 2026
@yuzhichang
yuzhichang merged commit da5215c into infiniflow:main Aug 5, 2026
6 checks passed
@xugangqiang
xugangqiang deleted the fix/task-chunker-test-want1 branch August 7, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants