Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
696 commits
Select commit Hold shift + click to select a range
5122fa7
wait rate limit in tests
camfairchild Jan 27, 2025
78f04ed
Merge branch 'devnet-ready' into feat/no-more-weird-runtime-api-encoding
camfairchild Jan 27, 2025
f81608d
use rem root alpha
camfairchild Jan 27, 2025
13bd30b
fix test involving alpha out emission
camfairchild Jan 27, 2025
f7e9566
fix alpha out expectation
camfairchild Jan 27, 2025
33c6af0
Ban to_num, organize safe math into a crate
gztensor Jan 27, 2025
46f0295
Avoid using from_num
gztensor Jan 27, 2025
dfabf43
Merge devnet-ready
gztensor Jan 27, 2025
72f35e0
Fix zepter
gztensor Jan 27, 2025
ffa8a6e
Fix zepter
gztensor Jan 27, 2025
948afbb
Merge pull request #1198 from opentensor/chore/safer-math
sam0x17 Jan 27, 2025
578263b
Merge pull request #1196 from opentensor/fix/swap-pending-childkeys-o…
sam0x17 Jan 27, 2025
c084139
Merge branch 'devnet-ready' into fix/use-rem-root-alpha
camfairchild Jan 27, 2025
f712ba0
Merge pull request #1200 from opentensor/fix/use-rem-root-alpha
sam0x17 Jan 27, 2025
84c9434
Merge pull request #1202 from opentensor/devnet-ready
sam0x17 Jan 27, 2025
95d2d53
Invalidate staking and unstaking transactions if liquidity is inadequate
gztensor Jan 27, 2025
c84db66
Merge pull request #1203 from opentensor/devnet
sam0x17 Jan 27, 2025
bbc542d
Fix swap_alpha_for_tao
gztensor Jan 27, 2025
680b5bc
Set DefaultMinimumPoolLiquidity
gztensor Jan 27, 2025
c55b226
add new fields to ChainIdentity and SubnetIdentity
JohnReedV Jan 28, 2025
682ac1a
Merge branch 'devnet-ready' into neuron-precompile
open-junius Jan 28, 2025
4939f5d
Merge branch 'devnet-ready' into neuron-weights-set
open-junius Jan 28, 2025
e616286
Merge branch 'devnet-ready' into fix/pool-safety-brackets
gztensor Jan 28, 2025
0401f08
Fix test_do_move_max_values
gztensor Jan 28, 2025
dd25142
Add tests
gztensor Jan 28, 2025
ac1e3cb
Merge branch 'devnet-ready' into feat/limit-staking
gztensor Jan 28, 2025
693221c
Fix unsafe math
gztensor Jan 28, 2025
624dd07
Update pallets/subtensor/src/staking/stake_utils.rs
gztensor Jan 28, 2025
7fc9b41
Update pallets/subtensor/src/staking/stake_utils.rs
gztensor Jan 28, 2025
f4c2ac5
Merge pull request #1204 from opentensor/fix/pool-safety-brackets
sam0x17 Jan 28, 2025
0c5eaec
add migration and test
JohnReedV Jan 28, 2025
7eaacf9
make min burn only callable by root
camfairchild Jan 28, 2025
4cf3a68
add tests for reg disable -> tao-in == 0
camfairchild Jan 28, 2025
17308f5
disable TAO into subnet if reg are disabled
camfairchild Jan 28, 2025
e0e2b84
add stake info by hk, ck, netuid
camfairchild Jan 28, 2025
067ddd3
Revert "add stake info by hk, ck, netuid"
camfairchild Jan 28, 2025
19d35a6
Add stakeinfo by hk, ck, netuid
camfairchild Jan 28, 2025
b1e7fab
Merge pull request #1207 from opentensor/feat/rao-reg-enabled-changes
sam0x17 Jan 28, 2025
fce0835
typo
camfairchild Jan 28, 2025
5a1f1f2
Replace frontier's RuntimeHelper with manual dispatcher
ales-otf Jan 28, 2025
2bf5854
add subnet volume to runtimeAPIs
camfairchild Jan 28, 2025
ed6ba75
Merge pull request #1208 from opentensor/fix/evm-gas-estimation
sam0x17 Jan 28, 2025
d66f77f
Move checked_sqrt to save math and add tests
gztensor Jan 28, 2025
fd77135
Change type for pool k to I110F18
gztensor Jan 28, 2025
af3fcf7
Raise minimum pool liquidity to 1 TAO
gztensor Jan 28, 2025
7ca0a02
Merge pull request #1211 from opentensor/fix/k-precision
sam0x17 Jan 28, 2025
c67da21
Merge devnet-ready
gztensor Jan 28, 2025
baf4a95
Format
gztensor Jan 28, 2025
bffbcd7
Implement remove_stake_limit
gztensor Jan 28, 2025
0a99ee9
Fix clippy
gztensor Jan 28, 2025
1bc4d6e
Fix tests
gztensor Jan 29, 2025
84a27b4
Merge pull request #1190 from opentensor/feat/limit-staking
sam0x17 Jan 29, 2025
06ba8e5
Add an option to run try-runtime script with a snapshot
ales-otf Jan 29, 2025
a3efa41
Merge branch 'devnet-ready' into fix/total-stake-migration
ales-otf Jan 29, 2025
3678d4c
Update spec version
ales-otf Jan 29, 2025
79ed9e3
Add allow_partial parameter for add_stake_limit and remove_stake_limit
gztensor Jan 29, 2025
55203de
Bump spec version to 225
gztensor Jan 29, 2025
0a2635f
Update pallets/subtensor/src/tests/staking.rs
sam0x17 Jan 29, 2025
c3822c7
Update pallets/subtensor/src/staking/remove_stake.rs
sam0x17 Jan 29, 2025
f1886e2
Merge pull request #1213 from opentensor/feat/fill-or-kill-staking-or…
sam0x17 Jan 29, 2025
ae60405
merge with target branch
open-junius Jan 30, 2025
f644f26
refactor code
open-junius Jan 30, 2025
40bc8d9
fix cargo audit working in CI :tada:
sam0x17 Jan 30, 2025
df596e6
bump CI
sam0x17 Jan 30, 2025
6f825cc
upgrade futures-util
sam0x17 Jan 30, 2025
e876609
ignore some unmaintained advisories
sam0x17 Jan 30, 2025
1690ce2
add another unmaintained
sam0x17 Jan 30, 2025
4e7cd7f
cargo update url
sam0x17 Jan 30, 2025
c6d0b44
fix more advisories
sam0x17 Jan 30, 2025
4166c5e
fix more advisories
sam0x17 Jan 30, 2025
f25cabc
add len check
open-junius Jan 30, 2025
222da82
add len check
open-junius Jan 30, 2025
f8d5d4d
Fix rao migration did not update TotalIssuance
ales-otf Jan 30, 2025
a7fffd8
Refactor TryState
ales-otf Jan 30, 2025
d39a6ea
Reformat
ales-otf Jan 30, 2025
998867e
fix wrong origin
open-junius Jan 30, 2025
cdfffaf
fix clippy
open-junius Jan 30, 2025
051b531
Merge pull request #1110 from opentensor/neuron-precompile
sam0x17 Jan 30, 2025
f7f1b66
Merge pull request #1214 from opentensor/sam-fix-cargo-audit-again
sam0x17 Jan 30, 2025
fbc3a3e
Implement slippage safe move_stake_limit
gztensor Jan 30, 2025
86fdc36
Merge pull request #1166 from opentensor/fix/total-stake-migration
sam0x17 Jan 30, 2025
abec477
Validate slippage-safe staking extrinsics
gztensor Jan 30, 2025
2395e74
Merge branch 'devnet-ready' into fix/validate_limit_txs
gztensor Jan 30, 2025
a6e7b49
Merge pull request #1215 from opentensor/fix/validate_limit_txs
sam0x17 Jan 30, 2025
5bc7f9c
fix some CI actions not triggering on newly opened pull request
sam0x17 Jan 30, 2025
271af2b
no owner dereg & tests
JohnReedV Jan 30, 2025
5b112f9
Merge pull request #1212 from opentensor/fix/set-minimum-liquidity-1-tao
sam0x17 Jan 30, 2025
628e38a
Merge pull request #1209 from opentensor/feat/stake-info-hk-ck-netuid
sam0x17 Jan 30, 2025
28321a1
Merge pull request #1210 from opentensor/feat/add-subnet-volume-to-ru…
sam0x17 Jan 30, 2025
ccf6b68
Merge pull request #1216 from opentensor/sam-fix-ci-triggers
sam0x17 Jan 30, 2025
bbbfb3a
update existing tests
JohnReedV Jan 30, 2025
645689d
Double-size SubnetVolume to u128
gztensor Jan 30, 2025
97be330
Merge pull request #1218 from opentensor/fix/double-subnet-volume-size
sam0x17 Jan 30, 2025
2e7c08b
Add swap_stake_limit
gztensor Jan 30, 2025
4fd3e85
Merge branch 'devnet-ready' into feat/slippage-safe-stake-moving
gztensor Jan 30, 2025
49f4e0a
Add tests, fix corner case bugs
gztensor Jan 30, 2025
3dd8519
fix all conflict
open-junius Jan 31, 2025
6f607e1
commit Cargo.lock
open-junius Jan 31, 2025
bb2a759
add comments
open-junius Jan 31, 2025
b2d57a7
fix wrong origin
open-junius Jan 31, 2025
4acb0ce
fix clippy
open-junius Jan 31, 2025
8cd99e7
Remove pallet-dynamic-fee and associated inherent data
ales-otf Jan 31, 2025
dd50902
Add tests, fix bugs
gztensor Jan 31, 2025
c4b1bf5
Cleanup
gztensor Jan 31, 2025
e6ebe8f
Add subnet volume migration to fix try-runtime
gztensor Jan 31, 2025
ca17411
Revert endpoint change in try-runtime script
gztensor Jan 31, 2025
54959f3
Merge branch 'devnet-ready' into feat/no-more-weird-runtime-api-encoding
basfroman Jan 31, 2025
fa5a388
Use resulting average price formula for add-remove limit stake
gztensor Feb 1, 2025
5d05ac8
commit Cargo.lock
open-junius Feb 3, 2025
224601c
cargo clippy
open-junius Feb 3, 2025
e3be327
cargo fix
open-junius Feb 3, 2025
375ad5c
safe math usage
open-junius Feb 3, 2025
4cfc725
upgrade openssl
open-junius Feb 3, 2025
d75930f
Merge pull request #1222 from opentensor/fix/migration-subnet-volume
sam0x17 Feb 3, 2025
9958450
Merge pull request #1219 from opentensor/feat/slippage-safe-stake-moving
sam0x17 Feb 3, 2025
053fa0f
Merge branch 'devnet-ready' into neuron-weights-set
open-junius Feb 3, 2025
7df774b
Merge branch 'devnet-ready' into fix/remove-dynamic-fee
ales-otf Feb 3, 2025
380587c
Merge branch 'devnet-ready' into feat/identity-upgrades
JohnReedV Feb 3, 2025
ea96bec
address freeze_struct
JohnReedV Feb 3, 2025
a7232b0
rename commit_reveal_period
JohnReedV Feb 3, 2025
d118c09
apply criticial openssl update to fix RUSTSEC-2025-0004 (openssl)
sam0x17 Feb 3, 2025
3f63cba
Merge pull request #1150 from opentensor/neuron-weights-set
sam0x17 Feb 3, 2025
12f483c
remove subnet_info_v3
JohnReedV Feb 3, 2025
ea136bb
address lint
JohnReedV Feb 3, 2025
5ec05d6
Merge pull request #1226 from opentensor/sam-update-openssl
sam0x17 Feb 3, 2025
f0ceef7
Merge pull request #1220 from opentensor/fix/remove-dynamic-fee
sam0x17 Feb 3, 2025
2d32d96
update register_network with identity precompile
JohnReedV Feb 3, 2025
6d483b2
fix merge commit
camfairchild Feb 3, 2025
625a3e0
Merge branch 'devnet-ready' into feat/identity-upgrades
JohnReedV Feb 3, 2025
7769812
Merge pull request #1225 from opentensor/devnet-ready
sam0x17 Feb 3, 2025
b8b5409
bump spec
camfairchild Feb 3, 2025
0d749c8
Merge pull request #1231 from opentensor/devnet
sam0x17 Feb 3, 2025
913fb1a
remove SubnetInfov3 struct
JohnReedV Feb 3, 2025
69d2b77
rename emission_values => emission_value
JohnReedV Feb 3, 2025
6766f1d
bump spec
JohnReedV Feb 3, 2025
86e898f
Merge pull request #1227 from opentensor/feat/no-more-weird-runtime-a…
sam0x17 Feb 4, 2025
9a271fb
Merge pull request #1233 from opentensor/devnet-ready
sam0x17 Feb 4, 2025
40c8214
Merge branch 'devnet-ready' into feat/identity-upgrades
camfairchild Feb 4, 2025
0213918
use saturating math
JohnReedV Feb 4, 2025
d479346
add cleaned coinbase
unconst Feb 4, 2025
547ca27
noclaim
unconst Feb 4, 2025
1a2ec64
remove complexity
unconst Feb 4, 2025
5113b04
non scaled tao emission
unconst Feb 5, 2025
9f95dc0
bump
unconst Feb 5, 2025
a837ef1
fix test
unconst Feb 5, 2025
ed0b55b
Merge pull request #1237 from opentensor/non_scaled
sam0x17 Feb 5, 2025
d81238a
clean coinbase
unconst Feb 5, 2025
b144f21
pre merge
unconst Feb 5, 2025
8ec029d
Merge branch 'devnet-ready' of https://github.com/opentensor/subtenso…
unconst Feb 5, 2025
f29c736
no tao in for non registration
unconst Feb 5, 2025
d4e37e8
Merge pull request #1240 from opentensor/testnet
sam0x17 Feb 5, 2025
ee37f6d
move to moving prices rather than tao reserves
unconst Feb 5, 2025
f7058a2
Merge pull request #1242 from opentensor/devnet
sam0x17 Feb 5, 2025
e252e90
price
unconst Feb 5, 2025
b2639e7
moving alpha
unconst Feb 5, 2025
6c946db
bump spec
JohnReedV Feb 5, 2025
ea355f2
Fix tests
gztensor Feb 5, 2025
f91e7ca
add moving price tests
unconst Feb 5, 2025
160b773
Merge branch 'nonclaim' of https://github.com/opentensor/subtensor in…
unconst Feb 5, 2025
e4ccdfa
add alpha in tests
unconst Feb 5, 2025
ba80bbb
Fix all tests
gztensor Feb 5, 2025
30475f1
Merge branch 'nonclaim' of github.com:opentensor/subtensor into nonclaim
gztensor Feb 5, 2025
3eca45f
Format
gztensor Feb 5, 2025
1ffefe1
Fix unsafe math
gztensor Feb 5, 2025
8af65df
alpha tests
unconst Feb 5, 2025
009961d
fix test
unconst Feb 5, 2025
0e367f7
set tao weight
unconst Feb 5, 2025
290498e
reset default staking fee
unconst Feb 5, 2025
ab105c7
fix names
unconst Feb 5, 2025
452dbac
add mainnet names
unconst Feb 5, 2025
5c96afd
cargo clippy
unconst Feb 5, 2025
bce7cc6
cargo fmt
unconst Feb 5, 2025
8729b25
Merge branch 'devnet-ready' into nonclaim
unconst Feb 5, 2025
8c8bc16
Merge pull request #1241 from opentensor/nonclaim
sam0x17 Feb 5, 2025
ffe3cc0
Merge pull request #1205 from opentensor/feat/identity-upgrades
sam0x17 Feb 5, 2025
c6491fc
Merge pull request #1244 from opentensor/devnet-ready
sam0x17 Feb 5, 2025
c18c3be
add a global min burn and migration
camfairchild Feb 5, 2025
a4a0595
Merge pull request #1235 from opentensor/devnet
sam0x17 Feb 5, 2025
c7d8010
add more tests for root pending etc
unconst Feb 5, 2025
6872057
Merge branch 'nonclaim' of https://github.com/opentensor/subtensor in…
unconst Feb 5, 2025
102e6cc
alpha divs
unconst Feb 6, 2025
4f900ca
fix test for root
unconst Feb 6, 2025
2b8ed3a
new test root tao
unconst Feb 6, 2025
fb4da1c
fix wrong parse function
open-junius Feb 6, 2025
2a57be4
fix test
unconst Feb 6, 2025
ae25f59
add toggle off for transfers
unconst Feb 6, 2025
811e7d5
Merge pull request #1246 from opentensor/hotfix-wrong-parse-account-id
sam0x17 Feb 6, 2025
33a842d
Merge branch 'feat/no-owner-dereg' into nonclaim
JohnReedV Feb 6, 2025
ecd265d
delete unused workflow file
sam0x17 Feb 6, 2025
95665f1
Merge pull request #1247 from opentensor/sam-fix-empty-workflow-file
sam0x17 Feb 6, 2025
841c913
Fix validation for transfer toggle
gztensor Feb 6, 2025
dafc7a2
Merge branch 'nonclaim' of github.com:opentensor/subtensor into nonclaim
gztensor Feb 6, 2025
913231b
Merge remote-tracking branch 'origin/devnet-ready' into nonclaim
sam0x17 Feb 6, 2025
a2969f8
Merge branch 'main' into nonclaim-into-main
camfairchild Feb 6, 2025
66f0097
remove duplicate tests
camfairchild Feb 6, 2025
c7a3238
fix subnet creation logic
unconst Feb 6, 2025
a2016ee
Merge pull request #1250 from opentensor/nonclaim-into-main
sam0x17 Feb 6, 2025
3be3007
cargo fmt
sam0x17 Feb 6, 2025
f95153e
add new test
unconst Feb 6, 2025
9a7f491
Merge branch 'nonclaim' of https://github.com/opentensor/subtensor in…
unconst Feb 6, 2025
c427fac
bump spec version to 228
sam0x17 Feb 6, 2025
c28cac9
Add test test_drain_alpha_childkey_parentkey
gztensor Feb 6, 2025
eae43ff
Merge pull request #1248 from opentensor/nonclaim
sam0x17 Feb 6, 2025
d70a9a4
Merge pull request #1251 from opentensor/devnet-ready
sam0x17 Feb 6, 2025
6eaa766
Merge pull request #1252 from opentensor/devnet
sam0x17 Feb 6, 2025
78d5703
spec bump
camfairchild Feb 6, 2025
c9e8c1a
Merge branch 'devnet-ready' into feat/min-burn-static
camfairchild Feb 6, 2025
bf6896f
Merge pull request #1245 from opentensor/feat/min-burn-static
sam0x17 Feb 6, 2025
f2caf7d
fixes to the childkey emission
unconst Feb 7, 2025
bf0583e
commit Cargo.lock
unconst Feb 7, 2025
de64b11
cargo clippy
unconst Feb 7, 2025
f0ee331
cargo fmt
unconst Feb 7, 2025
61e74ac
Merge pull request #1257 from opentensor/nonclaim
unconst Feb 7, 2025
279d215
fix min lock
unconst Feb 7, 2025
40bfebf
Merge branch 'main' into nonclaim
unconst Feb 7, 2025
fb09aa8
fmt
camfairchild Feb 7, 2025
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
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
Empty file.
14 changes: 12 additions & 2 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- labeled
- unlabeled
- synchronize
- opened
concurrency:
group: cargo-audit-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -24,10 +25,19 @@ jobs:
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler

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

- name: Display cargo-audit --version
run: cargo audit --version

- name: cargo audit
run: cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this
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
2 changes: 1 addition & 1 deletion .github/workflows/check-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Devnet Deploy Check
on:
pull_request:
branches: [devnet, devnet-ready]
types: [labeled, unlabeled, synchronize]
types: [labeled, unlabeled, synchronize, opened]

env:
CARGO_TERM_COLOR: always
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-finney.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Finney Deploy Check
on:
pull_request:
branches: [finney, main]
types: [labeled, unlabeled, synchronize]
types: [labeled, unlabeled, synchronize, opened]

env:
CARGO_TERM_COLOR: always
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Testnet Deploy Check
on:
pull_request:
branches: [testnet, testnet-ready]
types: [labeled, unlabeled, synchronize]
types: [labeled, unlabeled, synchronize, opened]

env:
CARGO_TERM_COLOR: always
Expand Down
31 changes: 22 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ on:
release:
types: [published]
workflow_dispatch:
inputs:
branch-or-tag:
description: "Branch or tag to use for the Docker image tag and ref to checkout (optional)"
required: false
default: ""

push:
branches:
- devnet-ready
- devnet
- testnet

permissions:
contents: read
Expand All @@ -16,8 +27,18 @@ jobs:
runs-on: SubtensorCI

steps:
- name: Determine Docker tag and ref
id: tag
run: |
branch_or_tag="${{ github.event.inputs.branch-or-tag || github.ref_name }}"
echo "Determined branch or tag: $branch_or_tag"
echo "tag=$branch_or_tag" >> $GITHUB_ENV
echo "ref=$branch_or_tag" >> $GITHUB_ENV

- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ env.ref }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand All @@ -32,18 +53,10 @@ jobs:
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:
context: .
push: true
tags: |
${{ steps.meta.outputs.tags }}
ghcr.io/${{ github.repository }}:latest
labels: ${{ steps.meta.outputs.labels }}
ghcr.io/${{ github.repository }}:${{ env.tag }}
1 change: 1 addition & 0 deletions .github/workflows/e2e-bittensor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
python3 -m pip install -e .
python3 -m pip install torch
python3 -m pip install pytest
python3 -m pip install -r requirements/dev.txt

- name: Run tests
working-directory: ${{ github.workspace }}/bittensor
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/label-triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
pull_request:
types:
- labeled
- unlabeled
- synchronize
- opened

permissions:
issues: write
Expand Down
Loading
Loading