Skip to content

refactor - #21875

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix799
Nov 2, 2026
Merged

refactor#21875
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix799

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Jin Hai <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1c004294-b8b6-42a3-923d-c2acfb7445e2
Commits

Reviewing files that changed from the base of the PR and between 543f57e and 3172b95.

Files selected for processing: 10
  • internal/deepdoc/parser/pdf/table/table_span_inject_test.go
  • internal/harness/graph/checkpoint/nats.go
  • internal/harness/graph/pregel/pregel_pressure_test.go
  • internal/ingestion/component/chunker/image_upload.go
  • internal/ingestion/task/pipeline_executor.go
  • internal/service/dataset/pipeline_version_binding_test.go
  • internal/service/dataset/update.go
  • internal/service/document/document_test.go
  • internal/service/document/document_version_pin_pipeline_change_test.go
  • internal/service/document/document_version_pin_update_test.go
Files with no reviewable changes: 1
  • internal/harness/graph/pregel/pregel_pressure_test.go

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Walkthrough

The pull request revises or removes comments and test headings across several packages. In collectGarbage, the NATS delete call now assigns its error to the existing err variable. Test logic and expectations are unchanged.

Changes: Comment and minor code cleanup

Layer / File(s) Summary
Test descriptions and headings
internal/deepdoc/parser/pdf/table/table_span_inject_test.go, internal/harness/graph/pregel/pregel_pressure_test.go, internal/service/dataset/pipeline_version_binding_test.go, internal/service/document/*_test.go
Test comments were revised, and Pregel test-group headings were removed. Test logic and expectations were not changed.
Source comments and NATS error assignment
internal/harness/graph/checkpoint/nats.go, internal/ingestion/component/chunker/image_upload.go, internal/ingestion/task/pipeline_executor.go, internal/service/dataset/update.go
Source comments were revised or removed. collectGarbage assigns the delete result to the existing err variable; successful deletes still increment purged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Suggested reviewers: xugangqiang, jay77721

Merge Risk: Minimal · up to 3172b

No actionable merge-blocking risk was identified in this cleanup change.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Description check Warning The pull request has no description. It does not include the required Summary section or explain the purpose and scope of the changes. Add a description with a ### Summary heading. Explain that the changes clean up comments and correct error assignment in collectGarbage, and state that test behavior is unchanged.
Title check Inconclusive The title "refactor" is generic and does not identify the changes, which mainly remove or revise comments and fix error assignment in collectGarbage. Use a specific title, such as "Clean up comments and fix garbage-collection error handling."
Passed Passed checks: 3 passed
Check name Status Explanation
Docstring Coverage Passed Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentati…
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.
Full details: Docstring Coverage

Explanation

Docstring coverage is 83.33% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 6 functions across 9 files.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

A rabbit checks the comments twice,
Then trims a dash to make it nice.
Test headings hop out of the way,
While NATS reuses err today.
The code keeps calm, the carrots stay.

@JinHai-CN
JinHai-CN marked this pull request as ready for review November 2, 2026 13:13
@JinHai-CN JinHai-CN added the ci Continue Integration label Nov 2, 2026
@JinHai-CN
JinHai-CN merged commit 2fb37b4 into infiniflow:main Nov 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant