Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
958 commits
Select commit Hold shift + click to select a range
f97a6ce
Merge remote-tracking branch 'origin/main' into testnet
sam0x17 Feb 7, 2025
812e59b
Merge remote-tracking branch 'origin/devnet' into devnet-ready
sam0x17 Feb 7, 2025
c2d0884
fix migration test
unconst Feb 7, 2025
3d668ea
cargo fmt
unconst Feb 7, 2025
4082646
merge
unconst Feb 7, 2025
cdb9f56
Merge pull request #1259 from opentensor/nonclaim
sam0x17 Feb 7, 2025
0363082
fix root
unconst Feb 7, 2025
f2eff11
cargo fmt
unconst Feb 7, 2025
c8eeef2
Merge pull request #1261 from opentensor/nonclaim
unconst Feb 7, 2025
29b6e36
Merge pull request #1262 from opentensor/devnet-ready
sam0x17 Feb 7, 2025
a680a64
add moving price to metagraph
unconst Feb 7, 2025
e9b8628
Merge pull request #1264 from opentensor/nonclaim
unconst Feb 7, 2025
e3635ff
use correct min burn init (#1265)
camfairchild Feb 7, 2025
540ea7f
Merge pull request #1266 from opentensor/devnet-ready
sam0x17 Feb 7, 2025
becc513
Merge pull request #1263 from opentensor/devnet
sam0x17 Feb 7, 2025
4395017
cargo update to fix cargo audit vulnerabilities
sam0x17 Feb 7, 2025
2c297fd
bump spec version
sam0x17 Feb 7, 2025
a16dbb8
Merge pull request #1267 from opentensor/sam-cargo-update-2-7-2025
sam0x17 Feb 7, 2025
58a8a8a
Merge pull request #1268 from opentensor/devnet-ready
sam0x17 Feb 7, 2025
7b93acf
Merge pull request #1269 from opentensor/devnet
sam0x17 Feb 7, 2025
3230136
moving price init from emission
unconst Feb 7, 2025
b0bdb16
cargo fmt
unconst Feb 7, 2025
5c27d88
bump spec version
sam0x17 Feb 7, 2025
48441d8
Merge remote-tracking branch 'origin/nonclaim' into nonclaim
sam0x17 Feb 7, 2025
22e51ee
Merge pull request #1270 from opentensor/nonclaim
sam0x17 Feb 7, 2025
551a69f
commit Cargo.lock
unconst Feb 7, 2025
0b6dd40
cargo clippy
unconst Feb 7, 2025
b00b5b3
cargo fmt
unconst Feb 7, 2025
8829875
Merge branch 'nonclaim' of https://github.com/opentensor/subtensor in…
unconst Feb 7, 2025
3226ce8
Merge pull request #1272 from opentensor/nonclaim
unconst Feb 7, 2025
d416b62
Merge pull request #1271 from opentensor/devnet-ready
sam0x17 Feb 7, 2025
a30f514
Merge pull request #1273 from opentensor/devnet
sam0x17 Feb 7, 2025
4f8d9bb
DefaultMinimumPoolLiquidity and tempos in rao migration
gztensor Feb 7, 2025
de6f5b0
Merge pull request #1274 from opentensor/fix/remove-tempo-from-rao-mi…
sam0x17 Feb 7, 2025
4ab30f5
Merge pull request #1275 from opentensor/testnet
sam0x17 Feb 7, 2025
5b8270c
Merge pull request #1276 from opentensor/devnet
sam0x17 Feb 7, 2025
19028c4
update readme of support of M series macs
qxprakash Feb 8, 2025
fd96f59
Merge pull request #1089 from opentensor/subnet-hyperparameter
sam0x17 Feb 10, 2025
0bcd855
merge devnet-ready
open-junius Feb 11, 2025
77f343f
Merge branch 'devnet-ready' into serve-axon-promethoeus
open-junius Feb 11, 2025
eed6e18
bump runtime version
open-junius Feb 11, 2025
795d366
add tao_emission to stakeinfo runtime
ibraheem-abe Feb 12, 2025
126f780
Refactor staking and neuron precompile with precompile-utils
ales-otf Feb 6, 2025
6d9adec
Resolve conflicts
ales-otf Feb 12, 2025
70637f2
remove call from coinbase. already in block_step
camfairchild Feb 12, 2025
ef65dc4
add negation for pow-reg-allowed
camfairchild Feb 12, 2025
a7aac95
only root can set min pow diff
camfairchild Feb 12, 2025
4fd4757
oops
camfairchild Feb 12, 2025
e538804
dont let ck-in-swap-sched move any stake/register
camfairchild Feb 12, 2025
8f197a2
add tests for validation filter
camfairchild Feb 12, 2025
5b3d4e6
add transfer stake to call nontransfer proxy filter
camfairchild Feb 12, 2025
45a67fc
also add proxy filters for new calls
camfairchild Feb 12, 2025
bf1933c
update staking priority
JohnReedV Feb 12, 2025
9dce4e7
bump spec
camfairchild Feb 12, 2025
b05e213
use get_priority_staking for all stake operations
JohnReedV Feb 12, 2025
f5d4708
bump spec
JohnReedV Feb 12, 2025
1916e1c
clippy
JohnReedV Feb 12, 2025
185841b
Remove ownership check from transition stake validation
gztensor Feb 12, 2025
3192e31
Merge pull request #1280 from opentensor/fix/include-pow-reg-disabled…
sam0x17 Feb 12, 2025
95f1f00
Merge pull request #1282 from opentensor/feat/dont-let-coldkey-in-swa…
sam0x17 Feb 12, 2025
8356aa9
Merge pull request #1279 from opentensor/feat/add-tao-emissions-to-st…
sam0x17 Feb 13, 2025
85c71ac
Merge pull request #1281 from opentensor/update-staking-priority
sam0x17 Feb 13, 2025
b378719
Merge remote-tracking branch 'origin/devnet-ready' into fix/remove-ex…
sam0x17 Feb 13, 2025
50893bd
Merge pull request #1284 from opentensor/fix/allow-all-hotkeys-to-mov…
sam0x17 Feb 13, 2025
fc49aca
Merge pull request #1283 from opentensor/fix/remove-extra-do-set-pend…
sam0x17 Feb 13, 2025
925dd85
Merge branch 'devnet-ready' into serve-axon-promethoeus
open-junius Feb 13, 2025
fc3beb2
Fix number conversion issues in staking precompile
ales-otf Feb 13, 2025
3fb3061
Merge pull request #1174 from opentensor/serve-axon-promethoeus
sam0x17 Feb 13, 2025
f45ae30
Merge pull request #1278 from qxprakash/update_readme
sam0x17 Feb 13, 2025
3bcf428
max the price for EMA calc at 1.0
camfairchild Feb 13, 2025
0514da3
Merge pull request #1286 from opentensor/fix/moving-alpha-price-min-one
sam0x17 Feb 13, 2025
ab37ca0
Merge pull request #1285 from opentensor/devnet-ready
sam0x17 Feb 13, 2025
8728d0a
Merge pull request #1287 from opentensor/devnet
sam0x17 Feb 13, 2025
f5f40eb
uncommitted lockfile change
sam0x17 Feb 13, 2025
a3a91ee
bump spec version
sam0x17 Feb 13, 2025
714bcd1
Merge remote-tracking branch 'origin/main' into devnet-ready
sam0x17 Feb 13, 2025
da4d692
fix merge conflicts
sam0x17 Feb 13, 2025
7adb0a2
Merge pull request #1290 from opentensor/sam-fix-merge-conflicts
sam0x17 Feb 14, 2025
eea733b
add CI action that requires clean merges between all named branches
sam0x17 Feb 14, 2025
49e5336
Refactor neuron precompil
ales-otf Feb 14, 2025
74be0ea
fix
sam0x17 Feb 14, 2025
1ed6a9c
fixes
sam0x17 Feb 14, 2025
bd1556e
try again
sam0x17 Feb 14, 2025
1b6e89f
fix again
sam0x17 Feb 14, 2025
a4a3aaa
fix
sam0x17 Feb 14, 2025
8e061b7
fix
sam0x17 Feb 14, 2025
e0e8aab
merge with target branch
open-junius Feb 14, 2025
16cb2be
Merge pull request #1291 from opentensor/sam-clean-merges
sam0x17 Feb 14, 2025
efee1a0
stop needless wasting of CI hours with on push triggers we don't need
sam0x17 Feb 14, 2025
2cfdb41
Refactor metagraph precompile
ales-otf Feb 14, 2025
d98320d
Merge pull request #1293 from opentensor/sam-stop-push-actions
sam0x17 Feb 14, 2025
eb5188a
Merge pull request #1292 from opentensor/devnet-ready
sam0x17 Feb 14, 2025
5ca7820
Merge pull request #1294 from opentensor/devnet
sam0x17 Feb 14, 2025
f1aa660
fix try runtime endpoints
sam0x17 Feb 14, 2025
d005830
fix
sam0x17 Feb 14, 2025
894a518
provide an identity for github action to prevent failure
sam0x17 Feb 14, 2025
279e0e9
Merge pull request #1297 from opentensor/sam-fix-clean-merges-script
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
0485ab6
Add serve_axon extrinsic validation
gztensor Feb 14, 2025
1238e03
Bump spec version
gztensor Feb 14, 2025
f111118
Check IP validity in serve_axon validation first
gztensor Feb 14, 2025
a819d77
Merge pull request #1298 from opentensor/feat/validate-serve-axon
sam0x17 Feb 14, 2025
ecf7f52
Merge pull request #1131 from opentensor/feat/sudo_toggle_evm_precompile
sam0x17 Feb 14, 2025
de38a0b
Merge pull request #1299 from opentensor/devnet-ready
sam0x17 Feb 14, 2025
a8c6d4e
Merge pull request #1300 from opentensor/devnet
sam0x17 Feb 14, 2025
14a8758
make set diff only root
camfairchild Feb 15, 2025
4039b3b
add test for set diff no owner
camfairchild Feb 15, 2025
96e05ea
add migration for min diff
camfairchild Feb 15, 2025
e8d211a
bump spec
camfairchild Feb 15, 2025
cb03dd6
only allow top-stake SN owner hk to stay immune
camfairchild Feb 15, 2025
0784e5a
Merge pull request #1301 from opentensor/fix/set-diff-only-root
sam0x17 Feb 15, 2025
7ee8f74
add tests
camfairchild Feb 15, 2025
af41fa9
Merge branch 'devnet-ready' into hotfix/fix-sn-owner-unlimited-keys
camfairchild Feb 15, 2025
36e268b
Merge pull request #1302 from opentensor/hotfix/fix-sn-owner-unlimite…
sam0x17 Feb 15, 2025
a43217d
Merge pull request #1303 from opentensor/devnet-ready
sam0x17 Feb 15, 2025
3f581e1
only allow replace non-top-stake owner hk
camfairchild Feb 16, 2025
e375915
bump spec
camfairchild Feb 16, 2025
1019ad0
add tests using SubnetOwnerHotkey
camfairchild Feb 16, 2025
c6d3ae3
add impl for replace neuron
camfairchild Feb 16, 2025
ccb39d7
add swap test
camfairchild Feb 16, 2025
8f0a7cb
add neuron prune impl
camfairchild Feb 16, 2025
e9b0051
add swap hotkey impl
camfairchild Feb 16, 2025
40c53a2
clippy
camfairchild Feb 16, 2025
a89b2c2
clippy
camfairchild Feb 16, 2025
17ca77d
mistake in test
camfairchild Feb 16, 2025
fe40cb9
Merge pull request #1305 from opentensor/fix/allow-replace-sn-owner-h…
sam0x17 Feb 16, 2025
bb26e74
Merge pull request #1306 from opentensor/devnet-ready
sam0x17 Feb 16, 2025
c4d9601
Merge pull request #1304 from opentensor/devnet
sam0x17 Feb 16, 2025
b60e667
add some tests
camfairchild Feb 17, 2025
eca0849
add stake ext test
camfairchild Feb 17, 2025
73b2978
add move_stake tests
camfairchild Feb 17, 2025
67bf91f
cargo lock
camfairchild Feb 17, 2025
49f9e07
bump spec
camfairchild Feb 17, 2025
ed76f40
clpy
camfairchild Feb 17, 2025
392fce3
Merge branch 'main' into hotfix/fail-on-hk-pool-precision
camfairchild Feb 17, 2025
5a0236a
use bool return type
camfairchild Feb 17, 2025
82f8caf
clpy
camfairchild Feb 17, 2025
50837b2
add higher liquidity on mvoe stake tests
camfairchild Feb 17, 2025
dbbfb61
Merge pull request #1307 from opentensor/hotfix/fail-on-hk-pool-preci…
sam0x17 Feb 17, 2025
373f4c9
Merge pull request #1308 from opentensor/devnet-ready
sam0x17 Feb 17, 2025
f083c8b
Merge pull request #1309 from opentensor/devnet
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
163667a
only update tx rate limit *after* ensure
camfairchild Feb 17, 2025
d9add2e
add test and sn-owner-chk impl
camfairchild Feb 17, 2025
f30517a
Fix build
gztensor Feb 17, 2025
c6121ee
use is ok and
camfairchild 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
eab76ea
Set initial tempo to 360
camfairchild Feb 19, 2025
4d2632d
set equal in mock
camfairchild Feb 19, 2025
63d0436
add test for weights rate limit v tempo
camfairchild Feb 19, 2025
91b86c3
make fields pub for testing
camfairchild 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
3955bd7
Merge pull request #1324 from opentensor/devnet
sam0x17 Feb 19, 2025
6b16ec3
Add dest hotkey check and test
gztensor Feb 20, 2025
c23de95
Remove the commented test
gztensor Feb 20, 2025
1216bd3
Bump spec version
gztensor Feb 20, 2025
9fc15c4
Merge pull request #1326 from opentensor/fix/add-dest-hotkey-check
sam0x17 Feb 20, 2025
fcc06c2
use rust 1.85.0
sam0x17 Feb 20, 2025
265b69f
upgrade to Rust 2024 Edition :tada:
sam0x17 Feb 20, 2025
4be79cd
whitelist clippy useless conversion warning
sam0x17 Feb 20, 2025
bb77b23
cargo fmt
sam0x17 Feb 20, 2025
61cddb6
Merge pull request #1327 from opentensor/rust-2024
sam0x17 Feb 20, 2025
a9d80d0
passes clippy
camfairchild Feb 20, 2025
6b1b1db
Remove in/out peers args from docker compose
ales-otf Feb 21, 2025
0c601d1
Merge branch 'devnet-ready' into chore/remove-peers-count-subtensor-sh
ales-otf Feb 21, 2025
5793327
Merge pull request #1112 from opentensor/chore/remove-peers-count-sub…
sam0x17 Feb 21, 2025
1216f49
Merge pull request #1328 from opentensor/feat/delegate-info-dtao
sam0x17 Feb 21, 2025
d696695
fix test
camfairchild Feb 21, 2025
3e19622
Merge branch 'devnet-ready' into feat/sn-owner-can-chk-no-stake-min
camfairchild Feb 21, 2025
ce2e68d
Update chainspecs
camfairchild Feb 21, 2025
dc6de01
Merge pull request #1320 from opentensor/fix/initial-tempo-to-360
sam0x17 Feb 21, 2025
0ac6947
Merge pull request #1315 from opentensor/feat/sn-owner-can-chk-no-sta…
sam0x17 Feb 21, 2025
f8ad7e5
Merge pull request #1329 from opentensor/devnet-ready
sam0x17 Feb 21, 2025
efbb92b
Remove Stake map - in progress (tests broken)
gztensor Feb 22, 2025
f6903ac
become delegate on every add_stake op
camfairchild Feb 22, 2025
f9ad0b6
bump spec
camfairchild Feb 22, 2025
63ae469
Merge pull request #1332 from opentensor/feat/delegate-info-dtao
sam0x17 Feb 22, 2025
2d333cf
Fix tests
gztensor Feb 22, 2025
ce31e50
Fix clippy
gztensor Feb 23, 2025
07da454
Merge pull request #1333 from opentensor/chore/remove-stake-map
sam0x17 Feb 24, 2025
d2119be
add root set sn moving alpha
camfairchild Feb 24, 2025
ed2a6f3
fmt
camfairchild Feb 24, 2025
3c280ce
fix test
camfairchild Feb 24, 2025
2d70704
Merge pull request #1335 from opentensor/feat/root-set-sn-moving-alpha
sam0x17 Feb 24, 2025
c411178
Merge pull request #1334 from opentensor/devnet-ready
sam0x17 Feb 24, 2025
5cb4123
fixes GH #1330
camfairchild Feb 24, 2025
c53f2cb
Merge branch 'devnet-ready' into fix/rate-limit-for-delegate-take-by-…
camfairchild Feb 24, 2025
3d53926
bump spec
camfairchild Feb 24, 2025
8f42d19
add a rate limit-set on decrease take (avoids close increase)
camfairchild Feb 24, 2025
a7e1aff
add test
camfairchild Feb 24, 2025
857355e
add call to associate hk
camfairchild Feb 24, 2025
c868398
update comment from PR1335
camfairchild Feb 24, 2025
00c7472
bump spec version
sam0x17 Feb 24, 2025
a3ae938
Merge pull request #1338 from opentensor/feat/owner-association-ext
sam0x17 Feb 24, 2025
e927d1a
Merge pull request #1336 from opentensor/fix/rate-limit-for-delegate-…
sam0x17 Feb 24, 2025
220ab34
Merge pull request #1197 from tavurth/main
sam0x17 Feb 24, 2025
b36490c
Merge pull request #1339 from opentensor/devnet-ready
sam0x17 Feb 24, 2025
5974aa9
Merge pull request #1331 from opentensor/devnet
sam0x17 Feb 24, 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/toolchain@v1.0.6
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/rust-cache@v2.2.1
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/toolchain@v1.0.6
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt, clippy
profile: minimal

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2.2.1
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/rust-cache@v2.2.1
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/rust-cache@v2.2.1
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/rust-cache@v2.2.1
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/toolchain@v1.0.6
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