[bug] 自动化测试case 在提交comment回复时请求 报500 error
Summary
@qianzhangxa @chaomao @vincent_stchu @lpeng1991
目前该问题仅在staging环境发生,需要紧急修复,以免block部署。
qa/specs/features/browser_ui/2_plan/issue/collapse_comments_in_discussions_spec.rb 这个case中会在issue的comment里,新增回复的comment,目前自动化测试回复comment的请求报500 error,且手工测试无法复现,需要开发协作debug. 目前 @vincent_stchu 已经找到具体报错log. 麻烦附到这个issue上, @lpeng1991 @chaomao 需要安排个人紧急处理下。
request url:https://staging.jihulab.com/gitlab-qa-sandbox-group-1/qa-test-2023-06-03-14-21-51-7269f23cc9f71215/project-for-issues-bc663720703e05af/notes?target_id=108252&target_type=issue
request budy: {"in_reply_to_discussion_id":"b30e9a00440623a6f9e7836a6b25d31ce0fcf436","target_type":"issue","note":{"note":"My first reply"}}
Steps to reproduce
Example Project
What is the current bug behavior?
What is the expected correct behavior?
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
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)