feat: use Mermaid index snapshots in TestCasesGenerator relevant-test search - #265
Open
IstiN wants to merge 203 commits into
Open
feat: use Mermaid index snapshots in TestCasesGenerator relevant-test search#265IstiN wants to merge 203 commits into
IstiN wants to merge 203 commits into
Conversation
… search Add optional mermaidIndexStoragePath / mermaidIndexIntegration / useMermaidSnapshotForGeneration params to TestCasesGenerator. When configured, existing test cases are represented by pre-built Mermaid diagram snapshots during RelatedTestCasesAgent search, reducing token usage for large existingTestCasesJql result sets. Verification and generation keep using full ticket text by default. - MermaidSnapshotResolver loads .mmd snapshots by ticket key - MermaidSnapshotTicketWrapper overrides toText() with snapshot - Tests and docs (xray/testrail manuals) updated
…rapping - Document mermaidIndexStoragePath, mermaidIndexIntegration, and useMermaidSnapshotForGeneration in the main TestCasesGenerator reference. - Add explicit boolean flag and comment in TestCasesGenerator so the parameter-based decision to wrap existing test cases is obvious.
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
Adds optional Mermaid snapshot lookup to
TestCasesGeneratorso that largeexistingTestCasesJqlresult sets can be searched using compact Mermaid diagrams instead of full ticket text, reducing token consumption.New params
mermaidIndexStoragePath— root of the Mermaid index output (e.g. separate repo checkout)mermaidIndexIntegration—jiraorjira_xray(defaultjira)useMermaidSnapshotForGeneration— also use snapshots for generation (defaultfalse)Behavior
RelatedTestCasesAgent): uses snapshot text when available, falls back to full ticket text.RelatedTestCaseAgent) and generation (TestCaseGeneratorAgent): keep using full ticket text by default.Tests
MermaidSnapshotResolverTestMermaidSnapshotTicketWrapperTestTestCasesGeneratorMermaidSnapshotTestTestCasesGeneratorParamsTest:dmtools-core:testpasses.Docs
Added "Mermaid Index Snapshot Lookup" sections to
xray-manual.mdandtestrail-manual.md.