-
Notifications
You must be signed in to change notification settings - Fork 97
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
fix: service ordering must be alphabetical #781
Conversation
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.
LGTM
Sorry I accidentally hit the re-request review button @chenyan-dfinity |
On that note, is there anything else that needs to be done to get these tests running? |
Someone from SDK just had to push a couple buttons. As long as CI passes it should automerge |
Mitm is failing with some kind of connection refused error, not sure if it's related to the PR |
@lastmjs can you rebase or merge main into your branch? It should fix the tests |
Closes #780
Description
As discussed in this forum post service field ordering must be alphabetical or errors will be encountered during deserialization.
Fixes # 780
How Has This Been Tested?
We ran into these problems while building Azle 0.18.0, and our automated tests for services were breaking before introducing this fix. We rely heavily on the JS agent now in Azle 0.18.0 and hundreds of our integration tests pass using this new code. We seem to be the only ones that I know of heavily testing/using Candid services directly, as we've found both the Rust and JS agent bugs for service ordering.
These tests ran on our fork of just the @dfinity/candid package, and I've simply copied the changes into a recently cloned fork of the agent-js.
If you want to see the tests that we've run I can provide links to Azle's example integration tests.
Checklist: