Have RCA button initiate Duo chat with pre-seeded RCA chat message
- The user clicks on the Root Cause Analysis button from the Job logs page
The Duo Chat window opens up and a message "Generating RCA from pipeline logs..." is displayed- The request is routed such that the RCA results are displayed in Duo Chat
Technical proposal
- Open global duo chat once clicking rca button
helpCenterState.showTanukiBotChatDrawer = true;
- TBD -- the backend needs to setup someway for client apps throughout the product to send prompts/information to duo chat. Once this is in place we can make an API call of sorts to link to duo chat
- Note(Allison): The query we can use is here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/assets/javascripts/ai/graphql/chat.mutation.graphql
- We just need to update the variables below:
{
"question": "/rca",
"resourceId": "gid://gitlab/Ci::Build/352",
}
- Ensure the old version is rendered when
root_cause_analysis_duo
is false. Flag definition:
- Feature flag:
ee/config/feature_flags/wip/root_cause_analysis_duo.yml 0 → 100644
name: root_cause_analysis_duo
feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/441681
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/154040
rollout_issue_url:
milestone: '17.1'
group: group::pipeline execution
type: wip
default_enabled: false
Edited by Allison Browne