Stop starting the deps flow, before the AI Catalog deletes it
What does this MR do and why?
Takes gitlab-org/lab-bench/bench, gitlab-org/gitlab-zoekt-indexer and gitlab-org/gitlab-elasticsearch-indexer out of config/mr_approval_flow.yml. They are the only projects that run the MR Dependency Risk Labeler (deps).
components/agents-and-flows/gitlab-merge-request!119 (merged) folds the deps flow into the MR Risk Labeler and marks it delete: true. The catalog sync on the tag after it merges deletes the flow and every consumer it has from the AI Catalog. @kbhatia-gl asked on components/agents-and-flows/gitlab-merge-request!119 (merged) that triage-ops stop starting the flow before it merges (thread), so that triage-ops never calls a deleted consumer.
What pauses
All three projects are approve: false, so no deps verdict was ever approved or merged there. What stops is their dry run on the dependency bot's merge requests: the gitlab-bot::*, dependency-risk::* and gitlab-bot::category::deps labels, the flow's explanatory note, and gitlab-bot's dry-run approval note. Labels already on open merge requests stay.
gitlab-org/gitlab (278964) is unchanged. It still has a deps consumer, which the same sync deletes, but triage-ops does not start the flow there.
The deps service account
deps: ai-mr-dependency-risk-labeler-gitlab-org stays under groups.gitlab-org.service_accounts. Config accepts an account that no project's flow uses, and the file's header says such an account is trusted nowhere. Neither Config nor config_spec rejects it. So it is left for !4532 (merged), which removes it along with flows/deps.yml from the spec's mapping paths.
Order
- This merges, just before components/agents-and-flows/gitlab-merge-request!119 (merged).
- components/agents-and-flows/gitlab-merge-request!119 (merged) merges and is tagged. The catalog sync deletes the deps flow and its consumers, and creates the three projects'
mr_riskconsumers. - !4530 (merged), !4531 (merged) and !4532 (merged) are rebased onto this. They add the three projects back, on
mr_risk, with the consumer IDs that tag creates.
Between steps 1 and 3 the three projects run no flow, like any project that is not listed.
Testing
SIMPLECOV=0 bundle exec rspec spec/processor/mr_approval_flow spec/processor/mr_approval_flow_spec.rb spec/triage, with AI_CATALOG_MAPPING_PATH pointed at gitlab-merge-request's current .ai-catalog-mapping.json so that the consumer-ID check runs: the approval flow specs pass. Six spec/triage/job_spec.rb examples fail the same way on master when that subset runs on its own (uninitialized constant Triage::Job::ProcessorJob).