gitstream icon indicating copy to clipboard operation
gitstream copied to clipboard

Same comment is left on an unchanged line

Open echarrod opened this issue 5 months ago • 8 comments

Describe the bug

For a given review, a comment is left, but this comment is also left for an unaffected line (was not changed at all). This means "unable to load diff" is shown in main PR view (on GitLab), and in the changes view, the same comment is left twice

Expected behavior

  • Comments are not left on lines that are unchanged

Screenshots

Main MR view:

Image

Files changed view:

Image

Additional context

  • Updated to docker version v1.0.142 today

echarrod avatar Aug 11 '25 14:08 echarrod

Hi @echarrod , could you share the MR URL? We’re checking it now

yeelali14 avatar Aug 11 '25 15:08 yeelali14

Hi @echarrod , could you share the MR URL? We’re checking it now

It's on a private GitLab repo I'm afraid, we're running the docker image v1.0.142 against it

echarrod avatar Aug 11 '25 15:08 echarrod

@echarrod yeah, I just need this to track the code review request in the logs

yeelali14 avatar Aug 11 '25 16:08 yeelali14

Also, I can’t reproduce this scenario—can you briefly describe what changed?

yeelali14 avatar Aug 11 '25 16:08 yeelali14

Ah thanks. URL = https://gitlab.com/lunomoney/product-engineering/core/-/merge_requests/65992

We updated from 1.0.141 to 1.0.142, and got the inline comments, but some were invalid in that they were leaving the same comment twice - one on the actual line changed, and then one in a line above it, which hadn't changed. This comment manifested as "unable to load the diff" in the comment, as shown in the 1st screenshot

echarrod avatar Aug 12 '25 17:08 echarrod

In rare cases we may comment on an unchanged line if the review flags an existing issue, but it definitely shouldn’t show “unable to load the diff” on the main PR page. Could be a race condition. I’ll try to reproduce and get a fix out fast. Thank you! 🙏

yeelali14 avatar Aug 13 '25 12:08 yeelali14

Happened again on https://gitlab.com/lunomoney/product-engineering/core/-/merge_requests/66351 (and we updated to 1.0.143)

Image

echarrod avatar Aug 19 '25 09:08 echarrod

Hey, We're looking into this :)

EladKohavi avatar Aug 21 '25 07:08 EladKohavi