Repository navigation
fix: verify the re-vendor reply independently of log order - #5022
Merged
Merged
Conversation
The reload test confused the last record with the sent reply. An admitted seen record after delivery reproduces its KeyError. Identify the original thread and require one user reply containing the exact draft, while preserving the unsent draft and deferred reload assertions. No product behavior changes. Closes #4955
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.
The re-vendor reload test treated the log's final record as the sent reply. It now identifies the original thread and requires exactly one user reply containing the draft's exact words, preserving the existing checks for unsent words, focus, deferred reload and the eventual fresh document. This corrects the test introduced in #3098 without changing product behavior.
An admitted
seenrecord appended after delivery makes the old assertion deterministically fail withKeyError: 'text'; the corrected test passes with the same ordering. The historical failure's log does not identify its final record's kind, so this reproduction establishes the unsafe ordering assumption rather than claiming that historical record wasseen. The focused browser test, Ruff check, Ruff format check and diff whitespace check pass.Closes #4955 — automated triage