Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
3d1b50e
Implement TaoCurrency
ales-otf Jul 21, 2025
91e06b8
add hotkey check
JohnReedV Jul 23, 2025
2a1d784
update tests
JohnReedV Jul 24, 2025
c1609b7
bump spec
JohnReedV Jul 24, 2025
7a89fc7
add test_reveal_crv3_commits_hotkey_check
JohnReedV Jul 24, 2025
6c3ddcd
reveal_crv3_commits every block
JohnReedV Jul 24, 2025
24dc8cb
test_reveal_crv3_commits_retry_on_missing_pulse
JohnReedV Jul 24, 2025
20ec4a3
prune old pulses
JohnReedV Jul 25, 2025
0de122e
add test_pulses_are_correctly_pruned
JohnReedV Jul 25, 2025
a2fe566
fmt
JohnReedV Jul 25, 2025
1981d9e
auto-update benchmark weights
github-actions[bot] Jul 25, 2025
55f9119
add migration
JohnReedV Jul 25, 2025
0e66756
add test_migrate_prune_old_pulses
JohnReedV Jul 25, 2025
665e2a9
Merge branch 'commit-reveal-v3-improvments' of github.com:opentensor/…
JohnReedV Jul 25, 2025
6734802
Reduce transaction fees 10x
gztensor Jul 25, 2025
b6f3daa
add MAX_REMOVED_PULSES
JohnReedV Jul 28, 2025
b0d3f14
add test_prune_maximum_of_100_pulses_per_call
JohnReedV Jul 28, 2025
8ca3b58
fallback to LegacyWeightsTlockPayload
JohnReedV Jul 28, 2025
42f6e90
test_reveal_crv3_commits_legacy_payload_success
JohnReedV Jul 28, 2025
9d3231d
fix: rpc method getSubnetsInf_v2
cuteolaf Jul 29, 2025
f964707
n * reveal_period => n + reveal_period
JohnReedV Jul 29, 2025
6ae3df0
disable migration
JohnReedV Jul 29, 2025
6140792
MAX_KEPT_PULSES 1 week
JohnReedV Jul 29, 2025
97bfd30
Merge branch 'devnet-ready' into fix/subnets-info-v2
cuteolaf Jul 30, 2025
4755e3b
Update workflow files to use self-hosted runners
prop-opentensor Jul 30, 2025
085f16f
clippy
JohnReedV Jul 30, 2025
3bd1202
bump spec
JohnReedV Jul 30, 2025
864b9ea
Merge branch 'devnet-ready' into commit-reveal-v3-improvments
JohnReedV Jul 30, 2025
19410aa
hoist all deps and edition to workspace + upgrade psdk 2503-6
l0r1s Jul 30, 2025
111636f
Do not do alpha emissions when registrations are disabled
gztensor Jul 30, 2025
b08bf3e
Fix build
gztensor Jul 30, 2025
4c2d5b5
Spec version
gztensor Jul 30, 2025
44f643b
bump spec_version
cuteolaf Jul 31, 2025
692c2e2
bump rust to 1.88 and wasm target to wasm32v1-none
l0r1s Jul 30, 2025
ed5d572
derive DecodeWithMemTracking for types
l0r1s Jul 30, 2025
5128c97
no more network_starter in node service
l0r1s Jul 30, 2025
c649212
add new trait types for pallets
l0r1s Jul 30, 2025
3281e52
new pallet_balances::GenesisConfig::dev_accounts to None
l0r1s Jul 30, 2025
1062ebb
fix rust for procedural fork
l0r1s Jul 30, 2025
e2ee4cc
cargo fmt + fix ref issues
l0r1s Jul 30, 2025
88699cc
remove spec_version binary from runtime
l0r1s Jul 30, 2025
8529956
cargo clippy
l0r1s Jul 31, 2025
28a2376
cargo fmt
l0r1s Jul 31, 2025
8a10577
zepter fix
l0r1s Jul 31, 2025
05cd4e5
auto-update benchmark weights
github-actions[bot] Jul 31, 2025
6d22016
Merge pull request #1889 from cuteolaf/fix/subnets-info-v2
l0r1s Jul 31, 2025
9aa2774
Merge branch 'devnet-ready' into fix/emission-disabled-registrations
gztensor Jul 31, 2025
39b577b
cargo audit fix + remove old ignored vulnerabilities
l0r1s Jul 31, 2025
9d60770
clean up duplicated parity-scale-codec dep + unused deps in workspace…
l0r1s Jul 31, 2025
36d76a6
move spec-version bin to subtensor-tools
l0r1s Jul 31, 2025
bedffe0
use opentensor/bls fork
l0r1s Jul 31, 2025
3dba572
Merge pull request #1900 from opentensor/fix/emission-disabled-regist…
sam0x17 Jul 31, 2025
2604913
Default implementation of FungibleAdapter in a separate pallet
gztensor Jul 31, 2025
b422cb0
Runners: update types and location, update dependencies to accomodate…
prop-opentensor Aug 1, 2025
d131954
Remove override: true from rust install steps
prop-opentensor Aug 1, 2025
ab22342
Add missing pkg-config dependency to update-chainspec
prop-opentensor Aug 1, 2025
a96cd04
Add build-essential package to update-chainspec
prop-opentensor Aug 1, 2025
1517589
Change update-chainspec to workflow_dispatch only
prop-opentensor Aug 1, 2025
2432db1
Add rust dependency to evm-tests
prop-opentensor Aug 1, 2025
11e0c0a
auto-update benchmark weights
github-actions[bot] Aug 1, 2025
93bccb6
Add python3-pip dependency for bittensor e2e tests
prop-opentensor Aug 1, 2025
d878a86
Alpha transaction payment - in progress
gztensor Aug 1, 2025
74ddc46
Set dependency installs to noninteractive mode and prevent hangups fr…
prop-opentensor Aug 1, 2025
e50b2de
auto-update benchmark weights
github-actions[bot] Aug 1, 2025
2a63ae3
fix non awaited tx inclusion for neuron burn register
l0r1s Aug 1, 2025
dec0652
Change runner type in cargo-test to ccx23
prop-opentensor Aug 1, 2025
a278c69
add python3-venv package to e2e deps
prop-opentensor Aug 1, 2025
9709a17
Merge pull request #1906 from opentensor/fix-leasing-precompile-tests
sam0x17 Aug 1, 2025
6c1310b
replace system pip with uv venv --seed --managed-python
l0r1s Aug 1, 2025
1109e2f
Merge branch 'devnet-ready' into upgrade-polkadot-sdk-2503-6
l0r1s Aug 1, 2025
303d6e3
replace system pip with uv venv --seed for e2e, remove --managed-python
l0r1s Aug 1, 2025
33c2432
fix flaky rust tests based on weight assertions
l0r1s Aug 1, 2025
af321ba
bump cargo test runner type and add docker workflow test file
prop-opentensor Aug 1, 2025
aa75b14
install lsb-release pkg in docker image test job
prop-opentensor Aug 1, 2025
f225332
remove test workflow
prop-opentensor Aug 1, 2025
0aa712c
remove region from workflow files as now redundant
prop-opentensor Aug 2, 2025
922c208
Merge branch 'main' into upgrade-polkadot-sdk-2503-6
l0r1s Aug 4, 2025
9967d23
fix after merging main
l0r1s Aug 4, 2025
57af6d2
update doc for crowdloan/leasing
l0r1s Aug 4, 2025
dc5cb8f
Make tao type-safe using TaoCurrency wrapper
ales-otf Jul 21, 2025
a230e0a
Merge pull request #1916 from opentensor/crowdloan-leasing-doc
sam0x17 Aug 4, 2025
b5a30ca
Fix git conflicts
ales-otf Aug 4, 2025
19a5573
add migrate_disable_commit_reveal
JohnReedV Aug 4, 2025
2c8398e
test_migrate_disable_commit_reveal
JohnReedV Aug 4, 2025
1367c34
Merge pull request #1898 from opentensor/upgrade-polkadot-sdk-2503-6
l0r1s Aug 4, 2025
e1f0814
Merge branch 'devnet-ready' into commit-reveal-v3-improvments
JohnReedV Aug 4, 2025
68796d1
new clippy
JohnReedV Aug 4, 2025
14ee04c
Resolve git conflicts
ales-otf Aug 5, 2025
7603d4e
add retries to evm-tests and run-benchmarks
prop-opentensor Aug 5, 2025
350325f
set read only permissions on evm tests github token
prop-opentensor Aug 5, 2025
e228ac5
Merge branch 'devnet-ready' into update-workflows-self-hosted-runners
l0r1s Aug 5, 2025
a56f94b
auto-update benchmark weights
github-actions[bot] Aug 5, 2025
301571e
disable commit-reveal-disabled migration
JohnReedV Aug 5, 2025
608108d
Fix typos
ales-otf Aug 5, 2025
4d4b825
commit_timelocked_weights
JohnReedV Aug 5, 2025
5ac7662
update comment
JohnReedV Aug 5, 2025
df254b0
update doc comments
JohnReedV Aug 5, 2025
e349eae
enable commit_crv3_weights
JohnReedV Aug 5, 2025
b2718c2
fmt & update comments
JohnReedV Aug 5, 2025
91d6870
clippy
JohnReedV Aug 5, 2025
bd56a94
Fees in alpha for multiple subnets. Empty tests.
gztensor Aug 5, 2025
b99711e
auto-update benchmark weights
github-actions[bot] Aug 6, 2025
b886c56
benchmark_commit_timelocked_weights
JohnReedV Aug 6, 2025
7842800
auto-update benchmark weights
github-actions[bot] Aug 6, 2025
65187c3
add test_sudo_set_commit_reveal_version
JohnReedV Aug 7, 2025
267065e
benchmark sudo_set_commit_reveal_weights_version
JohnReedV Aug 7, 2025
3e3e2ae
reveal round validation check
JohnReedV Aug 7, 2025
22cfb35
fix benchmark
JohnReedV Aug 7, 2025
d819586
fix crowdloan precompile test import
l0r1s Aug 7, 2025
64950df
fix weight structure commit_reveal_version
JohnReedV Aug 7, 2025
8eed4f0
saturating math
JohnReedV Aug 7, 2025
252621a
fix leasing precompile test import
l0r1s Aug 7, 2025
2d613cf
Merge pull request #1880 from opentensor/commit-reveal-v3-improvments
sam0x17 Aug 7, 2025
c5031dc
auto-update benchmark weights
github-actions[bot] Aug 7, 2025
15046b9
Merge branch 'devnet-ready' into update-workflows-self-hosted-runners
l0r1s Aug 7, 2025
c5bf779
set oldest round
JohnReedV Aug 7, 2025
6d859f1
clippy
JohnReedV Aug 7, 2025
de09ea8
bump spec version
l0r1s Aug 7, 2025
6845d95
bump spec
JohnReedV Aug 7, 2025
91b29de
Implement smart fees for remove_stake and tests
gztensor Aug 7, 2025
89c1a83
Merge branch 'devnet-ready' into feat/smart-tx-fees
gztensor Aug 7, 2025
72878e5
Merge devnet-ready in.
gztensor Aug 7, 2025
a7bcfb9
auto-update benchmark weights
github-actions[bot] Aug 7, 2025
5e86215
auto-update benchmark weights
github-actions[bot] Aug 8, 2025
e794892
double check LegacyWeightsTlockPayload
JohnReedV Aug 8, 2025
9f59bfa
tune down logs
JohnReedV Aug 8, 2025
b6e8d80
Merge pull request #1925 from opentensor/fix-weight-structure
sam0x17 Aug 8, 2025
5e06062
set_oldest_stored_round
JohnReedV Aug 8, 2025
1c716a9
clippy & bump spec
JohnReedV Aug 8, 2025
07e4580
update lock file
open-junius Aug 8, 2025
c7ce805
auto-update benchmark weights
github-actions[bot] Aug 8, 2025
a2e95c9
add polkadot api version
open-junius Aug 8, 2025
e3b3322
Blank commit
JohnReedV Aug 8, 2025
e880964
Merge pull request #1929 from opentensor/disable-oldest-stored-round-…
sam0x17 Aug 8, 2025
4e4a468
Merge branch 'devnet-ready' into update-workflows-self-hosted-runners
JohnReedV Aug 8, 2025
5d8b2cb
update dispatch test
JohnReedV Aug 8, 2025
8310cd5
Implement smart fees and tests for remove_stake_limit, remove_stake_f…
gztensor Aug 8, 2025
0e2da05
Merge branch 'devnet-ready' into feat/smart-tx-fees
gztensor Aug 8, 2025
082615f
Cleanup subtensor pallet extrinsic validation
gztensor Aug 8, 2025
97bd98d
auto-update benchmark weights
github-actions[bot] Aug 8, 2025
a578738
Merge pull request #1917 from opentensor/sasha/chore/currency-types
ales-otf Aug 8, 2025
a71cbbd
revert change
open-junius Aug 9, 2025
d9bc6d2
disable it
open-junius Aug 9, 2025
c84ddcc
disable it
open-junius Aug 9, 2025
da8c505
disable it
open-junius Aug 9, 2025
9eff3cc
fix crowdloan/leasing assert imports
l0r1s Aug 9, 2025
4bbf984
Merge pull request #1895 from opentensor/update-workflows-self-hosted…
l0r1s Aug 11, 2025
0d67f82
Merge branch 'devnet-ready' into fix-npm-evm-test
l0r1s Aug 11, 2025
bb9818f
fix fn renamed
l0r1s Aug 11, 2025
7eba038
fix conversion
l0r1s Aug 11, 2025
74ec007
add missing concurrency settings for workflows
l0r1s Aug 11, 2025
fa44479
fix conversion 2
l0r1s Aug 11, 2025
265b169
auto-update benchmark weights
github-actions[bot] Aug 11, 2025
aa26cf3
Merge pull request #1930 from opentensor/fix-npm-evm-test
sam0x17 Aug 11, 2025
7c8ff6d
Merge pull request #1933 from opentensor/workflow-cancel-in-progress-ci
sam0x17 Aug 11, 2025
6d58c7c
Collect protocol fees on emissions
gztensor Aug 11, 2025
57088ef
Add collected fees to liquidity
gztensor Aug 11, 2025
d2cc122
Merge devnet-ready in, cleanup tests
gztensor Aug 11, 2025
6228842
Merge branch 'devnet-ready' into feat/reduce-tx-fees
gztensor Aug 11, 2025
d0ed80a
Fix zepter and clippy
gztensor Aug 11, 2025
5dcc7c5
Fix zepter
gztensor Aug 11, 2025
fed5e88
Fix zepter
gztensor Aug 11, 2025
dc407f4
auto-update benchmark weights
github-actions[bot] Aug 11, 2025
798b67f
auto-update benchmark weights
github-actions[bot] Aug 11, 2025
5d3b2f8
Merge pull request #1921 from opentensor/feat/smart-tx-fees
sam0x17 Aug 11, 2025
a22f76c
Merge devnet-ready
gztensor Aug 11, 2025
4690aaf
Merge pull request #1934 from opentensor/fix/emissions-protocol-fees
sam0x17 Aug 11, 2025
06462b0
Merge branch 'devnet-ready' into feat/reduce-tx-fees
gztensor Aug 11, 2025
e588143
Fix test_add_stake_dispatch_info_ok
gztensor Aug 11, 2025
573717c
Merge pull request #1886 from opentensor/feat/reduce-tx-fees
sam0x17 Aug 11, 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
23 changes: 11 additions & 12 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,21 @@ concurrency:
jobs:
cargo-audit:
name: cargo audit
runs-on: SubtensorCI
runs-on: [self-hosted, type-ccx13]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
steps:
- name: Check-out repositoroy under $GITHUB_WORKSPACE
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
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
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

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

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

- name: cargo audit
run: |
cargo audit --ignore RUSTSEC-2024-0336 \
--ignore RUSTSEC-2021-0127 \
--ignore RUSTSEC-2024-0370 \
--ignore RUSTSEC-2022-0080 \
--ignore RUSTSEC-2022-0061 \
--ignore RUSTSEC-2020-0168 \
--ignore RUSTSEC-2024-0384 \
--ignore RUSTSEC-2024-0388 \
--ignore RUSTSEC-2024-0421
cargo audit --ignore RUSTSEC-2023-0091 \
--ignore RUSTSEC-2025-0009 \
--ignore RUSTSEC-2024-0438
37 changes: 23 additions & 14 deletions .github/workflows/check-bittensor-e2e-tests.yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,15 @@ env:

jobs:
check-label:
runs-on: ubuntu-latest
runs-on: [self-hosted, type-ccx13]
outputs:
skip-bittensor-e2e-tests: ${{ steps.get-labels.outputs.skip-bittensor-e2e-tests }}
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
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

- name: Check out repository
uses: actions/checkout@v4
with:
Expand All @@ -52,10 +57,15 @@ jobs:
find-btcli-e2e-tests:
needs: check-label
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: ubuntu-latest
runs-on: [self-hosted, type-ccx13]
outputs:
test-files: ${{ steps.get-btcli-tests.outputs.test-files }}
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
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

- name: Research preparation
working-directory: ${{ github.workspace }}
run: git clone https://github.com/opentensor/btcli.git
Expand All @@ -64,9 +74,6 @@ jobs:
working-directory: ${{ github.workspace }}/btcli
run: git checkout staging

- name: Install dependencies
run: sudo apt-get install -y jq

- name: Find e2e test files
id: get-btcli-tests
run: |
Expand All @@ -77,10 +84,15 @@ jobs:
find-sdk-e2e-tests:
needs: check-label
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: ubuntu-latest
runs-on: [self-hosted, type-ccx13]
outputs:
test-files: ${{ steps.get-sdk-tests.outputs.test-files }}
steps:
- name: Install dependencies
run: |
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
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

- name: Research preparation
working-directory: ${{ github.workspace }}
run: git clone https://github.com/opentensor/bittensor.git
Expand All @@ -89,9 +101,6 @@ jobs:
working-directory: ${{ github.workspace }}/bittensor
run: git checkout staging

- name: Install dependencies
run: sudo apt-get install -y jq

- name: Find e2e test files
id: get-sdk-tests
run: |
Expand All @@ -101,7 +110,7 @@ jobs:

build-image-with-current-branch:
needs: check-label
runs-on: SubtensorCI
runs-on: [self-hosted, type-ccx33]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -139,7 +148,7 @@ jobs:
- find-btcli-e2e-tests
- build-image-with-current-branch
if: needs.check-label.outputs.skip-bittensor-e2e-tests == 'false'
runs-on: ubuntu-latest
runs-on: [self-hosted, type-ccx13]
strategy:
fail-fast: false
max-parallel: 16
Expand Down Expand Up @@ -175,7 +184,7 @@ jobs:

- name: Create Python virtual environment
working-directory: ${{ github.workspace }}
run: uv venv ${{ github.workspace }}/venv
run: uv venv --seed ${{ github.workspace }}/venv

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

- name: Create Python virtual environment
working-directory: ${{ github.workspace }}
run: uv venv ${{ github.workspace }}/venv
run: uv venv --seed ${{ github.workspace }}/venv

- name: Clone Bittensor SDK repo
working-directory: ${{ github.workspace }}
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/check-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,29 @@ on:
pull_request:
branches: [devnet, devnet-ready]
types: [labeled, unlabeled, synchronize, opened]

concurrency:
group: check-devnet-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
check-spec-version:
name: Check spec_version bump
runs-on: SubtensorCI
runs-on: [self-hosted, type-ccx33]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
steps:
- name: Dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y curl clang curl libssl-dev llvm \
libudev-dev protobuf-compiler
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
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

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
Expand All @@ -38,7 +46,7 @@ jobs:
spec_version=$(PATH=$PATH:$HOME/.cargo/.bin substrate-spec-version wss://dev.chain.opentensor.ai:443 | tr -d '\n')
echo "network spec_version: $spec_version"
: ${spec_version:?bad spec version}
local_spec_version=$(cargo run -p node-subtensor-runtime --bin spec_version | tr -d '\n')
local_spec_version=$(cargo run -p subtensor-tools --bin spec-version | tr -d '\n')
echo "local spec_version: $local_spec_version"
echo "network spec_version: $spec_version"
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/check-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@

on:
pull_request:

concurrency:
group: check-docker-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: SubtensorCI
runs-on: [self-hosted, type-ccx33]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Docker Image
run: docker build .

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
18 changes: 13 additions & 5 deletions .github/workflows/check-finney.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,29 @@ on:
pull_request:
branches: [finney, main]
types: [labeled, unlabeled, synchronize, opened]

concurrency:
group: check-finney-${{ github.ref }}
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always

jobs:
check-spec-version:
name: Check spec_version bump
runs-on: SubtensorCI
runs-on: [self-hosted, type-ccx33]
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
steps:
- name: Dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y curl clang curl libssl-dev llvm \
libudev-dev protobuf-compiler
sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get update
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

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable

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