refactor: add cache management to OpenApiSpecLoader#35
Merged
Conversation
…ter coverage Add clearCache() and evict() methods to OpenApiSpecLoader so cached spec data can be released without losing configuration. Call clearCache() in the coverage extension after computing results, freeing large spec arrays from memory at the earliest opportunity.
a528aa9 to
a97e22b
Compare
This was referenced Mar 17, 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
OpenApiSpecLoaderにclearCache()とevict()メソッドを追加clearCache(): 設定(basePath, stripPrefixes)を保持したままキャッシュだけクリアevict(): 特定のスペックのみキャッシュから削除clearCache()を呼び出し、不要になったスペックデータを早期に解放Test plan
clear_cache_keeps_config— キャッシュクリア後も設定が保持されることを確認evict_removes_single_spec_from_cache— 特定スペックのみ削除されることを確認