Commit graph

521 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
a08de01cc7 Revert "Merge pull request #1523 from CREDO23/fix/chat-citations"
This reverts commit cd2242147a, reversing
changes made to a4bb0a5253.
2026-06-22 22:55:29 -07:00
Thierry CH.
fb955d3201
Merge pull request #1525 from yuvrajsingh2428/test/async-retry-unit-tests
test: add unit tests for async_retry.raise_for_status
2026-06-22 22:44:22 +02:00
Thierry CH.
b86846e809
Merge pull request #1530 from Anofff/test/content-utils-unit-tests
test: add unit tests for content_utils text helpers
2026-06-22 20:17:06 +02:00
Anofff
bf9be8face test: add unit tests for content_utils text helpers 2026-06-21 17:47:41 +00:00
Yuvraj Singh
6926b7a8fe test: add unit tests for async_retry.raise_for_status 2026-06-20 17:05:57 +05:30
CREDO23
31a14190e3 fix: update upload conftest mock to span-aware chunker 2026-06-19 19:36:26 +02:00
CREDO23
1cb7633920 Merge upstream/main into fix/chat-citations 2026-06-19 18:25:37 +02:00
CREDO23
73dd4e8e3a feat: embed line-citation tokens in search hits 2026-06-19 17:37:41 +02:00
CREDO23
188ae053ac feat: serve numbered source_markdown reads with citation preamble 2026-06-19 17:37:41 +02:00
CREDO23
691685dd16 test: cover read preamble and matched line ranges 2026-06-19 15:43:21 +02:00
CREDO23
773f913f06 test: cover by-chunk span and line-range resolve 2026-06-19 15:31:44 +02:00
CREDO23
7d7cb12a43 test: cover matched-passage hit rendering 2026-06-19 14:53:49 +02:00
CREDO23
a2a92c592f test: assert hybrid search returns chunk spans 2026-06-19 14:53:49 +02:00
CREDO23
c376fbaf61 test: seed chunk spans in retriever fixture 2026-06-19 14:53:49 +02:00
CREDO23
90502d21d3 test: cover char-span line-range helper 2026-06-19 14:53:49 +02:00
CREDO23
5a315eafd3 test: verify note write chunk spans 2026-06-18 20:17:45 +02:00
CREDO23
5ed62e712b test: stub build_chunk_embeddings in parity tests 2026-06-18 20:17:45 +02:00
CREDO23
a0046483a9 test: assert chunker routing via use_code_chunker flag 2026-06-18 20:06:33 +02:00
CREDO23
03012c3077 test: span-aware paragraph chunker fixture 2026-06-18 20:06:33 +02:00
CREDO23
a7cf9bd946 test: mock span chunker in reindex test 2026-06-18 20:06:33 +02:00
CREDO23
12e948cad1 test: mock span chunker in integration fixtures 2026-06-18 20:06:33 +02:00
CREDO23
60fff66ee0 test: verify chunk span persistence on index 2026-06-18 20:06:33 +02:00
CREDO23
94229213f4 test: cover span chunker invariants 2026-06-18 20:06:33 +02:00
Anish Sarkar
9005e992c0 feat: add unit tests for LLM bundle streaming functionality
- Introduced a new test file to validate the LLM bundle construction for streaming flows in chat.
- Implemented tests to ensure that both DB-backed and global models enable streaming correctly.
- Utilized mocking to isolate dependencies and verify the expected behavior of the LLM constructor.
2026-06-18 23:32:36 +05:30
CREDO23
b446897638 test: editor read paths never reconstruct body from chunks 2026-06-18 19:23:49 +02:00
DESKTOP-RTLN3BA\$punk
55f91a29d5 chore: linting 2026-06-17 22:31:36 -07:00
DESKTOP-RTLN3BA\$punk
b89866541e chore: linting 2026-06-17 20:50:07 -07:00
CREDO23
2db1615195 test long filename document processing notifications 2026-06-17 15:06:05 +02:00
CREDO23
79f9bd182b test truncated document processing titles 2026-06-17 15:06:05 +02:00
CREDO23
e195fb77c5 test format_title helper 2026-06-17 15:06:05 +02:00
CREDO23
aee0f1ef7d add persist_scratch_index unit tests 2026-06-17 14:59:24 +02:00
CREDO23
a8a1f01945 update index batch parallel tests 2026-06-17 14:59:24 +02:00
DESKTOP-RTLN3BA\$punk
0fe650fd8e Merge commit '7ce409c580' into dev 2026-06-16 22:48:14 -07:00
Dmitry Maranik
81fc467187 test(connectors): regression tests for cross-search-space index authorization
Two integration tests pinning the connector index endpoint's authorization:

- cross-space index (attacker owns space B, connector lives in victim's
  space A, request passes search_space_id=B) is rejected with 404 at the
  search-space reconciliation, before the permission check (which would
  otherwise pass for the attacker's own space).
- same-space index authorizes check_permission against the connector's
  own search space, not the caller-supplied query param.

Mirrors the existing tests/integration harness (direct handler calls with
the savepoint-rolled-back db_session; check_permission patched so the test
needs no real RBAC wiring).
2026-06-16 16:18:40 -07:00
CREDO23
7a415b61ea test: align QuotaInsufficientError fixtures with balance_micros API
Billable calls now raise quota errors with balance_micros instead of
used_micros/limit_micros; update mocks so CI passes on main.
2026-06-16 23:56:11 +02:00
CREDO23
fd96c930bf test(podcasts): cover seconds duration and legacy minute specs 2026-06-16 23:38:28 +02:00
CREDO23
f997b6464e test(podcasts): update renderer test for second-based duration 2026-06-16 23:38:28 +02:00
CREDO23
cb70b64a70 test(podcasts): update unit fixtures for second-based duration 2026-06-16 23:38:28 +02:00
CREDO23
38991c7db8 test(podcasts): update integration fixtures for second-based duration 2026-06-16 23:38:28 +02:00
CREDO23
1048d0afc3 test(podcasts): cover public stream missing-object 404 2026-06-16 20:09:08 +02:00
CREDO23
810ded2dde test(podcasts): cover in-flight 409 and missing-object 404 2026-06-16 20:09:08 +02:00
CREDO23
86a8833fb4 test(podcasts): add exists to fake storage backend 2026-06-16 20:09:08 +02:00
Rohan Verma
69bdcf5946
Merge pull request #1491 from AnishSarkar22/feat/unified-model-connections
feat: Fix model attribution for prefix-stripped token usage callbacks
2026-06-14 17:50:48 -07:00
CREDO23
32a6e54ce6 Merge remote-tracking branch 'upstream/dev' into features/documents-injestion-layered-cached 2026-06-14 11:30:33 +02:00
Anish Sarkar
d9a4f14f99 feat(token-tracking): enhance model metadata reconciliation by adding bare model name handling 2026-06-14 12:18:22 +05:30
Anish Sarkar
c7409c8995 chore: ran linting 2026-06-13 21:59:35 +05:30
Anish Sarkar
ab5423d2d2 Merge remote-tracking branch 'upstream/dev' into feat/unified-model-connections 2026-06-13 19:04:49 +05:30
Anish Sarkar
e104193ddf refactor(provider-configuration): standardize provider parameter naming across various modules and improve quota error handling in tests 2026-06-13 14:23:32 +05:30
Anish Sarkar
4a6a282a46 feat(runtime-cooldown): implement Redis-based shared cooldown management for model selection 2026-06-13 13:53:01 +05:30
Anish Sarkar
bd4a04f2e7 feat(database-migrations): add migration to remove legacy model config tables and remove stale model connection code 2026-06-13 12:45:43 +05:30