Skip to content
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

testnet deploy 2/19/2025 #1324

Merged
merged 68 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
58ed35d
Rewrite balance transfer precompile with precompile utils
ales-otf Feb 4, 2025
fa8d0b0
Remove DefaultMaxTempo, MaxTempo, AvgTempo, and outdated comments abo…
gztensor Feb 7, 2025
f1d70db
Bump spec version
gztensor Feb 7, 2025
126f780
Refactor staking and neuron precompile with precompile-utils
ales-otf Feb 6, 2025
6d9adec
Resolve conflicts
ales-otf Feb 12, 2025
fc3beb2
Fix number conversion issues in staking precompile
ales-otf Feb 13, 2025
49e5336
Refactor neuron precompil
ales-otf Feb 14, 2025
2cfdb41
Refactor metagraph precompile
ales-otf Feb 14, 2025
f1aa660
fix try runtime endpoints
sam0x17 Feb 14, 2025
d005830
fix
sam0x17 Feb 14, 2025
51b3d1c
bump CI
sam0x17 Feb 14, 2025
fbe1cbb
only run non-devnet try runtime if we are targeting devnet/testnet/main
sam0x17 Feb 14, 2025
35a87a6
tweak
sam0x17 Feb 14, 2025
85f72d9
mainnet deploy 2/16/2025 (#1310)
sam0x17 Feb 17, 2025
c06a4e9
Refactor subnet precompile
ales-otf Feb 17, 2025
f0310f5
Reformat
ales-otf Feb 17, 2025
c11c555
Resolve conflicts
ales-otf Feb 17, 2025
b24b181
Update spec version
ales-otf Feb 17, 2025
68b3d77
Resolve conflicts with main
ales-otf Feb 17, 2025
9139bf7
Fix commit_hash type in Neuron::commit_weights precompile
ales-otf Feb 17, 2025
7b0d84f
Prevent precision errors in share pool
gztensor Feb 17, 2025
621523a
Fix unstaking 99.999% and add tests
gztensor Feb 17, 2025
f06e95e
Fix event and logging in unstake_from_subnet
gztensor Feb 17, 2025
4dc5f00
Merge branch 'main' into fix/share-pool-precision
gztensor Feb 17, 2025
f30517a
Fix build
gztensor Feb 17, 2025
5c5d232
Bump spec version
gztensor Feb 17, 2025
8742aa7
Update primitives/share-pool/src/lib.rs
gztensor Feb 17, 2025
a0e4165
Update pallets/subtensor/src/tests/staking.rs
gztensor Feb 17, 2025
b57130f
Remove unused variable
gztensor Feb 17, 2025
41d50fd
Add test_get_shares_per_update
gztensor Feb 18, 2025
6cd22b4
Merge remote-tracking branch 'origin/devnet-ready' into sam-fix-try-r…
sam0x17 Feb 18, 2025
be82198
Merge remote-tracking branch 'origin/main' into sam-fix-try-runtime
sam0x17 Feb 18, 2025
66d8fbd
Merge pull request #1311 from opentensor/chore/refactor-precompiles
sam0x17 Feb 18, 2025
a27b996
try it again
sam0x17 Feb 18, 2025
a5df085
use latest rust-cache version
sam0x17 Feb 18, 2025
19c2b71
Merge branch 'devnet-ready' into chore/cleanup-unused-tempo-entities
gztensor Feb 18, 2025
1c23600
improve spec version check cache performance
sam0x17 Feb 18, 2025
7bcb158
Merge pull request #1256 from opentensor/chore/cleanup-unused-tempo-e…
sam0x17 Feb 18, 2025
68c1196
try busting cache
sam0x17 Feb 18, 2025
45ae5e7
it worked :fire:
sam0x17 Feb 18, 2025
676114e
use better rust cache throughout CI + clean up CI
sam0x17 Feb 18, 2025
7cb9a59
Merge remote-tracking branch 'origin/devnet-ready' into sam-fix-try-r…
sam0x17 Feb 18, 2025
0b0a55f
install rust nightly for cargo fmt
sam0x17 Feb 18, 2025
a3e9c66
whoops
sam0x17 Feb 18, 2025
249cd1a
fix
sam0x17 Feb 18, 2025
fb8ce6a
Merge pull request #1296 from opentensor/sam-fix-try-runtime
sam0x17 Feb 18, 2025
e0383ee
Merge remote-tracking branch 'origin/devnet-ready' into sam-improve-r…
sam0x17 Feb 18, 2025
900e4c7
try re-enabling finney try truntime
sam0x17 Feb 18, 2025
b4ebb4e
Update pallets/subtensor/src/tests/staking.rs
gztensor Feb 18, 2025
3056caa
Merge branch 'devnet-ready' into fix/share-pool-precision
gztensor Feb 18, 2025
f2d4b4f
Merge branch 'fix/share-pool-precision' of github.com:opentensor/subt…
gztensor Feb 18, 2025
178130c
fix
sam0x17 Feb 18, 2025
eecd43a
Merge pull request #1316 from opentensor/sam-improve-rust-cache-perfo…
sam0x17 Feb 18, 2025
38828bd
Merge pull request #1314 from opentensor/fix/share-pool-precision
sam0x17 Feb 18, 2025
2a229a9
add get value using current_shares arg
camfairchild Feb 19, 2025
4aad852
make delegate info useful again
camfairchild Feb 19, 2025
cf00f30
return different format for get delegated
camfairchild Feb 19, 2025
d474fe1
Merge pull request #1318 from opentensor/feat/delegate-info-dtao
sam0x17 Feb 19, 2025
e4ae0d3
remove CODEOWNERS file so we can do green merges
sam0x17 Feb 19, 2025
85d9abf
bump CI
sam0x17 Feb 19, 2025
280e3e8
Merge pull request #1319 from opentensor/sam-clean-up-2-19-2025
sam0x17 Feb 19, 2025
956263f
sub out root divs to get alpha divs
camfairchild Feb 19, 2025
871e1a2
Merge branch 'hotfix/sub-root-divs' into devnet-ready
sam0x17 Feb 19, 2025
c6e5336
bump spec version to 241
sam0x17 Feb 19, 2025
d092dbd
const fixes
sam0x17 Feb 19, 2025
9396ec0
cargo clippy
sam0x17 Feb 19, 2025
b76d155
Merge pull request #1322 from opentensor/const-fixes
sam0x17 Feb 19, 2025
a9689ae
Merge pull request #1323 from opentensor/devnet-ready
sam0x17 Feb 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: "cargo-audit"

- name: Install cargo-audit
run: cargo install --force cargo-audit

Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/check-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ jobs:
sudo apt-get install -y curl clang curl libssl-dev llvm \
libudev-dev protobuf-compiler

- name: Install substrate-spec-version
run: cargo install substrate-spec-version

- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: "spec-version"

- name: Install substrate-spec-version
run: cargo install substrate-spec-version

- name: Check that spec_version has been bumped
run: |
spec_version=$(PATH=$PATH:$HOME/.cargo/.bin substrate-spec-version wss://dev.chain.opentensor.ai:443 | tr -d '\n')
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/check-finney.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ jobs:
sudo apt-get install -y curl clang curl libssl-dev llvm \
libudev-dev protobuf-compiler

- name: Install substrate-spec-version
run: cargo install substrate-spec-version

- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: "spec-version"

- name: Install substrate-spec-version
run: cargo install substrate-spec-version

- name: Check that spec_version has been bumped
run: |
spec_version=$(PATH=$PATH:$HOME/.cargo/.bin substrate-spec-version wss://entrypoint-finney.opentensor.ai:443 | tr -d '\n')
Expand Down
151 changes: 22 additions & 129 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,8 @@ jobs:
cargo-fmt:
name: cargo fmt
runs-on: SubtensorCI
strategy:
matrix:
rust-branch:
- nightly-2024-03-05
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
# RUSTFLAGS: -A warnings
RUST_BACKTRACE: full
SKIP_WASM_BUILD: 1
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
Expand All @@ -51,38 +34,22 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y build-essential

- name: Install Rust Nightly
uses: actions-rs/[email protected]
with:
toolchain: nightly
components: rustfmt
profile: minimal
run: |
rustup install nightly
rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2

- name: cargo fmt
run: cargo fmt --check --all
run: cargo +nightly fmt --check --all

cargo-clippy-default-features:
name: cargo clippy
runs-on: SubtensorCI
strategy:
matrix:
rust-branch:
- stable
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
# RUSTFLAGS: -A warnings
RUST_BACKTRACE: full
SKIP_WASM_BUILD: 1
TARGET: ${{ matrix.rust-target }}
RUST_BIN_DIR: target/${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
Expand All @@ -93,33 +60,18 @@ jobs:
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler

- name: Utilize Shared Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
uses: Swatinem/rust-cache@v2

- name: cargo clippy --workspace --all-targets -- -D warnings
run: cargo clippy --workspace --all-targets -- -D warnings

cargo-check-lints:
name: check custom lints
runs-on: SubtensorCI
strategy:
matrix:
rust-branch:
- stable
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
env:
RELEASE_NAME: development
RUSTFLAGS: -D warnings
RUST_BACKTRACE: full
SKIP_WASM_BUILD: 1
TARGET: ${{ matrix.rust-target }}
RUST_BIN_DIR: target/${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
Expand All @@ -129,17 +81,8 @@ jobs:
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 }}
uses: Swatinem/rust-cache@v2

- name: check lints
run: |
Expand All @@ -150,63 +93,31 @@ jobs:
cargo-clippy-all-features:
name: cargo clippy --all-features
runs-on: SubtensorCI
strategy:
matrix:
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
# RUSTFLAGS: -A warnings
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
SKIP_WASM_BUILD: 1
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v2
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: Utilize Shared Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
uses: Swatinem/rust-cache@v2

- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets --all-features -- -D warnings

# runs cargo test --workspace
# runs cargo test --workspace --all-features
cargo-test:
name: cargo test
runs-on: SubtensorCI
strategy:
matrix:
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
# RUSTFLAGS: -A warnings
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
SKIP_WASM_BUILD: 1
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
Expand All @@ -216,10 +127,8 @@ jobs:
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler

- name: Utilize Rust shared cached
uses: Swatinem/[email protected]
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2

- name: cargo test --workspace --all-features
run: cargo test --workspace --all-features
Expand All @@ -228,26 +137,9 @@ jobs:
cargo-fix:
name: cargo fix
runs-on: SubtensorCI
strategy:
matrix:
rust-branch:
- stable
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
# RUSTFLAGS: -A warnings
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
SKIP_WASM_BUILD: 1
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
Expand All @@ -257,10 +149,8 @@ jobs:
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler

- name: Utilize Rust shared cached
uses: Swatinem/[email protected]
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2

- name: cargo fix --workspace
run: |
Expand All @@ -280,13 +170,16 @@ jobs:
runs-on: SubtensorCI

steps:
- name: Install Zepter
run: cargo install --locked -q zepter && zepter --version

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Dont clone historic commits.

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2

- name: Install Zepter
run: cargo install --locked -q zepter && zepter --version

- name: Check features
run: zepter run check
11 changes: 8 additions & 3 deletions .github/workflows/check-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ jobs:
sudo apt-get install -y curl clang curl libssl-dev llvm \
libudev-dev protobuf-compiler

- name: Install substrate-spec-version
run: cargo install substrate-spec-version

- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2
with:
key: "spec-version"

- name: Install substrate-spec-version
run: cargo install substrate-spec-version

- name: Check that spec_version has been bumped
run: |
spec_version=$(PATH=$PATH:$HOME/.cargo/.bin substrate-spec-version wss://test.finney.opentensor.ai:443 | tr -d '\n')
Expand Down
29 changes: 4 additions & 25 deletions .github/workflows/e2e-bittensor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,20 @@ env:
jobs:
run:
runs-on: SubtensorCI
strategy:
matrix:
rust-branch:
- nightly-2024-03-05
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
RUSTV: ${{ matrix.rust-branch }}
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2

- 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
profile: minimal

- name: Clone bittensor repo
run: git clone https://github.com/opentensor/bittensor.git

Expand Down
Loading
Loading