Repository navigation
fix(validate): include KiCad version in cache key - #88
Open
Princess0407 wants to merge 1 commit into
Open
Princess0407 wants to merge 1 commit into
Princess0407 wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
What changed and why
Fixes a cache invalidation issue in the validation runner where cached ERC and DRC results could be reused after changing the installed KiCad CLI version. Previously,
Runner.cache_key()accounted for design inputs, check configuration, reviewer settings, and execution options, but did not include the detected KiCad version. Consequently, running validation with KiCad 9 and subsequently upgrading to KiCad 10 could result in the previous ERC/DRC results being reused without executing the checks against the new version.Changes
test_kicad_version_change_invalidates_cached_erc_and_drcto verify that changing from KiCad 9 to KiCad 10 invalidates cached ERC and DRC results and triggers fresh executions.Test plan
make lintmake testtest_kicad_version_change_invalidates_cached_erc_and_drc— passedtests/test_validate.py— 73 passed./local_pytest.py -m "not live"— 1,102 passed, 1 skipped, 5 deselectedChecklist