-
Notifications
You must be signed in to change notification settings - Fork 160
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
Make felt_from_number report errors properly #1012
Conversation
Hi @omerfirmak, thanks for the PR. I'm not quite sure I understand it tho. |
for example search for
I wasnt aware, any alternatives that won't be causing any data loss? |
This is the only match I found, it's not in scientific notation here:
I can see if I find some arbitrary precision decimal crates that we can use. Alternatively, I guess there's also the option of storing the mantissa as a separate number (would |
Oh damn, it must be my browser messing up the value somehow when pretty printing. If I dont pretty print it is a plain integer. Sorry for the confusion. |
Dropping the scientific notation part of this PR and keeping the proper error reporting. |
ee0a5b3
to
f6bf547
Compare
We would need to fix the changelog. The Hyperfine workflow failing is just a matter of permissions, it can't post the comment when the PR comes from outside this repo (it's a limitation of the action we use), so it doesn't matter. I checked manually that was the issue. |
Codecov Report
@@ Coverage Diff @@
## main #1012 +/- ##
==========================================
- Coverage 97.71% 97.71% -0.01%
==========================================
Files 89 89
Lines 35725 35737 +12
==========================================
+ Hits 34908 34919 +11
- Misses 817 818 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
It also seems like we're missing a test case hitting the error. |
BTW @omerfirmak let me know if you need help with the CHANGELOG. The format is a bit ad-hoc. |
f6bf547
to
9a7be5d
Compare
Hi @omerfirmak. We'll need you to run |
instead of returning Ok(None) in case of an error
9a7be5d
to
8782d7e
Compare
Done |
Head branch was pushed to by a user without write access
This in-repo CHANGELOG so annoying, it makes PRs race against each other to get merged first. Otherwise you get conflicts. Commits and their messages are changelogs anyways, I suggest you to try enforcing better commit messages instead of an in-repo changelog. |
Yes. I personally want to go with that approach, but we try to keep things democratic in the team so I need to make my point more convincing before doing that, as there may be some drawbacks (say, whatever we use to generate the file afterwards should give some freedom to edits, otherwise it may not be great to read). This input actually helps for that :) Do note even then the changelog would be in-repo, just not manually updated on each PR. Relying on commit messages for end users would not be great UX/DX. |
instead of returning Ok(None) in case of an error Co-authored-by: Mario Rugiero <mario.rugiero@lambdaclass.com> Co-authored-by: fmoletta <99273364+fmoletta@users.noreply.github.com>
Make felt_from_number report errors properly
Description
fixed not reporting the parse error properly
Checklist