Skip to content

fix(ci/fingerprint): include .c source files in test/example fingerprints (#3129 A13) - #3194

Merged
zackees merged 1 commit into
masterfrom
fix/3129-a13-fingerprint-c-ext
Jun 16, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3129-a13-fingerprint-c-ext

Conversation

@zackees

@zackees zackees commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

ci/util/unified_test_cache.py correctly globs **/*.c alongside h/cpp/hpp for SRC_CODE_INCLUDE, CPP_TEST_INCLUDE, and EXAMPLES_INCLUDE — but the FingerprintManager in ci/util/test_types.py was missing .c.

Symptom

Editing a .c file under src/ did not change the cpp_test, examples, or wasm fingerprint, so the test layer could incorrectly skip a run when a .c file was the only change. Pure FastLED-side bug, no upstream blocker.

What changes

Six glob strings in ci/util/test_types.py now include **/*.c:

Caller Glob (before) → (after)
calculate_cpp_test_fingerprint() src/ **/*.h,**/*.cpp,**/*.hpp → +,**/*.c
calculate_cpp_test_fingerprint() tests/ same
calculate_examples_fingerprint() src/ same
calculate_examples_fingerprint() examples/ **/*.ino,**/*.h,**/*.cpp,**/*.hpp → +,**/*.c
calculate_wasm_examples_fingerprint() src/ same as cpp_test src/
calculate_wasm_examples_fingerprint() examples/wasm **/*.ino,**/*.h,**/*.cpp,**/*.hpp,**/*.js,**/*.html → adds ,**/*.c
fingerprint_code_base() default arg same as cpp_test src/

1 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 lint clean
  • ✅ Matches the authoritative glob list in ci/util/unified_test_cache.py

Part of #3129 (Section A13).

🤖 Generated with Claude Code

…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]>
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Caution

Review failed

An error occurred during the review process. Please try again later.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/3129-a13-fingerprint-c-ext

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees
zackees merged commit 4c259f5 into master Jun 16, 2026
10 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 16, 2026
@zackees
zackees deleted the fix/3129-a13-fingerprint-c-ext branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant