Skip to content

Commit 8431083

Browse files
committed
Merge remote-tracking branch 'origin/development' into sudo-calls-commit-reveal
2 parents e73d193 + 255d867 commit 8431083

Some content is hidden

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

41 files changed

+35456
-2068
lines changed

.github/workflows/check-rust.yml

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: CI
1+
name: Check Rust
22

33
concurrency:
4-
group: ci-${{ github.ref }}
4+
group: check-rust-${{ github.ref }}
55
cancel-in-progress: true
66

77
on:
@@ -359,40 +359,34 @@ jobs:
359359
runtime-package: "node-subtensor-runtime"
360360
node-uri: "wss://entrypoint-finney.opentensor.ai:443"
361361
checks: "pre-and-post"
362-
extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
363-
364-
# ----
365-
# We can enable devnet and finney migrations once Polkadot v1.0 is deployed to finney, after
366-
# which time all future migrations should be idempotent and won't start failing after the
367-
# upgrade is deployed.
368-
# ----
369-
# check-devnet-migrations:
370-
# name: check devnet migrations
371-
# runs-on: ubuntu-22.04
372-
# steps:
373-
# - name: Checkout sources
374-
# uses: actions/checkout@v3
375-
#
376-
# - name: Run Try Runtime Checks
377-
# uses: "paritytech/[email protected]"
378-
# with:
379-
# runtime-package: "node-subtensor-runtime"
380-
# node-uri: "wss://dev.chain.opentensor.ai:443"
381-
# checks: "pre-and-post"
382-
# extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
383-
#
384-
# check-testnet-migrations:
385-
# name: check testnet migrations
386-
# runs-on: ubuntu-22.04
387-
# steps:
388-
# - name: Checkout sources
389-
# uses: actions/checkout@v3
390-
#
391-
# - name: Run Try Runtime Checks
392-
# uses: "paritytech/[email protected]"
393-
# with:
394-
# runtime-package: "node-subtensor-runtime"
395-
# node-uri: "wss://test.chain.opentensor.ai:443"
396-
# checks: "pre-and-post"
397-
# extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
398-
#
362+
extra-args: "--disable-spec-version-check --no-weight-warnings"
363+
364+
check-devnet-migrations:
365+
name: check devnet migrations
366+
runs-on: ubuntu-22.04
367+
steps:
368+
- name: Checkout sources
369+
uses: actions/checkout@v3
370+
371+
- name: Run Try Runtime Checks
372+
uses: "paritytech/[email protected]"
373+
with:
374+
runtime-package: "node-subtensor-runtime"
375+
node-uri: "wss://dev.chain.opentensor.ai:443"
376+
checks: "pre-and-post"
377+
extra-args: "--disable-spec-version-check --no-weight-warnings"
378+
379+
check-testnet-migrations:
380+
name: check testnet migrations
381+
runs-on: ubuntu-22.04
382+
steps:
383+
- name: Checkout sources
384+
uses: actions/checkout@v3
385+
386+
- name: Run Try Runtime Checks
387+
uses: "paritytech/[email protected]"
388+
with:
389+
runtime-package: "node-subtensor-runtime"
390+
node-uri: "wss://test.chain.opentensor.ai:443"
391+
checks: "pre-and-post"
392+
extra-args: "--disable-spec-version-check --no-weight-warnings"
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: E2E Bittensor Tests
2+
3+
concurrency:
4+
group: e2e-bittensor-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
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
11+
push:
12+
branches: [main, development, staging]
13+
14+
##
15+
# Run automatically for PRs against default/main branch if Rust files change
16+
pull_request:
17+
branches: [main, development, staging]
18+
19+
## Allow running workflow manually from the Actions tab
20+
workflow_dispatch:
21+
inputs:
22+
verbose:
23+
description: "Output more information when triggered manually"
24+
required: false
25+
default: ""
26+
27+
env:
28+
CARGO_TERM_COLOR: always
29+
VERBOSE: ${{ github.events.input.verbose }}
30+
31+
jobs:
32+
run:
33+
runs-on: SubtensorCI
34+
strategy:
35+
matrix:
36+
rust-branch:
37+
- nightly-2024-03-05
38+
rust-target:
39+
- x86_64-unknown-linux-gnu
40+
# - x86_64-apple-darwin
41+
os:
42+
- ubuntu-latest
43+
# - macos-latest
44+
include:
45+
- os: ubuntu-latest
46+
# - os: macos-latest
47+
env:
48+
RELEASE_NAME: development
49+
RUSTV: ${{ matrix.rust-branch }}
50+
RUST_BACKTRACE: full
51+
RUST_BIN_DIR: target/${{ matrix.rust-target }}
52+
TARGET: ${{ matrix.rust-target }}
53+
steps:
54+
- name: Check-out repository under $GITHUB_WORKSPACE
55+
uses: actions/checkout@v2
56+
57+
- name: Install dependencies
58+
run: |
59+
sudo apt-get update &&
60+
sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
61+
62+
- name: Install Rust ${{ matrix.rust-branch }}
63+
uses: actions-rs/[email protected]
64+
with:
65+
toolchain: ${{ matrix.rust-branch }}
66+
components: rustfmt
67+
profile: minimal
68+
69+
- name: Clone bittensor repo
70+
run: git clone https://github.com/opentensor/bittensor.git
71+
72+
- name: Setup bittensor repo
73+
working-directory: ${{ github.workspace }}/bittensor
74+
run: |
75+
git checkout staging
76+
python3 -m pip install -e .
77+
python3 -m pip install torch
78+
79+
- name: Run tests
80+
working-directory: ${{ github.workspace }}/bittensor
81+
run: |
82+
pwd
83+
ls
84+
LOCALNET_SH_PATH="../scripts/localnet.sh" pytest tests/e2e_tests/ -s

0 commit comments

Comments
 (0)