-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge devnet-ready to feat/rao-devnet-ready
- Loading branch information
Showing
27 changed files
with
3,727 additions
and
628 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: cargo audit | ||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
concurrency: | ||
group: cargo-audit-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cargo-audit: | ||
name: cargo audit | ||
runs-on: SubtensorCI | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }} | ||
steps: | ||
- name: Check-out repositoroy under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && | ||
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
- name: Install Rust Stable | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
profile: minimal | ||
|
||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
key: ubuntu-latest-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: Install cargo-audit | ||
run: cargo install cargo-audit | ||
|
||
- name: cargo audit | ||
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,18 +39,3 @@ jobs: | |
echo "network spec_version: $spec_version" | ||
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi | ||
echo "$local_spec_version > $spec_version ✅" | ||
check-devnet-migrations: | ||
name: check devnet migrations | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
node-uri: "wss://dev.chain.opentensor.ai:443" | ||
checks: "pre-and-post" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,17 +39,3 @@ jobs: | |
echo "network spec_version: $spec_version" | ||
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi | ||
echo "$local_spec_version > $spec_version ✅" | ||
check-finney-migrations: | ||
name: check finney migrations | ||
runs-on: SubtensorCI | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
node-uri: "wss://entrypoint-finney.opentensor.ai:443" | ||
checks: "pre-and-post" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,46 +208,6 @@ jobs: | |
|
||
- name: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
# runs cargo audit | ||
cargo-audit: | ||
name: cargo audit | ||
runs-on: SubtensorCI | ||
strategy: | ||
matrix: | ||
rust-branch: | ||
- stable | ||
rust-target: | ||
- x86_64-unknown-linux-gnu | ||
# - x86_64-apple-darwin | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
steps: | ||
- name: Check-out repositoroy under $GITHUB_WORKSPACE | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update && | ||
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
- name: Install Rust ${{ matrix.rust-branch }} | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: ${{ matrix.rust-branch }} | ||
components: rustfmt, clippy | ||
profile: minimal | ||
|
||
- name: Utilize Shared Rust Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: Install cargo-audit | ||
run: cargo install cargo-audit | ||
|
||
- name: cargo audit | ||
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this | ||
|
||
# runs cargo test --workspace | ||
cargo-test: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,18 +39,3 @@ jobs: | |
echo "network spec_version: $spec_version" | ||
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi | ||
echo "$local_spec_version > $spec_version ✅" | ||
check-testnet-migrations: | ||
name: check testnet migrations | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
node-uri: "wss://test.chain.opentensor.ai:443" | ||
checks: "pre-and-post" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Try Runtime | ||
|
||
on: | ||
pull_request: | ||
branches: [main, devnet-ready, devnet, testnet, finney] | ||
types: [labeled, unlabeled, synchronize] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
check-devnet: | ||
name: check devnet | ||
runs-on: SubtensorCI | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
node-uri: "wss://dev.chain.opentensor.ai:443" | ||
checks: "all" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" | ||
|
||
check-testnet: | ||
name: check testnet | ||
runs-on: SubtensorCI | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
node-uri: "wss://test.chain.opentensor.ai:443" | ||
checks: "all" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" | ||
|
||
check-finney: | ||
name: check finney | ||
runs-on: SubtensorCI | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
- name: Run Try Runtime Checks | ||
uses: "paritytech/[email protected]" | ||
with: | ||
runtime-package: "node-subtensor-runtime" | ||
node-uri: "wss://archive.chain.opentensor.ai:443" | ||
checks: "all" | ||
extra-args: "--disable-spec-version-check --no-weight-warnings" |
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.