open-notebook/tests
Matt Van Horn 8889087e31
Some checks failed
Development Build / extract-version (push) Has been cancelled
Tests / Backend Tests (push) Has been cancelled
Tests / Frontend Tests (push) Has been cancelled
Development Build / build-regular (push) Has been cancelled
Development Build / build-single (push) Has been cancelled
Development Build / summary (push) Has been cancelled
fix: make API startup resilient to a not-yet-ready database (#977)
* fix: make API startup resilient to a not-yet-ready database

Fixes #708

* fix: bound the database readiness probe with a per-attempt timeout

_wait_for_database awaited migration_manager.ping() with no timeout, so a
hung connection probe could bypass the retry budget and block startup
indefinitely. Wrap the probe in asyncio.wait_for with a per-attempt ceiling;
a timed-out probe is treated as a transient failure and retried like any
other unreachable-database attempt, keeping the retry budget bounded.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs: add CHANGELOG entry for startup database readiness retry (#708)

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Luis Novo <lfnovo@gmail.com>
2026-07-03 14:15:09 -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_chunking.py fix(embedding): drop degenerate tiny chunks before embedding (#764) (#768) 2026-05-31 09:43:47 -03:00
test_credentials_api.py feat: complete audio matrix (Google/Vertex TTS, Google/ElevenLabs STT) (#835) 2026-06-02 06:32:48 -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 fix(credentials): persist Ollama num_ctx via a flexible config object (#903) 2026-06-16 09:24:35 -03:00
test_embedding.py feat: use token-based sizing for embedding chunking (#749) 2026-04-19 13:49:09 -03:00
test_embedding_commands.py fix(commands): register legacy embedding aliases (#876) 2026-06-17 13:21:19 -03:00
test_graphs.py chore(release): prepare v1.10.0 (#923) 2026-06-18 07:44:05 -03:00
test_models_api.py fix(api): normalize openai_compatible provider name in models endpoint (#801) 2026-05-29 11:14:29 -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_podcast_path.py fix: pass max_tokens through to podcast_creator for outline/transcript generation (#982) 2026-07-03 12:23:19 -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_search_api.py fix(search): reject non-positive limit and survive highlight overflow (#898) 2026-06-16 04:51:34 -03:00
test_sources_api.py chore(release): prepare v1.10.0 (#923) 2026-06-18 07:44:05 -03:00
test_startup_migration_retry.py fix: make API startup resilient to a not-yet-ready database (#977) 2026-07-03 14:15:09 -03:00
test_transformations_api.py feat: per-transformation custom model selection (#978) 2026-07-03 12:30:50 -03:00
test_url_validation.py feat: credential-based API key management (#477) (#540) 2026-02-10 08:30:22 -03:00
test_utils.py fix: handle tiktoken network errors in offline environments (issue #264) 2026-03-10 19:45:14 -05:00

Coming Soon