Skip to content

Conversation

tzakian
Copy link
Contributor

@tzakian tzakian commented Sep 11, 2024

Cherry pick of #19262 to the vm rewrite branch.

Description

Updates tests so that unique addresses are used on modules that are not part of the same package (needed as part of the larger package loader rewrite). Note that the 0x1, 0x2 addresses are used by the stdlib (etc.) so I bumped all addresses to start at 0x6.

Tests should largely be unchanged. The one exception is some rewriting in the move-vm-integration-tests as there were issues running tests, and the fact the CompiledModule::serialize is test-only.

Once this lands, I'll rebase and land into the vm_2024 branch.

Test plan

Update existing tests, verify their outputs change as expected.

Description

Describe the changes or additions included in this PR.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

…tests (#19262)

## Description 

Updates tests so that unique addresses are used on modules that are not
part of the same package (needed as part of the larger package loader
rewrite). Note that the `0x1`, `0x2` addresses are used by the stdlib
(etc.) so I bumped all addresses to start at `0x6`.

Tests should largely be unchanged. The one exception is some rewriting
in the `move-vm-integration-tests` as there were issues running tests,
and the fact the `CompiledModule::serialize` is test-only.

Once this lands, I'll rebase and land into the vm_2024 branch.

## Test plan 

Update existing tests, verify their outputs change as expected.
Copy link

vercel bot commented Sep 11, 2024

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 Sep 11, 2024 9:24pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Sep 11, 2024 9:24pm
sui-kiosk ⬜️ Ignored (Inspect) Sep 11, 2024 9:24pm
sui-typescript-docs ⬜️ Ignored (Inspect) Sep 11, 2024 9:24pm

@tzakian tzakian merged commit c0a5d31 into vm_2024_rewrite Sep 11, 2024
43 of 46 checks passed
@tzakian tzakian deleted the tzakian/vm-rewrite--update-tests-for-package-loader branch September 11, 2024 23:04
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.

2 participants