-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
tail hex parsing, remove fundu dependency #7760
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
Conversation
713f018
to
997c5ef
Compare
many thanks! |
GNU testsuite comparison:
|
@eduardorittner FYI |
Can we please merge #7694 first? That fixes the second case, and more adjacent similar cases, e.g. |
Fails for me. That being said, I don't think it's so bad to treat
|
I'm happy to rebase against main after #7694 is merged. Ping me here, otherwise I might not see it. I'm using coreutils 9.7 (latest version packaged for Arch Linux), so I'd guess the issue has already been reported. |
GNU testsuite comparison:
|
Actually, the easiest would just be if you dropped your changes in
Interesting. I guess I need to update my system ,-) Maybe this is part of the changes they did to cover very short sleep intervals. Thanks! |
Argh, your newly added tests now fail. Hopefully we can just wait for #7694 then rebase this. |
GNU testsuite comparison:
|
GNU testsuite comparison:
|
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.
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
src/uucore/src/lib/features/parser/parse_time.rs:133
- Duplicate assertion found for ExtendedBigDecimal overflow handling. Consider removing the duplicate to reduce redundancy.
assert_eq!(from_str("1e92233720368547758080", false), Ok(Duration::MAX));
@@ -4430,7 +4430,6 @@ fn test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same | |||
} | |||
|
|||
#[rstest] | |||
#[case::exponent_exceed_float_max("1.0e100000")] |
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.
why did you remove it ?
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.
See conversation above. TL;DR: It no longer errors in GNU coreutils 9.7, bringing it more in line with other utilities. Should I add it back as a case on a test that expects success?
tail hex parsing, remove fundu dependency
closes #7670
addresses @sylvestre's comment on #7675
From that issue:
The first looks erroneous to me. I can't get GNU tail to error on my system due to an interval larger than
float::MAX
.The second and third are patched in this PR.