Skip to content

refactor: remove resume (CV) workflow DSL template and Go handling code - #18177

Merged
wangq8 merged 2 commits into
infiniflow:mainfrom
jay77721:remove-dsl-resume-workflow
Aug 13, 2026
Merged

wangq8 merged 2 commits into
infiniflow:mainfrom
jay77721:remove-dsl-resume-workflow

Conversation

@jay77721

Copy link
Copy Markdown
Member

Summary

Remove the resume (CV, 简历) workflow DSL template and all Go-side resume/CV handling code. The checkpoint/resume (resume execution) machinery is intentionally left untouched.

Changes

  • DSL template: delete agent/templates/cv_analysis_and_candidate_evaluation.json (CV Analysis and Candidate Evaluation agent template)
  • Go templates: delete internal/ingestion/pipeline/template/ingestion_pipeline_resume.json (resume ingestion pipeline template) and internal/agent/dsl/testdata/resume.json (resume DSL testdata)
  • Parser registration: drop ParserTypeResume (internal/entity/dataset.go), the "resume" parser config entry (internal/common/parser_config.go), and resume:Resume from parser_ids strings (internal/admin/service.go, internal/service/user.go)
  • Tests/references: remove the resume-template chunk-path test, the resume pipeline integration test, the resume golden component-params entry, and resume-related comments; neutralize the resume-template component id used as sample data in generic placeholder-substitution tests

Templates are seeded dynamically from agent/templates/*.json and internal/ingestion/pipeline/template/*.json, so no registration code change is required.

Testing

bash build.sh --test for affected packages (internal/entity, internal/common, internal/admin, internal/service, internal/ingestion/...) all pass.

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 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: 8325e7f5-9132-46ce-85d2-797672c227a6

📥 Commits

Reviewing files that changed from the base of the PR and between 9771e79 and f483523.

📒 Files selected for processing (2)
  • internal/ingestion/component/extractor.go
  • internal/ingestion/component/extractor_test.go
🚧 Files skipped from review as they are similar to previous changes (2)
  • internal/ingestion/component/extractor_test.go
  • internal/ingestion/component/extractor.go

📝 Walkthrough

Walkthrough

The change deletes the CV evaluation workflow template and resume fixture. It also removes resume-specific extractor regression coverage and generalizes comments for chunk placeholder substitution. Runtime behavior is unchanged.

Changes

Resume artifact cleanup

Layer / File(s) Summary
Remove resume workflow and fixture artifacts
agent/templates/cv_analysis_and_candidate_evaluation.json, internal/agent/dsl/testdata/resume.json
The CV evaluation workflow template and resume workflow fixture are deleted.
Generalize chunk placeholder documentation
internal/ingestion/component/extractor.go, internal/ingestion/component/extractor_test.go, internal/ingestion/component/slice3_test.go
Resume-specific comments and regression coverage are removed. Remaining comments use generic component and parameter placeholder terminology. Runtime behavior is unchanged.

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

Mergeability Score: ⚪ Minimal · up to f4835

This change removes the obsolete resume workflow DSL and related handling while leaving execution checkpoint/resume behavior untouched; no actionable merge-blocking risk remains after normal checks and review.

Possibly related PRs

Suggested reviewers: yuzhichang

Poem

I’m a rabbit with a tidy trail,
Resume artifacts leave the warren’s rail.
Generic chunks now mark the way,
Old templates hop away.
Tests grow quiet; docs stay clear,
A clean workflow greets the year.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the removal of the resume workflow DSL template and related Go handling code.
Description check ✅ Passed The description includes the required Summary section and provides clear background, changes, scope, and testing details.
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.

@jay77721 jay77721 added the ci Continue Integration label Aug 12, 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/component/extractor_test.go (1)

1661-1661: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Add invocation coverage for the generic @chunks placeholder.

ExtractorComponent implements {ComponentName:ParamName@chunks}, but current invocation tests cover only simple {chunks} substitution. Add a stub-invoker test with {TitleChunker:SampleNode@chunks} and assert replacement and chunk delivery.

🤖 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/component/extractor_test.go` at line 1661, Add invocation
coverage in the ExtractorComponent tests using a stub invoker and the generic
{TitleChunker:SampleNode@chunks} placeholder; assert that the placeholder is
replaced correctly and the expected chunks are delivered to the invoker.

Source: Coding guidelines

🤖 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/component/extractor_test.go`:
- Line 1661: Add invocation coverage in the ExtractorComponent tests using a
stub invoker and the generic {TitleChunker:SampleNode@chunks} placeholder;
assert that the placeholder is replaced correctly and the expected chunks are
delivered to the invoker.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f5409d43-0d64-477c-9f1e-0d99d3dc85d1

📥 Commits

Reviewing files that changed from the base of the PR and between 5b701f2 and 875ae46.

📒 Files selected for processing (13)
  • agent/templates/cv_analysis_and_candidate_evaluation.json
  • internal/admin/service.go
  • internal/agent/dsl/testdata/resume.json
  • internal/common/parser_config.go
  • internal/entity/dataset.go
  • internal/ingestion/component/extractor.go
  • internal/ingestion/component/extractor_test.go
  • internal/ingestion/component/slice3_test.go
  • internal/ingestion/pipeline/builtin_registry_test.go
  • internal/ingestion/pipeline/template/ingestion_pipeline_resume.json
  • internal/ingestion/pipeline/template_integration_test.go
  • internal/ingestion/task/pipeline_executor_defaults_test.go
  • internal/service/user.go
💤 Files with no reviewable changes (7)
  • agent/templates/cv_analysis_and_candidate_evaluation.json
  • internal/ingestion/pipeline/template/ingestion_pipeline_resume.json
  • internal/common/parser_config.go
  • internal/entity/dataset.go
  • internal/agent/dsl/testdata/resume.json
  • internal/ingestion/pipeline/template_integration_test.go
  • internal/ingestion/pipeline/builtin_registry_test.go

@jay77721
jay77721 force-pushed the remove-dsl-resume-workflow branch from 875ae46 to 9771e79 Compare August 12, 2026 11:19
Remove the Go-side resume (resume/CV, 简历) handling code:
- delete the resume ingestion pipeline template and its agent DSL testdata
- drop the resume parser registration (ParserTypeResume, parser_ids
  strings in admin/user services, parser_config entry)
- drop the resume-template @chunks placeholder tests and references

This is limited to resume-as-CV handling; the checkpoint/resume
(resume execution) machinery is intentionally untouched.
Delete the CV Analysis and Candidate Evaluation agent template
(cv_analysis_and_candidate_evaluation.json). Templates are seeded
dynamically from agent/templates/*.json, so no code change is needed.
@jay77721
jay77721 force-pushed the remove-dsl-resume-workflow branch from 9771e79 to f483523 Compare August 13, 2026 01:51
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Aug 13, 2026
@jay77721 jay77721 added ci Continue Integration and removed ci Continue Integration labels Aug 13, 2026
@jay77721
jay77721 requested a review from wangq8 August 13, 2026 02:08

@wangq8 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the cleanup! Reviewed the full diff. Overall this is a safe, low-risk deletion PR with no functional code changes. A few notes:

Description accuracy (please fix)

The PR body lists several changes that are not in this diff:

  • deleting internal/ingestion/pipeline/template/ingestion_pipeline_resume.json
  • dropping ParserTypeResume (internal/entity/dataset.go)
  • removing the "resume" parser config entry (internal/common/parser_config.go)
  • removing resume:Resume from parser_ids (internal/admin/service.go, internal/service/user.go)
  • resume pipeline integration test + golden component-params entry

All of those were already handled in #18173 ("fix(ingestion): remove broken built-in Resume pipeline"), which is merged into main. This PR only actually:

  • deletes agent/templates/cv_analysis_and_candidate_evaluation.json
  • deletes internal/agent/dsl/testdata/resume.json
  • removes TestExtractorComponent_Invoke_ResumeTemplateChunksPath + comment cleanups in extractor.go / slice3_test.go

Could you update the summary so it matches the actual diff? It'll save the next reviewer from hunting for changes that aren't there.

Technical review

  • No functional code change. extractor.go and slice3_test.go edits are comment-only. The only non-comment change is the deleted test.
  • Test removal is fine. TestSubstitutePromptPlaceholders_ReplacesAtChunks (slice3_test.go) still pins the @chunks substitution, and the suppress-append path is still covered by TestExtractorComponent_Invoke_SystemPromptPlaceholderSuppressesAppend. Since the resume template was the only production consumer of @chunks, the dedicated regression guard is no longer needed.
  • Seeding is safe. canvas_template_seed.go reads agent/templates/*.json dynamically, and the id NOT IN ? cleanup will drop stale id=15 rows on reseed. No hardcoded references to the template id/file anywhere.
  • No dangling refs. testdata/resume.json isn't loaded by name (the fixture-smoke test walks the directory), and no Go code references cv_analysis / the template id 15.
  • No security concerns, no new tests needed (deletion-only).

Minor nit (non-blocking): the @chunks substitution machinery in buildExtractorMessages now has zero production consumers. It's intentionally kept for future per-component substitution and the comment documents that, so this is fine — just noting it's now effectively dormant code.

CI is green and the branch merges cleanly. LGTM once the description is corrected.

@wangq8
wangq8 merged commit e1b8366 into infiniflow:main Aug 13, 2026
7 of 12 checks passed
@jay77721
jay77721 deleted the remove-dsl-resume-workflow branch August 13, 2026 08:47
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