Skip to content

Go: add error logs when fail to init infinity - #18235

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix639
Aug 13, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
JinHai-CN:fix639

Conversation

@JinHai-CN

Copy link
Copy Markdown
Member

No description provided.

@JinHai-CN
JinHai-CN marked this pull request as ready for review August 13, 2026 11:44
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. ♾️infinity Pull requests that‘s involved with infinity(DB) 🐞 bug Something isn't working, pull request that fix bug. labels Aug 13, 2026
@JinHai-CN JinHai-CN added ci Continue Integration and removed 🐞 bug Something isn't working, pull request that fix bug. ♾️infinity Pull requests that‘s involved with infinity(DB) size:XS This PR changes 0-9 lines, ignoring generated files. labels Aug 13, 2026
@coderabbitai

coderabbitai Bot commented Aug 13, 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: ec2bfcbf-a4ec-4fa3-a1eb-283574f3a63b

📥 Commits

Reviewing files that changed from the base of the PR and between a4e8195 and af1b5b3.

📒 Files selected for processing (2)
  • internal/engine/infinity/client.go
  • internal/ingestion/component/parser_dispatch_test.go

📝 Walkthrough

Walkthrough

The change adds warning logs to Infinity health retries. Parser dispatch tests now use the direct models package without changing mock behavior.

Changes

Infinity health logging

Layer / File(s) Summary
Log health check failures
internal/engine/infinity/client.go
WaitForHealthy logs connection checkout and ShowCurrentNode errors before continuing the existing retry loop.

Parser dispatch test imports

Layer / File(s) Summary
Use direct models types
internal/ingestion/component/parser_dispatch_test.go
Parser dispatch mocks, responses, and MinerU driver signatures use the direct models package. Existing validation, call counting, errors, and return values remain unchanged.

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

Mergeability Score: ⚪ Minimal · up to af1b5

This localized change is merge-ready after normal checks and review; no actionable merge-blocking risk remains.

Suggested reviewers: qinling0210, xugangqiang, yuzhichang

Poem

A rabbit checks the logs at night,
Then hops through models clean and bright.
Retries keep their steady pace,
Mocks wear a simpler namespace.
Test carrots grow in tidy rows.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request has no description, so the required Summary section and background context are missing. Add a Summary section that explains the Infinity initialization logging change and provides relevant background context.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly describes the main change: adding error logs when Infinity initialization or health checks fail.

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.

@JinHai-CN
JinHai-CN merged commit e2acf3a into infiniflow:main Aug 13, 2026
12 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