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

fix: service ordering must be alphabetical #781

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

lastmjs
Copy link
Contributor

@lastmjs lastmjs commented Oct 11, 2023

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:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly. (I don't understand how to do this, the changelog seems generated)
  • I have made corresponding changes to the documentation. (Do you think there needs to be any documentation changes?

Copy link
Contributor

@chenyan-dfinity chenyan-dfinity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lastmjs
Copy link
Contributor Author

lastmjs commented Oct 12, 2023

Sorry I accidentally hit the re-request review button @chenyan-dfinity

@lastmjs
Copy link
Contributor Author

lastmjs commented Oct 12, 2023

On that note, is there anything else that needs to be done to get these tests running?

@krpeacock krpeacock enabled auto-merge (squash) October 12, 2023 22:02
@krpeacock
Copy link
Contributor

Someone from SDK just had to push a couple buttons. As long as CI passes it should automerge

@lastmjs
Copy link
Contributor Author

lastmjs commented Oct 23, 2023

Mitm is failing with some kind of connection refused error, not sure if it's related to the PR

@krpeacock
Copy link
Contributor

@lastmjs can you rebase or merge main into your branch? It should fix the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Service ordering
3 participants