Skip to content

test(agent-orchestrator): add model type tests after recipe-path refactor#1129

Open
jomcgi wants to merge 3 commits intomainfrom
test/agent-orchestrator-model-types
Open

test(agent-orchestrator): add model type tests after recipe-path refactor#1129
jomcgi wants to merge 3 commits intomainfrom
test/agent-orchestrator-model-types

Conversation

@jomcgi
Copy link
Owner

@jomcgi jomcgi commented Mar 14, 2026

Summary

  • Commit f956802b (and its parent 52022e97) refactored model.go to replace Recipe map[string]any + Model string on AgentInfo with a single RecipePath string field
  • model.go had no corresponding model_test.go — this PR adds one
  • New model_test.go covers JSON serialization key behaviors: recipePath JSON key, omitempty on empty RecipePath, JobStatus string constants, JobRecord pipeline fields (PipelineID, StepIndex, StepCondition), PipelineStep conditions, GooseResult pipeline field, and SubmitRequest optional fields
  • BUILD updated to include model_test.go in both orchestrator_unit_test and orchestrator_test targets

Test plan

  • bb test //projects/agent_platform/orchestrator:orchestrator_unit_test passes locally (all 10 new model tests pass)
  • CI bazel test //... passes

🤖 Generated with Claude Code

Goose and others added 3 commits March 14, 2026 01:12
…ath refactor

Add model_test.go covering JSON serialization of AgentInfo (verifying the
new RecipePath field and omitempty), JobStatus constants, JobRecord pipeline
fields, PipelineStep conditions, GooseResult, and SubmitRequest optional fields.
Register the new test file in both Bazel test targets in BUILD.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant