Skip to content

Fix Pipeline.Run callers and rename SetupOverrides - #16973

Merged
yuzhichang merged 4 commits into
infiniflow:mainfrom
yuzhichang:agent-go-port
Jul 16, 2026
Merged

yuzhichang merged 4 commits into
infiniflow:mainfrom
yuzhichang:agent-go-port

Conversation

@yuzhichang

Copy link
Copy Markdown
Member

Adapt Pipeline.Run call sites to the new signature and rename the SetupOverrides family to OverrideParams for consistency.

- Adapt all Pipeline.Run call sites to the new signature (override_params
  arg); previously-variadic setups were never passed, so nil preserves
  behavior.
- Restore unexported canvas ctx-helper that was mistakenly exported as
  WithOverrideParams, clashing with the exported CompileOption.
- Rename the SetupOverrides family to OverrideParams for consistency with
  the WithOverrideParams option.
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 16, 2026
@coderabbitai

coderabbitai Bot commented Jul 16, 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

Run ID: d8ca05d6-d19f-4883-a383-dd9933229024

📥 Commits

Reviewing files that changed from the base of the PR and between 1c746bb and daea171.

📒 Files selected for processing (1)
  • internal/ingestion/pipeline/pipeline_test.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • internal/ingestion/pipeline/pipeline_test.go

📝 Walkthrough

Walkthrough

Canvas override plumbing is renamed from setup overrides to override parameters. Pipeline.Run now accepts one override map, forwards it into compilation, and affected production and test call sites pass the new argument.

Changes

Override parameter application

Layer / File(s) Summary
Node override application
internal/agent/canvas/node_body.go, internal/agent/canvas/node_body_setup_override_test.go
Context helpers and node-body application now use OverrideParams, preserving component-scoped shallow setup merging and nil no-op behavior.
Compile override wiring
internal/agent/canvas/compile.go, internal/agent/canvas/compile_setup_override_test.go
CompileOptions and its helper use OverrideParams, and compilation passes the renamed context override through the existing flow.
Pipeline Run API migration
internal/ingestion/pipeline/pipeline.go, internal/ingestion/pipeline/*_test.go, internal/ingestion/task/*
Pipeline.Run accepts a single override map, conditionally adds canvas.WithOverrideParams, and updates production and test invocations with the new argument.

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

Possibly related PRs

Suggested labels: ci, ☯️ refactor, size:M

Suggested reviewers: jinhai-cn

Poem

I nibbled old names till new ones grew,
Override params hopped into view.
Pipelines now carry their map with care,
Tests follow the carrot trail there.
Hop, hop—clean wiring everywhere!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 19.05% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: Pipeline.Run caller updates and the SetupOverrides to OverrideParams rename.
Description check ✅ Passed The description matches the required Summary section and explains the purpose of the PR.
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.

@yuzhichang yuzhichang added the ci Continue Integration label Jul 16, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
internal/ingestion/pipeline/pipeline.go (1)

215-221: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Use camelCase for Go variables and parameters.

In Go, variables and parameters should be named using camelCase rather than snake_case. Both the function signature and its references should be updated.

  • internal/ingestion/pipeline/pipeline.go#L215-L221: Rename the parameter override_params to overrideParams.
  • internal/ingestion/pipeline/pipeline.go#L262-L265: Update the reference from override_params to overrideParams.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@internal/ingestion/pipeline/pipeline.go` around lines 215 - 221, Rename the
Run method parameter override_params to overrideParams and update every
reference accordingly, including internal/ingestion/pipeline/pipeline.go lines
215-221 and 262-265. No other behavior changes are needed.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@internal/ingestion/pipeline/pipeline.go`:
- Around line 215-221: Rename the Run method parameter override_params to
overrideParams and update every reference accordingly, including
internal/ingestion/pipeline/pipeline.go lines 215-221 and 262-265. No other
behavior changes are needed.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0e813f2e-af68-4d4b-908e-e101e5afc49e

📥 Commits

Reviewing files that changed from the base of the PR and between d2e5e48 and 1c746bb.

📒 Files selected for processing (10)
  • internal/agent/canvas/compile.go
  • internal/agent/canvas/compile_setup_override_test.go
  • internal/agent/canvas/node_body.go
  • internal/agent/canvas/node_body_setup_override_test.go
  • internal/ingestion/pipeline/pipeline.go
  • internal/ingestion/pipeline/pipeline_test.go
  • internal/ingestion/pipeline/real_storage_integration_test.go
  • internal/ingestion/pipeline/template_integration_test.go
  • internal/ingestion/task/pipeline_executor_defaults.go
  • internal/ingestion/task/pipeline_real_integration_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant