feat: candid subtype check, during deserialization (tests)#3153
feat: candid subtype check, during deserialization (tests)#3153crusso wants to merge 2 commits intoclaudio/candid-sub-deserfrom
Conversation
|
NB: I don't think the candid test suite has been updated to dfinity/candid#311, which I believe you are implementing. Maybe open a PR against candid so that you can fix the test suite as you go? Let me know if you need help running the test suite locally for faster iteration. |
Yeah, @chenyan-dfinity warned me but suggested I try bumping anyway.
Yeah, makes sense. But I need to do some more plumbing first (like the failing, not trapping) and other fixes. I think I'll use a global type table for all types involved in subtype checks, and then construct a fresh cache for each outer call to deserialize, shared between inner calls to sub type checks (to speed up the check for e.g. vectors of functions)
I'm doing nix-build -A tests.candid? Is there another way? |
Yes! Just run in the nix shell and
You can use This way you don’t have to recompile more than needed as you develop, and only need to |
builds on #3151
bumps candid dependency to see which tests are failing, if any.