Repository navigation
conflicting option names - #1049
Conversation
…mbiguous names and conflicts.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1049 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 17 17
Lines 4546 4583 +37
Branches 0 981 +981
==========================================
+ Hits 4546 4583 +37 ☔ View full report in Codecov by Sentry. |
397e2f4 to
9be9cba
Compare
|
I made the changes in PR #1049. There were a few edge cases to work through that the fuzzer caught. |
| hooks: | ||
| - id: codespell | ||
| args: ["-L", "atleast,ans,doub,inout"] | ||
| args: ["-L", "atleast,ans,doub,inout,AtMost"] |
There was a problem hiding this comment.
Oh, did this bug get fixed in 2.3.0? It used to be you had to put all lower case versions here.
There was a problem hiding this comment.
Didn't know there was a bug, but this resolved the pre-commit issue
| @@ -0,0 +1 @@ | |||
| config ' ' No newline at end of file | |||
There was a problem hiding this comment.
Haven't followed the fuzzer that closely, what does this do?
There was a problem hiding this comment.
Right now the fuzzer has a large number of options, and some limited mechanics to generate new ones. It processes the options making sure there is nothing that generates a seg fault or other bad condition. Then generates a config file from the results and reads that config file back in. This led to all kinds of inconsistencies that got fixed a few months ago. At some point I will make it so it checks to make sure the values read from the config file are actually the same as the original values, then I might consider submitting it to OSS-Fuzz. The current test just runs a quick_fuzz ~6 minutes and can catch some issues especially when changing some internal mechanics or other things. I will keep adding to it as I have time.
This particular test caught an issue with creating a positional option named config, which was newly allowed. This then triggered an error as it was trying to match with the config option which was not configurable, so had to make it so it checked for other options if some were not configurable.
Take the configurability of an option into account when determining ambiguous names and conflicts.