Skip to content

Commit f25fa40

Browse files
Merge pull request #2018 from opentensor/release/7.2.0
Release/7.2.0
2 parents 637c9ca + ea83f43 commit f25fa40

Some content is hidden

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

78 files changed

+5514
-1638
lines changed

.circleci/config.yml

+28-27
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ orbs:
66
# coveralls: coveralls/coveralls@1.0.6
77

88
jobs:
9-
black:
9+
ruff:
1010
resource_class: small
1111
parameters:
1212
python-version:
@@ -18,29 +18,29 @@ jobs:
1818
- checkout
1919

2020
- restore_cache:
21-
name: Restore cached black venv
21+
name: Restore cached ruff venv
2222
keys:
23-
- v2-pypi-py-black-<< parameters.python-version >>
23+
- v2-pypi-py-ruff-<< parameters.python-version >>
2424

2525
- run:
26-
name: Update & Activate black venv
26+
name: Update & Activate ruff venv
2727
command: |
28-
python -m venv env/
29-
. env/bin/activate
28+
python -m venv .venv
29+
. .venv/bin/activate
3030
python -m pip install --upgrade pip
31-
pip install black==23.7.0
31+
pip install ruff -c requirements/dev.txt
3232
3333
- save_cache:
34-
name: Save cached black venv
34+
name: Save cached ruff venv
3535
paths:
36-
- "env/"
37-
key: v2-pypi-py-black-<< parameters.python-version >>
36+
- ".venv/"
37+
key: v2-pypi-py-ruff-<< parameters.python-version >>
3838

3939
- run:
40-
name: Black format check
40+
name: Ruff format check
4141
command: |
42-
. env/bin/activate
43-
python -m black --exclude '(env|venv|.eggs)' --check .
42+
. .venv/bin/activate
43+
ruff format --diff .
4444
4545
check_compatibility:
4646
parameters:
@@ -85,8 +85,8 @@ jobs:
8585
- run:
8686
name: Update & Activate venv
8787
command: |
88-
python -m venv env/
89-
. env/bin/activate
88+
python -m venv .venv
89+
. .venv/bin/activate
9090
python -m pip install --upgrade pip
9191
python -m pip install '.[dev]'
9292
@@ -99,20 +99,20 @@ jobs:
9999
- run:
100100
name: Install Bittensor
101101
command: |
102-
. env/bin/activate
102+
. .venv/bin/activate
103103
pip install -e '.[dev]'
104104
105105
- run:
106106
name: Instantiate Mock Wallet
107107
command: |
108-
. env/bin/activate
108+
. .venv/bin/activate
109109
./scripts/create_wallet.sh
110110
111-
# TODO: Update test durations on different runs
112111
- run:
113112
name: Unit Tests
113+
no_output_timeout: 20m
114114
command: |
115-
. env/bin/activate
115+
. .venv/bin/activate
116116
export PYTHONUNBUFFERED=1
117117
pytest -n2 --reruns 3 --durations=0 --verbose --junitxml=test-results/unit_tests.xml \
118118
--cov=. --cov-append --cov-config .coveragerc \
@@ -122,8 +122,9 @@ jobs:
122122
123123
- run:
124124
name: Integration Tests
125+
no_output_timeout: 30m
125126
command: |
126-
. env/bin/activate
127+
. .venv/bin/activate
127128
export PYTHONUNBUFFERED=1
128129
pytest -n2 --reruns 3 --reruns-delay 15 --durations=0 --verbose --junitxml=test-results/integration_tests.xml \
129130
--cov=. --cov-append --cov-config .coveragerc \
@@ -143,7 +144,7 @@ jobs:
143144
#- run:
144145
#name: Upload Coverage
145146
#command: |
146-
#. env/bin/activate && coveralls
147+
#. .venv/bin/activate && coveralls
147148
#env:
148149
#CI_NAME: circleci
149150
#CI_BUILD_NUMBER: $CIRCLE_BUILD_NUM
@@ -173,8 +174,8 @@ jobs:
173174
- run:
174175
name: Update & Activate venv
175176
command: |
176-
python -m venv env/
177-
. env/bin/activate
177+
python -m venv .venv
178+
. .venv/bin/activate
178179
python -m pip install --upgrade pip
179180
python -m pip install '.[dev]'
180181
pip install flake8
@@ -188,19 +189,19 @@ jobs:
188189
- run:
189190
name: Install Bittensor
190191
command: |
191-
. env/bin/activate
192+
. .venv/bin/activate
192193
pip install -e '.[dev]'
193194
194195
- run:
195196
name: Lint with flake8
196197
command: |
197-
. env/bin/activate
198+
. .venv/bin/activate
198199
python -m flake8 bittensor/ --count
199200
200201
- run:
201202
name: Type check with mypy
202203
command: |
203-
. env/bin/activate
204+
. .venv/bin/activate
204205
python -m mypy --ignore-missing-imports bittensor/
205206
206207
unit-tests-all-python-versions:
@@ -290,7 +291,7 @@ workflows:
290291

291292
pr-requirements:
292293
jobs:
293-
- black:
294+
- ruff:
294295
python-version: "3.9.13"
295296
- build-and-test:
296297
matrix:

.github/dependabot.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: ""
5+
file: "requirements/prod.txt"
6+
schedule:
7+
interval: "daily"
8+
open-pull-requests-limit: 0 # Only security updates will be opened as PRs
+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: E2E Subtensor Tests
2+
3+
concurrency:
4+
group: e2e-subtensor-${{ 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/toolchain@v1.0.6
64+
with:
65+
toolchain: ${{ matrix.rust-branch }}
66+
components: rustfmt
67+
profile: minimal
68+
69+
- name: Add wasm32-unknown-unknown target
70+
run: |
71+
rustup target add wasm32-unknown-unknown --toolchain stable-x86_64-unknown-linux-gnu
72+
rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu
73+
74+
- name: Clone subtensor repo
75+
run: git clone https://github.com/opentensor/subtensor.git
76+
77+
- name: Setup subtensor repo
78+
working-directory: ${{ github.workspace }}/subtensor
79+
run: git checkout testnet
80+
81+
- name: Run tests
82+
run: |
83+
python3 -m pip install -e .[dev] pytest
84+
LOCALNET_SH_PATH="${{ github.workspace }}/subtensor/scripts/localnet.sh" pytest tests/e2e_tests/ -s

CHANGELOG.md

+25-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Changelog
22

3+
## 7.2.0 / 2024-06-12
4+
5+
## What's Changed
6+
* less verbose handled synapse exceptions by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1928
7+
* Clean up the imports in commands/stake.py by @thewhaleking in https://github.com/opentensor/bittensor/pull/1951
8+
* Fix E2E test for Commit/Reveal with Salt flag by @opendansor in https://github.com/opentensor/bittensor/pull/1952
9+
* `bittensor.chain_data.py` module refactoring. by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1955
10+
* ci: e2e tests by @orriin in https://github.com/opentensor/bittensor/pull/1915
11+
* Dependency cleanup by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1967
12+
* replace `black` with `ruff` by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1968
13+
* post-black to ruff migration cleanup by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1979
14+
* Revert Axon IP decoding changes by @camfairchild in https://github.com/opentensor/bittensor/pull/1981
15+
* A wrapper for presenting extrinsics errors in a human-readable form. by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1980
16+
* Feat: Added normalized hyperparams by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1891
17+
* deprecate nest_asyncio use by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1974
18+
* Add e2e test for axon by @opendansor in https://github.com/opentensor/bittensor/pull/1984
19+
* Dendrite E2E test by @opendansor in https://github.com/opentensor/bittensor/pull/1988
20+
* fix __version_as_int__ for >10 minor/patch release vers (resolves #1982) by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1993
21+
* Test Incentive E2E by @opendansor in https://github.com/opentensor/bittensor/pull/2002
22+
* Add E2E faucet test by @opendansor in https://github.com/opentensor/bittensor/pull/1987
23+
* Allow unstake below network min by @camfairchild in https://github.com/opentensor/bittensor/pull/2016
24+
25+
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v7.1.1...v7.2.0
26+
27+
328
## 7.1.1 / 2024-06-11
429

530
## What's Changed
@@ -25,16 +50,6 @@
2550
## New Contributors
2651
* @renesweet24 made their first contribution in https://github.com/opentensor/bittensor/pull/1960
2752

28-
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v7.0.0...v7.0.1
29-
30-
## 7.0.0 / 2024-05-17
31-
32-
## What's Changed
33-
* Release/7.0.0 by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1899
34-
* Fix return of ip version. by @opendansor in https://github.com/opentensor/bittensor/pull/1961
35-
* Fix trigger use_torch() by @renesweet24 https://github.com/opentensor/bittensor/pull/1960
36-
37-
3853
**Full Changelog**: https://github.com/opentensor/bittensor/compare/v7.0.0...v7.0.1
3954

4055

@@ -948,4 +963,3 @@ This release refactors the registration code for CPU registration to improve sol
948963

949964
##
950965

951-

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.1.1
1+
7.2.0

0 commit comments

Comments
 (0)