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

Migrate sui-move shell tests to sui crate #20995

Merged
merged 10 commits into from
Jan 29, 2025
Merged

Conversation

mdgeorge4153
Copy link
Contributor

@mdgeorge4153 mdgeorge4153 commented Jan 28, 2025

Description

This PR migrates the shell-script-based tests from sui-move to sui, and extends the test runner to create a TestCluster for tests in a certain subdirectory. Some of the existing tests have been migrated from cli_tests.rs to the new infrastructure as well.

Test plan

There are some dummy tests to make sure the infrastructure is working properly. I will manually check that CI is running them!


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):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

Copy link

vercel bot commented Jan 28, 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 Jan 29, 2025 8:24pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jan 29, 2025 8:24pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jan 29, 2025 8:24pm

@mdgeorge4153 mdgeorge4153 temporarily deployed to sui-typescript-aws-kms-test-env January 28, 2025 21:45 — with GitHub Actions Inactive
Copy link
Contributor

@tzakian tzakian left a comment

Choose a reason for hiding this comment

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

Changes look great to me. I'm super excited to see us finally start to have something where we can write tests more easily for the CLI.

#[tokio::main]
async fn test_shell_snapshot(path: &Path) -> datatest_stable::Result<()> {
// set up test cluster
let cluster = if path.starts_with(TEST_NET_DIR) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be contains? Unsure of the structure of path here though, so maybe starts_with is right too here.

Copy link
Contributor

@jordanjennings-mysten jordanjennings-mysten left a comment

Choose a reason for hiding this comment

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

# fixing issue https://github.com/MystenLabs/sui/issues/6546
this seemed to be relevant to one test but now I see it in move_build_bytecode_with_address_resolution.sh

@mdgeorge4153
Copy link
Contributor Author

# fixing issue https://github.com/MystenLabs/sui/issues/6546 this seemed to be relevant to one test but now I see it in move_build_bytecode_with_address_resolution.sh

Good catch! This was a copy-paste error

@mdgeorge4153 mdgeorge4153 merged commit 1ce2726 into main Jan 29, 2025
47 checks passed
@mdgeorge4153 mdgeorge4153 deleted the mdgeorge/sui-shell-tests branch January 29, 2025 21:44
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.

3 participants