MystenLabs / sui

Sui, a next-generation smart contract platform with high throughput, low latency, and an asset-oriented programming model powered by the Move programming language
https://sui.io
Apache License 2.0
6.27k stars 11.21k forks source link

decouple transactional test runner from indexer and graphql flavor #20373

Open wlmyng opened 4 days ago

wlmyng commented 4 days ago

Description

With mvr and alt coming up, we want our transactional test runner to be more agnostic to the off chain indexing flavor. This PR attempts to address it by largely limiting the adapter to instantiating the simulacrum or executor with what is needed to bootstrap the network, and then defer to the test caller. Test caller implements a trait so the adapter knows how to inspect off chain state.

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.

vercel[bot] commented 4 days ago

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 Nov 23, 2024 3:04pm
3 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **multisig-toolkit** | ⬜️ Ignored ([Inspect](https://vercel.com/mysten-labs/multisig-toolkit/AV7JyBx5sQKDc8XV9U5XDzxgkN3X)) | [Visit Preview](https://multisig-toolkit-git-test-runner-configurabl-0ddbeb-mysten-labs.vercel.app) | | Nov 23, 2024 3:04pm | | **sui-kiosk** | ⬜️ Ignored ([Inspect](https://vercel.com/mysten-labs/sui-kiosk/2chXBoYCECs3d13nDSDRKKsb16Yn)) | [Visit Preview](https://sui-kiosk-git-test-runner-configurable-adapter-mysten-labs.vercel.app) | | Nov 23, 2024 3:04pm | | **sui-typescript-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/mysten-labs/sui-typescript-docs/4W96oyRiyqSj3RPjwoN8j9x6PJ2M)) | [Visit Preview](https://sui-typescript-docs-git-test-runner-configur-75e166-mysten-labs.vercel.app) | | Nov 23, 2024 3:04pm |