Skip to content

Adjusts pipelines status to use GitLab security or dev instance

Mayra Cabrera requested to merge check-rc-pipelines-on-security into master

What does this MR do and why?

Adjusts pipelines status to use GitLab security or dev instance:

  • RC packages will be reviewed on the dev instance
  • Stable branches will be reviewed on the security repositories

Action item of gitlab-com/gl-infra/delivery#4606 (closed)

release:status

Before: It returned stable branches on dev

16:58:10 ❯ TEST=true rake release:status\['16.0.0-rc42']

2023-05-18 16:58:45.189674 I [dry-run] [release:status] ReleaseTools -- gitlab-org/gitlab -- {"id"=>284556, "iid"=>107126, "project_id"=>194, "sha"=>"280a09dbca836a6eedf5da1e63953fe8da44bf4c", "ref"=>"16-0-stable-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-18T16:47:23.885Z", "updated_at"=>"2023-05-18T18:22:50.923Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlab-ee/-/pipelines/284556", "name"=>"Ruby 3.0 16-0-stable-ee branch pipeline"}
2023-05-18 16:58:45.189719 I [dry-run] [release:status] ReleaseTools -- gitlab-org/gitlab-foss -- {"id"=>284558, "iid"=>69689, "project_id"=>15, "sha"=>"917d3f7ad12438a8ec7177d32114073ec479998a", "ref"=>"16-0-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-18T16:50:40.589Z", "updated_at"=>"2023-05-18T19:13:32.817Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlabhq/-/pipelines/284558", "name"=>"Ruby 3.0 16-0-stable branch pipeline"}
2023-05-18 16:58:45.189746 I [dry-run] [release:status] ReleaseTools -- gitlab-org/omnibus-gitlab -- {"id"=>284566, "iid"=>34318, "project_id"=>283, "sha"=>"983c0ce9ad53f2d9f78923ae53de86d14b3b9bef", "ref"=>"16-0-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-18T16:54:02.157Z", "updated_at"=>"2023-05-18T18:21:00.899Z", "web_url"=>"https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines/284566", "name"=>"CE_BRANCH_BUILD_PIPELINE"}

After: It returns pipelines associated with the RC tag

16:22:55 ❯ TEST=true rake release:status\['16.0.0-rc42']
2023-05-29 16:23:22.639630 I [dry-run] [release:status] ReleaseTools -- gitlab-org/gitlab -- {"id"=>284403, "iid"=>107049, "project_id"=>194, "sha"=>"3b83f9a900c66c5b45f4a66f971652746ebb9aae", "ref"=>"v16.0.0-rc42-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-17T16:11:59.840Z", "updated_at"=>"2023-05-17T17:24:00.681Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlab-ee/-/pipelines/284403", "name"=>"Ruby 3.0 v16.0.0-rc42-ee tag pipeline"}
2023-05-29 16:23:22.639665 I [dry-run] [release:status] ReleaseTools -- gitlab-org/gitlab-foss -- {"id"=>284401, "iid"=>69679, "project_id"=>15, "sha"=>"43a25d93ebdabea52f99b05e15b06250cd8f07d7", "ref"=>"v16.0.0-rc42", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-17T16:11:15.491Z", "updated_at"=>"2023-05-17T17:22:35.976Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlabhq/-/pipelines/284401", "name"=>"Ruby 3.0 v16.0.0-rc42 tag pipeline"}
2023-05-29 16:23:22.639685 I [dry-run] [release:status] ReleaseTools -- gitlab-org/omnibus-gitlab -- {"id"=>284402, "iid"=>34302, "project_id"=>283, "sha"=>"70f7a47e051f14d171bb8db05a54e05e8bf1b2be", "ref"=>"16.0.0+rc42.ee.0", "status"=>"manual", "source"=>"push", "created_at"=>"2023-05-17T16:11:22.035Z", "updated_at"=>"2023-05-17T18:22:43.550Z", "web_url"=>"https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines/284402", "name"=>"EE_RC_BUILD_PIPELINE"}

security:status

Before: It returned pipelines on dev

17:06:09 ❯ TEST=true rake security:status
2023-05-18 17:06:27.013004 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab -- {"id"=>284501, "iid"=>107101, "project_id"=>194, "sha"=>"30bebfd76482746c1005d7742468f71901ff8844", "ref"=>"15-11-stable-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-18T08:30:47.225Z", "updated_at"=>"2023-05-18T11:18:51.028Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlab-ee/-/pipelines/284501", "name"=>"Ruby 3.0 15-11-stable-ee branch pipeline"}
2023-05-18 17:06:27.013052 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab -- {"id"=>283660, "iid"=>106584, "project_id"=>194, "sha"=>"9646ea67890a4db298877c019f64511d96763527", "ref"=>"15-10-stable-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-12T00:30:23.660Z", "updated_at"=>"2023-05-12T01:37:50.686Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlab-ee/-/pipelines/283660", "name"=>"Ruby 3 15-10-stable-ee branch pipeline"}
2023-05-18 17:06:27.013079 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab -- {"id"=>283446, "iid"=>106460, "project_id"=>194, "sha"=>"7c44b9e086584ded576de738498ff7367fa90e66", "ref"=>"15-9-stable-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-10T20:39:25.808Z", "updated_at"=>"2023-05-10T20:40:09.579Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlab-ee/-/pipelines/283446", "name"=>"Ruby 2 15-9-stable-ee branch pipeline"}
2023-05-18 17:06:27.013102 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab-foss -- {"id"=>284292, "iid"=>69672, "project_id"=>15, "sha"=>"17cfff2c246b479e4ec51c11cad4628049a5a9b3", "ref"=>"15-11-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-17T04:37:22.977Z", "updated_at"=>"2023-05-17T05:49:57.976Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlabhq/-/pipelines/284292", "name"=>"Ruby 3.0 15-11-stable branch pipeline"}
2023-05-18 17:06:27.013126 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab-foss -- {"id"=>283438, "iid"=>69631, "project_id"=>15, "sha"=>"10b88c653b1e880e2b6b5123f17edc34bf208083", "ref"=>"15-10-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-10T20:14:17.859Z", "updated_at"=>"2023-05-10T20:14:53.224Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlabhq/-/pipelines/283438", "name"=>"Ruby 3 15-10-stable branch pipeline"}
2023-05-18 17:06:27.013147 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab-foss -- {"id"=>283445, "iid"=>69632, "project_id"=>15, "sha"=>"4de9f87e42dff03d7b7866df75f01522f97deed9", "ref"=>"15-9-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-10T20:32:55.982Z", "updated_at"=>"2023-05-10T20:33:29.226Z", "web_url"=>"https://dev.gitlab.org/gitlab/gitlabhq/-/pipelines/283445", "name"=>"Ruby 2 15-9-stable branch pipeline"}
2023-05-18 17:06:27.013207 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/omnibus-gitlab -- {"id"=>284246, "iid"=>34286, "project_id"=>283, "sha"=>"c4d24ec420ffbbc46b7d719c1eac3c21bce96211", "ref"=>"15-11-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-16T22:23:59.584Z", "updated_at"=>"2023-05-17T00:05:17.361Z", "web_url"=>"https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines/284246", "name"=>"CE_BRANCH_BUILD_PIPELINE"}
2023-05-18 17:06:27.013230 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/omnibus-gitlab -- {"id"=>283925, "iid"=>34255, "project_id"=>283, "sha"=>"030f50356f8f2fdb86f42bc763aed2861e61134c", "ref"=>"15-10-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-15T09:55:12.310Z", "updated_at"=>"2023-05-15T11:24:07.444Z", "web_url"=>"https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines/283925", "name"=>"CE_BRANCH_BUILD_PIPELINE"}
2023-05-18 17:06:27.013251 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/omnibus-gitlab -- {"id"=>283447, "iid"=>34206, "project_id"=>283, "sha"=>"7f6bc543a3e4968f125e9ea2d08c01da4faed163", "ref"=>"15-9-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-10T20:39:28.627Z", "updated_at"=>"2023-05-10T22:50:03.662Z", "web_url"=>"https://dev.gitlab.org/gitlab/omnibus-gitlab/-/pipelines/283447", "name"=>"CE_BRANCH_BUILD_PIPELINE"}

After: It returns pipelines on security

16:19:15 ❯ TEST=true rake security:status
2023-05-29 16:22:54.998249 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab -- {"id"=>882290475, "iid"=>102037, "project_id"=>15642544, "sha"=>"ae66ce6fa180e53b4b46126c1af93c8fb309c6ab", "ref"=>"16-0-stable-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-29T20:28:41.626Z", "updated_at"=>"2023-05-29T21:51:13.974Z", "web_url"=>"https://gitlab.com/gitlab-org/security/gitlab/-/pipelines/882290475", "name"=>"Ruby 3.0 16-0-stable-ee branch pipeline"}
2023-05-29 16:22:54.998289 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab -- {"id"=>877349996, "iid"=>101627, "project_id"=>15642544, "sha"=>"e7e15287f587d6ff74c340ed940ecd441eef9621", "ref"=>"15-11-stable-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-24T11:17:30.471Z", "updated_at"=>"2023-05-24T13:25:39.879Z", "web_url"=>"https://gitlab.com/gitlab-org/security/gitlab/-/pipelines/877349996", "name"=>"Ruby 3.0 15-11-stable-ee branch pipeline"}
2023-05-29 16:22:54.998707 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab -- {"id"=>873212450, "iid"=>101360, "project_id"=>15642544, "sha"=>"6a0a8efdb21ca7e1a2880a526ebc5413d24e4491", "ref"=>"15-10-stable-ee", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-20T00:59:43.845Z", "updated_at"=>"2023-05-20T03:13:31.422Z", "web_url"=>"https://gitlab.com/gitlab-org/security/gitlab/-/pipelines/873212450", "name"=>"Ruby 3 15-10-stable-ee branch pipeline"}
2023-05-29 16:22:54.998737 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab-foss -- {"id"=>882292884, "iid"=>10293, "project_id"=>15683922, "sha"=>"637ea9bdf77675e9d079b115c98434fdbf41d9b7", "ref"=>"16-0-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-29T20:32:38.393Z", "updated_at"=>"2023-05-29T21:41:27.218Z", "web_url"=>"https://gitlab.com/gitlab-org/security/gitlab-foss/-/pipelines/882292884", "name"=>"Ruby 3.0 16-0-stable branch pipeline"}
2023-05-29 16:22:54.998757 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab-foss -- {"id"=>877352805, "iid"=>10259, "project_id"=>15683922, "sha"=>"cb274cbf4d3703573605e464c2cb79afff3a861b", "ref"=>"15-11-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-24T11:19:25.996Z", "updated_at"=>"2023-05-24T12:26:43.384Z", "web_url"=>"https://gitlab.com/gitlab-org/security/gitlab-foss/-/pipelines/877352805", "name"=>"Ruby 3.0 15-11-stable branch pipeline"}
2023-05-29 16:22:54.998775 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/gitlab-foss -- {"id"=>873219417, "iid"=>10225, "project_id"=>15683922, "sha"=>"9693e0007cf63d1b33415e321c38e5c1a8d59288", "ref"=>"15-10-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-20T01:08:57.325Z", "updated_at"=>"2023-05-20T02:22:08.097Z", "web_url"=>"https://gitlab.com/gitlab-org/security/gitlab-foss/-/pipelines/873219417", "name"=>"Ruby 3 15-10-stable branch pipeline"}
2023-05-29 16:22:54.998793 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/omnibus-gitlab -- {"id"=>879737167, "iid"=>11427, "project_id"=>15667093, "sha"=>"12633098739a0597fb7a3f564589b95ec06dcc89", "ref"=>"16-0-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-26T04:59:41.939Z", "updated_at"=>"2023-05-26T05:32:40.336Z", "web_url"=>"https://gitlab.com/gitlab-org/security/omnibus-gitlab/-/pipelines/879737167", "name"=>"PROTECTED_TEST_PIPELINE"}
2023-05-29 16:22:54.998810 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/omnibus-gitlab -- {"id"=>877358573, "iid"=>11407, "project_id"=>15667093, "sha"=>"336fa0ce3da5b859b3dbac5c92035e573cc821dd", "ref"=>"15-11-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-24T11:23:35.221Z", "updated_at"=>"2023-05-24T11:55:30.556Z", "web_url"=>"https://gitlab.com/gitlab-org/security/omnibus-gitlab/-/pipelines/877358573", "name"=>"PROTECTED_TEST_PIPELINE"}
2023-05-29 16:22:54.998826 I [dry-run] [security:status] ReleaseTools -- gitlab-org/security/omnibus-gitlab -- {"id"=>867374219, "iid"=>11362, "project_id"=>15667093, "sha"=>"030f50356f8f2fdb86f42bc763aed2861e61134c", "ref"=>"15-10-stable", "status"=>"success", "source"=>"push", "created_at"=>"2023-05-15T09:54:54.400Z", "updated_at"=>"2023-05-15T10:36:07.631Z", "web_url"=>"https://gitlab.com/gitlab-org/security/omnibus-gitlab/-/pipelines/867374219", "name"=>"PROTECTED_TEST_PIPELINE"}

Author Check-list

  • [-] Has documentation been updated?
Edited by Mayra Cabrera

Merge request reports