Skip to content

fix(k8s): keep only the SearXNG engines that answer - #4121

Merged
dan-petty merged 3 commits into
mainfrom
fix/4094-searxng-engines
Nov 8, 2026
Merged

dan-petty merged 3 commits into
mainfrom
fix/4094-searxng-engines

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Remove the engine pypi from keep_only in the SearXNG ConfigMap. It returned no hit in ten queries, because pypi.org serves a Client Challenge page to a scraper, so each search with the category it asked an engine that cannot answer. A comment in the ConfigMap says why the two start log lines (ERROR X-Forwarded-For, WARNING limiter.toml) are harmless. The README of k8s/ lists the nine engines. Two tests keep it so: the README list must equal keep_only, and no kept engine may be in a list of engines that never answer. The timeout of duckduckgo did not repeat in 30 queries, so the timeouts stay. No Settings key and no key of the live ConfigMap changes.

Closes #4094

Change: openspec/changes/archive/2026-11-08-4094-searxng-keeps-only-engines-that-answer/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 8, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test record for #4094.

fail-to-pass (uv run devops ci fail-to-pass --base origin/main): 3 tests fail on the base and pass on the branch (22 others pass on both).

  • test_the_settings_keep_no_engine_that_never_answers (the base keeps pypi)
  • test_the_settings_keep_only_engines_that_need_no_key (the exact list had pypi)
  • test_the_configmap_says_why_the_two_log_lines_of_the_start_are_harmless (no comment)

Two guards pass on the base on purpose: test_the_readme_lists_the_engines_that_the_settings_keep and test_the_dead_engines_file_gives_a_date_and_a_reason_for_real_engines.

Narrow run: tests/invariants/test_k8s_searxng.py: 25 passed (after the rebase onto origin/main).

Full CI: flock ... uv run devops ci on the code tree 39d7068e passed (exit 0, 13 min 1 s, no failing row). The rebase after that run changed only release files (CHANGELOG, manifest, pyproject, uv.lock).

Premise check (live service through port-forward, read-only, nothing applied; details in the Feasibility section of the change):

  • pypi: 0 hits in 10 queries and in a query of engines=pypi alone.
  • duckduckgo: 20 queries, 19 answered (0.56 to 0.87 s), 1 CAPTCHA, 0 timeouts. So request_timeout 5.0 stays.
  • Both log lines come from the pinned SearXNG source and are harmless with the limiter off.

Rollout rule: no Settings key, no field of k8s/devops/configmap.example.yaml and no key of the live ConfigMap devops-cli-config is removed, renamed or tightened. Only the list keep_only of the ConfigMap searxng-settings gets shorter, and no code reads that list. Nothing was applied to the cluster. After the merge, Argo CD syncs the ConfigMap and a person restarts deployment/searxng so that the pod reads it.

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 03:47
@dan-petty
dan-petty merged commit a0d827b into main Nov 8, 2026
24 checks passed
@dan-petty
dan-petty deleted the fix/4094-searxng-engines branch November 8, 2026 03:51
dan-petty pushed a commit that referenced this pull request Nov 8, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.87.1](v0.87.0...v0.87.1)
(2026-11-08)


### Bug Fixes

* **k8s:** keep only the SearXNG engines that answer
([#4121](#4121))
([a0d827b](a0d827b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): SearXNG engines time out or return no hit

1 participant