-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line parser issues #3196
Conversation
LGTM 👍 |
|
@ximinez updated the account_offers usage output to reflect support for the 'strict' param & updated parseAccountItems comments pertaining to other relavant commands. Let me know if there is anything else! |
It would be good to update RPCCall_test.cpp. For example with this pull request the comment here needs to be updated: https://github.com/ripple/rippled/blob/develop/src/test/rpc/RPCCall_test.cpp#L472 And here's a test case that maybe should work but doesn't: https://github.com/ripple/rippled/blob/develop/src/test/rpc/RPCCall_test.cpp#L490 |
@scottschurr Fixed the broken tests and updated the outdated comments |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and updated tests appear to be passing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look pretty good to me. I'd like to have @mDuo13 weigh in also since this change affects his documentation.
I do have a couple of minors nit that you could not possibly have known about:
-
You updated the "account_currencies: too many arguments" test to be "current ledger". In the process we lost the "too many arguments" coverage for account_currencies. It would be good to add the "too many arguments" test case back in.
-
The tests are structured, within each command, so the good parses go first followed by bad parses. By leaving what used to be "too many arguments" in place, there's a good parse test in the middle of the bad parse tests. I'd like to move the newly good parse case up with the other good parse cases.
You can see an example the changes I'm proposing here: scottschurr@56c8c79. Feel free to cherry-pick that commit if you wish. Let me know if you have any questions. Thanks.
@scottschurr cherry picked and tried it out, LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM. I would like to see @mDuo13 weigh in, however. Thanks.
For the (I'm just curious, as this has been a point of confusion on past commandline syntax and I don't have a clear answer on which one you should use.) |
@scottschurr yes on the command line "strict" (by itself) should be specified |
@mDuo13, I haven't seen any objections from you yet. So you're good with this pull request? If so I think it can be marked |
👍 |
Sorry, my mistake. All of the CI build targets that run the regular unit tests are showing unit test failures. Here's the text of the failures as I'm seeing them for both clang and gcc:
We need to understand the reason for the unit test failure first. Assuming the test failures are caused by something benign, once the unit tests are patched up I think this pull request will be good to go. Thanks for being patient. |
@scottschurr it's hard to determine from the CI engine why exactly those tests are failing, would it be possible to enable more verbose output? |
you might want to try running the unit tests locally ( |
account_info, owner_info, account_currencies
@mellery451 ok thanks, I was able to reproduce the error locally. @scottschurr pushed a followup patch fixing the issue |
Codecov Report
@@ Coverage Diff @@
## develop #3196 +/- ##
===========================================
+ Coverage 70.33% 70.33% +<.01%
===========================================
Files 675 675
Lines 53178 53177 -1
===========================================
Hits 37402 37402
+ Misses 15776 15775 -1
Continue to review full report at Codecov.
|
🎉 Thanks for the persistence @movitto. Looks like we're ready for all of this to be squashed. |
This pull request addresses issue #2983 with the following changes:
As far as the 2nd bullet point in issue #2983, the aforementioned commands were inspected and found to output documentation pertaining to the 'strict' parameter as expected (see attached screenshot). If I missed something please let me know and I can look into further.