Repository navigation
test(knowledge): persist query image fixtures in SQLite - #44980
Merged
asukaminato0721 merged 1 commit intoOct 28, 2026
Merged
Conversation
Contributor
Pyrefly Type Coverage
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #44980 +/- ##
=======================================
Coverage 89.53% 89.53%
=======================================
Files 6009 6009
Lines 376837 376837
Branches 76232 76232
=======================================
Hits 337385 337385
- Misses 33455 33457 +2
+ Partials 5997 5995 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
asukaminato0721
approved these changes
Oct 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Contributes to #44973: migrate the query-image persistence scenarios in
services/knowledge_fs/test_query_images.py.The previous
_Session,_install_files, and file-controller doubles returned supplied objects without exercising database lookups or commit behavior. Use the shared SQLite fixtures to persist realUploadFileandToolFilerows and execute the actual lookup and authorization paths instead.This is a test-only change and one part of the issue's broader inventory. Production behavior is unchanged.
Validation
make lint: passed, including all 75 import contracts.make type-check: fails on two Tencent tracing imports (entities.semconvandentities.tencent_trace_entity). The identical two errors reproduce with the original test file on the same upstream base,0bd201254da45ddab1e15950d1f2af277de67240.uv lock --project api --checkwith CI's uv 0.13.6: passed.Screenshots
Not applicable (backend tests only).
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint godsNo documentation or frontend changes. Backend check results are recorded above rather than marking the combined checklist item as passed.
AI assistance was used to inspect the existing contracts, migrate the fixtures, and run the validation and negative controls described above.
From Codex