Skip to content

Commit 1f3851f

Browse files
authored
Merge pull request #758 from opentensor/devnet
Testnet Deployment 27082024
2 parents ccec528 + a26aecd commit 1f3851f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+7326
-2252
lines changed

Diff for: .github/workflows/benchmark-weights.yml

Whitespace-only changes.

Diff for: .github/workflows/check-devnet.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Devnet Deploy Check
22

33
on:
44
pull_request:
5-
branches: [devnet]
5+
branches: [devnet, devnet-ready]
66

77
env:
88
CARGO_TERM_COLOR: always
@@ -11,6 +11,7 @@ jobs:
1111
check-spec-version:
1212
name: Check spec_version bump
1313
runs-on: SubtensorCI
14+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
1415
steps:
1516
- name: Dependencies
1617
run: |
@@ -37,7 +38,7 @@ jobs:
3738
echo "network spec_version: $spec_version"
3839
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
3940
echo "$local_spec_version > $spec_version ✅"
40-
41+
4142
check-devnet-migrations:
4243
name: check devnet migrations
4344
runs-on: ubuntu-22.04
@@ -51,4 +52,4 @@ jobs:
5152
runtime-package: "node-subtensor-runtime"
5253
node-uri: "wss://dev.chain.opentensor.ai:443"
5354
checks: "pre-and-post"
54-
extra-args: "--disable-spec-version-check --no-weight-warnings"
55+
extra-args: "--disable-spec-version-check --no-weight-warnings"

Diff for: .github/workflows/check-finney.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
check-spec-version:
1212
name: Check spec_version bump
1313
runs-on: SubtensorCI
14+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
1415
steps:
1516
- name: Dependencies
1617
run: |

Diff for: .github/workflows/check-rust.yml

+48-4
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,54 @@ jobs:
113113
- name: cargo clippy --workspace --all-targets -- -D warnings
114114
run: cargo clippy --workspace --all-targets -- -D warnings
115115

116+
cargo-check-lints:
117+
name: check custom lints
118+
runs-on: SubtensorCI
119+
strategy:
120+
matrix:
121+
rust-branch:
122+
- stable
123+
rust-target:
124+
- x86_64-unknown-linux-gnu
125+
# - x86_64-apple-darwin
126+
os:
127+
- ubuntu-latest
128+
# - macos-latest
129+
env:
130+
RELEASE_NAME: development
131+
RUSTV: ${{ matrix.rust-branch }}
132+
RUSTFLAGS: -D warnings
133+
RUST_BACKTRACE: full
134+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
135+
SKIP_WASM_BUILD: 1
136+
TARGET: ${{ matrix.rust-target }}
137+
steps:
138+
- name: Check-out repository under $GITHUB_WORKSPACE
139+
uses: actions/checkout@v4
140+
141+
- name: Install dependencies
142+
run: |
143+
sudo apt-get update &&
144+
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
145+
146+
- name: Install Rust ${{ matrix.rust-branch }}
147+
uses: actions-rs/toolchain@v1.0.6
148+
with:
149+
toolchain: ${{ matrix.rust-branch }}
150+
components: rustfmt, clippy
151+
profile: minimal
152+
153+
- name: Utilize Shared Rust Cache
154+
uses: Swatinem/rust-cache@v2.2.1
155+
with:
156+
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
157+
158+
- name: check lints
159+
run: |
160+
set -o pipefail # Ensure the pipeline fails if any command in the pipeline fails
161+
cargo check 2>&1 | sed -r "s/\x1B\[[0-9;]*[mK]//g" | tee /dev/tty | grep -q "^warning:" && \
162+
(echo "Build emitted the following warnings:" >&2 && exit 1) || echo "No warnings found."
163+
116164
cargo-clippy-all-features:
117165
name: cargo clippy --all-features
118166
runs-on: SubtensorCI
@@ -338,7 +386,3 @@ jobs:
338386

339387
- name: Check features
340388
run: zepter run check
341-
342-
343-
344-

Diff for: .github/workflows/check-testnet.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Testnet Deploy Check
22

33
on:
44
pull_request:
5-
branches: [testnet]
5+
branches: [testnet, testnet-ready]
66

77
env:
88
CARGO_TERM_COLOR: always
@@ -11,6 +11,7 @@ jobs:
1111
check-spec-version:
1212
name: Check spec_version bump
1313
runs-on: SubtensorCI
14+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
1415
steps:
1516
- name: Dependencies
1617
run: |

Diff for: .github/workflows/devnet-labels.yml

-19
This file was deleted.

Diff for: .github/workflows/devnet-ready-labels.yml

-17
This file was deleted.

Diff for: .github/workflows/testnet-labels.yml

-19
This file was deleted.

Diff for: .github/workflows/testnet-ready-labels.yml

-17
This file was deleted.

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
**/*.lock
88

9+
*.ipynb
10+
911
# Generated by code coverage
1012
*.profraw
1113
*.profdata

Diff for: .rustfmt.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
##
77
# rustup run nightly -- rustfmt node/src/main.rs
88

9-
# max_width = 100
9+
# max_width = 180
1010
# hard_tabs = false
1111
# tab_spaces = 4
1212
# newline_style = "Auto"

Diff for: CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @sacha-l @lisa-parity
1+
* @unconst

0 commit comments

Comments
 (0)