QA issue creation failed for 13.7.202012022021-cd851799bb2.f59a38f988f
track-deployment
job: https://ops.gitlab.net/gitlab-org/release/tools/-/jobs/2498918
Error: https://sentry.gitlab.net/gitlab/release-tools/issues/2401308/?referrer=slack
... snip ...
2020-12-02 22:12:02.304886 I ReleaseTools -- Attempting to create QA issue -- {:from=>"9d158ab1d59d7cec88d04cfda3425bdf0dc8b48e", :until=>"cd851799bb2373fcb956ca6cd9143bd51a1fb581"}
2020-12-02 22:12:02.514569 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:02 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/commits/9d158ab1d59d7cec88d04cfda3425bdf0dc8b48e" -
2020-12-02 22:12:02.757574 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:02 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/commits/cd851799bb2373fcb956ca6cd9143bd51a1fb581" -
2020-12-02 22:12:02.948716 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:02 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITALY_SERVER_VERSION/raw" 41
2020-12-02 22:12:03.289336 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:03 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITALY_SERVER_VERSION/raw" 41
2020-12-02 22:12:03.501105 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:03 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitaly/repository/commits/a5a5d83630f13c3eb3e1650a24423fc5e9bc47d2" -
2020-12-02 22:12:03.704749 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:03 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitaly/repository/commits/3cbd24e3e2fd09eb526d04f8a419f6d103c440dc" -
2020-12-02 22:12:03.925787 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:03 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITLAB_PAGES_VERSION/raw" 7
2020-12-02 22:12:04.113799 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:04 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITLAB_PAGES_VERSION/raw" 7
2020-12-02 22:12:04.300609 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:04 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab-pages/repository/commits/v1.30.0" -
2020-12-02 22:12:04.599050 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:04 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab-pages/repository/commits/v1.30.0" -
2020-12-02 22:12:04.793716 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:04 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITLAB_SHELL_VERSION/raw" 8
2020-12-02 22:12:04.975117 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:04 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITLAB_SHELL_VERSION/raw" 8
2020-12-02 22:12:05.220183 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:05 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab-shell/repository/commits/v13.13.0" -
2020-12-02 22:12:05.421748 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:05 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab-shell/repository/commits/v13.13.0" -
2020-12-02 22:12:05.607744 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:05 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITLAB_WORKHORSE_VERSION/raw" 7
2020-12-02 22:12:05.808739 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:05 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/files/GITLAB_WORKHORSE_VERSION/raw" 7
2020-12-02 22:12:06.071558 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:06 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab-workhorse/repository/commits/v8.57.0" -
2020-12-02 22:12:06.328092 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:06 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab-workhorse/repository/commits/v8.57.0" -
2020-12-02 22:12:08.892863 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:08 +0000] 200 "GET https://gitlab.com/api/v4/projects/gitlab-org%2Fsecurity%2Fgitlab/repository/compare" -
2020-12-02 22:12:09.076660 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:09 +0000] 308 "GET https://gitlab.com/api/v4/projects//merge_requests/1" 0
2020-12-02 22:12:09.207903 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:09 +0000] 404 "GET https://gitlab.com/api/v4/projects/merge_requests/1" 25
2020-12-02 22:12:10.006765 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:10 +0000] 308 "GET https://gitlab.com/api/v4/projects//merge_requests/1" 0
2020-12-02 22:12:10.137341 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:10 +0000] 404 "GET https://gitlab.com/api/v4/projects/merge_requests/1" 25
2020-12-02 22:12:11.043914 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:11 +0000] 308 "GET https://gitlab.com/api/v4/projects//merge_requests/1" 0
2020-12-02 22:12:11.166735 D ReleaseTools::GitlabClient -- [HTTParty] [2020-12-02 22:12:11 +0000] 404 "GET https://gitlab.com/api/v4/projects/merge_requests/1" 25
2020-12-02 22:12:11.167012 F Rake::Task -- Task failed -- Exception: Gitlab::Error::NotFound: Server responded with code 404, message: 404 Not Found. Request URI: https://gitlab.com:443https://gitlab.com/api/v4/projects/merge_requests/1
... snip ...
Environment: gstg
The environments were correctly gathered:
We should be comparing going from gitlab-org/security/gitlab@9d158ab1 to gitlab-org/security/gitlab@cd851799.
Here's that comparison in the UI: https://gitlab.com/gitlab-org/security/gitlab/-/compare/9d158ab1d59d7cec88d04cfda3425bdf0dc8b48e...cd851799bb2373fcb956ca6cd9143bd51a1fb581
This is returning commits from over 5 years ago for some reason, which contain unscoped MR references such as See merge request !1
, which ultimately leads to the error shown above.
But why is this comparison returning bad/outdated data? If we swap the order of the two commits, we get back the correct, single commit: https://gitlab.com/gitlab-org/security/gitlab/-/compare/cd851799bb2373fcb956ca6cd9143bd51a1fb581...9d158ab1d59d7cec88d04cfda3425bdf0dc8b48e