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

add neuron certificate handling #2

Closed
wants to merge 382 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
382 commits
Select commit Hold shift + click to select a range
a03ce30
Merge pull request #675 from opentensor/feat/roman/no-purge-flag
distributedstatemachine Jul 31, 2024
3d4d571
start the unit test fix
open-junius Jul 31, 2024
5d48fae
chore: PR review comments
Jul 31, 2024
b1037ab
chore: clippy
Jul 31, 2024
531417a
chore: bump spec
Jul 31, 2024
beadf9f
add missing validate tests
JohnReedV Jul 31, 2024
ce31915
add delegate id
JohnReedV Jul 31, 2024
cab0fc3
chore: fix tests
Jul 31, 2024
ad827b4
add swap & tests
JohnReedV Aug 1, 2024
9d13693
expand check
JohnReedV Aug 1, 2024
3ce54bd
fix doc comment
JohnReedV Aug 1, 2024
a125856
fix unit test
open-junius Aug 1, 2024
0c1816c
fixed the config level issue
open-junius Aug 1, 2024
aad89d8
fix compilation
open-junius Aug 1, 2024
53ccd94
all unit test passed
open-junius Aug 1, 2024
2f83b84
clean up code
open-junius Aug 1, 2024
d80a928
fix clippy
open-junius Aug 1, 2024
1633b6c
fix admin test
open-junius Aug 1, 2024
49bd0c5
fix test
open-junius Aug 1, 2024
0f2fa05
remove unneeded feature
open-junius Aug 1, 2024
59dc95c
clean up code
open-junius Aug 1, 2024
6ff7b3f
Merge pull request #701 from opentensor/fix/swap_delegates
distributedstatemachine Aug 1, 2024
28a00fe
remove swap_id_coldkey fn
JohnReedV Aug 1, 2024
9250464
update feature dependency
open-junius Aug 2, 2024
9364492
Replace SubtensorInterface with tight pallet coupling
keithtensor Aug 2, 2024
b0202f4
Remove SubtensorInterface in tests
keithtensor Aug 2, 2024
83d680d
Remove unused import
keithtensor Aug 2, 2024
063cf57
Fix clippy
keithtensor Aug 2, 2024
af4bf35
fix zepter
open-junius Aug 2, 2024
0bce83e
fix clippy
open-junius Aug 2, 2024
5181bef
Remove references to T::Subtensor in benchmarks
keithtensor Aug 2, 2024
06013f8
chore: remove childkey take removal
Aug 2, 2024
7a935f9
cargo fmt
keithtensor Aug 2, 2024
7058b51
update & move tests
JohnReedV Aug 2, 2024
2fc87ca
add swap_coldkey benchmark
JohnReedV Aug 2, 2024
16b097c
Merge pull request #707 from opentensor/junius/fix_scheduled_coldkey_…
distributedstatemachine Aug 3, 2024
dcb198f
initial
Aug 3, 2024
7a77dfd
initia;
Aug 3, 2024
71beff0
Merge branch 'add-a-delegate-id' into swap_ids
Aug 3, 2024
049275b
Merge remote-tracking branch 'origin/devnet-ready' into use-subtensor…
Aug 4, 2024
d719cf6
chore: fmt
Aug 4, 2024
d35d20b
chore: bump spec
Aug 4, 2024
148bb10
Merge remote-tracking branch 'origin/devnet-ready' into custom-errors…
Aug 4, 2024
02325f3
bump spec , formats
Aug 4, 2024
22cc4b5
chore: skip wasm builds on test scripts
Jul 31, 2024
21e3c26
feat: patch errors and assertions
Aug 4, 2024
fa1f279
Merge remote-tracking branch 'origin/devnet-ready' into feat/schedule…
Aug 4, 2024
1a88e73
Merge remote-tracking branch 'origin/devnet-ready' into feat/childkey…
Aug 5, 2024
9b557c4
feat: fix child take tests
Aug 5, 2024
2625b5d
remove unneeded label checks now that we have a simpler process
sam0x17 Aug 5, 2024
7654191
update CONTRIBUTING.md
sam0x17 Aug 5, 2024
483e8e7
bump spec version
orriin Aug 5, 2024
d1c40dd
run checks more often
sam0x17 Aug 5, 2024
8389088
Merge pull request #716 from opentensor/sam-remove-old-ci-stuff
sam0x17 Aug 6, 2024
67de45c
add schedule dissolve network
open-junius Aug 6, 2024
106df9e
fix clippy
open-junius Aug 6, 2024
cc036e5
fix clippy
open-junius Aug 6, 2024
70f624f
udpate comments
open-junius Aug 6, 2024
771b120
fix bechmarks
open-junius Aug 7, 2024
a65fb77
Merge remote-tracking branch 'origin/devnet-ready' into sam-custom-lints
sam0x17 Aug 7, 2024
eb4746f
fix warnings
sam0x17 Aug 7, 2024
252fea5
cargo +nightly fmt
sam0x17 Aug 7, 2024
b2e5290
cargo fix --workspace
sam0x17 Aug 7, 2024
6764633
feat: add more childkey tests
Aug 7, 2024
932e7b2
compiling but overflowing stack
sam0x17 Aug 7, 2024
4a87650
working in parallel :tada:
sam0x17 Aug 7, 2024
60f04ad
use channels, warning syntax 100% working
sam0x17 Aug 7, 2024
3de5b03
Update run_coinbase.rs
JohnReedV Aug 7, 2024
037b76d
add test_blocks_since_last_step
JohnReedV Aug 7, 2024
75857e9
freeze struct lint scaffold
sam0x17 Aug 7, 2024
a9200bc
working! cleaning up now
sam0x17 Aug 7, 2024
323f5ef
now actually working, before had false positives
sam0x17 Aug 7, 2024
a71a3a0
WIP
sam0x17 Aug 7, 2024
dad50ac
ALMOST
sam0x17 Aug 7, 2024
303db90
add new proxy types
camfairchild Aug 8, 2024
8a86e36
add supersets
camfairchild Aug 8, 2024
43dbb6c
add test
camfairchild Aug 8, 2024
e1ba277
clean up
sam0x17 Aug 8, 2024
0d486ba
reorder so enum doesnt change
camfairchild Aug 8, 2024
13db9e6
add missing freeze_struct to Registration
sam0x17 Aug 8, 2024
03a85f1
Create publish script to publish crates in the correct order
keithtensor Aug 6, 2024
c4eeca1
Put publish.sh inside scripts/
keithtensor Aug 7, 2024
6366607
Add bump-version binary to help with bumping all crate versions
keithtensor Aug 8, 2024
a6d13f6
Add short default tempo to fast-blocks feature
gztensor Aug 8, 2024
6a792ce
add missing freeze_structs + confirm detection issue with crate::free…
sam0x17 Aug 8, 2024
b3485c9
fix detection issue
sam0x17 Aug 8, 2024
a76484c
fix rerun-if logic
sam0x17 Aug 8, 2024
f704724
add missing freeze_struct to PrometheusInfo
sam0x17 Aug 8, 2024
955ee84
hack: include linting framework in main crate so we can test it
sam0x17 Aug 8, 2024
19aa49f
refactor to enable testing, separate linting crate
sam0x17 Aug 8, 2024
2abb319
tests for freeze struct lint
sam0x17 Aug 8, 2024
c34d72b
neuron pruning changes, initial tests
VectorChat Aug 8, 2024
069a33d
adding comments
VectorChat Aug 8, 2024
1011425
Add short InitialTxChildkeyTakeRateLimit to fast-blocks feature
gztensor Aug 8, 2024
4e976a1
ensure no warnings allowed / re-enable cargo check --workspace job
sam0x17 Aug 8, 2024
583c6a7
cargo clippy --fix --workspace
sam0x17 Aug 8, 2024
34ca8a9
cargo +nightly fmt
sam0x17 Aug 8, 2024
3c4903e
check that CI fails successfully
sam0x17 Aug 8, 2024
b98133d
test warning detection in CI
sam0x17 Aug 9, 2024
af6435a
proper check for custom lint failures
sam0x17 Aug 9, 2024
e47f2de
clippy fixes
sam0x17 Aug 9, 2024
3398adc
tweak
sam0x17 Aug 9, 2024
63da5af
try again
sam0x17 Aug 9, 2024
fad9f69
tweak again
sam0x17 Aug 9, 2024
4b79e61
try again
sam0x17 Aug 9, 2024
a4ac8b6
try echoing the file
sam0x17 Aug 9, 2024
4021d60
warning detection should be working in CI now
sam0x17 Aug 9, 2024
dbe2a89
but actually now
sam0x17 Aug 9, 2024
fe0d6ad
try catting
sam0x17 Aug 9, 2024
68ec4c6
feat: bump network max stake
Aug 9, 2024
9c3690b
strip color codes
sam0x17 Aug 9, 2024
370ca7f
whoops
sam0x17 Aug 9, 2024
75df997
working, now proper error message at the end
sam0x17 Aug 9, 2024
567696f
fix exit status
sam0x17 Aug 9, 2024
7aa4dc8
fix unwrap
sam0x17 Aug 9, 2024
ae40d0f
chore: add sudo calls for setting min/max childkey takes
Aug 9, 2024
320aecf
fix clippy warning
sam0x17 Aug 9, 2024
ccec528
Merge pull request #715 from opentensor/bump-spec-version-testnet
orriin Aug 9, 2024
8f9e841
Merge pull request #725 from opentensor/feat/fast_tempo_for_fast_blocks
distributedstatemachine Aug 9, 2024
7072971
last remaining warning
sam0x17 Aug 9, 2024
15366cf
clippy
VectorChat Aug 9, 2024
681097b
more clippy
VectorChat Aug 10, 2024
2cb7ef4
allow multiple linting errors per file
sam0x17 Aug 11, 2024
3b8cab1
change Lint trait to take a syn::File instead
sam0x17 Aug 11, 2024
ee1422e
cargo clippy --fix --workspace --all-features
sam0x17 Aug 11, 2024
fec737d
bump spec version
sam0x17 Aug 11, 2024
bbd1b5f
fix localnet.sh to use production profile + sane workspace setup
sam0x17 Aug 11, 2024
9ef28bf
add line
JohnReedV Aug 12, 2024
58196b1
remove line
JohnReedV Aug 12, 2024
144be21
initial script
sam0x17 Aug 13, 2024
ab0e99a
Merge branch 'devnet-ready' into feat/neuron-pruning-change
JohnReedV Aug 13, 2024
0323d50
working but running into commit reveal issues
sam0x17 Aug 13, 2024
46f3287
debug runtime log level
orriin Aug 13, 2024
5b2dde6
Merge pull request #726 from VectorChat/feat/neuron-pruning-change
sam0x17 Aug 13, 2024
ce0dfa7
Fix rate limit for setting children
gztensor Aug 14, 2024
9e98762
Remove VERSION file and instead pass version as an argument
keithtensor Aug 14, 2024
2c25fa3
Include the devnet-ready branch when checking for deployment
keithtensor Aug 14, 2024
5d1e951
Check for devnet-ready as well
keithtensor Aug 14, 2024
9509ce9
Skip spec_version bump if 'no-spec-version-bump' label exists
keithtensor Aug 14, 2024
f33d701
add subnet identities
JohnReedV Aug 14, 2024
fa8da4c
fix comments
JohnReedV Aug 15, 2024
ba508aa
freeze SubnetIdentity struct
JohnReedV Aug 15, 2024
42cb74f
Merge remote-tracking branch 'origin/devnet-ready' into sam-custom-lints
sam0x17 Aug 15, 2024
d3f13d5
Merge remote-tracking branch 'origin/devnet-ready' into sam-benchmarking
sam0x17 Aug 15, 2024
f373434
add identities to subnet registration process
JohnReedV Aug 15, 2024
7425602
check if identity is valid
JohnReedV Aug 15, 2024
18274b0
Merge pull request #734 from opentensor/include-devnet-ready
unconst Aug 15, 2024
3707b8d
Merge pull request #719 from opentensor/schedule_dissolve_network
distributedstatemachine Aug 16, 2024
d4a5165
Merge remote-tracking branch 'origin/devnet-ready' into sam-custom-lints
sam0x17 Aug 16, 2024
9b0d246
switch localnet back to release
sam0x17 Aug 16, 2024
6333edd
strip out DummyLint
sam0x17 Aug 16, 2024
d6790a3
Use passes_rate_limit_on_subnet for setting children
gztensor Aug 16, 2024
136dd47
Expand test
JohnReedV Aug 16, 2024
cb35762
Merge pull request #733 from opentensor/fix/childkey-rate-limits
distributedstatemachine Aug 16, 2024
5eb5e93
Merge pull request #732 from opentensor/runtime-log-level
unconst Aug 16, 2024
164e64b
Merge pull request #730 from opentensor/sam-benchmarking
unconst Aug 16, 2024
5bbe575
Merge pull request #724 from opentensor/sam-custom-lints
unconst Aug 16, 2024
3536a8b
Merge pull request #723 from opentensor/feat/more-proxy-types
unconst Aug 16, 2024
41fd2f6
Merge pull request #722 from opentensor/increment-blocks-since-last-step
unconst Aug 16, 2024
188a8d8
Merge pull request #720 from opentensor/crates-io-publish-script
unconst Aug 16, 2024
37e6169
Merge pull request #700 from opentensor/custom-errors-signed-extension
unconst Aug 16, 2024
fd379bc
match existing pattern
JohnReedV Aug 16, 2024
f4c0a66
Merge branch 'devnet-ready' into use-subtensor-pallet-in-admin
keithtensor Aug 16, 2024
f1866df
draft take tests
Aug 9, 2024
aa19201
chore: make rate limit prettier
Aug 19, 2024
c68f4e4
chore: remove commented test
Aug 19, 2024
dc67f8f
chore: fmt
Aug 19, 2024
74fcd80
chore: tidy
Aug 19, 2024
ff87b7b
chore: use forked substrate fixed
Aug 19, 2024
8ab4573
clean code and fix a bug
open-junius Aug 19, 2024
e2f372b
remove unused dispatch
open-junius Aug 19, 2024
9cbc5a2
Fix merge conflict
keithtensor Aug 19, 2024
bb66f09
cargo fmt
keithtensor Aug 19, 2024
1f92aa1
Merge pull request #699 from opentensor/feat/childkey_take
unconst Aug 19, 2024
42fdebf
Merge pull request #709 from opentensor/use-subtensor-pallet-in-admin
unconst Aug 19, 2024
2fc1e3c
Merge pull request #741 from opentensor/feat/substrate_fixed
unconst Aug 19, 2024
e7aee7a
Merge branch 'devnet-ready' into subnet-identities
JohnReedV Aug 19, 2024
1be0904
Merge branch 'devnet-ready' into subnet-identities
JohnReedV Aug 19, 2024
57ed878
fix pallet index conflict
JohnReedV Aug 19, 2024
9047781
chore: max childkey take
Aug 19, 2024
b60176d
chore: add vars
Aug 19, 2024
488e2cf
Merge pull request #742 from opentensor/feat/maxchildkeytake
unconst Aug 19, 2024
e432f4c
Merge remote-tracking branch 'origin/devnet-ready' into feat/schedule…
Aug 19, 2024
51aa073
Merge remote-tracking branch 'origin/devnet' into feat/scheduled_cold…
Aug 19, 2024
4ebbf92
Merge pull request #713 from opentensor/feat/scheduled_coldkey_swap_back
unconst Aug 19, 2024
939f21c
Merge pull request #743 from opentensor/devnet-ready
unconst Aug 19, 2024
1e4312b
fix workspace root package
sam0x17 Aug 19, 2024
917217f
bump CI
sam0x17 Aug 19, 2024
6b621e6
add sudo call to set duration
open-junius Aug 20, 2024
092a373
add value check
open-junius Aug 20, 2024
9be558e
upgrade version
open-junius Aug 20, 2024
0d34bfc
Merge branch 'devnet-ready' into subnet-identities
JohnReedV Aug 20, 2024
1666746
fix pallet index conflict
JohnReedV Aug 20, 2024
8d9bb2d
add more test
open-junius Aug 20, 2024
9424806
fix clippy
open-junius Aug 20, 2024
8ea7255
update dissolve network origin
open-junius Aug 21, 2024
039bb08
fix unit test
open-junius Aug 21, 2024
858141f
Merge branch 'devnet-ready' into swap_ids
JohnReedV Aug 21, 2024
120da50
fix tests and benchmarks
JohnReedV Aug 21, 2024
bc1631e
add a delegate ID
JohnReedV Aug 21, 2024
93233fc
clippy
JohnReedV Aug 21, 2024
979d46d
bump spec
JohnReedV Aug 22, 2024
cdb0759
bump spec
JohnReedV Aug 22, 2024
b4c1712
fix comment index
open-junius Aug 23, 2024
9e2686e
Merge pull request #747 from opentensor/swap_ids
unconst Aug 23, 2024
e2a60a1
Merge pull request #745 from opentensor/junius-add-sudo-call-for-sche…
unconst Aug 23, 2024
3496c34
Merge pull request #744 from opentensor/sam-fix-workspace-deps
unconst Aug 23, 2024
2c2a15d
Merge branch 'devnet-ready' into subnet-identities
unconst Aug 23, 2024
8c17cfd
Merge pull request #736 from opentensor/subnet-identities
unconst Aug 23, 2024
41b6ae6
feat: implement subnetinfov2 , add_network with identities
Aug 26, 2024
803c5e3
remove user_add_network
JohnReedV Aug 26, 2024
619757f
fix benchmarks
JohnReedV Aug 26, 2024
5af9888
revert rename user_add_network
JohnReedV Aug 26, 2024
5567133
Merge pull request #753 from opentensor/spiigot/subnet_info_versioning
JohnReedV Aug 26, 2024
c23c7fd
Merge pull request #752 from opentensor/feat/subnet_info_versioning
unconst Aug 27, 2024
3404a5b
fix benchmark_dissolve_network
sam0x17 Aug 27, 2024
26bb8f6
fix test_user_ad_network_with_identify_fields_ok()
sam0x17 Aug 27, 2024
8176f57
simplify cargo test CI step, always check benchmarks + other feats
sam0x17 Aug 27, 2024
898f460
Merge remote-tracking branch 'origin/devnet-ready' into sam-fix-bench…
sam0x17 Aug 27, 2024
a81541c
Merge pull request #757 from opentensor/devnet-ready
unconst Aug 27, 2024
ffc762b
add root weights proxy
camfairchild Aug 27, 2024
78f1d94
fmt
camfairchild Aug 27, 2024
a23860c
fix typo
camfairchild Aug 27, 2024
778cb03
Merge remote-tracking branch 'origin/testnet' into devnet
Aug 27, 2024
a26aecd
Merge pull request #763 from opentensor/chore/testnet_merge_conflict
unconst Aug 27, 2024
435d15c
fix and explicitly set pallet indicies
orriin Aug 28, 2024
9ddc2eb
bump spec version
orriin Aug 28, 2024
bdaf7d0
Merge pull request #764 from opentensor/fix-pallet-indicies
unconst Aug 28, 2024
a0a4652
Merge remote-tracking branch 'origin/devnet' into devnet-ready
Aug 28, 2024
bc15020
completely revamp Dockerfile to be better :O
sam0x17 Aug 28, 2024
bb932e2
chore: add metadatahash, build images only on publish tags
Aug 28, 2024
12140e4
Merge pull request #768 from opentensor/chore/devnet_merge_conflic
unconst Aug 28, 2024
52d3c46
Add token argument to the publish script
keithtensor Aug 29, 2024
506e780
add neuron certificate handling
andreea-popescu-reef Aug 8, 2024
dbbd79a
add missing argument description
andreea-popescu-reef Aug 26, 2024
51df2e4
remove rpc call
andreea-popescu-reef Aug 26, 2024
1b7402d
clear neuron
andreea-popescu-reef Aug 27, 2024
b5d7c0e
clippy tests
andreea-popescu-reef Aug 28, 2024
05d0d8d
rebase clippy
andreea-popescu-reef Aug 31, 2024
ab0a240
chore: bump spec version
Sep 2, 2024
5929fae
Merge remote-tracking branch 'origin/devnet-ready' into feat/root-wei…
Sep 2, 2024
2aad6fe
cleanup get_neuron_certificate
andreea-popescu-reef Sep 2, 2024
0ebf9a6
Merge pull request #771 from opentensor/add-token-argument-to-publish
unconst Sep 3, 2024
0f13241
Merge pull request #759 from opentensor/sam-fix-benchmarks
unconst Sep 3, 2024
fe5f5aa
Merge pull request #761 from opentensor/feat/root-weights-proxy
distributedstatemachine Sep 3, 2024
6b89f64
bounded vec
andreea-popescu-reef Sep 6, 2024
162453e
spec version and fmt
andreea-popescu-reef Sep 9, 2024
96b4982
Merge branch 'devnet-ready' into encrypt
andreea-popescu-reef Sep 9, 2024
9614193
backport clippy silencing
ppolewicz Sep 25, 2024
eacda1e
Remove a small refactor in runtime/src/lib.rs
ppolewicz Sep 26, 2024
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: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.devcontainer
.github
.vscode
!scripts/init.sh
target
target/
.dockerignore
Dockerfile
Empty file.
7 changes: 4 additions & 3 deletions .github/workflows/check-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Devnet Deploy Check

on:
pull_request:
branches: [devnet]
branches: [devnet, devnet-ready]

env:
CARGO_TERM_COLOR: always
Expand All @@ -11,6 +11,7 @@ jobs:
check-spec-version:
name: Check spec_version bump
runs-on: SubtensorCI
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
steps:
- name: Dependencies
run: |
Expand All @@ -37,7 +38,7 @@ jobs:
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
echo "$local_spec_version > $spec_version ✅"

check-devnet-migrations:
name: check devnet migrations
runs-on: ubuntu-22.04
Expand All @@ -51,4 +52,4 @@ jobs:
runtime-package: "node-subtensor-runtime"
node-uri: "wss://dev.chain.opentensor.ai:443"
checks: "pre-and-post"
extra-args: "--disable-spec-version-check --no-weight-warnings"
extra-args: "--disable-spec-version-check --no-weight-warnings"
49 changes: 22 additions & 27 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,33 +113,30 @@ jobs:
- name: cargo clippy --workspace --all-targets -- -D warnings
run: cargo clippy --workspace --all-targets -- -D warnings

cargo-clippy-all-features:
name: cargo clippy --all-features
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
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
# RUSTFLAGS: -A warnings
RUSTV: ${{ matrix.rust-branch }}
RUSTFLAGS: -D 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: |
Expand All @@ -158,11 +155,14 @@ jobs:
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
# runs cargo test --workspace
cargo-test:
name: cargo test
- name: check lints
run: |
set -o pipefail # Ensure the pipeline fails if any command in the pipeline fails
cargo check 2>&1 | sed -r "s/\x1B\[[0-9;]*[mK]//g" | tee /dev/tty | grep -q "^warning:" && \
(echo "Build emitted the following warnings:" >&2 && exit 1) || echo "No warnings found."

cargo-clippy-all-features:
name: cargo clippy --all-features
runs-on: SubtensorCI
strategy:
matrix:
Expand All @@ -187,7 +187,7 @@ jobs:
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Install dependencies
run: |
Expand All @@ -201,17 +201,16 @@ jobs:
components: rustfmt, clippy
profile: minimal

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

- name: cargo test --workspace
run: cargo test --workspace

# runs cargo test --workspace --features=runtime-benchmarks
cargo-test-benchmarks:
name: cargo test w/benchmarks
- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
# runs cargo test --workspace
cargo-test:
name: cargo test
runs-on: SubtensorCI
strategy:
matrix:
Expand Down Expand Up @@ -255,8 +254,8 @@ jobs:
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo test --workspace --features=runtime-benchmarks
run: cargo test --workspace --features=runtime-benchmarks
- name: cargo test --workspace --all-features
run: cargo test --workspace --all-features

# ensures cargo fix has no trivial changes that can be applied
cargo-fix:
Expand Down Expand Up @@ -338,7 +337,3 @@ jobs:

- name: Check features
run: zepter run check




3 changes: 2 additions & 1 deletion .github/workflows/check-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Testnet Deploy Check

on:
pull_request:
branches: [testnet]
branches: [testnet, testnet-ready]

env:
CARGO_TERM_COLOR: always
Expand All @@ -11,6 +11,7 @@ jobs:
check-spec-version:
name: Check spec_version bump
runs-on: SubtensorCI
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-spec-version-bump') }}
steps:
- name: Dependencies
run: |
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/devnet-labels.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/devnet-ready-labels.yml

This file was deleted.

33 changes: 13 additions & 20 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,49 +1,42 @@
name: Publish Docker Image

on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- main
workflow_dispatch:
release:
types: [published]

permissions:
contents: read
packages: write
actions: read
security-events: write
contents: read
packages: write
actions: read
security-events: write

jobs:
publish:
runs-on: SubtensorCI

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: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand All @@ -52,4 +45,4 @@ jobs:
tags: |
${{ steps.meta.outputs.tags }}
ghcr.io/${{ github.repository }}:latest
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
19 changes: 0 additions & 19 deletions .github/workflows/testnet-labels.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/testnet-ready-labels.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

**/*.lock

*.ipynb

# Generated by code coverage
*.profraw
*.profdata
Expand Down
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
##
# rustup run nightly -- rustfmt node/src/main.rs

# max_width = 100
# max_width = 180
# hard_tabs = false
# tab_spaces = 4
# newline_style = "Auto"
Expand Down
Loading
Loading