Skip to content

Commit 354b828

Browse files
committed
merge
2 parents ea2c952 + a2b8d70 commit 354b828

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+115881
-259479
lines changed

.cargo-husky/hooks/prepare-commit-msg

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/check-devnet.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ jobs:
3737
echo "network spec_version: $spec_version"
3838
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
3939
echo "$local_spec_version > $spec_version ✅"
40+
41+
check-devnet-migrations:
42+
name: check devnet migrations
43+
runs-on: ubuntu-22.04
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v3
47+
48+
- name: Run Try Runtime Checks
49+
uses: "paritytech/try-runtime-gha@v0.1.0"
50+
with:
51+
runtime-package: "node-subtensor-runtime"
52+
node-uri: "wss://dev.chain.opentensor.ai:443"
53+
checks: "pre-and-post"
54+
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/check-finney.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Finney Deploy Check
22

33
on:
44
pull_request:
5-
branches: [finney]
5+
branches: [finney, main]
66

77
env:
88
CARGO_TERM_COLOR: always
@@ -37,3 +37,17 @@ jobs:
3737
echo "network spec_version: $spec_version"
3838
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
3939
echo "$local_spec_version > $spec_version ✅"
40+
41+
check-finney-migrations:
42+
name: check finney migrations
43+
runs-on: SubtensorCI
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v4
47+
- name: Run Try Runtime Checks
48+
uses: "paritytech/try-runtime-gha@v0.1.0"
49+
with:
50+
runtime-package: "node-subtensor-runtime"
51+
node-uri: "wss://entrypoint-finney.opentensor.ai:443"
52+
checks: "pre-and-post"
53+
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/check-rust.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -339,47 +339,6 @@ jobs:
339339
- name: Check features
340340
run: zepter run check
341341

342-
check-finney-migrations:
343-
name: check finney migrations
344-
runs-on: SubtensorCI
345-
steps:
346-
- name: Checkout sources
347-
uses: actions/checkout@v4
348342

349-
- name: Run Try Runtime Checks
350-
uses: "paritytech/try-runtime-gha@v0.1.0"
351-
with:
352-
runtime-package: "node-subtensor-runtime"
353-
node-uri: "wss://entrypoint-finney.opentensor.ai:443"
354-
checks: "pre-and-post"
355-
extra-args: "--disable-spec-version-check --no-weight-warnings"
356-
357-
check-devnet-migrations:
358-
name: check devnet migrations
359-
runs-on: ubuntu-22.04
360-
steps:
361-
- name: Checkout sources
362-
uses: actions/checkout@v3
363343

364-
- name: Run Try Runtime Checks
365-
uses: "paritytech/try-runtime-gha@v0.1.0"
366-
with:
367-
runtime-package: "node-subtensor-runtime"
368-
node-uri: "wss://dev.chain.opentensor.ai:443"
369-
checks: "pre-and-post"
370-
extra-args: "--disable-spec-version-check --no-weight-warnings"
371-
372-
check-testnet-migrations:
373-
name: check testnet migrations
374-
runs-on: ubuntu-22.04
375-
steps:
376-
- name: Checkout sources
377-
uses: actions/checkout@v3
378344

379-
- name: Run Try Runtime Checks
380-
uses: "paritytech/try-runtime-gha@v0.1.0"
381-
with:
382-
runtime-package: "node-subtensor-runtime"
383-
node-uri: "wss://test.chain.opentensor.ai:443"
384-
checks: "pre-and-post"
385-
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/check-testnet.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,18 @@ jobs:
3737
echo "network spec_version: $spec_version"
3838
if (( $(echo "$local_spec_version <= $spec_version" | bc -l) )); then echo "$local_spec_version ≯ $spec_version ❌"; exit 1; fi
3939
echo "$local_spec_version > $spec_version ✅"
40+
41+
check-testnet-migrations:
42+
name: check testnet migrations
43+
runs-on: ubuntu-22.04
44+
steps:
45+
- name: Checkout sources
46+
uses: actions/checkout@v3
47+
48+
- name: Run Try Runtime Checks
49+
uses: "paritytech/try-runtime-gha@v0.1.0"
50+
with:
51+
runtime-package: "node-subtensor-runtime"
52+
node-uri: "wss://test.chain.opentensor.ai:443"
53+
checks: "pre-and-post"
54+
extra-args: "--disable-spec-version-check --no-weight-warnings"

.github/workflows/e2e-bittensor-tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@ concurrency:
55
cancel-in-progress: true
66

77
on:
8-
## Run automatically for all PRs against main, regardless of what the changes are
9-
## to be safe and so we can more easily force re-run the CI when github is being
10-
## weird by using a blank commit
118
push:
12-
branches: [main, development, staging]
9+
branches: [main, devnet-ready, devnet, testnet, finney]
1310

14-
##
15-
# Run automatically for PRs against default/main branch if Rust files change
1611
pull_request:
17-
branches: [main, development, staging]
1812

1913
## Allow running workflow manually from the Actions tab
2014
workflow_dispatch:
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Update Chainspecs
2+
3+
concurrency:
4+
group: update-chainspec-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches: [main, testnet, staging, staging-ready]
10+
11+
workflow_dispatch:
12+
inputs:
13+
verbose:
14+
description: "Output more information when triggered manually"
15+
required: false
16+
default: ""
17+
18+
env:
19+
CARGO_TERM_COLOR: always
20+
VERBOSE: ${{ github.events.input.verbose }}
21+
22+
jobs:
23+
update-chainspecs:
24+
runs-on: SubtensorCI
25+
permissions:
26+
contents: write
27+
28+
strategy:
29+
matrix:
30+
rust-branch:
31+
- nightly-2024-03-05
32+
rust-target:
33+
- x86_64-unknown-linux-gnu
34+
os:
35+
- ubuntu-latest
36+
include:
37+
- os: ubuntu-latest
38+
env:
39+
RELEASE_NAME: development
40+
RUSTV: ${{ matrix.rust-branch }}
41+
RUST_BACKTRACE: full
42+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
43+
TARGET: ${{ matrix.rust-target }}
44+
steps:
45+
- name: Check-out repository under $GITHUB_WORKSPACE
46+
uses: actions/checkout@v2
47+
48+
- name: Install dependencies
49+
run: |
50+
sudo apt-get update &&
51+
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
52+
53+
- name: Install Rust ${{ matrix.rust-branch }}
54+
uses: actions-rs/toolchain@v1.0.6
55+
with:
56+
toolchain: ${{ matrix.rust-branch }}
57+
components: rustfmt, clippy
58+
profile: minimal
59+
60+
- name: Utilize Shared Rust Cache
61+
uses: Swatinem/rust-cache@v2.2.1
62+
with:
63+
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
64+
65+
- name: Build chainspecs
66+
run: ./scripts/build_all_chainspecs.sh
67+
68+
- uses: stefanzweifel/git-auto-commit-action@v5
69+
name: Commit any updated chainspecs
70+
with:
71+
commit_message: Update chainspecs

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ specs/*.json
4040
.idea
4141

4242
# Runtime upgrade snapshot
43-
bt.snap
43+
bt.snap
44+
45+
# localnet spec
46+
scripts/specs/local.json

CITATION.cft

Whitespace-only changes.

0 commit comments

Comments
 (0)