Skip to content

mainnet deploy 5/27/2025 #1634

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

Merged
merged 707 commits into from
May 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
707 commits
Select commit Hold shift + click to select a range
ef14fc4
update weight values for v2
JohnReedV Apr 30, 2025
7a88828
bump spec
JohnReedV Apr 30, 2025
3935399
update more weight values
JohnReedV Apr 30, 2025
7c78a10
update weight
JohnReedV May 1, 2025
50b00c1
update test
JohnReedV May 1, 2025
ff8c1f2
put migration in hook
open-junius May 1, 2025
b311ee1
remove wrong imports
open-junius May 1, 2025
e5b269b
Debug
keithtensor May 1, 2025
aae7de2
fix update_cap/update_min_deposit minimum value check
l0r1s May 1, 2025
0b4194e
fix withdraw to restrict from the origin and not someone else
l0r1s May 1, 2025
0fbc067
Merge branch 'devnet-ready' into yuma4-update-to-upstream
camfairchild May 1, 2025
93d7d7f
fixed withdraw logic for creator
l0r1s May 1, 2025
541d227
Ensure coldkey is signing the tx
keithtensor May 1, 2025
fd710f7
fix refund/dissolve + tests
l0r1s May 1, 2025
121e4f7
fix doc
l0r1s May 1, 2025
392e677
Check that the block number associated is correct
keithtensor May 1, 2025
3ffc874
Debug
keithtensor May 1, 2025
50550ab
update weights
l0r1s May 1, 2025
da99c5b
fix comments
l0r1s May 1, 2025
1c86c67
Merge branch 'devnet-ready' into feat/use-on-chain-subnet-identity
camfairchild May 1, 2025
ca4d2ef
fmt
camfairchild May 1, 2025
e906b32
bump spec_version
l0r1s May 1, 2025
14a86cd
Update get_max_amount_* methods.
shamil-gadelshin Apr 30, 2025
a6e7de8
Compare bytes
keithtensor May 1, 2025
e98df7e
Merge pull request #1552 from opentensor/feat/stake-limit-precompiles
sam0x17 May 1, 2025
fe58185
Merge pull request #1584 from opentensor/upgrade-subtensor-benchmarks-v2
sam0x17 May 1, 2025
aa4ac19
update weights
JohnReedV May 1, 2025
b119199
remove migration
camfairchild May 1, 2025
63b72bb
remove comment
camfairchild May 1, 2025
2dca834
Merge pull request #1501 from opentensor/feat/use-on-chain-subnet-ide…
sam0x17 May 1, 2025
21fb6a5
Merge pull request #1587 from opentensor/l0r1s/fix-crowdloan-logic-is…
sam0x17 May 1, 2025
153e3da
add event for yuma3 toggle
camfairchild May 1, 2025
9f91dad
Debug
keithtensor May 2, 2025
cb46c82
Ensure signature is in EIP191 format
keithtensor May 2, 2025
4e6c6b6
Remove unused imports
keithtensor May 2, 2025
2958ba9
Merge branch 'devnet-ready' into add-stake-limit-fix
shamil-gadelshin May 2, 2025
7748b8e
Merge branch 'devnet-ready' into add-stake-limit-fix
shamil-gadelshin May 2, 2025
a4794f9
Update benchmarks to V2 after merge.
shamil-gadelshin May 2, 2025
e6d17ca
Introduce SameSubnetId error for move and swap stake extrinsics.
shamil-gadelshin May 2, 2025
76d6c36
Ensure recovery ID of signature is normalized to 0 or 1
keithtensor May 2, 2025
ef5ce60
Satisfy linters
keithtensor May 2, 2025
8295710
Restore package.json
keithtensor May 2, 2025
4f192d5
script benchmarks all pallets
JohnReedV May 1, 2025
7086664
update dispatch weights for admin-utils
JohnReedV Apr 29, 2025
aba5d9f
update admin-utils weights
JohnReedV May 1, 2025
c2830ec
update weight
JohnReedV May 1, 2025
91134bf
add commitments benchmarks
JohnReedV May 1, 2025
3e08baf
add commitments weights
JohnReedV May 1, 2025
42bf08b
update commitments weights again
JohnReedV May 1, 2025
888ea8e
raise tolerance threshold 10% => 15%
JohnReedV May 1, 2025
a40792d
update drand weights
JohnReedV May 1, 2025
1d50da2
update drand writes
JohnReedV May 1, 2025
9dc13bd
use benchmarks runner instead of SubtensorCI
JohnReedV May 1, 2025
f9fa3cf
remove crowdloan from `validate-benchmarks`
JohnReedV May 1, 2025
b97326b
Merge branch 'devnet-ready' into precompile-uid-lookup
JohnReedV May 2, 2025
e398731
Merge pull request #1580 from opentensor/feat/allow-reschedule-failed…
open-junius May 4, 2025
3d3796c
Update comments.
shamil-gadelshin May 5, 2025
8efe071
Merge pull request #1518 from opentensor/precompile-uid-lookup
keithtensor May 5, 2025
c28ecc6
chore: fmt
camfairchild May 5, 2025
487c231
added log crate to crowdloan
l0r1s May 5, 2025
39cea2a
keep track of contributors count and allow a maximum of contributors,…
l0r1s May 5, 2025
203a8a3
fix tests
l0r1s May 5, 2025
ea8700e
added MaxContributors to runtime
l0r1s May 5, 2025
6ec5d63
fix migration name
l0r1s May 5, 2025
c0f5129
Add `start-call` patch for non-fast-blocks node
basfroman May 5, 2025
1fe18cb
bumping spec_version
basfroman May 5, 2025
d49c04e
added migration test
l0r1s May 5, 2025
6b37119
cargo clippy
l0r1s May 5, 2025
96cdf64
cargo fmt
l0r1s May 5, 2025
b4acaf8
Merge pull request #1577 from opentensor/add-stake-limit-fix
sam0x17 May 5, 2025
a4a2bd2
Merge pull request #1592 from opentensor/feat/roman/add-start-call-pa…
sam0x17 May 5, 2025
9d9f384
Merge pull request #1585 from opentensor/benchmark-all-pallets
sam0x17 May 5, 2025
83ad744
remove deprecated commitments storage
JohnReedV May 5, 2025
85fac14
fmt
JohnReedV May 5, 2025
ef47e7a
remove deprecated benchmark
JohnReedV May 5, 2025
5a6acbf
add migrate_remove_commitments_rate_limit
JohnReedV May 5, 2025
17715c1
add test_migrate_remove_commitments_rate_limit
JohnReedV May 5, 2025
6f57b8c
fmt
JohnReedV May 5, 2025
0ac6ea8
remove rate limit config
JohnReedV May 5, 2025
2db3c7d
clippy
JohnReedV May 5, 2025
84d185a
don't fully remove
JohnReedV May 5, 2025
759052e
ci: bump CI
JohnReedV May 5, 2025
e3156db
add to StakingHotkeys on inc stake
camfairchild May 5, 2025
580d42e
Merge pull request #1595 from opentensor/remove-deprecated-commitment…
sam0x17 May 5, 2025
92a4779
Merge pull request #1596 from opentensor/fix/add-to-staking-hotkeys-o…
sam0x17 May 5, 2025
2ff2b94
Ensure we only reset BondsMovingAverage to 975000 only if it exceeds
keithtensor May 6, 2025
6f49d83
reapply Cargo.lock from devnet-ready
l0r1s May 6, 2025
9e475e1
Merge branch 'devnet-ready' into feat/yuma3
l0r1s May 6, 2025
825f793
Merge branch 'devnet-ready' into check-same-netuids
shamil-gadelshin May 6, 2025
ae2d1f0
Merge branch 'devnet-ready' into l0r1s/crowdloan-contributors-limit
l0r1s May 6, 2025
016e7f3
propagate log/std in Cargo.toml
l0r1s May 6, 2025
2665274
Fixes
keithtensor May 6, 2025
d924289
cargo fmt
keithtensor May 6, 2025
632c1c9
Update benchmark weights
shamil-gadelshin May 6, 2025
991832c
ignore test that takes CLI input
camfairchild May 6, 2025
bcfebc4
Merge pull request #1598 from opentensor/fix-bonds-moving-average-reset
sam0x17 May 6, 2025
48a87e2
Rename error SameSubnetId -> SameNetuid
shamil-gadelshin May 6, 2025
08dd35e
move contributors count to Crowdloan struct and update migration
l0r1s May 6, 2025
e79e783
fix benchmark
l0r1s May 6, 2025
3f565fb
fix arithmetic
l0r1s May 6, 2025
3bebc53
fix name of storage value in evm test
camfairchild May 6, 2025
a58750f
extend patch step for localnet docker image
basfroman May 6, 2025
c9322a0
bumping spec_version
basfroman May 6, 2025
c059205
Merge pull request #1603 from opentensor/feat/roman/extend-patch-for-…
sam0x17 May 6, 2025
9a44538
add set yuma3 enabled to ABI
camfairchild May 6, 2025
79490d3
added freeze_struct to OldCrowdloanInfo
l0r1s May 7, 2025
8215998
Merge branch 'feat/yuma3' into feat/emit-event-on-yuma3-enable
l0r1s May 7, 2025
d3736c2
upgrade polkadot sdk to polkadot-stable2409-7 and frontier to last ma…
l0r1s May 7, 2025
dc7eb20
fix EvmBalance/SubstrateBalance issues
l0r1s May 7, 2025
d8e6c56
fix frontier dependencies commit hash + added fc-aura
l0r1s May 7, 2025
0e603a4
fix tests
l0r1s May 7, 2025
70d01dc
cargo fmt
l0r1s May 7, 2025
c085c39
Merge branch 'devnet-ready' into l0r1s/upgrade-polkadot-sdk-to-2409-7
l0r1s May 7, 2025
32b124f
Merge branch 'devnet-ready' into l0r1s/crowdloan-contributors-limit
l0r1s May 7, 2025
2e2bc58
Merge pull request #1605 from opentensor/feat/emit-event-on-yuma3-enable
sam0x17 May 7, 2025
067cd62
change frontier commit hash following frontier upgrade
l0r1s May 7, 2025
0b0dfd1
Merge pull request #1588 from opentensor/check-same-netuids
sam0x17 May 7, 2025
26ea39a
Merge branch 'devnet-ready' into l0r1s/upgrade-polkadot-sdk-to-2409-7
l0r1s May 7, 2025
b7f2fbb
Merge pull request #1591 from opentensor/l0r1s/crowdloan-contributors…
sam0x17 May 7, 2025
89278bb
remove direct indexing
camfairchild May 7, 2025
ca5d4b2
have Dockerfile use a local user instead of root
sam0x17 May 7, 2025
5f43a5f
clean up
sam0x17 May 7, 2025
ef3698a
Merge pull request #1610 from opentensor/sam-make-docker-secure
sam0x17 May 7, 2025
f8b239b
only respect the `skip-validate-benchmarks` label
JohnReedV May 7, 2025
f15a42f
update exit code
JohnReedV May 7, 2025
f5eec3b
stop moving on in skip case
JohnReedV May 7, 2025
7df461b
update names
JohnReedV May 7, 2025
4c62519
rerun on label removed
JohnReedV May 7, 2025
3b9b9b2
fix?
JohnReedV May 7, 2025
57a8290
fix??
JohnReedV May 7, 2025
c75a1ac
fix?
JohnReedV May 7, 2025
0ab04ce
oops
JohnReedV May 7, 2025
79d16e8
fix?
JohnReedV May 7, 2025
b637720
revert rerun
JohnReedV May 7, 2025
df21554
Ensure we only reset BondsMovingAverage to 975000 only if it exceeds
keithtensor May 6, 2025
8bec162
Fixes
keithtensor May 6, 2025
4610c8b
cargo fmt
keithtensor May 6, 2025
8493bbf
Introduce SameSubnetId error for move and swap stake extrinsics.
shamil-gadelshin May 2, 2025
f974a94
Rename error SameSubnetId -> SameNetuid
shamil-gadelshin May 6, 2025
5862a43
keep track of contributors count and allow a maximum of contributors,…
l0r1s May 5, 2025
774a5fc
fix tests
l0r1s May 5, 2025
d347707
fix migration name
l0r1s May 5, 2025
017f3ff
added migration test
l0r1s May 5, 2025
2918789
cargo clippy
l0r1s May 5, 2025
ae65d49
cargo fmt
l0r1s May 5, 2025
d3c05ee
move contributors count to Crowdloan struct and update migration
l0r1s May 6, 2025
677749a
fix benchmark
l0r1s May 6, 2025
8d23896
fix arithmetic
l0r1s May 6, 2025
f736382
added freeze_struct to OldCrowdloanInfo
l0r1s May 7, 2025
b43e332
have Dockerfile use a local user instead of root
sam0x17 May 7, 2025
7ca5bcb
clean up
sam0x17 May 7, 2025
04a86f8
add yuma4 scenario test
andreea-popescu-reef Feb 4, 2025
4a16441
fix alpha values
andreea-popescu-reef Feb 5, 2025
5cd7527
tests cleanup
andreea-popescu-reef Feb 11, 2025
1b541e6
add BondsResetOn param
andreea-popescu-reef Feb 17, 2025
5d14a1b
add OnMetadataCommitment hook
andreea-popescu-reef Feb 17, 2025
c054429
add bonds reset
andreea-popescu-reef Feb 20, 2025
249901a
add ResetBondsFlag check for set_commitment
andreea-popescu-reef Feb 26, 2025
6222e21
fix bonds reset
andreea-popescu-reef Mar 21, 2025
59bcbf1
fix rebase
andreea-popescu-reef Mar 25, 2025
6ae811b
increased commitment fields to allow for reset_bonds flag
andreea-popescu-reef Apr 4, 2025
f122920
add LastBondsReset tracking
andreea-popescu-reef May 6, 2025
bd8a26b
Merge branch 'devnet-ready' into feat/yuma3
camfairchild May 7, 2025
9bcf700
remove comment
JohnReedV May 8, 2025
a35a6d5
fix?
JohnReedV May 8, 2025
d92946e
Merge branch 'devnet-ready' into l0r1s/upgrade-polkadot-sdk-to-2409-7
l0r1s May 8, 2025
0f9c291
Merge pull request #1593 from opentensor/feat/yuma3
sam0x17 May 8, 2025
c91987b
remove unneeded step
JohnReedV May 8, 2025
8162058
bump CI
JohnReedV May 8, 2025
9db9dd9
add CLI step
JohnReedV May 8, 2025
4920ad8
fix
JohnReedV May 8, 2025
9d12f6c
Update run-benchmarks.yml
JohnReedV May 8, 2025
39daeee
Merge pull request #1607 from opentensor/l0r1s/upgrade-polkadot-sdk-t…
sam0x17 May 8, 2025
b2e7ba5
Merge remote-tracking branch 'origin/devnet-ready' into feat/reset-bo…
sam0x17 May 8, 2025
0194c28
Merge pull request #1612 from opentensor/feat/reset-bonds-on-commitment
sam0x17 May 8, 2025
3c4d403
Merge remote-tracking branch 'origin/devnet-ready' into validate-benc…
sam0x17 May 8, 2025
987cd4b
bump
sam0x17 May 8, 2025
ecd3444
Merge pull request #1611 from opentensor/validate-benchmarks-only-res…
sam0x17 May 8, 2025
74d7f99
Merge pull request #1617 from opentensor/devnet-ready
sam0x17 May 8, 2025
026a292
add `./scripts/localnet_patch.sh` file
basfroman May 9, 2025
61cde66
update `.github/workflows/docker-localnet.yml` workflow
basfroman May 9, 2025
fcf2e4e
bump spec version
basfroman May 9, 2025
827e971
Merge pull request #1622 from opentensor/feat/roman/move-patcher-to-file
sam0x17 May 10, 2025
5f312e9
not check rate limit for reduce child take
open-junius May 12, 2025
cc31e65
cargo clippy
open-junius May 12, 2025
45f66a1
cargo fmt
open-junius May 12, 2025
5e43402
update benchmark
open-junius May 12, 2025
a3af33a
Add rustdocs to GH workflow
keithtensor May 12, 2025
7fd4300
remove the duplicated variant from the type info
l0r1s May 12, 2025
9f9426b
Change build machine to SubtensorCI
keithtensor May 12, 2025
4340fb9
Merge pull request #1626 from opentensor/fix/yuma3-polkadotjs-bug
sam0x17 May 12, 2025
81cd50b
Merge pull request #1627 from opentensor/devnet-ready
sam0x17 May 12, 2025
3d99afc
Add UidLookupPrecompile address to used_address
keithtensor May 13, 2025
bd08ad4
Update .github/workflows/rustdocs.yml
keithtensor May 13, 2025
82f342e
Update .github/workflows/rustdocs.yml
keithtensor May 13, 2025
2ecebb1
Ensure stake threshold is respected when handing out vpermits
keithtensor May 13, 2025
4e3f374
Set stake threshold to 0 in commit reveal test
keithtensor May 13, 2025
17a81ad
Set validator stake to 1 during testing
keithtensor May 13, 2025
f8f0aef
multiple fields
JohnReedV May 13, 2025
63da433
multiple fields tests
JohnReedV May 13, 2025
5c718cc
increase limit
JohnReedV May 13, 2025
e81010c
clippy
JohnReedV May 13, 2025
fb2e935
bump spec
JohnReedV May 13, 2025
9f84e14
Merge pull request #1581 from opentensor/devnet
sam0x17 May 13, 2025
0fd75af
Add workflow dispatch to trigger workflow
keithtensor May 14, 2025
1aef843
Merge pull request #1633 from opentensor/Multiple-Fields-Per-Commitment-
sam0x17 May 14, 2025
0b5dcc7
add BigRaw
JohnReedV May 14, 2025
2290f1e
update tests for BigRaw
JohnReedV May 14, 2025
33c4124
fmt
JohnReedV May 14, 2025
68af465
fix test
JohnReedV May 14, 2025
3f510c7
update comments
JohnReedV May 14, 2025
6597e3c
clippy
JohnReedV May 14, 2025
9d6117f
Bump spec version
keithtensor May 15, 2025
c1c8fd0
Disable aggregated extrinsics.
shamil-gadelshin May 15, 2025
b7d7b08
Remove fee payment for associate_evm_key
keithtensor May 15, 2025
232dd4c
Merge pull request #1640 from opentensor/remove-associate-evm-keys-fee
keithtensor May 15, 2025
efd2898
Merge pull request #1641 from opentensor/comment-aggregated-stake-ext…
sam0x17 May 15, 2025
1bcbc22
Merge remote-tracking branch 'origin/devnet-ready' into vpermit-respe…
keithtensor May 15, 2025
5e76180
Merge pull request #1625 from opentensor/rustdocs
sam0x17 May 15, 2025
fbc809d
Merge pull request #1638 from opentensor/Add-BigRaw-Commitments-Variant
sam0x17 May 15, 2025
3d3444f
Merge remote-tracking branch 'origin/devnet-ready' into uid-lookup-pr…
keithtensor May 15, 2025
dc92bad
Fix up a comment to reflect what the code is doing
keithtensor May 15, 2025
9fe7c7d
Merge pull request #1642 from opentensor/devnet-ready
sam0x17 May 15, 2025
dc8d26c
Bump spec version
keithtensor May 15, 2025
06146ed
Merge pull request #1643 from opentensor/fix-comment
sam0x17 May 15, 2025
ee7bad9
Merge pull request #1644 from opentensor/devnet
sam0x17 May 15, 2025
5d96ce2
Merge branch 'devnet-ready' into remove-rate-limit-reduce-take
open-junius May 17, 2025
e5653ee
Merge pull request #1624 from opentensor/remove-rate-limit-reduce-take
open-junius May 19, 2025
82f50ec
Merge pull request #1628 from opentensor/uid-lookup-precompile-fix
keithtensor May 19, 2025
fd70d5d
Merge pull request #1629 from opentensor/vpermit-respect-min-stake
sam0x17 May 19, 2025
299f9f5
remove ensure, fix tests, add test
camfairchild May 19, 2025
7c447a9
bump spec
camfairchild May 19, 2025
599ac71
add registration to positive test and negative test
camfairchild May 19, 2025
4ccb847
decrement reads
JohnReedV May 19, 2025
3ee10a9
Merge pull request #1652 from opentensor/fix/burn-reg-w-sn-token-disa…
sam0x17 May 19, 2025
70a77f5
Merge pull request #1653 from opentensor/devnet-ready
sam0x17 May 20, 2025
35e4c6e
udpate readme
open-junius May 20, 2025
26267f5
Merge pull request #1655 from opentensor/devnet
sam0x17 May 20, 2025
c34c688
fix everything
sam0x17 May 21, 2025
ed91975
bump spec
sam0x17 May 21, 2025
cd36344
Merge pull request #1669 from opentensor/fix-everything-devnet
sam0x17 May 21, 2025
043e607
Merge pull request #1657 from opentensor/fix-readme-evm-test
sam0x17 May 24, 2025
186024f
Merge remote-tracking branch 'origin/main' into backpropagate-hotfixe…
sam0x17 May 27, 2025
42cf955
Merge pull request #1689 from opentensor/backpropagate-hotfixes-5-27-…
sam0x17 May 27, 2025
417f1bb
Merge pull request #1690 from opentensor/devnet-ready
sam0x17 May 27, 2025
1db0213
bump spec version
sam0x17 May 28, 2025
cad0ebc
Merge remote-tracking branch 'origin/devnet-ready' into devnet
sam0x17 May 28, 2025
d5a161b
Merge pull request #1692 from opentensor/devnet
sam0x17 May 28, 2025
a6f5f42
hotfix rust version
sam0x17 May 28, 2025
9fe45c5
Merge remote-tracking branch 'origin/devnet' into testnet
sam0x17 May 28, 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
54 changes: 50 additions & 4 deletions .github/workflows/check-bittensor-e2e-tests.yml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,34 @@ jobs:
- name: Load Docker Image
run: docker load -i subtensor-localnet.tar

- name: Run tests
# - name: Run tests
# working-directory: ${{ github.workspace }}/btcli
# run: |
# source ${{ github.workspace }}/venv/bin/activate
# uv run pytest ${{ matrix.test-file }} -s

- name: Run with retry
working-directory: ${{ github.workspace }}/btcli
run: |
source ${{ github.workspace }}/venv/bin/activate
uv run pytest ${{ matrix.test-file }} -s
set +e
for i in 1 2; do
echo "🔁 Attempt $i: Running tests"
uv run pytest ${{ matrix.test-file }} -s
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 2 ]; then
echo "🔥 Tests failed after 2 attempts"
exit 1
fi
echo "🕒 Retrying..."
sleep 5
fi
done

# main sdk job
run-sdk-e2e-tests:
Expand Down Expand Up @@ -285,8 +308,31 @@ jobs:
- name: Load Docker Image
run: docker load -i subtensor-localnet.tar

- name: Run tests
# - name: Run tests
# working-directory: ${{ github.workspace }}/bittensor
# run: |
# source ${{ github.workspace }}/venv/bin/activate
# uv run pytest ${{ matrix.test-file }} -s

- name: Run with retry
working-directory: ${{ github.workspace }}/bittensor
run: |
source ${{ github.workspace }}/venv/bin/activate
uv run pytest ${{ matrix.test-file }} -s
set +e
for i in 1 2; do
echo "🔁 Attempt $i: Running tests"
uv run pytest ${{ matrix.test-file }} -s
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 2 ]; then
echo "🔥 Tests failed after 2 attempts"
exit 1
fi
echo "🕒 Retrying..."
sleep 5
fi
done
5 changes: 5 additions & 0 deletions .github/workflows/docker-localnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Patch non-fast-block node
run: |
chmod +x ./scripts/localnet_patch.sh
./scripts/localnet_patch.sh

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/evm-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: EVM E2E Tests

on:
pull_request:

## Allow running workflow manually from the Actions tab
workflow_dispatch:
inputs:
verbose:
description: "Output more information when triggered manually"
required: false
default: ""

env:
CARGO_TERM_COLOR: always
VERBOSE: ${{ github.events.input.verbose }}

jobs:
run:
runs-on: SubtensorCI
env:
RUST_BACKTRACE: full
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "22"

- name: Install dependencies
run: |
sudo apt-get update &&
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler nodejs

- name: Run tests
working-directory: ${{ github.workspace }}
run: |
npm install --global yarn
./evm-tests/run-ci.sh
2 changes: 1 addition & 1 deletion .github/workflows/label-triggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
body: '@opentensor/cerebrum / @opentensor/gyrus / @opentensor/cortex breaking change detected! Please prepare accordingly!'
})
})
118 changes: 118 additions & 0 deletions .github/workflows/run-benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# .github/workflows/benchmarks.yml
name: Validate-Benchmarks

on:
pull_request:
types:
- opened
- synchronize
workflow_dispatch:

concurrency:
group: run-benchmarks-${{ github.ref }}
cancel-in-progress: true

jobs:
validate-benchmarks:
runs-on: Benchmarking

env:
SKIP_BENCHMARKS: '0'

steps:
- name: Check out PR branch
if: ${{ env.SKIP_BENCHMARKS != '1' }}
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Install GitHub CLI
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
sudo apt-get update
sudo apt-get install -y gh
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if echo "$labels" | grep -q "skip-validate-benchmarks"; then
echo "skip-validate-benchmarks label found — skipping benchmarks."
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV"
fi

- name: Install system dependencies
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
sudo apt-get update
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler

- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if echo "$labels" | grep -q "skip-validate-benchmarks"; then
echo "skip-validate-benchmarks label found — skipping benchmarks."
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV"
fi

- name: Install Rust toolchain
if: ${{ env.SKIP_BENCHMARKS != '1' }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if echo "$labels" | grep -q "skip-validate-benchmarks"; then
echo "skip-validate-benchmarks label found — skipping benchmarks."
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV"
fi

- name: Cache Rust build
if: ${{ env.SKIP_BENCHMARKS != '1' }}
uses: Swatinem/rust-cache@v2
with:
key: bench-${{ hashFiles('**/Cargo.lock') }}

- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if echo "$labels" | grep -q "skip-validate-benchmarks"; then
echo "skip-validate-benchmarks label found — skipping benchmarks."
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV"
fi

- name: Build node with benchmarks
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
cargo build --profile production -p node-subtensor --features runtime-benchmarks

- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if echo "$labels" | grep -q "skip-validate-benchmarks"; then
echo "skip-validate-benchmarks label found — skipping benchmarks."
echo "SKIP_BENCHMARKS=1" >> "$GITHUB_ENV"
fi

- name: Run & validate benchmarks
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
chmod +x scripts/benchmark_action.sh
./scripts/benchmark_action.sh

- name: Check skip label after run
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} --json labels --jq '.labels[].name')
if echo "$labels" | grep -q "skip-validate-benchmarks"; then
echo "skip-validate-benchmarks label was found — but benchmarks already ran."
fi
60 changes: 60 additions & 0 deletions .github/workflows/rustdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Publish rustdocs

on:
push:
branches:
- main
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: SubtensorCI

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

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

- name: Generate documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --document-private-items

- name: Fix file permissions
shell: sh
run: |
chmod -c -R +rX "target/doc" |
while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Generate index.html file
run: |
echo "<meta http-equiv=refresh content=0;url=wasm_oidc_plugin/index.html>" > target/doc/index.html
- name: Upload documentation
uses: actions/upload-pages-artifact@v1
with:
path: ./target/doc

deploy:
needs: build
runs-on: SubtensorCI

permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.pages.outputs.page_url }}

steps:
- name: Deploy documentation
id: pages
uses: actions/deploy-pages@v2
Loading
Loading