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

[14/n][vm-rewrite] Fix up sui-side tests #21178

Open
wants to merge 1 commit into
base: tzakian/vm-rewrite-adapter-12
Choose a base branch
from

Conversation

tzakian
Copy link
Contributor

@tzakian tzakian commented Feb 11, 2025

Description

Fixes for Sui-side tests using the new VM. Nothing major has changed however -- we now check for duplicate modules in a package when creating a MovePackage and return an error is so. This is the main change. This is currently not protocol gated -- and I don't believe it needs to be based on the existing publishing flow in old adapter (but we'll double check this and gate it if need be once we start moving this into main, but for now it's fine).

Copy link

vercel bot commented Feb 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2025 8:29pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 8:29pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2025 8:29pm

Fix a number of different things in order to get Sui-side tests passing:
* Handle including the system packages for all linkages outside of
  system transactions (was missing this for publish and upgrade commands
  where this is needed for the resolution of the upgrade cap and the
  like).
* Handle typetags, and converting them to be runtime type tags before
  flowing them into the VM (always). NB: still some work here in the
  object runtime.
* Handle duplicate modules in packages. This is now an error when
  constructing a `MovePackage` and previously it was an error in the VM.
  However duplicate modules in package are no longer expressible in the
  VM's public interface, so moving this into the Move package seemed
  like the right place.
  - Note for the future: This change may need to be protocol versioned
    as it's a change outside of sui types, however I don't think we need
    to version it since we will check this in the old VM before creating
    the package, and therefore would never hit the new error with it.
* Change in graphql test is just a change in the order of the headers
  and not a meaningful change.
* Ignored one test that is failing for an unrelated reason as far as I
  can tell, once we do another rebase I'll re-enable and dig in to see
  if there's still a problem with it.
@tzakian tzakian force-pushed the tzakian/vm-rewrite-adapter-12 branch from 8704f63 to 9846ab1 Compare February 19, 2025 20:10
@tzakian tzakian force-pushed the tzakian/vm-rewrite-adapter-13 branch from e3db6f8 to 6b85efd Compare February 19, 2025 20:10
@tzakian tzakian temporarily deployed to sui-typescript-aws-kms-test-env February 19, 2025 20:10 — with GitHub Actions Inactive
@tzakian tzakian marked this pull request as ready for review February 19, 2025 20:13
@tzakian tzakian temporarily deployed to sui-typescript-aws-kms-test-env February 19, 2025 20:13 — with GitHub Actions Inactive
@tzakian tzakian changed the title [vm-rewrite] Fix up sui-side tests [14/n][vm-rewrite] Fix up sui-side tests Feb 19, 2025
@tzakian tzakian requested review from cgswords and tnowacki February 19, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant