Skip to content

chore(tests): every TextGenerationRequest fixture uses ..Default::default() — and the second test #1952 broke compiles again - #3695

Merged
joelteply merged 1 commit into
canaryfrom
bf9409ca/dry-text-generation-request-fixtures
Sep 4, 2026
Merged

joelteply merged 1 commit into
canaryfrom
bf9409ca/dry-text-generation-request-fixtures

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Seven integration fixtures enumerated every field of TextGenerationRequest
so each new sampling knob broke them. #1952 broke two: #3692 fixed
persona_command_inbound_pump; airc_remote_inference_end_to_end (the
cross-grid e2e proof) was still red on canary and is fixed here. The
other five kept only their real values (system_prompt / model / provider
/ temperature / max_tokens / purpose / persona_id) and take
..Default::default() for the rest — 82 explicit-None lines gone, nested
ChatMessage literals untouched (no Default there).

Verified: cargo check -p continuum-core --tests --features test-fixtures
(Intel Mac features) clean across all targets.

airc card: bf9409ca

Co-Authored-By: Claude Fable 5.1 [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…ault() — and the second test #1952 broke compiles again

Seven integration fixtures enumerated every field of TextGenerationRequest
so each new sampling knob broke them. #1952 broke two: #3692 fixed
persona_command_inbound_pump; airc_remote_inference_end_to_end (the
cross-grid e2e proof) was still red on canary and is fixed here. The
other five kept only their real values (system_prompt / model / provider
/ temperature / max_tokens / purpose / persona_id) and take
..Default::default() for the rest — 82 explicit-None lines gone, nested
ChatMessage literals untouched (no Default there).

Verified: cargo check -p continuum-core --tests --features test-fixtures
(Intel Mac features) clean across all targets.

airc card: bf9409ca

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply

Copy link
Copy Markdown
Contributor Author

Adversarial agent review: APPROVE. Verified against post-patch source: every deleted line was None; all kept values (system_prompt/model/provider/temperature/max_tokens/purpose/persona_id) intact; ..Default::default() last inside each TextGenerationRequest literal, never inside ChatMessage (which does not derive Default — all three of its fields remain explicit); TextGenerationRequest derives Default with no custom impl and every omitted field is Option. Confirmed origin/canary's airc_remote_inference_end_to_end.rs:277-297 omits frequency_penalty/repeat_last_n — canary's copy does not compile today; this PR fixes it. Auto-merge armed.

@joelteply
joelteply enabled auto-merge (squash) September 4, 2026 17:07
@joelteply
joelteply merged commit 9eb0693 into canary Sep 4, 2026
4 checks passed
@joelteply
joelteply deleted the bf9409ca/dry-text-generation-request-fixtures branch September 4, 2026 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant