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::GitlabCli processors (ApproveOnDuoReview, UnapproveOnHumanReview, UnapproveOnDuoChangesRequested), their support module, the GITLAB_CLI_DUO_APPROVALS_ENABLED kill switch, their specs and handler registrations.
  • Removes the pilot exemption (gitlab_cli_duo_review_approval?) from VerifyBotApprovals.
  • Moves the helpers MrApprovalFlow::Eligibility needs (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 new Triage::MrApprovalFlow::DuoReviewSupport, and re-homes the duo_commit? spec table. MrApprovalFlow behaviour is unchanged (NLP team's work from !4549 (merged), !4550 (merged), !4551 (merged) is not affected).
  • Removes the dead Event::GITLAB_ORG_CLI_PROJECT_ID and Event#from_gitlab_org_cli? (and their spec), plus the pilot sections of REACTIVE.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

  1. Dead Event helpers / REVIEWER_APPROVED_STATE / TRACKING_ISSUE_URL go 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.
  2. Step 4 must land with step 7: all tracks are in this single MR, so nothing references the deleted files.
  3. REACTIVE.md is not mentioned in the issue: updated, because it documents the removed processors and kill switch and would be wrong otherwise.

Verification

  • ruby -c passes on every touched Ruby file.
  • A search for gitlab_cli, GitlabCli, DuoReviewApproval, GITLAB_CLI_DUO, from_gitlab_org_cli, GITLAB_ORG_CLI and REVIEWER_APPROVED_STATE in triage/, spec/, lib/, config/, policies/, plugins/, docs and CI returns nothing.
  • Not verified: bundle exec rspec and bundle exec rubocop could not run. The sandbox has no gems installed and no network or writable gem path, so bundle install failed. Please rely on the MR pipeline for the specs (mr_approval_flow, verify_bot_approvals, handler, event) and Rubocop.

Merge request reports

Loading
Loading