Skip to content

fix(k8s): Scrape the SearXNG engine metrics - #6755

Merged
dan-petty merged 2 commits into
mainfrom
fix/4201-measure-searxng-throttle-and-stop-captcha
Nov 22, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4201-measure-searxng-throttle-and-stop-captcha

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

The duckduckgo engine of SearXNG answers a CAPTCHA with suspended_time=0, so SearXNG suspends nothing and the next query asks it again, while other engines answer Too many request. A refused engine leaves no trace in devops_cli_web_searches_total, because a reply that another engine filled counts ok. #4201 needs a measure of each engine before anyone can name the cause or choose the engine set, so this change enables the SearXNG OpenMetrics endpoint and scrapes its per-engine series.

Closes #4201

Change: openspec/changes/archive/2026-11-22-4201-measure-searxng-throttle-and-stop-captcha/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 22, 2026
@devops-cli-service devops-cli-service Bot changed the title docs(openspec): plan #4201 Scrape the SearXNG engine metrics fix(k8s): Scrape the SearXNG engine metrics Nov 22, 2026
@devops-cli-service devops-cli-service Bot added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies and removed type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 22, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the fix/4201-measure-searxng-throttle-and-stop-captcha branch from 1fdbd36 to 951f6be Compare November 22, 2026 13:11
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 2742563/11315 -
group 2 done 1 2366219/13550 -
group 3 done 1 594172/4872 -
group 4 done 1 1859053/16471 -
group 5 done 1 3389336/11223 -
group 6 done 1 1573695/12090 -
group 7 done 1 997741/5263 -
group 8 done 1 1418816/8892 -
  • tools: run_command 126, read_file 77, grep 57, edit_file 50, write_file 6, create_directory 2, list_files 2
  • scoped check pre-push: passed, 5 s
  • scoped check static: passed, 23 s
  • scoped check tests: passed, 53 s
  • scoped check strength: passed, 0 s
  • group 2: skipped, group 2: kind other
  • group 3: skipped, group 3: kind other
  • group 4: skipped, group 4: kind other
  • group 6: skipped, group 6: kind other
  • group 7: skipped, group 7: kind other
  • group 8: skipped, group 8: kind other
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.invariants.test_k8s_searxng::test_the_metrics_secret_row.
  • verify of group 2: uv run devops ci test tests/k8s/test_cluster_secret_push.py tests/k8s/test_cluster_secret_plan.py tests/commands/k8s/test_k8s.py exits 0.
/home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
/home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))
  • verify of group 3: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (2\xb5s)
k8s: 237 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (21s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  2\xb5s      
 k8s             \u2713 pass  21s      
Total Elapsed: 21s (concurrent async execution)
  • verify of group 4: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (3\xb5s)
k8s: 237 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (22s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  3\xb5s      
 k8s             \u2713 pass  22s      
Total Elapsed: 22s (concurrent async execution)
  • fail-to-pass of group 5: fails on the base commit. Tests that fail on the base commit: tests.commands.k8s.test_k8s_devops_stack::test_the_devops_stack_applies_the_searxng_service_monitor.
  • verify of group 6: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (3\xb5s)
k8s: 237 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (22s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  3\xb5s      
 k8s             \u2713 pass  22s      
Total Elapsed: 22s (concurrent async execution)
  • verify of group 7: uv run devops ci --check --only k8s exits 0.
\u2139 Quality gate root: /home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone
\u2139 Executing CI quality gates concurrently...
  \u2713 pass [python_version] python version check (3.14+) (2\xb5s)
k8s: 237 cases, 0 failed
  \u2713 pass [k8s] k8s manifests (kustomize renders of the committed applications) (22s)
            CI Summary            
 Check           Result  Duration 
 python_version  \u2713 pass  2\xb5s      
 k8s             \u2713 pass  22s      
Total Elapsed: 22s (concurrent async execution)
  • verify of group 8: uv run devops ci docs exits 0.
\u2139 Quality gate root: /home/devops/.data/roadmap/implement-runs/devops-implement-t7crt1rl/work/model-clone
\u2713 All documentation files are up to date.

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 22, 2026 13:20
@dan-petty
dan-petty merged commit 80fc29d into main Nov 22, 2026
30 checks passed
@dan-petty
dan-petty deleted the fix/4201-measure-searxng-throttle-and-stop-captcha branch November 22, 2026 13:21
dan-petty-release Bot added a commit that referenced this pull request Nov 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.194.0](v0.193.1...v0.194.0)
(2026-11-22)


### Features

* **roadmap:** run the runner Job as three containers
([#6732](#6732))
([97d6bc7](97d6bc7)),
closes [#3700](#3700)


### Bug Fixes

* **ai:** retry a Qdrant request after a 429, 502, 503 or 504 answer
([#6761](#6761))
([a406980](a406980))
* **deps:** pin the devtools image in its run tag form
([#6763](#6763))
([4735538](4735538)),
closes [#6760](#6760)
* **k8s:** Scrape the SearXNG engine metrics
([#6755](#6755))
([80fc29d](80fc29d))

---
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): Measure SearXNG throttle and stop CAPTCHA repeat

1 participant