-
Notifications
You must be signed in to change notification settings - Fork 298
Introduce eco-tests #2526
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
Merged
+1,140
−3
Merged
Introduce eco-tests #2526
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b80c12b
Introduce eco-tests
shamil-gadelshin c1b950f
Make eco-tests separate
shamil-gadelshin b3b5ca7
Add eco-tests workflow.
shamil-gadelshin d244bad
Apply github copilot suggestion.
shamil-gadelshin 7d55631
Merge branch 'devnet-ready' into eco-tests
shamil-gadelshin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,47 @@ | ||
| name: eco-tests | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: eco-tests-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| placeholder: | ||
| runs-on: ubuntu-latest | ||
| eco-tests: | ||
| name: cargo test (eco-tests) | ||
| runs-on: [self-hosted, type-ccx43] | ||
| env: | ||
| RUST_BACKTRACE: full | ||
| SKIP_WASM_BUILD: 1 | ||
| steps: | ||
| - run: echo "ok" | ||
| - name: Check-out repository under $GITHUB_WORKSPACE | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update | ||
| sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" build-essential clang curl git make libssl-dev llvm libudev-dev protobuf-compiler pkg-config | ||
|
|
||
| - name: Install Rust | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
|
|
||
| - name: Utilize Shared Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| key: eco-tests | ||
| cache-on-failure: true | ||
| workspaces: eco-tests | ||
|
|
||
| - name: cargo test | ||
| working-directory: eco-tests | ||
| run: cargo test | ||
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| [package] | ||
| name = "eco-tests" | ||
| version = "0.1.0" | ||
| edition = "2024" | ||
| publish = false | ||
|
|
||
| [lints.rust] | ||
| unexpected_cfgs = { level = "allow", check-cfg = ['cfg(substrate_runtime)'] } | ||
|
|
||
| [lints.clippy] | ||
| arithmetic-side-effects = "deny" | ||
| expect-used = "deny" | ||
| indexing-slicing = "deny" | ||
| manual_inspect = "allow" | ||
| result_large_err = "allow" | ||
| type_complexity = "allow" | ||
| unwrap-used = "deny" | ||
| useless_conversion = "allow" | ||
|
|
||
| [dependencies] | ||
| pallet-subtensor = { path = "../pallets/subtensor", default-features = false, features = ["std"] } | ||
| frame-support = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| frame-system = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| sp-core = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| sp-io = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| sp-runtime = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| sp-std = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| codec = { package = "parity-scale-codec", version = "3.7.5", default-features = false, features = ["derive", "std"] } | ||
| scale-info = { version = "2.11.2", default-features = false, features = ["derive", "std"] } | ||
| pallet-balances = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| pallet-scheduler = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| pallet-preimage = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| pallet-drand = { path = "../pallets/drand", default-features = false, features = ["std"] } | ||
| pallet-subtensor-swap = { path = "../pallets/swap", default-features = false, features = ["std"] } | ||
| pallet-crowdloan = { path = "../pallets/crowdloan", default-features = false, features = ["std"] } | ||
| pallet-subtensor-proxy = { path = "../pallets/proxy", default-features = false, features = ["std"] } | ||
| pallet-subtensor-utility = { path = "../pallets/utility", default-features = false, features = ["std"] } | ||
| pallet-shield = { path = "../pallets/shield", default-features = false, features = ["std"] } | ||
| subtensor-runtime-common = { path = "../common", default-features = false, features = ["std"] } | ||
| subtensor-swap-interface = { path = "../pallets/swap-interface", default-features = false, features = ["std"] } | ||
| share-pool = { path = "../primitives/share-pool", default-features = false, features = ["std"] } | ||
| safe-math = { path = "../primitives/safe-math", default-features = false, features = ["std"] } | ||
| log = { version = "0.4.21", default-features = false, features = ["std"] } | ||
| approx = "0.5" | ||
| sp-tracing = { git = "https://github.com/opentensor/polkadot-sdk.git", rev = "fb1dd20df37710800aa284ac49bb26193d5539ee", default-features = false, features = ["std"] } | ||
| tracing = "0.1" | ||
| tracing-log = "0.2" | ||
| tracing-subscriber = { version = "=0.3.18", features = ["fmt", "env-filter"] } | ||
| rand = { version = "0.10.0", default-features = false, features = ["std", "thread_rng"] } | ||
| hex-literal = "0.4.1" | ||
|
|
||
| [patch.crates-io] | ||
| w3f-bls = { git = "https://github.com/opentensor/bls", branch = "fix-no-std" } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.