Skip to content

Commit 6228842

Browse files
committed
Merge branch 'devnet-ready' into feat/reduce-tx-fees
2 parents 6734802 + 7c8ff6d commit 6228842

File tree

227 files changed

+8533
-6355
lines changed

Some content is hidden

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

227 files changed

+8533
-6355
lines changed

.github/workflows/cargo-audit.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,21 @@ concurrency:
1313
jobs:
1414
cargo-audit:
1515
name: cargo audit
16-
runs-on: SubtensorCI
16+
runs-on: [self-hosted, type-ccx13]
1717
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
1818
steps:
1919
- name: Check-out repositoroy under $GITHUB_WORKSPACE
2020
uses: actions/checkout@v4
2121

2222
- name: Install dependencies
2323
run: |
24-
sudo apt-get update &&
25-
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
24+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
25+
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 libssl-dev llvm libudev-dev protobuf-compiler pkg-config
26+
27+
- name: Install Rust
28+
uses: actions-rs/toolchain@v1
29+
with:
30+
toolchain: stable
2631

2732
- name: Utilize Shared Rust Cache
2833
uses: Swatinem/rust-cache@v2
@@ -38,12 +43,6 @@ jobs:
3843

3944
- name: cargo audit
4045
run: |
41-
cargo audit --ignore RUSTSEC-2024-0336 \
42-
--ignore RUSTSEC-2021-0127 \
43-
--ignore RUSTSEC-2024-0370 \
44-
--ignore RUSTSEC-2022-0080 \
45-
--ignore RUSTSEC-2022-0061 \
46-
--ignore RUSTSEC-2020-0168 \
47-
--ignore RUSTSEC-2024-0384 \
48-
--ignore RUSTSEC-2024-0388 \
49-
--ignore RUSTSEC-2024-0421
46+
cargo audit --ignore RUSTSEC-2023-0091 \
47+
--ignore RUSTSEC-2025-0009 \
48+
--ignore RUSTSEC-2024-0438

.github/workflows/check-bittensor-e2e-tests.yml.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ env:
2626

2727
jobs:
2828
check-label:
29-
runs-on: ubuntu-latest
29+
runs-on: [self-hosted, type-ccx13]
3030
outputs:
3131
skip-bittensor-e2e-tests: ${{ steps.get-labels.outputs.skip-bittensor-e2e-tests }}
3232
steps:
33+
- name: Install dependencies
34+
run: |
35+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
36+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" gh jq
37+
3338
- name: Check out repository
3439
uses: actions/checkout@v4
3540
with:
@@ -52,10 +57,15 @@ jobs:
5257
find-btcli-e2e-tests:
5358
needs: check-label
5459
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
55-
runs-on: ubuntu-latest
60+
runs-on: [self-hosted, type-ccx13]
5661
outputs:
5762
test-files: ${{ steps.get-btcli-tests.outputs.test-files }}
5863
steps:
64+
- name: Install dependencies
65+
run: |
66+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
67+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" jq
68+
5969
- name: Research preparation
6070
working-directory: ${{ github.workspace }}
6171
run: git clone https://github.com/opentensor/btcli.git
@@ -64,9 +74,6 @@ jobs:
6474
working-directory: ${{ github.workspace }}/btcli
6575
run: git checkout staging
6676

67-
- name: Install dependencies
68-
run: sudo apt-get install -y jq
69-
7077
- name: Find e2e test files
7178
id: get-btcli-tests
7279
run: |
@@ -77,10 +84,15 @@ jobs:
7784
find-sdk-e2e-tests:
7885
needs: check-label
7986
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
80-
runs-on: ubuntu-latest
87+
runs-on: [self-hosted, type-ccx13]
8188
outputs:
8289
test-files: ${{ steps.get-sdk-tests.outputs.test-files }}
8390
steps:
91+
- name: Install dependencies
92+
run: |
93+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
94+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y --no-install-recommends -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" jq
95+
8496
- name: Research preparation
8597
working-directory: ${{ github.workspace }}
8698
run: git clone https://github.com/opentensor/bittensor.git
@@ -89,9 +101,6 @@ jobs:
89101
working-directory: ${{ github.workspace }}/bittensor
90102
run: git checkout staging
91103

92-
- name: Install dependencies
93-
run: sudo apt-get install -y jq
94-
95104
- name: Find e2e test files
96105
id: get-sdk-tests
97106
run: |
@@ -101,7 +110,7 @@ jobs:
101110

102111
build-image-with-current-branch:
103112
needs: check-label
104-
runs-on: SubtensorCI
113+
runs-on: [self-hosted, type-ccx33]
105114
steps:
106115
- name: Checkout code
107116
uses: actions/checkout@v4
@@ -139,7 +148,7 @@ jobs:
139148
- find-btcli-e2e-tests
140149
- build-image-with-current-branch
141150
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
142-
runs-on: ubuntu-latest
151+
runs-on: [self-hosted, type-ccx13]
143152
strategy:
144153
fail-fast: false
145154
max-parallel: 16
@@ -175,7 +184,7 @@ jobs:
175184

176185
- name: Create Python virtual environment
177186
working-directory: ${{ github.workspace }}
178-
run: uv venv ${{ github.workspace }}/venv
187+
run: uv venv --seed ${{ github.workspace }}/venv
179188

180189
- name: Clone Bittensor CLI repo
181190
working-directory: ${{ github.workspace }}
@@ -239,7 +248,7 @@ jobs:
239248
- find-sdk-e2e-tests
240249
- build-image-with-current-branch
241250
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
242-
runs-on: ubuntu-latest
251+
runs-on: [self-hosted, type-ccx13]
243252
strategy:
244253
fail-fast: false
245254
max-parallel: 16
@@ -275,7 +284,7 @@ jobs:
275284

276285
- name: Create Python virtual environment
277286
working-directory: ${{ github.workspace }}
278-
run: uv venv ${{ github.workspace }}/venv
287+
run: uv venv --seed ${{ github.workspace }}/venv
279288

280289
- name: Clone Bittensor SDK repo
281290
working-directory: ${{ github.workspace }}

.github/workflows/check-devnet.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,29 @@ on:
44
pull_request:
55
branches: [devnet, devnet-ready]
66
types: [labeled, unlabeled, synchronize, opened]
7+
8+
concurrency:
9+
group: check-devnet-${{ github.ref }}
10+
cancel-in-progress: true
711

812
env:
913
CARGO_TERM_COLOR: always
1014

1115
jobs:
1216
check-spec-version:
1317
name: Check spec_version bump
14-
runs-on: SubtensorCI
18+
runs-on: [self-hosted, type-ccx33]
1519
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
1620
steps:
1721
- name: Dependencies
1822
run: |
19-
sudo apt-get update &&
20-
sudo apt-get install -y curl clang curl libssl-dev llvm \
21-
libudev-dev protobuf-compiler
23+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
24+
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 libssl-dev llvm libudev-dev protobuf-compiler pkg-config
25+
26+
- name: Install Rust
27+
uses: actions-rs/toolchain@v1
28+
with:
29+
toolchain: stable
2230

2331
- name: Check-out repository under $GITHUB_WORKSPACE
2432
uses: actions/checkout@v4
@@ -38,7 +46,7 @@ jobs:
3846
spec_version=$(PATH=$PATH:$HOME/.cargo/.bin substrate-spec-version wss://dev.chain.opentensor.ai:443 | tr -d '\n')
3947
echo "network spec_version: $spec_version"
4048
: ${spec_version:?bad spec version}
41-
local_spec_version=$(cargo run -p node-subtensor-runtime --bin spec_version | tr -d '\n')
49+
local_spec_version=$(cargo run -p subtensor-tools --bin spec-version | tr -d '\n')
4250
echo "local spec_version: $local_spec_version"
4351
echo "network spec_version: $spec_version"
4452
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi

.github/workflows/check-docker.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@ name: Build Docker Image
22

33
on:
44
pull_request:
5+
6+
concurrency:
7+
group: check-docker-${{ github.ref }}
8+
cancel-in-progress: true
59

610
jobs:
711
build:
8-
runs-on: SubtensorCI
12+
runs-on: [self-hosted, type-ccx33]
913

1014
steps:
1115
- name: Checkout code

.github/workflows/check-finney.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,29 @@ on:
44
pull_request:
55
branches: [finney, main]
66
types: [labeled, unlabeled, synchronize, opened]
7+
8+
concurrency:
9+
group: check-finney-${{ github.ref }}
10+
cancel-in-progress: true
711

812
env:
913
CARGO_TERM_COLOR: always
1014

1115
jobs:
1216
check-spec-version:
1317
name: Check spec_version bump
14-
runs-on: SubtensorCI
18+
runs-on: [self-hosted, type-ccx33]
1519
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
1620
steps:
1721
- name: Dependencies
1822
run: |
19-
sudo apt-get update &&
20-
sudo apt-get install -y curl clang curl libssl-dev llvm \
21-
libudev-dev protobuf-compiler
23+
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
24+
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 libssl-dev llvm libudev-dev protobuf-compiler pkg-config
25+
26+
- name: Install Rust
27+
uses: actions-rs/toolchain@v1
28+
with:
29+
toolchain: stable
2230

2331
- name: Check-out repository under $GITHUB_WORKSPACE
2432
uses: actions/checkout@v4
@@ -36,7 +44,7 @@ jobs:
3644
spec_version=$(PATH=$PATH:$HOME/.cargo/.bin substrate-spec-version wss://entrypoint-finney.opentensor.ai:443 | tr -d '\n')
3745
echo "network spec_version: $spec_version"
3846
: ${spec_version:?bad spec version}
39-
local_spec_version=$(cargo run -p node-subtensor-runtime --bin spec_version | tr -d '\n')
47+
local_spec_version=$(cargo run -p subtensor-tools --bin spec-version | tr -d '\n')
4048
echo "local spec_version: $local_spec_version"
4149
echo "network spec_version: $spec_version"
4250
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi

0 commit comments

Comments
 (0)