Repository navigation
test: ingest workflow agent knowledge snapshots from SQLite - #44978
Merged
asukaminato0721 merged 1 commit intoOct 28, 2026
Merged
asukaminato0721 merged 1 commit into
asukaminato0721 merged 1 commit into
Conversation
asukaminato0721
approved these changes
Oct 28, 2026
asukaminato0721
enabled auto-merge
October 28, 2026 12:55
Contributor
Pyrefly Type Coverage
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #44978 +/- ##
=======================================
Coverage 89.52% 89.53%
=======================================
Files 6009 6009
Lines 376843 376837 -6
Branches 76238 76232 -6
=======================================
+ Hits 337380 337385 +5
+ Misses 33465 33455 -10
+ Partials 5998 5997 -1
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:
|
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
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
Part of #44973.
Replaces fake
_ScalarsSessionintest_knowledge_gateway.pywith real rows in theSQLite test database, so
collect_workflow_agent_knowledge_space_idsruns its actual query.The new test saves not only two bindings but also two filters. One filter excludes a newer version of the same agent from being bound, while another filter excludes drafts with similar workflows but different knowledge spaces.
The decoy is a test case used specifically to determine whether any filters may have been compromised during the process of testing. If so, then clearly the test fails because the wrong knowledge space is returned.
Validation: all 25 tests in the file pass; ruff and pyrefly pass. Test-only change.
Screenshots
N/A (test-only change)
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint gods