Repository navigation
Fix integration test failures: Conversations table PK and stale attack_identifier references - #2024
Merged
hannahwestra25 merged 1 commit intoJun 16, 2026
Conversation
…ck_identifier Add new migration (d4e5f6a7b8c9) to alter Conversations.conversation_id from unbounded String to String(36) for SQL Server PK compatibility. VARCHAR(max) cannot be used as a primary key in SQL Server (error 1919). Also update ConversationEntry model to match. Remove stale attack_identifier references from integration test mocks and GPT-5 tests. MessagePiece now uses extra='forbid' and no longer has an attack_identifier field. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
hannahwestra25
force-pushed
the
hannahwestra25/fix-conversations-migration-varchar-max
branch
from
June 16, 2026 15:56
da4d6e5 to
f10a27a
Compare
Behnam (behnam-o)
approved these changes
Jun 16, 2026
Behnam (behnam-o)
left a comment
Collaborator
There was a problem hiding this comment.
looks good, thank you!
hannahwestra25
enabled auto-merge
June 16, 2026 16:03
hannahwestra25
deleted the
hannahwestra25/fix-conversations-migration-varchar-max
branch
June 16, 2026 16:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Integration tests had 8 ERRORs and 5+ FAILEDs caused by two issues:
VARCHAR(max)as primary key in SQL Server — Theb2f4c6a8d1e3migration createsconversation_idassa.String()(no length), which maps toVARCHAR(max)on MSSQL. SQL Server cannot useVARCHAR(max)as a primary key (error 1919). This broke all 8test_azure_sql_memory_integrationtests.Stale
attack_identifierreferences —MessagePiecenow usesextra='forbid'and no longer has anattack_identifierfield, but several integration test files still referenced it. This causedValidationError/AttributeErrorin 5+ tests including the GPT-5 response tests, rate limiting test, and retry timing test.Fix
Added a new migration (
d4e5f6a7b8c9) that altersConversations.conversation_idfromString()toString(36). UpdatedConversationEntrymodel to match.Removed
attack_identifierfromMockPromptTarget(set_system_promptand_send_prompt_to_target_async) and fromMessagePiececonstructors intest_openai_responses_gpt5.py.