Repository navigation
fix(ci/fingerprint): include .c source files in test/example fingerprints (#3129 A13) - #3194
Merged
Merged
Conversation
…ints ci/util/unified_test_cache.py correctly globs **/*.c alongside h/cpp/hpp, but the FingerprintManager in ci/util/test_types.py was missing .c. As a result, editing a .c file under src/ would not invalidate the cpp_test or examples fingerprint, so the test layer could incorrectly skip a run when a .c file was the only change. Adds **/*.c to: - calculate_cpp_test_fingerprint() : src/ and tests/ globs - calculate_examples_fingerprint() : src/ and examples/ globs - calculate_wasm_examples_fingerprint() : src/ and examples/wasm/ globs - fingerprint_code_base() : default glob Six glob strings touched in total. Brings test_types.py in line with the authoritative glob list in unified_test_cache.py. Part of #3129 (Section A13). Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
5 tasks
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
ci/util/unified_test_cache.pycorrectly globs**/*.calongsideh/cpp/hppfor SRC_CODE_INCLUDE, CPP_TEST_INCLUDE, and EXAMPLES_INCLUDE — but theFingerprintManagerinci/util/test_types.pywas missing.c.Symptom
Editing a
.cfile undersrc/did not change thecpp_test,examples, orwasmfingerprint, so the test layer could incorrectly skip a run when a.cfile was the only change. Pure FastLED-side bug, no upstream blocker.What changes
Six glob strings in
ci/util/test_types.pynow include**/*.c:calculate_cpp_test_fingerprint()src/**/*.h,**/*.cpp,**/*.hpp→+,**/*.ccalculate_cpp_test_fingerprint()tests/calculate_examples_fingerprint()src/calculate_examples_fingerprint()examples/**/*.ino,**/*.h,**/*.cpp,**/*.hpp→+,**/*.ccalculate_wasm_examples_fingerprint()src/calculate_wasm_examples_fingerprint()examples/wasm**/*.ino,**/*.h,**/*.cpp,**/*.hpp,**/*.js,**/*.html→ adds,**/*.cfingerprint_code_base()default arg1 file changed, 10 insertions(+), 7 deletions(-)
The audit at #3129 A13 cited 4 specific glob strings (lines 455/461/519/527). I also patched the default arg (line 386) and the two WASM globs (lines 649/656) to fix the same bug consistently across the file.
Validation
bash lintcleanci/util/unified_test_cache.pyPart of #3129 (Section A13).
🤖 Generated with Claude Code