Skip to content

Commit cc57871

Browse files
Merge branch 'devnet-ready' into encrypt
2 parents 24e2f4a + 8c17cfd commit cc57871

Some content is hidden

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

77 files changed

+5625
-1969
lines changed

.github/workflows/benchmark-weights.yml

Whitespace-only changes.

.github/workflows/check-devnet.yml

Lines changed: 1 addition & 0 deletions
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: |

.github/workflows/check-finney.yml

Lines changed: 1 addition & 0 deletions
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: |

.github/workflows/check-rust.yml

Lines changed: 48 additions & 0 deletions
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

.github/workflows/check-testnet.yml

Lines changed: 1 addition & 0 deletions
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: |

.gitignore

Lines changed: 2 additions & 0 deletions
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

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @sacha-l @lisa-parity
1+
* @unconst

0 commit comments

Comments
 (0)