-
Notifications
You must be signed in to change notification settings - Fork 26
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
test failures in Debian: TestSignature_Sign_Internal and TestSignature_toBeSigned #181
Comments
Hi @jas4711, thanks for the report! Unfortunately, I am unable to reproduce the bug in my setup. I cloned the repo and ran: go test -vet=off -v -p 2 github.com/veraison/go-cose and everything seems to work ok, at least on my laptop. Could you help me set up the repro environment? The error you are seeing looks either like a truncation in the CBOR stream, or spurious data that got appended for TBD reasons. |
Thanks for reply! Reproducing it involves building our Debian packaging which is a somewhat complicated process if you haven't done it before. Maybe we can resolve it with a bit of detective work instead. Are these self-tests related to the Could that patch result in this self-test error? I'm building on amd64 platform, so the patch shouldn't be necessary and may be causing the problem. I'll try to rebuild the cbor dependency without the patch to see if it makes a difference for your self-tests. |
ping @gibmat - see also fxamacker/cbor#302 for some discussion |
Debian packaging typically tries to stick to released versions, and version 1.2.1 expects fxamacker/cbor v2.4.0. Since that release, #166 was merged into main, with changes for the fxamacker/cbor v2.5.0 release. When I cherry-pick that PR into the debian packaging all the tests pass. (As a side note, I'd really like to see fxamacker/cbor merge my PR, but non-64bit systems don't seem to concern the maintainer.) |
Thanks @gibmat for looking at it.
BTW, go-cose@latest is v1.1.0
Interesting. OK, so to try and recap go-cose's situation: Is that correct? Have you tried removing @gibmat's patch to see whether v2.4.0 of fxamacker/cbor is still broken? |
That's what I suspect.
Awesome. Looking forward to your results. |
The latest tag of go-cose is v1.2.1 (https://github.com/veraison/go-cose/tags), which is what the Debian packaging tools are picking up on.
No, I think it's just API changes in fxamacker/cbor v2.5.0, which go-cose addressed in #166 but haven't yet been in a tagged version of go-cose. |
You should use v1.1.0 which is advertised as the current release. |
Hi @gibmat, thanks for the issue. It looks like this is resolved. Can you please confirm? We'll close in a week if there's no response. |
This issue will be resolved after the next minor version of the release. |
Closing with v1.4.0 released. |
What is the areas you experience the issue in?
Go-COSE Library
What is not working as expected?
Hi! I am packaging go-cose for Debian. I got build failures in the self tests when built inside Debian. See build log here:
https://salsa.debian.org/jas/golang-github-veraison-go-cose/-/jobs/5160101
Output below. Do you have any ideas? The self test seems extensive, great work! We are disabling it until we can figure out how to fix this.
What did you expect to happen?
Build work
How can we reproduce it?
Checkout and build your package via Debian:
https://salsa.debian.org/go-team/packages/golang-github-veraison-go-cose/
Describe your environment
Debian
What is the version of your Go-COSE Library?
1.2.1
The text was updated successfully, but these errors were encountered: