Skip to content

TEST: Stabilize conversation sends and isolate frontend mounts - #3015

Merged
Roman Lutz (romanlutz) merged 5 commits into
microsoft:mainfrom
richlundeen:richlundeen-conversation-send-test-reliability
Oct 8, 2026
Merged

Roman Lutz (romanlutz) merged 5 commits into
microsoft:mainfrom
richlundeen:richlundeen-conversation-send-test-reliability

Conversation

@richlundeen

@richlundeen Richard Lundeen (richlundeen) commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fix two backend test reliability issues in separate commits. Production code and dependencies are unchanged.

  • The conversation editor test now uses the existing bounded send-completion helper, moved to shared backend test helpers. A one-second status wait can return FINALIZING; it does not guarantee completion. Keep the COMPLETED, target-binding, and owned-conversation assertions. Always shut down and drain owned sends before the send mock closes and SQLite teardown starts, including after assertion failures or timeouts.
  • The frontend setup test now mocks app.mount and checks the mount arguments. It no longer adds a catch-all static route to the shared app. That route caused the later resume GET test to return 404 instead of 405. The failure reproduced on unchanged upstream main and with only those two tests.

The send failure occurred in the merge-queue job for #2979. These tests were unchanged by that PR. This PR starts from upstream main and is not stacked on #2979 or #3011. The changes do not overlap the changes in #3011.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Oct 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 8, 2026
Roman Lutz (romanlutz) and others added 2 commits October 7, 2026 23:55
Preserve both async wait helpers and guard failure-path test state.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Richard Lundeen (richlundeen) added a commit to richlundeen/PyRIT that referenced this pull request Oct 8, 2026
Merge origin/main at c8aa5bd without conflicts, preserving scorer contracts, task cancellation cleanup, and matcher identity. Reuse only the backend test helpers and failing conversation-editor test repair from richlundeen's microsoft#3015 (789802b). Wait for a terminal send state and drain tasks before mock and database teardown; retain all existing assertions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ebae5d0f-7b81-4426-afaf-4e884f12cca3
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 8, 2026
Merged via the queue into microsoft:main with commit 735aa6e Oct 8, 2026
47 checks 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.

3 participants