forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sui-execution] Test to detect breaking encapsulation
Adds a test that checks that the "sui-execution" crate dominates all execution layer crates in the dependency graphs of binaries where the protocol config should determine which version of the execution layer is used. This helps to make sure that a crate does not inadvertantly bypass versioning. The test caught some existing discrepencies in the dependency graph: - `sui-core` depending on `sui-test-transaction-builder` (which depends on `sui-move-build`) but only using it for tests. Fixed by making `sui-test-transaction-builder` a `dev-dependency`. - `sui-storage` depending on `sui-simulator` (which in turn depends on `sui-move-build`) but only to use `fastcrypto` which it re-exports. Fixed by changing `sui-storage` to depend on `fastcrypto` instead of `sui-move-build`. - `sui-sdk` depending on `sui-test-transaction-builder` to implement test-specific things, which probably should not be part of our public-facing SDK. Fixed by moving internal test helpers out of the public SDK, back into `sui-test-transaction-builder`. This is the majority of the change. Test Plan: Run the newly introduced test: ``` sui-execution$ cargo nextest run ``` Run all the other tests, for the refactorings: ``` sui$ cargo simtest sui$ env SUI_SKIP_SIMTESTS=1 cargo nextest run ```
- Loading branch information
Showing
33 changed files
with
554 additions
and
374 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.