[go: up one dir, main page]

Skip to content

GitLab Duo Chat: How can I improve this merge request? behavior

Summary

While on an existing merge request and asking GitLab Duo "How can I improve this merge request?" Duo provides information for a different merge request.

Steps to reproduce

  1. Open a merge request in GitLab Self Managed
  2. Open GitLab Duo Chat
  3. Prompt GitLab Duo Chat "How can I improve this merge request?"
  4. GitLab Duo Chat responds with information for a different merge request.

Example Project

What is the current bug behavior?

GitLab Duo Chat returns information for different merge request than the merge request that is open.

From Customer: I'm trying out Duo, using the same prompt from the office hours today (I wasn't there; I'm watching the recording now) of "How can I improve this merge request?" Unfortunately, Duo appears to be giving me feedback for how I could improve a totally different merge request that I made a few weeks ago. That MR was in a different repository and has been closed. Also, I've since made other merge requests since then. Rather odd!

I suppose I did give Duo a bit of a curve ball here: when I asked it about "this merge request", I wasn't on a merge request that I made. I'd still like to hear ideas that Duo has about how the MR could be improved, so that's why I asked about it. But maybe that threw it for a loop.

Additional information:

Hi, I was just thinking about this and wondering if I may have missed some of the context. Did you have a merge request open at the time you asked Duo how the merge request could be improved, or did you ask Duo when you were within another location?

From Customer: Yeah good question. The MR that it appeared to give feedback on was merged at the time I asked Duo the question. The location in the browser that I was in when i asked Duo the question was an open MR in a totally different repository. I would expect Duo to be able to infer the context of "whatever page I'm looking at should be the primary context"

What is the expected correct behavior?

GitLab Duo Chat should respond with information specific to the Merge Request that is being viewed, or prompt if unsure on which merge request the user would like to apply "How can this merge request be improved?"

Relevant logs and/or screenshots

I asked customer if it is possible to send screenshots.

Output of checks

Results of GitLab environment info

User is evaluating GitLab Duo Enterprise on GitLab Self Managed version 17.5.3

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

Edited by Anthony Baer