unbridled-41 commented on PR #4948:
URL: 
https://github.com/apache/rocketmq-dashboard/pull/4948#issuecomment-5776896213

   Verification, re-executed from the pushed branch (`01d399c9`), not restated 
from the description. (This replaces an earlier comment of mine whose 
`file:line` citations were off — the numbers below are the ones `grep -n` 
reports on the branch.)
   
   **Command and result**
   
   ```
   cd server && mvn -o test
   Tests run: 3153, Failures: 0, Errors: 17, Skipped: 0
   ```
   
   The 17 errors are this checkout's environment baseline, not a regression: 
`grep -c "Failed to load ApplicationContext"` on the log → 21 lines, all 
`Communications link failure` (there is no MySQL here). The same 17 appear on 
`origin/rocketmq-studio` before the change.
   
   `AiRunServiceTest` 23/23 on the branch (20 before it, 3 added).
   
   **Citations on the branch** (`fix/ai-replay-drain-backlog`)
   
   * `AiRunService.java:264` — `registry.attach` now runs before the replay 
(was `:275`, after the loop).
   * `AiRunService.java:271-277` — the detach-on-throw around the replay read.
   * `AiRunService.java:308-335` — `replayInto`, ending on the first short 
page; `:337-338` the `AiEventReplay` pair it returns.
   * Page size is still `AiConversationService.DEFAULT_TIMELINE_LIMIT` (200).
   
   **Pre-fix reproduction**
   
   With the test kept and only `AiRunService.java` restored to `1ef5d860`:
   
   ```
   AiRunServiceTest.attachShouldReplayABacklogLongerThanOneTimelinePageTest
   Expecting actual: <200 replayed "agent" frames> to contain: "the newest 
block"
   
   AiRunServiceTest.attachShouldNotLoseAFramePublishedWhileTheReplayIsReadTest
   Expecting actual: "event:agent" to contain: "published mid-replay"
   ```
   
   **Coverage statement**
   
   Those two cover the two defects: a backlog longer than one page, and a frame 
published between the replay read and the observer registration. The third new 
test (`attachShouldDetachTheObserverWhenTheReplayReadFailsTest`) cannot fail on 
the old code — it guards the registration the fix introduces — and is not 
counted as pre-fix evidence.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to