fix: handle duplicate decoder/test suite names in command arguments#311
Conversation
|
@copilot src change is correct, but commit message is wrong. This project uses Conventional Commits [1] and the summary line in the commit must have a prefix with the text |
The main fix commit (76f7bd4) already has the This follows Conventional Commits format correctly. The "Initial plan" commit is an empty planning commit that was created during development. If you'd like me to squash these commits into one, I'll need force-push permissions as git doesn't allow me to rewrite history with the current setup. |
76f7bd4 to
15469f7
Compare
15469f7 to
2c78655
Compare
Co-authored-by: rgonzalezfluendo <56379722+rgonzalezfluendo@users.noreply.github.com>
2c78655 to
39b26f3
Compare
Fixes issue where duplicate decoder or test suite names in command-line arguments would cause the command to fail with "No decoders found for:" error.
Problem
When running:
The command failed with "No decoders found for:" because
_get_matches()compared the length of the original input list (with duplicates) against the deduplicated set.Solution
Changed line 229 in
fluster/fluster.py:if len(matches) != len(in_list):if len(matches) != len(in_list_names):This compares against the deduplicated set, allowing duplicates to pass through while preserving validation for invalid names.
Testing
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.