Skip enqueueing no-op Jira integration jobs

What does this MR do and why?

Integrations::Jira#execute is a no-op. Jira cross-references are created by Integrations::CreateExternalCrossReferenceWorker, so enqueueing Integrations::ExecuteWorker for Jira does nothing useful.

This overrides #should_enqueue? to return false for Jira. Jira then takes part in the skip_noop_integration_jobs feature flag (introduced in !266040 (merged)), and skipped jobs are counted in gitlab_integrations_enqueue_skipped_total.

Related to #636614

How to set up and validate locally

  1. Enable the flag: Feature.enable(:skip_noop_integration_jobs)
  2. Activate a Jira integration on a project and trigger an event, such as a push or a merge request.
  3. Confirm no Integrations::ExecuteWorker job is enqueued for Jira.
  4. Disable the flag and confirm the job is enqueued again.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #636614

Merge request reports

Loading
Loading