From 5587ee2ba93c858e010c2106ba46505944b98037 Mon Sep 17 00:00:00 2001 From: Manoj M J Date: Mon, 22 Sep 2025 17:34:41 +0200 Subject: [PATCH] Remove DAP health check --- .../status_checks/probes/registry.rb | 8 +------- .../status_checks/probes/registry_spec.rb | 15 --------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/ee/app/services/cloud_connector/status_checks/probes/registry.rb b/ee/app/services/cloud_connector/status_checks/probes/registry.rb index e66ce72f0c611c..c5e6ef3c4c4f3c 100644 --- a/ee/app/services/cloud_connector/status_checks/probes/registry.rb +++ b/ee/app/services/cloud_connector/status_checks/probes/registry.rb @@ -54,17 +54,11 @@ def probes_for_vendored_features end def self_hosted_only_probes - probes = [ + [ ::CloudConnector::StatusChecks::Probes::SelfHosted::AiGatewayUrlPresenceProbe.new, ::CloudConnector::StatusChecks::Probes::HostProbe.new(::Gitlab::AiGateway.self_hosted_url), ::CloudConnector::StatusChecks::Probes::SelfHosted::CodeSuggestionsLicenseProbe.new(@user) ] - - if Gitlab::DuoWorkflow::Client.self_hosted_url.present? - probes << ::CloudConnector::StatusChecks::Probes::SelfHosted::DuoAgentPlatformProbe.new(@user) - end - - probes end def at_least_one_vendored_feature? diff --git a/ee/spec/services/cloud_connector/status_checks/probes/registry_spec.rb b/ee/spec/services/cloud_connector/status_checks/probes/registry_spec.rb index 81adf7acf4693c..2bb6d860675c22 100644 --- a/ee/spec/services/cloud_connector/status_checks/probes/registry_spec.rb +++ b/ee/spec/services/cloud_connector/status_checks/probes/registry_spec.rb @@ -120,20 +120,5 @@ end end end - - context 'when Duo Agent Platform URL is set up' do - before do - Ai::Setting.instance.update!(duo_agent_platform_service_url: 'localhost:50052') - end - - it 'returns self-hosted probes combined with default probes including DuoAgentPlatformProbe' do - probes = registry.self_hosted_probes - - expect(probes).to match( - self_hosted_only_probe_types + - [an_instance_of(CloudConnector::StatusChecks::Probes::SelfHosted::DuoAgentPlatformProbe)] - ) - end - end end end -- GitLab