Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
499 commits
Select commit Hold shift + click to select a range
d1db96a
Merge branch 'devnet-ready' into manual-sealing-for-aura-fix
Mar 19, 2026
ccbaec1
fix result display
lorismoulin Mar 19, 2026
e40090e
Merge pull request #2523 from opentensor/testnet-into-devnet-ready-19…
sam0x17 Mar 19, 2026
c619b8d
Merge branch 'devnet-ready' into rework-benchmarks
lorismoulin Mar 19, 2026
48bb604
put old inlined weights into files
lorismoulin Mar 19, 2026
33f0aa5
remove #[benchmark(extra)]
lorismoulin Mar 19, 2026
770c01c
Merge branch 'devnet-ready' into rework-benchmarks
lorismoulin Mar 19, 2026
00def43
Merge branch 'devnet-ready' into manual-sealing-for-aura-fix
Mar 19, 2026
b6085e1
Merge branch 'devnet-ready' into e2e-tests-moonwall
Mar 19, 2026
b6ebe74
fixed types
lorismoulin Mar 19, 2026
aaa2ea1
cargo clippy
lorismoulin Mar 19, 2026
cebe936
cargo fmt
lorismoulin Mar 19, 2026
fe74d6a
Merge pull request #2516 from opentensor/manual-sealing-for-aura-fix
open-junius Mar 20, 2026
a0c581a
Merge branch 'devnet-ready' into e2e-tests-moonwall
Mar 20, 2026
d063ee2
- Removed e2e folder
Mar 20, 2026
625daf8
Merge branch 'devnet-ready' into auto-ck-root-validators
shamil-gadelshin Mar 20, 2026
4cf5f64
Fix origin after merge
shamil-gadelshin Mar 20, 2026
d46a22c
- Improve CI flow
Mar 20, 2026
471ff77
- fixed trap
Mar 20, 2026
21146e5
Merge branch 'devnet-ready' into fix-benchmark-disable-lp
open-junius Mar 20, 2026
608533b
Merge branch 'devnet-ready' into drand_precompile
open-junius Mar 20, 2026
34e4b25
Merge pull request #2445 from opentensor/drand_precompile
sam0x17 Mar 20, 2026
02b447e
auto-update benchmark weights
github-actions[bot] Mar 20, 2026
ace5cfc
Merge pull request #2491 from opentensor/e2e-tests-moonwall
sam0x17 Mar 20, 2026
03c5272
Merge branch 'devnet-ready' into update-chainspec-clone-command
shamil-gadelshin Mar 20, 2026
8752253
Update node/Cargo.toml
shamil-gadelshin Mar 20, 2026
e9f6006
Update node/Cargo.toml
shamil-gadelshin Mar 20, 2026
c0e2fe9
Merge branch 'devnet-ready' into e2e-tests-ck-swap
lorismoulin Mar 20, 2026
3a8eea6
remove weight-stub, rate case of new pallet, update doc
lorismoulin Mar 20, 2026
0c26d60
fixed coldkey swap tests + use papi
lorismoulin Mar 20, 2026
dffe692
add metadata-hash to features
basfroman Mar 23, 2026
ab0cb2e
bumping spec version
basfroman Mar 23, 2026
fb99d4e
Merge pull request #2528 from opentensor/feat/roman/add-metadata-hash…
sam0x17 Mar 23, 2026
65c9ef6
Merge branch 'devnet-ready' into fix-benchmark-disable-lp
open-junius Mar 23, 2026
bfd40d3
revert pr 2445
open-junius Mar 23, 2026
01ec40e
commit Cargo.lock
open-junius Mar 23, 2026
d383748
bump version
open-junius Mar 23, 2026
50cc4b9
fix registry benchmarks
lorismoulin Mar 23, 2026
69627c0
subnet owner hotkey always passes validator checks
JohnReedV Mar 23, 2026
0098041
add test_subnet_owner_can_validate_without_stake
JohnReedV Mar 23, 2026
6f31f67
fmt
JohnReedV Mar 23, 2026
b4daa9d
fix pallet swap benchmarks
lorismoulin Mar 23, 2026
30b2486
restore commitments benchmark tests suite
lorismoulin Mar 23, 2026
f45570a
fix benchmark scripts
lorismoulin Mar 23, 2026
e695c1a
fix compilation error
lorismoulin Mar 23, 2026
24aa689
Merge branch 'devnet-ready' into e2e-tests-ck-swap
lorismoulin Mar 23, 2026
140ddf1
fix clippy
lorismoulin Mar 23, 2026
b1c81de
cargo fmt
lorismoulin Mar 23, 2026
79fa6ea
clippy
JohnReedV Mar 23, 2026
7541b0d
auto-update benchmark weights
github-actions[bot] Mar 23, 2026
4aa41cc
Merge remote-tracking branch 'origin/main' into devnet-ready
sam0x17 Mar 23, 2026
c695168
fix benchmark run
lorismoulin Mar 23, 2026
fb36adf
fix scripts
lorismoulin Mar 23, 2026
051db40
fix pallet swap benchmarks
lorismoulin Mar 23, 2026
87ebed8
fix tests compilation
lorismoulin Mar 23, 2026
f924dea
added tests for other transfer types during swap/dispute
lorismoulin Mar 23, 2026
637d9d1
zepter fix
lorismoulin Mar 23, 2026
29dd012
auto-update benchmark weights
github-actions[bot] Mar 23, 2026
0a9c215
Merge branch 'devnet-ready' into fix-benchmark-disable-lp
open-junius Mar 24, 2026
51a8267
Modify mev-shield
shamil-gadelshin Mar 11, 2026
7404d76
Add set_max_pending_extrinsics_number extrinsic
shamil-gadelshin Mar 20, 2026
aafd839
Add set_on_initialize_weight extrinsic
shamil-gadelshin Mar 23, 2026
b85df94
Add set_stored_extrinsic_lifetime extrinsic.
shamil-gadelshin Mar 23, 2026
b80c12b
Introduce eco-tests
shamil-gadelshin Mar 20, 2026
c1b950f
Make eco-tests separate
shamil-gadelshin Mar 24, 2026
eb332da
Merge pull request #2510 from opentensor/update-chainspec-clone-command
sam0x17 Mar 24, 2026
598d209
fix: ensure generate-types.sh exits with code 0 after cleanup
Mar 24, 2026
1d94555
enable yuma3 by default
JohnReedV Mar 24, 2026
1ad86a5
fix test
JohnReedV Mar 24, 2026
ac6ec70
Merge pull request #2534 from opentensor/improve-e2e-types-generation
sam0x17 Mar 24, 2026
4cd0633
auto-update benchmark weights
github-actions[bot] Mar 24, 2026
f8f6a49
fix tests
JohnReedV Mar 24, 2026
2f075d9
fmt
JohnReedV Mar 24, 2026
46bc3b9
Merge branch 'devnet-ready' into neuron-registration
JohnReedV Mar 24, 2026
0902d31
update origin type
JohnReedV Mar 24, 2026
742c4d8
remove unused
JohnReedV Mar 24, 2026
ef055a7
fix another test
JohnReedV Mar 24, 2026
3feb9d2
Merge pull request #2531 from opentensor/revert-pr-2445
open-junius Mar 25, 2026
5af5116
provide more detailed explanation justifying the need for approve/tra…
jeremyp-tao Mar 25, 2026
b3b5ca7
Add eco-tests workflow.
shamil-gadelshin Mar 25, 2026
d244bad
Apply github copilot suggestion.
shamil-gadelshin Mar 25, 2026
7d55631
Merge branch 'devnet-ready' into eco-tests
shamil-gadelshin Mar 25, 2026
2de7898
clippy
JohnReedV Mar 25, 2026
677206e
fmt
JohnReedV Mar 25, 2026
3708f42
Merge pull request #2526 from opentensor/eco-tests
sam0x17 Mar 25, 2026
f637975
Add hk swap test with preexisting stake of new hotkey
gztensor Mar 25, 2026
b9c13e3
Fix test with existing stake
gztensor Mar 25, 2026
75b5bf1
auto-update benchmark weights
github-actions[bot] Mar 25, 2026
5431758
check the origin in register_limit
JohnReedV Mar 25, 2026
cc87eb5
clone the origin
JohnReedV Mar 25, 2026
1ec677e
Fix stake swap in hotkey swap
gztensor Mar 25, 2026
cf67d25
reset registrationsthisinterval for root regs
JohnReedV Mar 25, 2026
f7b8fbb
Optimize the stake swap in hk swap
gztensor Mar 26, 2026
dbb1c0e
use differ acc method
open-junius Mar 26, 2026
0ce814c
Merge branch 'devnet-ready' into fix-benchmark-disable-lp
open-junius Mar 26, 2026
e7f8151
Patch weights
gztensor Mar 26, 2026
bf3cda2
Added more test for revert hotfix
Mar 26, 2026
b3eb9c3
apply burn increase at registration time
JohnReedV Mar 26, 2026
31e86b0
update tests for burn increase at reg time
JohnReedV Mar 26, 2026
d7e68f9
fmt
gztensor Mar 26, 2026
8c08a24
use benchmark to get real weights
open-junius Mar 27, 2026
7400872
handle the error
open-junius Mar 27, 2026
5966204
Apply review suggestions
shamil-gadelshin Mar 27, 2026
9c242a5
Merge pull request #2532 from opentensor/owner-key-can-validate
sam0x17 Mar 27, 2026
9576798
fix epoch tests
JohnReedV Mar 27, 2026
cde863e
Merge pull request #2535 from opentensor/enable-yuma3-on-subnet-regis…
sam0x17 Mar 27, 2026
ac31ed1
Merge branch 'devnet-ready' into neuron-registration
JohnReedV Mar 27, 2026
f7bf570
update psdk and frontier rev
lorismoulin Mar 27, 2026
dd74193
move CheckColdkeySwap to DispatchExtension
lorismoulin Mar 27, 2026
baae572
stop adding deprecated maps on subnet reg
JohnReedV Mar 27, 2026
be27d9b
update test assertions
JohnReedV Mar 27, 2026
b3316fa
fix comment + test names
lorismoulin Mar 27, 2026
ad0e1b8
added weight to extension
lorismoulin Mar 27, 2026
13a431a
add register_limit to proxy types
JohnReedV Mar 27, 2026
0a5f6a5
handle the error in root
open-junius Mar 27, 2026
79f9501
Add benchmarks
shamil-gadelshin Mar 30, 2026
61fd6f4
Add weights
shamil-gadelshin Mar 30, 2026
ff3fef3
Integrate weights.
shamil-gadelshin Mar 30, 2026
f836318
cargo clippy
lorismoulin Mar 30, 2026
9c57c05
added pallet auto discovery
lorismoulin Mar 30, 2026
fd10c5b
try ci with missing pallet
lorismoulin Mar 30, 2026
f09af56
doc update
lorismoulin Mar 30, 2026
4669ce8
Merge branch 'devnet-ready' into rework-benchmarks
lorismoulin Mar 30, 2026
7529dae
clean benchmark scripts
lorismoulin Mar 30, 2026
882a67d
fix subtensor benchmarks tests
lorismoulin Mar 30, 2026
dabe5a0
use correct pallet_swap weights in runtime
lorismoulin Mar 30, 2026
558215e
update doc
lorismoulin Mar 30, 2026
d48e9de
remove useless test
lorismoulin Mar 30, 2026
45a24d3
bump spec version to 395
lorismoulin Mar 30, 2026
8a019dd
auto-update benchmark weights
github-actions[bot] Mar 30, 2026
6029078
Add set_pending_childkey_cooldown benchmark
shamil-gadelshin Mar 30, 2026
27a4e0c
update eco-tests rev for psdk
lorismoulin Mar 30, 2026
2ec45f5
auto-update benchmark weights
github-actions[bot] Mar 30, 2026
9c7a115
Merge pull request #2546 from opentensor/fix-invalid-benchmarks
sam0x17 Mar 30, 2026
15b308c
fix weird clippy
lorismoulin Mar 30, 2026
34b3a0f
add tests to workflow
lorismoulin Mar 30, 2026
72c5fff
rework sendTransaction and waitForTransactionCompletion
lorismoulin Mar 30, 2026
46f6dfa
lint
lorismoulin Mar 30, 2026
b00cb34
make the minimum decay 0.0001 Tao
JohnReedV Mar 30, 2026
0ece00c
CK cooldown after start call
gztensor Mar 30, 2026
42d0967
update tests
JohnReedV Mar 30, 2026
b18c046
Merge branch 'devnet-ready' into neuron-registration
JohnReedV Mar 30, 2026
ef3d07f
Merge pull request #2542 from opentensor/dispatch-guard-to-ext
lorismoulin Mar 30, 2026
ed29b3c
address lint
JohnReedV Mar 30, 2026
3c3c8e8
Merge branch 'devnet-ready' into rework-benchmarks
lorismoulin Mar 30, 2026
f5fa6e4
cargo fmt
lorismoulin Mar 30, 2026
a053b4a
Merge branch 'devnet-ready' into auto-ck-root-validators
shamil-gadelshin Mar 31, 2026
a17b8c2
Add max extrinsic weight limit for processing.
shamil-gadelshin Mar 31, 2026
2f49da2
fix trap returning kill exit code instead of 0
lorismoulin Mar 31, 2026
b241266
discove_pallets use bash instead of zsh
lorismoulin Mar 31, 2026
8ffef64
fix mock eco-tests
lorismoulin Mar 31, 2026
cbec3e2
Update store_encrypted weights.
shamil-gadelshin Mar 31, 2026
a40bdf8
Change storage map type.
shamil-gadelshin Mar 31, 2026
0b1974a
fix delay in test
lorismoulin Mar 31, 2026
0b33c66
fix generate types
lorismoulin Mar 31, 2026
5c8474f
Merge pull request #2548 from opentensor/feat/ck-cooldown-after-start…
sam0x17 Mar 31, 2026
ffcf552
fix failing test following owner no min stake required
lorismoulin Mar 31, 2026
7e59adc
what a surprise, zombienet is flaky
lorismoulin Mar 31, 2026
eacdd85
Set CK immediately if start call wasn't executed
gztensor Mar 31, 2026
98174b5
Fix clippy
gztensor Mar 31, 2026
4494c55
auto-update benchmark weights
github-actions[bot] Apr 1, 2026
fc8f16d
Merge pull request #2500 from opentensor/fix-benchmark-disable-lp
sam0x17 Apr 1, 2026
e9bfd3f
Apply ck immediately without scheduling before the start call
gztensor Apr 1, 2026
3e4b954
remove dead code
JohnReedV Apr 1, 2026
4bbf9af
remove magic number
JohnReedV Apr 1, 2026
1cac809
convert events to structs
JohnReedV Apr 1, 2026
404172e
Apply suggestion from @l0r1s
gztensor Apr 1, 2026
82a30ec
Add coldkey swap cleanup
gztensor Apr 1, 2026
af2d7c2
collapse register_limit precompile
JohnReedV Apr 1, 2026
69769ba
Merge branch 'devnet-ready' into neuron-registration
JohnReedV Apr 1, 2026
398ddaa
Update polkadot-sdk deps
ales-tsurko Apr 1, 2026
8368d5d
auto-update benchmark weights
github-actions[bot] Apr 1, 2026
b242ccc
Update polkadot-sdk deps #2557
ales-tsurko Apr 1, 2026
3f55fed
feat: stake owner alpha on subnet register
JohnReedV Apr 1, 2026
551e005
stricter MIN_REGISTRATION_COST
JohnReedV Apr 1, 2026
5e9d2bd
add DefaultNetworkBurn
JohnReedV Apr 1, 2026
d33d87c
Merge pull request #2503 from opentensor/auto-ck-root-validators
sam0x17 Apr 1, 2026
807b5f4
remove potential panic from get median alpha price
JohnReedV Apr 1, 2026
33a4220
fix existing unit tests
JohnReedV Apr 1, 2026
ea5db0a
add new unit tests
JohnReedV Apr 1, 2026
6f2a02a
auto-update benchmark weights
github-actions[bot] Apr 1, 2026
6e6a676
clippy
JohnReedV Apr 1, 2026
4e6fe03
Merge branch 'devnet-ready' into owner-alpha-on-subnet-register
JohnReedV Apr 1, 2026
468bc6d
Merge branch 'devnet-ready' into neuron-registration
JohnReedV Apr 1, 2026
e92cf1c
auto-update benchmark weights
github-actions[bot] Apr 2, 2026
b1ebc54
add doc comment
JohnReedV Apr 2, 2026
dd2999f
Merge branch 'owner-alpha-on-subnet-register' of github.com:opentenso…
JohnReedV Apr 2, 2026
b329b2a
sn owner can set burnhalflife/increase multi
JohnReedV Apr 2, 2026
975036f
Merge pull request #2558 from opentensor/owner-alpha-on-subnet-register
sam0x17 Apr 2, 2026
a1f8da9
change multi type to float, add stricter hp limits
JohnReedV Apr 2, 2026
f249cec
Merge branch 'devnet-ready' into neuron-registration
JohnReedV Apr 2, 2026
27771c5
change DefaultBurnIncreaseMult to 1.26
JohnReedV Apr 2, 2026
c5b6e8c
address custom lint
JohnReedV Apr 2, 2026
32054cc
add MaxBurnHalfLife type value
JohnReedV Apr 2, 2026
a790a00
auto-update benchmark weights
github-actions[bot] Apr 2, 2026
af3e2ad
bump CI
JohnReedV Apr 2, 2026
e027f28
Merge branch 'devnet-ready' into e2e-tests-ck-swap
lorismoulin Apr 2, 2026
0fadfcb
Merge pull request #2382 from opentensor/neuron-registration
sam0x17 Apr 2, 2026
555e542
Merge remote-tracking branch 'origin/devnet-ready' into feat/immediat…
sam0x17 Apr 2, 2026
5af8bee
fix CI
sam0x17 Apr 2, 2026
e74843e
Merge pull request #2552 from opentensor/feat/immediate-ck-before-sta…
sam0x17 Apr 2, 2026
e42da84
Merge pull request #2518 from opentensor/e2e-tests-ck-swap
sam0x17 Apr 2, 2026
814eae3
Merge remote-tracking branch 'origin/devnet-ready' into devnet
sam0x17 Apr 2, 2026
6d33ad5
cargo clippy
sam0x17 Apr 2, 2026
6c94ace
Merge remote-tracking branch 'origin/fix/hotkey-swap-alpha-pool' into…
sam0x17 Apr 3, 2026
f6210c1
Merge remote-tracking branch 'origin/main' into devnet-ready
sam0x17 Apr 3, 2026
29e2d82
remove some maps from migration
JohnReedV Apr 3, 2026
9bf4280
Merge branch 'devnet-ready' into fix-registration-migration
JohnReedV Apr 3, 2026
3b95c65
Update benchmarks.rs
JohnReedV Apr 3, 2026
5ab12c0
Merge pull request #2561 from opentensor/fix-registration-migration
sam0x17 Apr 3, 2026
be30f17
remove an out of date e2e
open-junius Apr 3, 2026
e2a3284
Merge branch 'devnet-ready' into rework-benchmarks
lorismoulin Apr 3, 2026
e062158
fix compiation errors
lorismoulin Apr 3, 2026
ef851b4
Merge pull request #2563 from opentensor/remove-out-of-date-e2e
sam0x17 Apr 3, 2026
e626b43
use weight fn when possible
lorismoulin Apr 3, 2026
6bc8883
added back utility pallet to benchmarks
lorismoulin Apr 3, 2026
0f79a51
fix tests announce/reannounce delays
lorismoulin Apr 3, 2026
ab57ca0
bump spec version
lorismoulin Apr 3, 2026
a1258cd
Remove rank, trust, and pruning_score from runtime and chain state
plind-junior Apr 4, 2026
038dd6d
auto-update benchmark weights
github-actions[bot] Apr 6, 2026
daf9629
Merge pull request #2517 from opentensor/rework-benchmarks
lorismoulin Apr 6, 2026
b3b2148
make approver/spender EVM accounts
jeremyp-tao Apr 7, 2026
cfafb61
Merge remote-tracking branch 'upstream/devnet-ready' into jeremy-stak…
jeremyp-tao Apr 7, 2026
e216b72
Remove Rank, Trust, PruningScores storage declarations and redundant …
plind-junior Apr 7, 2026
7a2f7f4
Merge branch 'upstream-devnet-ready' into fix/remove-rank-trust-pruni…
plind-junior Apr 7, 2026
869baac
clippy
jeremyp-tao Apr 7, 2026
9f75b9d
Merge pull request #2565 from plind-dm/fix/remove-rank-trust-pruning-…
sam0x17 Apr 7, 2026
1ce8574
Merge pull request #2478 from jeremyp-tao/jeremy-staking-precompile-a…
sam0x17 Apr 7, 2026
7f51403
Merge branch 'devnet-ready' into mev-shield-v2-on-initialize
shamil-gadelshin Apr 8, 2026
930a450
Fix merge conflicts
shamil-gadelshin Apr 8, 2026
db44146
Fix eco-tests.
shamil-gadelshin Apr 8, 2026
d269bbe
auto-update benchmark weights
github-actions[bot] Apr 8, 2026
c64ff72
Add AutoParentDelegationEnabled flag to toggle auto parent delegation…
Apr 8, 2026
5c664d7
- moonwall update
Apr 8, 2026
a4bc726
Merge pull request #2533 from opentensor/mev-shield-v2-on-initialize
sam0x17 Apr 8, 2026
2ad4c50
- fmt
Apr 8, 2026
e95a7e3
- typo
Apr 8, 2026
7213a73
Updated caller
Apr 8, 2026
34417ad
Benchmarks
Apr 9, 2026
d7418ee
Reset LastUpdate on neuron replace
ales-tsurko Apr 10, 2026
def4e65
auto-update benchmark weights
github-actions[bot] Apr 10, 2026
02e5477
Fix clippy
ales-tsurko Apr 10, 2026
c30e46c
Merge pull request #2574 from opentensor/switch-auto-parent-delegation
sam0x17 Apr 10, 2026
949d1e3
Swap AutoParentDelegationEnabled on the hotkey swap for root subnet
Apr 13, 2026
b9b4db5
- fmt
Apr 13, 2026
6dbe74e
Reset LastUpdate on neuron replace #2583
ales-tsurko Apr 13, 2026
c3f78a4
Merge pull request #2586 from opentensor/swap-auto-parent-delegation-…
sam0x17 Apr 13, 2026
e27fb35
fix owner alpha stake
JohnReedV Apr 16, 2026
49fd05e
Merge pull request #2594 from opentensor/fix-owner-alpha-stake
sam0x17 Apr 16, 2026
30ca72b
Merge remote-tracking branch 'origin/main' into devnet-ready
sam0x17 Apr 16, 2026
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
4 changes: 0 additions & 4 deletions .github/e2e.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/scripts/check-skip-label.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Check if the "skip-validate-benchmarks" label is present on a PR.
# Usage: check-skip-label.sh <PR_NUMBER>
# Exits 0 normally, or exits 0 after cancelling the workflow if label found.

set -euo pipefail

PR_NUMBER="${1:-}"
[[ -z "$PR_NUMBER" ]] && exit 0

REPO="${GITHUB_REPOSITORY:-}"
[[ -z "$REPO" ]] && exit 0

labels=$(gh pr view "$PR_NUMBER" --repo "$REPO" --json labels --jq '.labels[].name' 2>/dev/null || true)

if echo "$labels" | grep -q "skip-validate-benchmarks"; then
echo "skip-validate-benchmarks label found — exiting."
exit 1
fi
43 changes: 40 additions & 3 deletions .github/workflows/eco-tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,47 @@
name: eco-tests

permissions:
contents: read

concurrency:
group: eco-tests-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
placeholder:
runs-on: ubuntu-latest
eco-tests:
name: cargo test (eco-tests)
runs-on: [self-hosted, type-ccx43]
env:
RUST_BACKTRACE: full
SKIP_WASM_BUILD: 1
steps:
- run: echo "ok"
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4

- 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" build-essential clang curl git make 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
with:
key: eco-tests
cache-on-failure: true
workspaces: eco-tests

- name: cargo test
working-directory: eco-tests
run: cargo test
120 changes: 14 additions & 106 deletions .github/workflows/run-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,157 +18,65 @@ 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:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0

- name: Install GitHub CLI
if: ${{ env.SKIP_BENCHMARKS != '1' }}
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
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
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

# (1) — first skip‑label check
- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} \
--repo "${{ github.repository }}" \
--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 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

# (2)
- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} \
--repo "${{ github.repository }}" \
--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
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 toolchain
if: ${{ env.SKIP_BENCHMARKS != '1' }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

# (3)
- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} \
--repo "${{ github.repository }}" \
--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') }}
cache-on-failure: true

# (4)
- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} \
--repo "${{ github.repository }}" \
--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' }}
- name: Build node with benchmarks + weight tools
run: |
.github/scripts/check-skip-label.sh ${{ github.event.pull_request.number }}
cargo build --profile production -p node-subtensor --features runtime-benchmarks

# (5)
- name: Check skip label
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} \
--repo "${{ github.repository }}" \
--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: Ensure artifact folder exists
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: mkdir -p .bench_patch
.github/scripts/check-skip-label.sh ${{ github.event.pull_request.number }}
cargo build --profile production -p subtensor-weight-tools --bin weight-compare

- name: Run & validate benchmarks
if: ${{ env.SKIP_BENCHMARKS != '1' }}
timeout-minutes: 180
run: |
.github/scripts/check-skip-label.sh ${{ github.event.pull_request.number }}
mkdir -p .bench_patch
chmod +x scripts/benchmark_action.sh
scripts/benchmark_action.sh

- name: List artifact contents (for debugging)
if: ${{ always() }}
run: |
echo "Workspace: $GITHUB_WORKSPACE"
if [ -d ".bench_patch" ]; then
echo "== .bench_patch =="
ls -la .bench_patch || true
else
echo ".bench_patch directory is missing"
fi

- name: Archive bench patch
if: ${{ always() }}
if: always()
run: |
if [ -d ".bench_patch" ]; then
tar -czf bench-patch.tgz .bench_patch
ls -lh bench-patch.tgz
else
echo "No .bench_patch directory to archive."
fi

- name: Upload patch artifact (if prepared)
if: ${{ always() }}
- name: Upload patch artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: bench-patch
path: bench-patch.tgz
if-no-files-found: warn

# (6) — final check after run
- name: Check skip label after run
if: ${{ env.SKIP_BENCHMARKS != '1' }}
run: |
labels=$(gh pr view ${{ github.event.pull_request.number }} \
--repo "${{ github.repository }}" \
--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
47 changes: 47 additions & 0 deletions .github/workflows/scheduled-smoke-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Scheduled Smoke Tests

on:
schedule:
- cron: '0 */6 * * *'

env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
run-smoke-tests:
runs-on: [self-hosted, type-ccx33]
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
include:
- test: smoke_mainnet
- test: smoke_testnet

name: "smoke-e2e-${{ matrix.test }}"

steps:
- name: Check-out repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ts-tests/.nvmrc

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Install e2e dependencies
working-directory: ts-tests
run: pnpm install --frozen-lockfile

- name: Run smoke test
working-directory: ts-tests
run: pnpm moonwall test ${{ matrix.test }}
Loading
Loading