Skip to content

SWF(bug): fix spark test build after #56 and #60 merged together - #63

Merged
maplepaladin73 merged 1 commit into
mainfrom
devin/1795385477-fix-spark-test-build
Nov 22, 2026
Merged

maplepaladin73 merged 1 commit into
mainfrom
devin/1795385477-fix-spark-test-build

Conversation

@maplepaladin73

@maplepaladin73 maplepaladin73 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

On main, the spark test binary (cargo test -p spark-server --bin spark) does not compile, so the server's tests can't run. This PR adds the missing third argument to one test call.

Root cause: #60 added a conversation-prefix length (usize) as a third element of the conversation tuple that translate_chat_response_to_responses takes. #56 added a test that passes the old two-element tuple. Each PR passed CI on its own, but together they break the build. The fixture starts with an empty conversation, so the correct prefix length is 0.

Test plan

Before (main at 6ccfe65):

error[E0308]: mismatched types
    expected a tuple with 3 elements, found one with 2 elements
    = note: expected tuple `(std::sync::Arc<conversation_store::ConversationStore>, std::string::String, usize)`
error: could not compile `spark-server` (bin "spark" test) due to 1 previous error

After:

test result: ok. 3233 passed; 0 failed; 14 ignored; 0 measured; 0 filtered out; finished in 23.12s

Try it:

ATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo test -p spark-server --bin spark persists_large_conversation_turn
  • cargo fmt --all -- --check
  • ATLAS_SKIP_BUILD=1 CUDARC_CUDA_VERSION=13000 cargo clippy --workspace --tests
  • bash scripts/check-license-headers.sh
  • typos
  • Real model / hardware: not applicable (this change only touches a test).

Notes for reviewers

The change is test-only: one line in responses_incomplete_tests.rs.

CLA


Software Factory opened this PR for Robert
Implemented in session Persist Responses turns with more than 20 items
Review with Devin · Open in Devin Desktop


… change

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@maplepaladin73
maplepaladin73 merged commit d638711 into main Nov 22, 2026
1 check passed
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