open-notebook/tests
Luis Novo 3b7243d216
Some checks are pending
Development Build / extract-version (push) Waiting to run
Development Build / changes (push) Waiting to run
Tests / Frontend Lint (push) Waiting to run
Tests / Backend Tests (push) Waiting to run
Tests / Backend Lint (push) Waiting to run
Tests / Backend Typecheck (push) Waiting to run
Development Build / build-regular (push) Blocked by required conditions
Development Build / build-single (push) Blocked by required conditions
Development Build / summary (push) Blocked by required conditions
Tests / Frontend Tests (push) Waiting to run
Tests / Frontend Build (push) Waiting to run
fix(sources): fall back to auto when a selected engine's runtime is absent (#1194)
* fix(sources): fall back to auto when a selected engine's runtime is absent

The content-processing engine choice is persisted in the database; the
runtime that serves it (Docling, local Crawl4AI) is installed on demand
from environment flags evaluated at boot. The two therefore drift: a
redeploy that drops OPEN_NOTEBOOK_ENABLE_CRAWL4AI/_DOCLING, a volume
moved to a new deployment, or a failed on-demand install all leave a
stored selection pointing at a runtime that is not there.

The source graph passed that selection straight to content-core, so
every affected extraction failed with "Could not extract any text
content from this source" - no mention of the engine, the runtime, or
the flag that would fix it. For a URL engine set to crawl4ai this breaks
URL ingestion entirely.

The graph now checks runtime availability before honoring the stored
engine and degrades to content-core's "auto" chain, logging a WARNING
that names the engine and the env var that would enable it. Engines with
no opt-in runtime (auto/simple/firecrawl/jina) are passed through
untouched.

The availability probes moved from api/routers/capabilities.py to
open_notebook/utils/runtime_capabilities.py so the graph can use them
without importing from the API layer; the capabilities endpoint keeps
identical behavior and its tests follow the probes to their new home.

Found by the smoke-e2e agent during v1.14.0 release testing, on a dev
environment that was in exactly this state. Pre-existing since v1.13.0
(#1122 made the runtimes opt-in, #432 made the stored selection take
effect), not a v1.14.0 regression.

* docs(changelog): record the unavailable-engine fallback fix
2026-07-20 18:09:00 -03:00
..
conftest.py feat: credential-based API key management (#477) (#540) 2026-02-10 08:30:22 -03:00
README.md Initial commit with all features 2024-10-21 14:56:10 -03:00
test_add_insight_failure_propagation.py ci: gate PRs on mypy, start ignore_errors burn-down (#1076) 2026-07-11 19:25:29 -03:00
test_anthropic_compatible_provider.py refactor(ai): remove redundant anthropic to_langchain shim (#1181) 2026-07-19 15:23:25 -03:00
test_capabilities_api.py fix(sources): fall back to auto when a selected engine's runtime is absent (#1194) 2026-07-20 18:09:00 -03:00
test_chat_routers_characterization.py fix(api): let typed domain exceptions reach the global handlers (#1078) 2026-07-11 19:42:10 -03:00
test_chunking.py fix(embedding): drop degenerate tiny chunks before embedding (#764) (#768) 2026-05-31 09:43:47 -03:00
test_config_endpoint_no_leak.py fix: don't leak internal exception text in API error responses (#1017) 2026-07-10 13:40:27 -03:00
test_connection_test_classification.py fix: make the provider connection test resilient to model retirement (#1035) 2026-07-10 16:26:22 -03:00
test_context_endpoint_characterization.py refactor(api): single context-building implementation (#1079) 2026-07-11 19:55:46 -03:00
test_cors_credentials.py ci: gate PRs on mypy, start ignore_errors burn-down (#1076) 2026-07-11 19:25:29 -03:00
test_credential_provider_validation.py fix(providers): request ?type=all for PPQ model discovery (#1182) 2026-07-19 16:29:57 -03:00
test_credentials_api.py feat: add anthropic_compatible credential provider (#1043) 2026-07-19 15:14:17 -03:00
test_crud_404.py fix(api): return 404 instead of 500 for missing resources in CRUD endpoints (#862) (#924) 2026-06-18 08:23:28 -03:00
test_domain.py feat(settings): expose Docling formula & vision enrichment toggles (#1187) 2026-07-19 18:15:40 -03:00
test_embedding.py chore(lint): re-enable F401/F841/E722 and fix fallout (#1062) 2026-07-11 18:36:04 -03:00
test_error_message_sanitization.py fix(sources): cap error text surfaced to clients (#1140) 2026-07-14 12:22:19 -03:00
test_graphs.py fix(sources): fall back to auto when a selected engine's runtime is absent (#1194) 2026-07-20 18:09:00 -03:00
test_insight_timestamps.py fix(insights): stamp created/updated on source_insight and stop serializing "None" (#1085) 2026-07-12 11:05:51 -03:00
test_max_body_size_middleware.py ci: gate PRs on mypy, start ignore_errors burn-down (#1076) 2026-07-11 19:25:29 -03:00
test_model_discovery.py fix(providers): request ?type=all for PPQ model discovery (#1182) 2026-07-19 16:29:57 -03:00
test_models_api.py fix(models): stop auto-assign from re-filling cleared optional defaults (#1186) 2026-07-19 18:06:17 -03:00
test_note_save_embed_resilience.py fix: surface silent command-submission failures where they matter (#1019) 2026-07-10 13:53:57 -03:00
test_notes_api.py feat: expose embed command_id in note API responses (#545) 2026-02-14 18:11:23 -03:00
test_order_by_validation.py fix: prevent SurrealQL injection in Credential.get_all()'s order_by (#1021) 2026-07-10 14:10:01 -03:00
test_podcast_audio_containment.py refactor(podcasts): store audio paths relative to PODCASTS_FOLDER (#1111) 2026-07-12 14:00:34 -03:00
test_podcast_audio_paths.py refactor(podcasts): store audio paths relative to PODCASTS_FOLDER (#1111) 2026-07-12 14:00:34 -03:00
test_podcast_episode_model_resolution.py fix(podcasts): render EpisodeCard model details from resolved model references (#1115) 2026-07-12 14:57:54 -03:00
test_podcast_job_status_batching.py ci: gate PRs on mypy, start ignore_errors burn-down (#1076) 2026-07-11 19:25:29 -03:00
test_podcast_legacy_field_removal.py chore(podcasts): drop legacy provider/model string fields from podcast profiles (#1107) (#1112) 2026-07-12 14:35:04 -03:00
test_podcast_path.py refactor(podcasts): store audio paths relative to PODCASTS_FOLDER (#1111) 2026-07-12 14:00:34 -03:00
test_podcast_speaker_profile.py refactor(podcasts): store audio paths relative to PODCASTS_FOLDER (#1111) 2026-07-12 14:00:34 -03:00
test_proxy.py fix(proxy): keep internal SurrealDB websocket out of HTTP proxy (#1185) 2026-07-19 18:11:00 -03:00
test_recently_viewed_api.py feat: Recently Viewed section for notebooks and sources (#979) 2026-07-03 12:39:14 -03:00
test_repository_config.py refactor(types): type-check domain base model (#961) 2026-06-25 08:16:41 -03:00
test_runtime_capabilities.py fix(sources): fall back to auto when a selected engine's runtime is absent (#1194) 2026-07-20 18:09:00 -03:00
test_search_api.py fix(search): reject non-positive limit and survive highlight overflow (#898) 2026-06-16 04:51:34 -03:00
test_source_create_array_limits.py ci: gate PRs on mypy, start ignore_errors burn-down (#1076) 2026-07-11 19:25:29 -03:00
test_source_path_containment.py fix: harden source upload path handling and cap array inputs (#1015) 2026-07-10 11:32:51 -03:00
test_sources_api.py fix: sort sources by title without tripping the SEARCH index, return 422 for invalid form data (#1042) 2026-07-10 21:10:24 -03:00
test_startup_migration_retry.py ci: gate PRs on mypy, start ignore_errors burn-down (#1076) 2026-07-11 19:25:29 -03:00
test_transformations_api.py feat: per-transformation custom model selection (#978) 2026-07-03 12:30:50 -03:00
test_typed_exceptions_reach_handlers.py fix(sources): reject unsupported uploads at ingestion with 415 (#975) (#1117) 2026-07-12 18:59:59 -03:00
test_upload_toctou_race.py fix: harden source upload path handling and cap array inputs (#1015) 2026-07-10 11:32:51 -03:00
test_upload_type_mitigations.py fix(sources): reject unsupported uploads at ingestion with 415 (#975) (#1117) 2026-07-12 18:59:59 -03:00
test_url_validation.py test(security): pin legitimate self-hosted use against the DNS guard (#1193) 2026-07-20 17:56:42 -03:00
test_utils.py refactor(api): single context-building implementation (#1079) 2026-07-11 19:55:46 -03:00
test_vertex_credentials_file_oracle.py fix: don't leak filesystem info via Vertex credential test errors (#1012) 2026-07-10 11:07:04 -03:00

Coming Soon