Skip to content
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

Remove the Cbor trait and impl from all param/return types #700

Closed
anorth opened this issue Sep 22, 2022 · 6 comments · Fixed by #943 or #960
Closed

Remove the Cbor trait and impl from all param/return types #700

anorth opened this issue Sep 22, 2022 · 6 comments · Fixed by #943 or #960
Assignees
Labels

Comments

@anorth
Copy link
Member

anorth commented Sep 22, 2022

The Cbor trait has a couple of convenience functions that become made available as methods on types implementing it. Only one of these is used at all (marshal_cbor) and it only a couple of times. It's not worth the noise.

Remove the trait and change the couple of uses of it to use existing serialize() functions.

@arajasek
Copy link
Contributor

arajasek commented Dec 5, 2022

@anorth The Cbor trait is currently used by the entirety of the integration test suite (see here). Do you have an easy way in mind to refactor around this?

If not, I'd rather close this issue -- strikes me as a lot of work for not much gain.

@anorth
Copy link
Member Author

anorth commented Dec 5, 2022

Yes I think we should just do the work, though it's quite annoying that we have to do that work in FVM first.

@anorth anorth added the blocked label Dec 5, 2022
@arajasek
Copy link
Contributor

arajasek commented Dec 6, 2022

@anorth Okay, I'm gonna get to this sooner rather than later then, maybe as part of filecoin-project/ref-fvm#987.

I don't want to wait longer, because actors currently cannot update to the latest Helix FRC-0046 library since the change has already landed there, and I'm uncomfortable being in that position.

@vyzo
Copy link
Contributor

vyzo commented Dec 6, 2022

Why are we making work for ourselves?

@anorth
Copy link
Member Author

anorth commented Dec 6, 2022

actors currently cannot update to the latest Helix FRC-0046 library

Thanks, I see this as yet more support for removing it. If a library providing some param/return types merely forgot to add the Cbor impl we'd have to go through a whole third-party repo release cycle to fix it. The coupling is terrible.

I had also added this to my TODO list. Please call on me for any support.

@jennijuju jennijuju moved this from 📋 Backlog to 🏗 In progress in Network v18 Dec 7, 2022
@jennijuju jennijuju assigned arajasek and unassigned arajasek Dec 7, 2022
@jennijuju jennijuju moved this from 🏗 In progress to 📋 Backlog in Network v18 Dec 7, 2022
@jennijuju jennijuju moved this from 📋 Nice To Haves to 🌟 In Scope in Network v18 Dec 7, 2022
@jennijuju jennijuju moved this from 🌟 In Scope to 📋 Nice To Haves in Network v18 Dec 7, 2022
@anorth anorth moved this from 📋 Nice To Haves to 🌟 In Scope in Network v18 Dec 13, 2022
Repository owner moved this from 🌟 In Scope to ✅ Done in Network v18 Dec 13, 2022
@anorth
Copy link
Member Author

anorth commented Dec 15, 2022

The Cbor trait is still used in the test VM. This issue title doesn't mention that, but the intention is to drop it entirely.

@anorth anorth reopened this Dec 15, 2022
@anorth anorth self-assigned this Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
3 participants