Repository navigation
refactor: remove resume (CV) workflow DSL template and Go handling code - #18177
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe 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. ChangesResume artifact cleanup
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: ⚪ Minimal · up to 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: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
internal/ingestion/component/extractor_test.go (1)
1661-1661: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd invocation coverage for the generic
@chunksplaceholder.
ExtractorComponentimplements{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
📒 Files selected for processing (13)
agent/templates/cv_analysis_and_candidate_evaluation.jsoninternal/admin/service.gointernal/agent/dsl/testdata/resume.jsoninternal/common/parser_config.gointernal/entity/dataset.gointernal/ingestion/component/extractor.gointernal/ingestion/component/extractor_test.gointernal/ingestion/component/slice3_test.gointernal/ingestion/pipeline/builtin_registry_test.gointernal/ingestion/pipeline/template/ingestion_pipeline_resume.jsoninternal/ingestion/pipeline/template_integration_test.gointernal/ingestion/task/pipeline_executor_defaults_test.gointernal/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
875ae46 to
9771e79
Compare
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.
9771e79 to
f483523
Compare
wangq8
left a comment
There was a problem hiding this comment.
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:Resumefromparser_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 inextractor.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.goandslice3_test.goedits are comment-only. The only non-comment change is the deleted test. - Test removal is fine.
TestSubstitutePromptPlaceholders_ReplacesAtChunks(slice3_test.go) still pins the@chunkssubstitution, and the suppress-append path is still covered byTestExtractorComponent_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.goreadsagent/templates/*.jsondynamically, and theid 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.jsonisn't loaded by name (the fixture-smoke test walks the directory), and no Go code referencescv_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.
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
agent/templates/cv_analysis_and_candidate_evaluation.json(CV Analysis and Candidate Evaluation agent template)internal/ingestion/pipeline/template/ingestion_pipeline_resume.json(resume ingestion pipeline template) andinternal/agent/dsl/testdata/resume.json(resume DSL testdata)ParserTypeResume(internal/entity/dataset.go), the"resume"parser config entry (internal/common/parser_config.go), andresume:Resumefromparser_idsstrings (internal/admin/service.go,internal/service/user.go)Templates are seeded dynamically from
agent/templates/*.jsonandinternal/ingestion/pipeline/template/*.json, so no registration code change is required.Testing
bash build.sh --testfor affected packages (internal/entity,internal/common,internal/admin,internal/service,internal/ingestion/...) all pass.