Skip to content

fix(build): re-raise KeyboardInterrupt from the example cache read (#3771 follow-up) - #3776

Merged
zackees merged 1 commit into
masterfrom
fix/3771-reraise-keyboardinterrupt
Jul 31, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3771-reraise-keyboardinterrupt

Conversation

@zackees

@zackees zackees commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

@
Addresses the one unresolved CodeRabbit comment on #3771, which was merged before the fix commit landed on the branch.

Problem

In detect_example_file_changes() (ci/meson/meson_setup_phases.py), the inner except KeyboardInterrupt called handle_keyboard_interrupt(ki) but did not re-raise.

handle_keyboard_interrupt() only raises when it runs on the main thread. From a worker thread it notifies the main thread and returns normally. Without an explicit raise, the interrupt was swallowed: execution fell through, cached_example_hash stayed empty, and the function returned "example metadata cache unreadable" — turning a Ctrl-C into a forced reconfigure instead of unwinding the thread.

Fix

Add raise after handle_keyboard_interrupt(ki), matching the outer except KeyboardInterrupt handler in the same function.

bash lint clean.

CodeRabbit comment: #3771 (comment)

🤖 Generated with Claude Code
@

Summary by CodeRabbit

  • Bug Fixes
    • Improved interruption handling during setup checks so manual cancellations are no longer reported as cache-read errors.

handle_keyboard_interrupt() only raises on the main thread; from a worker
it notifies and returns. Without an explicit re-raise the interrupt fell
through to `cached_example_hash = ""`, so a Ctrl-C was reported as
"example metadata cache unreadable" and forced a reconfigure instead of
unwinding. Matches the outer handler in the same function.

Reported by CodeRabbit on #3771.

Co-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 446be7b1-4983-4703-8c4c-2d0e61ed1a7f

📥 Commits

Reviewing files that changed from the base of the PR and between 1301463 and 286f4ea.

📒 Files selected for processing (1)
  • ci/meson/meson_setup_phases.py

📝 Walkthrough

Walkthrough

The example metadata cache-loading path now re-raises KeyboardInterrupt after invoking the interrupt handler. Keyboard interrupts no longer fall through to the generic unreadable-cache error path.

Changes

Interrupt handling

Layer / File(s) Summary
Propagate keyboard interrupts
ci/meson/meson_setup_phases.py
The cache-loading exception path re-raises KeyboardInterrupt after notification instead of returning a reconfiguration result.

Estimated code review effort: 2 (Simple) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: re-raising KeyboardInterrupt during example cache reads.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/3771-reraise-keyboardinterrupt

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.

@zackees
zackees merged commit e7051d4 into master Jul 31, 2026
10 of 13 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 31, 2026
@zackees
zackees deleted the fix/3771-reraise-keyboardinterrupt branch August 21, 2026 19:16
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