Loading
Remove gitlab-org/cli Duo review approval pilot
What does this MR do?
Removes the gitlab-org/cli Duo review approval pilot (#1887) from triage-ops, as requested in #1914 (closed). Closes #1914 (closed).
- Deletes the
Triage::GitlabCliprocessors (ApproveOnDuoReview,UnapproveOnHumanReview,UnapproveOnDuoChangesRequested), their support module, theGITLAB_CLI_DUO_APPROVALS_ENABLEDkill switch, their specs and handler registrations. - Removes the pilot exemption (
gitlab_cli_duo_review_approval?) fromVerifyBotApprovals. - Moves the helpers
MrApprovalFlow::Eligibilityneeds (merge_request_reviewers,merge_request_commits,duo_commit?,duo_identity?,GITLAB_DUO_COMMIT_NAMES,CO_AUTHORED_BY_REGEX,REVIEWER_REQUESTED_CHANGES_STATE) verbatim into the newTriage::MrApprovalFlow::DuoReviewSupport, and re-homes theduo_commit?spec table.MrApprovalFlowbehaviour is unchanged (NLP team's work from !4549 (merged), !4550 (merged), !4551 (merged) is not affected). - Removes the dead
Event::GITLAB_ORG_CLI_PROJECT_IDandEvent#from_gitlab_org_cli?(and their spec), plus the pilot sections ofREACTIVE.md.
Out of scope: gitlab-org/cli repo changes (CODEOWNERS, cli MRs 4194 and 4250).
Behaviour change
After this MR, any new gitlab-bot approval on gitlab-org/cli is treated by VerifyBotApprovals as out of policy (warning plus unapprove), unless MrApprovalFlow justifies it. Existing approvals and the existing "gitlab-bot approval based on Duo Code Review" comments on gitlab-org/cli MRs are left untouched.
Readiness feedback on the plan
- Dead
Eventhelpers /REVIEWER_APPROVED_STATE/TRACKING_ISSUE_URLgo beyond the literal request: kept in this MR. A repo-wide search showed the only users were the removed pilot code and its specs, and they are pilot-only constants, so leaving them would leave dead code behind. Easy to split out if you prefer. - Step 4 must land with step 7: all tracks are in this single MR, so nothing references the deleted files.
REACTIVE.mdis not mentioned in the issue: updated, because it documents the removed processors and kill switch and would be wrong otherwise.
Verification
ruby -cpasses on every touched Ruby file.- A search for
gitlab_cli,GitlabCli,DuoReviewApproval,GITLAB_CLI_DUO,from_gitlab_org_cli,GITLAB_ORG_CLIandREVIEWER_APPROVED_STATEintriage/,spec/,lib/,config/,policies/,plugins/, docs and CI returns nothing. - Not verified:
bundle exec rspecandbundle exec rubocopcould not run. The sandbox has no gems installed and no network or writable gem path, sobundle installfailed. Please rely on the MR pipeline for the specs (mr_approval_flow,verify_bot_approvals,handler,event) and Rubocop.