Repository navigation
fix: chipstream-cli --recursive silently did nothing when PATH_IN is a file - #15
Merged
paulmueller merged 1 commit intoNov 23, 2026
Conversation
…s a file
In recursive mode, `path_in.rglob("*.rtdc")` yields nothing for a file,
so the CLI processed nothing and exited with 0. Now it prints an error
and exits with 1, like it does for a directory without `--recursive`.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15 +/- ##
==========================================
+ Coverage 74.60% 74.73% +0.13%
==========================================
Files 19 19
Lines 1327 1330 +3
==========================================
+ Hits 990 994 +4
+ Misses 337 336 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
paulmueller
approved these changes
Nov 23, 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.
Bug
With
--recursive, a single file asPATH_INis silently ignored:path_in.rglob("*.rtdc")yields nothing for a file, so nothing is processed and the CLI exits with 0.Fix
In recursive mode,
PATH_INmust be a directory. For a file, the CLI now prints an error and exits with 1, mirroring the existing error for a directory without--recursive:I chose an error over processing the file, because in recursive mode
PATH_OUTis a target directory, while for a single file it is a file path; silently switching modes would makePATH_OUTambiguous.Tests
test_cli_recursive_with_filechecks the exit code, the message, and that no output file is written. It fails onmainand passes with the fix. flake8 is clean; ruff shows no new errors.🤖 Generated with Claude Code