From e4f461905954b02b853c98a85fcd7b2208bfabcb Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Thu, 3 Sep 2026 22:26:42 +0000 Subject: [PATCH 1/2] searcher: use debug server readiness endpoint Amp-Thread-ID: https://ampcode.com/threads/T-01a0695f-be00-74df-9488-895b355a0c4c Co-authored-by: Amp --- .../templates/searcher/searcher.StatefulSet.yaml | 4 ++-- charts/sourcegraph/tests/searcher_test.yaml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 charts/sourcegraph/tests/searcher_test.yaml diff --git a/charts/sourcegraph/templates/searcher/searcher.StatefulSet.yaml b/charts/sourcegraph/templates/searcher/searcher.StatefulSet.yaml index 60bc6344..c18e71ee 100644 --- a/charts/sourcegraph/templates/searcher/searcher.StatefulSet.yaml +++ b/charts/sourcegraph/templates/searcher/searcher.StatefulSet.yaml @@ -99,8 +99,8 @@ spec: readinessProbe: failureThreshold: 3 httpGet: - path: /healthz - port: grpc + path: /ready + port: http-debug scheme: HTTP periodSeconds: 5 timeoutSeconds: 5 diff --git a/charts/sourcegraph/tests/searcher_test.yaml b/charts/sourcegraph/tests/searcher_test.yaml new file mode 100644 index 00000000..c06464a9 --- /dev/null +++ b/charts/sourcegraph/tests/searcher_test.yaml @@ -0,0 +1,14 @@ +suite: searcher +release: + name: sourcegraph + namespace: sourcegraph +tests: +- it: should check readiness on the debug server + template: searcher/searcher.StatefulSet.yaml + asserts: + - equal: + path: spec.template.spec.containers[0].readinessProbe.httpGet + value: + path: /ready + port: http-debug + scheme: HTTP From a2c12ad7d00b97616321ca82aedffb1d603eda6f Mon Sep 17 00:00:00 2001 From: Erik Seliger Date: Thu, 3 Sep 2026 22:49:16 +0000 Subject: [PATCH 2/2] test: remove searcher readiness assertion Amp-Thread-ID: https://ampcode.com/threads/T-01a0695f-be00-74df-9488-895b355a0c4c Co-authored-by: Amp --- charts/sourcegraph/tests/searcher_test.yaml | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 charts/sourcegraph/tests/searcher_test.yaml diff --git a/charts/sourcegraph/tests/searcher_test.yaml b/charts/sourcegraph/tests/searcher_test.yaml deleted file mode 100644 index c06464a9..00000000 --- a/charts/sourcegraph/tests/searcher_test.yaml +++ /dev/null @@ -1,14 +0,0 @@ -suite: searcher -release: - name: sourcegraph - namespace: sourcegraph -tests: -- it: should check readiness on the debug server - template: searcher/searcher.StatefulSet.yaml - asserts: - - equal: - path: spec.template.spec.containers[0].readinessProbe.httpGet - value: - path: /ready - port: http-debug - scheme: HTTP