-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
bump deps #11148
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
@nolag it looks like this cbor version bump is breaking some tests 🤦 |
Hi, I'm the maintainer of the cbor library. I'm sorry the update to v2.5.0 broke some tests, maybe I can help. cbor library changes are usually introduced as non-default options to prevent compatibility breaks but some exceptions were made in v2.5 and highlighted in ⭐ Notable Changes to Review Before Upgrading in v2.5.0 release notes. For example, test breakage might be due to improved error-handling in cbor v2.5.0 (e.g. previously missed problem being detected and reported as error). A small self-contained reproducer could help projects upgrade to v2.5.0 (e.g. https://github.com/go-webauthn/webauthn v0.8.6 listed in this pull request is also using cbor v2.4.0). I can take a look at the reproducer this weekend if one is available. Please let me know if I can help in any other way to make the upgrade work. |
It looks like we just had four test cases failing due to:
Two were just incidental bytes to truncate, and two others were explicit trailing bytes cases that needed to change their expectation of success. |
3e55583
to
8760b30
Compare
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.
Thanks, I'll verify what will need to be done in the branch I'm working on and make it work there or work with the cbor dev :).
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.
I have more context now, we can't just update it. The encoding sent from EVM will have the extra trailing characters. We would need to use the length in the array returned (the first word) to trim the cbor before calling the function.
I'm going to downgrade cbor's use to 2.4 the branch that we're using for our work so we don't need to tackle it now, but we (or the functions team) should try to eventually fix this so it can be upgraded.
@nolag // UnmarshalFirst decodes first CBOR data item and returns remaining bytes.
rest, err = cbor.UnmarshalFirst(b, &v) // decode []byte b to v |
SonarQube Quality Gate |
https://github.com/fxamacker/cbor/v2 v2.5.0
https://github.com/go-webauthn/webauthn v0.8.6
https://github.com/prometheus/common v0.45.0
https://github.com/prometheus/prometheus v0.47.2
https://github.com/tidwall/gjson v1.17.0
https://gonum.org/v1/gonum v0.14.0