Skip to content

fix(tests): persona_command_inbound_pump fixture uses ..Default::default() — #1952 broke the explicit-None initializer - #3692

Merged
joelteply merged 1 commit into
canaryfrom
0797e204/inbound-pump-test-default-fields
Sep 4, 2026
Merged

joelteply merged 1 commit into
canaryfrom
0797e204/inbound-pump-test-default-fields

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

tests/persona_command_inbound_pump.rs stopped compiling: #1952 added frequency_penalty + repeat_last_n to TextGenerationRequest and updated five sibling integration tests, but missed this one.

Fix: the struct derives Default, so the fixture now uses struct-update syntax (..Default::default()) instead of enumerating every field — the next sampling knob can't break it.

Why nobody noticed

Every [[test]] with required-features = ["test-fixtures"] is compiled by nobody in CI: the windows job runs cargo check --lib --tests without --features test-fixtures, and the linux job runs cargo test --lib (no integration targets). Canary CI stayed green on f6c177c6c while this target was red. Found by an IntelMac cold-start cargo check --tests --features test-fixtures.

That's the class bug → airc card 9d249bd6 (add --features test-fixtures to the compile-only CI check). This PR is the symptom fix only.

Verification

cargo check -p continuum-core --test persona_command_inbound_pump --no-default-features --features livekit-webrtc,llama/mac-cpu-only,test-fixtures → clean on Intel Mac.

Refs

  • airc card: 0797e204 (this) · 9d249bd6 (CI gap)
  • CLAUDE.md § "If You Are About To Add a Test" — one fixture per concern, don't reinvent
  • continuum-core/Cargo.toml § test-fixtures gating

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

…ult() — #1952's new sampling knobs broke the explicit-None initializer

TextGenerationRequest gained frequency_penalty + repeat_last_n in #1952;
five sibling integration tests were updated, this one was not, and the
target stopped compiling. Nobody noticed because every
required-features=["test-fixtures"] target is invisible to CI (card
9d249bd6). Found by an IntelMac cold-start
`cargo check --tests --features test-fixtures` on canary f6c177c.

The struct derives Default, so the fixture now uses struct-update syntax
instead of enumerating every field — the next knob can't break it.

airc card: 0797e204

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
@joelteply
joelteply enabled auto-merge (squash) September 4, 2026 16:35
@joelteply

Copy link
Copy Markdown
Contributor Author

Adversarial agent review (per repo doctrine: agent reviews count as approval): APPROVE. Verified: TextGenerationRequest Default is derive-only with all-Option fields → ..Default::default() is behavior-identical to the deleted list; CI claim confirmed (linux --lib only, windows --lib --tests without test-fixtures); the 5 siblings were updated by #1952 and set real non-default values, so collapsing them is a separate DRY card, not this PR. Auto-merge armed on green checks.

@joelteply
joelteply merged commit 7491b21 into canary Sep 4, 2026
5 checks passed
@joelteply
joelteply deleted the 0797e204/inbound-pump-test-default-fields branch September 4, 2026 16:46
joelteply added a commit that referenced this pull request Sep 4, 2026
…ault() — and the second test #1952 broke compiles again (#3695)

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


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Fable 5.1 <[email protected]>
joelteply added a commit that referenced this pull request Sep 4, 2026
…uilt by nobody (#3693)

Every [[test]] in continuum-core/Cargo.toml with
required-features = ["test-fixtures"] is silently skipped by cargo when
the feature is absent. The linux job runs `cargo test --lib` (never
touches tests/) and the windows job ran `cargo check --lib --tests`
without the feature — so airc_remote_inference_end_to_end,
persona_command_inbound_pump, the architecture_* battery, etc. were
compiled by no CI job at all. #1952 broke persona_command_inbound_pump's
fixture and canary stayed green until an IntelMac cold-start check
found it (#3692).

Add `--features test-fixtures` to the windows compile-only check. It is
the required-status job, so a fixture-gated target that stops compiling
now blocks the merge that broke it. Compile-only: no test execution,
one extra check pass.

airc card: 9d249bd6


Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

Co-authored-by: Claude Fable 5.1 <[email protected]>
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