The GitHub Actions job "CI" on rocketmq-dashboard.git/rocketmq-studio has 
failed.
Run started by GitHub user lizhimins (triggered by lizhimins).

Head commit for run:
816abce63c0aed7444d2772836482dc56b31648c / 健康宝 <[email protected]>
fix(ai): truncate conversation titles on code point boundaries (#5213)

`deriveTitle` and `capTitle` cut on UTF-16 units, so a title ending in a 
supplementary character
stored a lone high surrogate, which the utf8mb4 `rmq_ai_conversation.title` 
column cannot represent;
`VARCHAR(512)` also counts characters, not UTF-16 units, so the cap did not 
match the column either.
Both now go through the existing `TextBounds.truncate`, which cuts on code 
point boundaries, and the
two new cases pin the whole-or-drop behaviour for the derived title and for the 
explicit-rename cap.

Known follow-up: one comment in `capTitleShouldCutOnCodePointBoundariesTest` 
attributes the old
behaviour to splitting the last emoji, which its fixture does not actually do - 
32 x (15 y + 1 emoji)
is 512 code points but 544 UTF-16 units, so the old cut stopped after 30 groups 
plus two y's. The
assertion itself is correct. `maintainerCanModify` is off on this PR, so the 
comment is corrected in
a separate pull request.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/37881474214

With regards,
GitHub Actions via GitBox

Reply via email to