Skip to content
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

Release/7.2.0 #2018

Merged
merged 211 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
a4199fd
fix body_hash check circumvention
mjurbanski-reef Apr 26, 2024
df79322
change required_hash_fields to ClassVar
mjurbanski-reef Apr 27, 2024
cf17697
allow forward_fn to accept more arguments
mjurbanski-reef Apr 21, 2024
22b77d7
return synapse.axon.status_code in HTTP status code
mjurbanski-reef Apr 29, 2024
bb6228f
respect SynapseException overrides and hide sensitive internal errors
mjurbanski-reef May 15, 2024
49bde43
fix dendrite HTTP error handling and improve test coverage
mjurbanski-reef May 15, 2024
4c2fb78
Merge branch 'staging' into require_required_hash_fields
mjurbanski-reef May 17, 2024
7188f36
Merge branch 'staging' into respect_returned_synapse_status_code
mjurbanski-reef May 20, 2024
1b6c06e
Part 2 for refactoring bittensor/subtensor.py
roman-opentensor May 21, 2024
b5ee717
Part 2 for refactoring bittensor/subtensor.py
roman-opentensor May 21, 2024
3f6c229
Merge branch 'staging' into refactoring/roman/subtensor-part-2
roman-opentensor May 21, 2024
540604e
Part 2 request for review comments.
roman-opentensor May 21, 2024
24acf1e
fix: sufix runtime error
orriin May 22, 2024
782fde3
Merge pull request #1914 from opentensor/fix/suffix
orriin May 22, 2024
e8d0366
ci: e2e tests
orriin May 22, 2024
8cdbacd
Merge remote-tracking branch 'upstream/staging' into require_required…
mjurbanski-reef May 22, 2024
6ac98be
Merge branch 'require_required_hash_fields' of github.com:backend-dev…
mjurbanski-reef May 22, 2024
2934879
Merge branch 'staging' into require_required_hash_fields
mjurbanski-reef May 22, 2024
cb4e3a6
revert to Optional[] syntax as `| None` is not supported on Python 3.9
mjurbanski-reef May 22, 2024
82c80aa
Merge remote-tracking branch 'upstream/staging' into respect_returned…
mjurbanski-reef May 22, 2024
5abe13a
Merge branch 'staging' into ci/e2e-tests
orriin May 22, 2024
87df079
Merge pull request #1818 from backend-developers-ltd/require_required…
gus-opentensor May 22, 2024
2434838
Merge branch 'staging' into respect_returned_synapse_status_code
mjurbanski-reef May 22, 2024
bb758b3
fix PoW and other functions not working with USE_TORCH=0 despite torc…
mjurbanski-reef May 22, 2024
e3d41a2
Merge branch 'staging' into refactoring/roman/subtensor-part-2
gus-opentensor May 22, 2024
bd4bf0b
Merge pull request #1822 from backend-developers-ltd/respect_returned…
gus-opentensor May 22, 2024
730d24f
make legacy_torch_api_compat docstring more explicit
mjurbanski-reef May 22, 2024
542eba8
fix test_normalize_with_max_weight__legacy_torch_api_compat flakeines…
mjurbanski-reef May 22, 2024
03303de
Merge remote-tracking branch 'upstream/staging' into improve_no_torch
mjurbanski-reef May 22, 2024
f54157f
Merge pull request #1917 from backend-developers-ltd/improve_no_torch
thewhaleking May 22, 2024
67df81a
Further implementation of legacy_torch_api_compat.
thewhaleking May 22, 2024
c822a6e
Removed unused comments.
thewhaleking May 22, 2024
c39fc78
Merge pull request #1919 from opentensor/thewhaleking/further-legacy-…
thewhaleking May 22, 2024
cbd850c
Merge branch 'staging' into refactoring/roman/subtensor-part-2
roman-opentensor May 22, 2024
721c1c8
Merge pull request #1913 from opentensor/refactoring/roman/subtensor-…
roman-opentensor May 22, 2024
502e485
Merge branch 'staging' into ci/e2e-tests
orriin May 22, 2024
b60210f
Remove unused parameters and fix comments
opendansor May 22, 2024
c5dc22f
Merge pull request #1926 from opentensor/refactoring/opendansor/subne…
opendansor May 23, 2024
1f36ad1
Since the refactoring of this module would turn into a large project,…
roman-opentensor May 22, 2024
a38091e
Merge branch 'staging' into refactoring/roman/subtensor-part-3
roman-opentensor May 23, 2024
3489ee6
Refactor imports for required hash field, and fix naming in the comme…
opendansor May 23, 2024
948720e
Merge pull request #1927 from opentensor/refactoring/opendansor/synap…
opendansor May 23, 2024
afa165a
Improve tests logic for Part 3 of subtensor refactoring
roman-opentensor May 23, 2024
4d0f6f2
Merge branch 'staging' into refactoring/roman/subtensor-part-3
roman-opentensor May 23, 2024
53b4760
Merge branch 'staging' into ci/e2e-tests
orriin May 23, 2024
555f506
Update Pydantic Requirement to at least version 2.3 or greater.
opendansor May 23, 2024
2abd4ec
Merge pull request #1923 from opentensor/refactoring/roman/subtensor-…
roman-opentensor May 23, 2024
6941f97
Merge branch 'staging' into bugfix/opendansor/updatePydanticRequirement
opendansor May 23, 2024
187cb5b
Merge pull request #1929 from opentensor/bugfix/opendansor/updatePyda…
opendansor May 23, 2024
c7c29dc
Feat: Added normalized hyperparams
ibraheem-opentensor May 16, 2024
bb1a95a
Since the refactoring of this module would turn into a large project,…
roman-opentensor May 23, 2024
279a3a1
Normalization: Added tests and covered sudo get command
ibraheem-opentensor May 24, 2024
e793bdf
Since the refactoring of this module would turn into a large project,…
roman-opentensor May 24, 2024
d9c705b
Since the refactoring of this module would turn into a large project,…
roman-opentensor May 24, 2024
735bb8f
Since the refactoring of this module would turn into a large project,…
roman-opentensor May 24, 2024
9b6f866
Merge remote-tracking branch 'origin/refactoring/roman/subtensor-part…
roman-opentensor May 24, 2024
1bd61c0
Merge branch 'staging' into ci/e2e-tests
orriin May 24, 2024
fbf5a45
less verbose synapse exceptions
mjurbanski-reef May 23, 2024
6cf8e6e
Remove line duplication. Use # noqa: F401 for import
roman-opentensor May 24, 2024
32cff02
fix: use subtensorci
orriin May 24, 2024
434db54
Merge branch 'ci/e2e-tests' of github.com:opentensor/bittensor into c…
orriin May 24, 2024
90377f3
Merge pull request #1931 from opentensor/refactoring/roman/subtensor-…
roman-opentensor May 24, 2024
5f67d51
Merge remote-tracking branch 'origin/staging' into refactoring/roman/…
roman-opentensor May 24, 2024
b5a76d9
Merge branch 'staging' into refactoring/roman/subtensor-part-5
roman-opentensor May 24, 2024
2465b20
Merge remote-tracking branch 'origin/refactoring/roman/subtensor-part…
roman-opentensor May 24, 2024
1b0168a
Fixes based on Ben's review.
roman-opentensor May 24, 2024
e464eac
Fixes for fixes based on Ben's review
roman-opentensor May 24, 2024
672a53a
Added tests to cover all compatibility layer cases.
thewhaleking May 24, 2024
c8c710c
Merge branch 'staging' into thewhaleking/torch-compatibility-layer-tests
thewhaleking May 24, 2024
6861235
Merge pull request #1934 from opentensor/refactoring/roman/subtensor-…
roman-opentensor May 24, 2024
90baa15
Merge branch 'staging' into refactoring/roman/subtensor-part-6
roman-opentensor May 24, 2024
cf854f8
Merge branch 'staging' into thewhaleking/torch-compatibility-layer-tests
thewhaleking May 24, 2024
4513278
Fixes based on Ben's review
roman-opentensor May 24, 2024
cb93237
Add Commit weights and reveal weights function
opendansor May 24, 2024
621d0c7
Merge pull request #1935 from opentensor/refactoring/roman/subtensor-…
roman-opentensor May 24, 2024
b20aa94
Merge branch 'staging' into thewhaleking/torch-compatibility-layer-tests
ibraheem-opentensor May 24, 2024
ce4563c
Merge pull request #1937 from opentensor/thewhaleking/torch-compatibi…
thewhaleking May 24, 2024
3b52cb3
Merge branch 'staging' into feature/opendansor/commit_weights
thewhaleking May 24, 2024
e80f9dc
chore - fix take message
ibraheem-opentensor May 24, 2024
5901f86
Improved err_msg
ibraheem-opentensor May 24, 2024
2728e1b
Merge pull request #1940 from opentensor/chore/abe/fix-take-msg
ibraheem-opentensor May 24, 2024
92b3b22
- remove torch
opendansor May 24, 2024
71a6f51
Merge remote-tracking branch 'origin/feature/opendansor/commit_weight…
opendansor May 24, 2024
ad0cf03
black reformat
opendansor May 24, 2024
b71b487
Merge branch 'staging' into feature/opendansor/commit_weights
thewhaleking May 24, 2024
84ac53f
mypy reformat
opendansor May 25, 2024
603c138
Merge branch 'staging' into ci/e2e-tests
orriin May 26, 2024
262f422
Merge branch 'staging' into less_verbose_synapse_exc
mjurbanski-reef May 27, 2024
a8ced82
Add a salt function for hashing, address PR comments.
opendansor May 28, 2024
bbc56fa
Replace prompt with Confirm.ask, run black.
opendansor May 28, 2024
4fe438b
Remove mocker.
opendansor May 28, 2024
3ab1d8e
Replace some final legacy Pydantic references.
opendansor May 28, 2024
d7be843
Flake8
opendansor May 28, 2024
21eec42
Merge pull request #1945 from opentensor/bugfix/opendansor/cleanup_fr…
ibraheem-opentensor May 28, 2024
b7e81a8
Merge branch 'staging' into feature/opendansor/commit_weights
opendansor May 28, 2024
668fd29
E2E Test
opendansor May 28, 2024
d2aec6d
Float -> int for np
opendansor May 28, 2024
80ec4d6
Fix test. Normalize weights before passing as params.
opendansor May 28, 2024
c0ca5da
Fix test. Normalize weights before passing as params. Set byte length…
opendansor May 28, 2024
9628ca7
Merge pull request #1938 from opentensor/feature/opendansor/commit_we…
opendansor May 28, 2024
f57a318
Merge branch 'staging' into ci/e2e-tests
thewhaleking May 29, 2024
ad9c8b6
Merge branch 'staging' into less_verbose_synapse_exc
mjurbanski-reef May 29, 2024
47f032e
Clean up the imports in commands/stake.py
thewhaleking May 29, 2024
59aaac0
Merge pull request #1928 from backend-developers-ltd/less_verbose_syn…
thewhaleking May 29, 2024
0473df3
Merge branch 'staging' into fix/thewhaleking/stake-command-imports
thewhaleking May 29, 2024
7656af4
Merge pull request #1951 from opentensor/fix/thewhaleking/stake-comma…
thewhaleking May 29, 2024
6fc1115
Fix E2E test for Commit/Reveal with Salt flag.
opendansor May 29, 2024
e317035
Merge pull request #1952 from opentensor/chore/opendansor/fix-commit-…
opendansor May 29, 2024
c4392d9
Merge branch 'staging' into ci/e2e-tests
opendansor May 29, 2024
b26a3c7
`bittensor.chain_data.py` module refactoring. Removed unused code.
roman-opentensor May 29, 2024
119bc8d
Merge pull request #1955 from opentensor/refactoring/roman/chain_data
roman-opentensor May 29, 2024
309cc40
Merge branch 'staging' into ci/e2e-tests
orriin May 30, 2024
6675cd1
Merge pull request #1915 from opentensor/ci/e2e-tests
orriin May 30, 2024
ad0829d
fix: ipv6 is packed with port
dgagn May 31, 2024
18ee928
refactor: black ran on chain_data
dgagn May 31, 2024
2a9c268
fix: test int
dgagn May 31, 2024
cf2885b
fix: test int
dgagn May 31, 2024
94a2505
fix: small mistake typo
dgagn May 31, 2024
c7967eb
Fix return of ip version
opendansor May 31, 2024
5a50496
configure github dependabot to check for security updates
mjurbanski-reef Jun 1, 2024
a71fb4e
make production dependencies less restrictive
mjurbanski-reef Jun 1, 2024
48fdee7
fix check_compatibility.sh understanding of ~=
mjurbanski-reef Jun 1, 2024
672839e
explicitly install pytest in E2E tests
mjurbanski-reef Jun 1, 2024
8d5b926
replace black with ruff for formatting
mjurbanski-reef Jun 1, 2024
1b8068b
apply `ruff format .`
mjurbanski-reef Jun 1, 2024
0cf372e
Merge pull request #1967 from backend-developers-ltd/deps_cleanup
gus-opentensor Jun 3, 2024
ae964d2
Merge branch 'staging' into ruff
mjurbanski-reef Jun 3, 2024
28b9039
Merge pull request #1968 from backend-developers-ltd/ruff
gus-opentensor Jun 3, 2024
4bc5eaf
Merge branch 'staging' into bugfix/opendansor/fix-ip-version-2
opendansor Jun 3, 2024
87711f0
Merge branch 'staging' into ovior/fix-networking-ipv6
gus-opentensor Jun 3, 2024
d88a743
Merge pull request #1962 from dgagn/ovior/fix-networking-ipv6
gus-opentensor Jun 3, 2024
923798b
Merge branch 'staging' into bugfix/opendansor/fix-ip-version-2
opendansor Jun 3, 2024
6899884
Merge pull request #1964 from opentensor/bugfix/opendansor/fix-ip-ver…
opendansor Jun 3, 2024
6b40c6d
deprecate nest_asyncio use
mjurbanski-reef Jun 4, 2024
ae60736
Feat: Nonce implementation improved
ibraheem-opentensor Jun 4, 2024
e26be77
Removed dupe check
ibraheem-opentensor Jun 4, 2024
2006208
Removed unused func
ibraheem-opentensor Jun 4, 2024
6f92b35
feat: adds BittensorNTPClient
gus-opentensor Jun 4, 2024
745af74
Merge branch 'staging' into feat/gus-abe/nonce-implementation
gus-opentensor Jun 4, 2024
0676d8e
replace black with currently used ruff in check_pre_submit.sh
mjurbanski-reef Jun 4, 2024
9ebdc0b
delete `black` from dep apple_m1_environment.yml since it is no longe…
mjurbanski-reef Jun 4, 2024
8d7b201
Wrapper for presenting the error in a human-readable view (https://gi…
roman-opentensor Jun 4, 2024
2b2ed66
Set test timeout in 'config.yaml'
roman-opentensor Jun 5, 2024
f6d50e9
revert d88a743
camfairchild Jun 5, 2024
b86300b
Merge pull request #1979 from backend-developers-ltd/post_ruff
gus-opentensor Jun 5, 2024
51b213a
Merge branch 'staging' into fix/revert-ip-decoding-change
gus-opentensor Jun 5, 2024
0a1a686
Merge pull request #1981 from opentensor/fix/revert-ip-decoding-change
gus-opentensor Jun 5, 2024
0abd583
Merge branch 'staging' into feature/roman/retrieving-error-types-from…
gus-opentensor Jun 5, 2024
7272f5d
Merge pull request #1980 from opentensor/feature/roman/retrieving-err…
roman-opentensor Jun 5, 2024
da883e1
Added constants and retries
ibraheem-opentensor Jun 5, 2024
460a982
Nonces: cleanup and fix logging levels
ibraheem-opentensor Jun 5, 2024
f633f9d
Added ntplib in requirements
ibraheem-opentensor Jun 5, 2024
45dc30c
Fixes ruff checks
ibraheem-opentensor Jun 5, 2024
d08d20f
Merge branch 'staging' into feat/gus-abe/nonce-implementation
gus-opentensor Jun 5, 2024
4d82b51
Implementing improvements
ibraheem-opentensor Jun 5, 2024
b412b80
Ruff: Updated format
ibraheem-opentensor Jun 5, 2024
4d65d52
Add an E2E test for Axon. Create a local subnet and add axon and chec…
opendansor Jun 5, 2024
a6322e2
Merge branch 'staging' into feat/abe/normalized-hyperparams
ibraheem-opentensor Jun 6, 2024
a6a7c86
Ruff format
ibraheem-opentensor Jun 6, 2024
67c4721
Fix linter and type errors
ibraheem-opentensor Jun 6, 2024
bfc9f66
Update with async function to spin up the axon instance.
opendansor Jun 6, 2024
958d12b
Move uninstall_templates to conftest.py. Address extra parm in other …
opendansor Jun 6, 2024
9f0816a
Rename to test axon
opendansor Jun 6, 2024
e8f32bf
Add version to pytest-asyncio
opendansor Jun 6, 2024
5c759a5
Merge branch 'staging' into remove_nest_asyncio
mjurbanski-reef Jun 6, 2024
7e8cbc6
Merge pull request #1891 from opentensor/feat/abe/normalized-hyperparams
gus-opentensor Jun 6, 2024
a31ccf2
Merge branch 'staging' into remove_nest_asyncio
mjurbanski-reef Jun 6, 2024
9fd57e2
Merge pull request #1974 from backend-developers-ltd/remove_nest_asyncio
thewhaleking Jun 6, 2024
689ec43
Update e2e-subtensor-tests.yaml
opendansor Jun 6, 2024
fb527e3
Merge branch 'staging' into feature/opendansor/add_e2e_for_axon
opendansor Jun 6, 2024
8a73421
Merge pull request #1984 from opentensor/feature/opendansor/add_e2e_f…
opendansor Jun 6, 2024
a836be0
Replace NTP with system time
ibraheem-opentensor Jun 6, 2024
9e7efa0
Updated constants
ibraheem-opentensor Jun 6, 2024
ce4d535
Merge branch 'staging' into feat/gus-abe/nonce-implementation
ibraheem-opentensor Jun 6, 2024
8ef6cfe
Cleanup
ibraheem-opentensor Jun 6, 2024
551e3ba
Add E2E faucet test
opendansor Jun 7, 2024
fc47ce9
Import keypair from bittensor
opendansor Jun 7, 2024
5c1d9da
E2E test for Validators/Dendrite
opendansor Jun 7, 2024
dfe083b
Add a 5-second delay between faucet calls.
opendansor Jun 7, 2024
27c9908
Merge pull request #1988 from opentensor/feature/opendansor/test_dend…
opendansor Jun 7, 2024
57c544d
Merge branch 'staging' into feature/opendansor/e2e-faucet-test
opendansor Jun 7, 2024
0491062
Remove async, switch wallet to Bob, add try-catch and check for highe…
opendansor Jun 7, 2024
759123b
Merge remote-tracking branch 'origin/feature/opendansor/e2e-faucet-te…
opendansor Jun 7, 2024
89bda9a
Add Params, switch wallet to Alice, add try-catch for System Exit
opendansor Jun 7, 2024
e5f2fe8
Add assert to assert exact amount of tao dispensed.
opendansor Jun 7, 2024
1c8b4f4
Clean up
opendansor Jun 7, 2024
11645e6
fix __version_as_int__ for >10 minor/patch release vers (resolves #1982)
mjurbanski-reef Jun 8, 2024
03f3f94
replace map call with generator expression
mjurbanski-reef Jun 11, 2024
a99a9bd
Merge pull request #1993 from backend-developers-ltd/fix_version_as_int
thewhaleking Jun 11, 2024
125c561
Merge branch 'staging' into feat/gus-abe/nonce-implementation
ibraheem-opentensor Jun 11, 2024
ba0f02c
Merge branch 'staging' into feat/gus-abe/nonce-implementation
ibraheem-opentensor Jun 11, 2024
dc6daf8
Nonce: Included timeout and fixed versioning
ibraheem-opentensor Jun 11, 2024
d5ab67c
Test Incentive E2E
opendansor Jun 11, 2024
0cad501
Update with comments
opendansor Jun 11, 2024
760e759
Update with comments
opendansor Jun 11, 2024
80c2e19
Merge pull request #2002 from opentensor/feature/opendansor/incentive…
opendansor Jun 11, 2024
173d184
Merge branch 'staging' into feature/opendansor/e2e-faucet-test
opendansor Jun 11, 2024
c4a4d51
Merge pull request #1987 from opentensor/feature/opendansor/e2e-fauce…
opendansor Jun 11, 2024
09ae1da
Merge branch 'staging' into feat/gus-abe/nonce-implementation
ibraheem-opentensor Jun 12, 2024
2b2bd40
Merge pull request #1976 from opentensor/feat/gus-abe/nonce-implement…
gus-opentensor Jun 12, 2024
0c8449f
chore: changelog
gus-opentensor Jun 12, 2024
6d39b12
chore: bump version
gus-opentensor Jun 12, 2024
53c943c
Merge branch 'master' into release/7.2.0
gus-opentensor Jun 12, 2024
5db7b4c
chore: ruff
gus-opentensor Jun 12, 2024
365e4d7
fix: import
gus-opentensor Jun 12, 2024
6e27dc6
fix: adds _do_set_root_weights
gus-opentensor Jun 12, 2024
913c04e
chore: ruff
gus-opentensor Jun 12, 2024
ae1a5d0
Added missing nonce implementation
ibraheem-opentensor Jun 12, 2024
60bd367
chore: update changelog
gus-opentensor Jun 12, 2024
51afab8
chore: update changelog
gus-opentensor Jun 12, 2024
ea83f43
Merge pull request #2016 from opentensor/fix/allow-unstake-below-netw…
gus-opentensor Jun 12, 2024
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
55 changes: 28 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ orbs:
# coveralls: coveralls/[email protected]

jobs:
black:
ruff:
resource_class: small
parameters:
python-version:
Expand All @@ -18,29 +18,29 @@ jobs:
- checkout

- restore_cache:
name: Restore cached black venv
name: Restore cached ruff venv
keys:
- v2-pypi-py-black-<< parameters.python-version >>
- v2-pypi-py-ruff-<< parameters.python-version >>

- run:
name: Update & Activate black venv
name: Update & Activate ruff venv
command: |
python -m venv env/
. env/bin/activate
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
pip install black==23.7.0
pip install ruff -c requirements/dev.txt

- save_cache:
name: Save cached black venv
name: Save cached ruff venv
paths:
- "env/"
key: v2-pypi-py-black-<< parameters.python-version >>
- ".venv/"
key: v2-pypi-py-ruff-<< parameters.python-version >>

- run:
name: Black format check
name: Ruff format check
command: |
. env/bin/activate
python -m black --exclude '(env|venv|.eggs)' --check .
. .venv/bin/activate
ruff format --diff .

check_compatibility:
parameters:
Expand Down Expand Up @@ -85,8 +85,8 @@ jobs:
- run:
name: Update & Activate venv
command: |
python -m venv env/
. env/bin/activate
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install '.[dev]'

Expand All @@ -99,20 +99,20 @@ jobs:
- run:
name: Install Bittensor
command: |
. env/bin/activate
. .venv/bin/activate
pip install -e '.[dev]'

- run:
name: Instantiate Mock Wallet
command: |
. env/bin/activate
. .venv/bin/activate
./scripts/create_wallet.sh

# TODO: Update test durations on different runs
- run:
name: Unit Tests
no_output_timeout: 20m
command: |
. env/bin/activate
. .venv/bin/activate
export PYTHONUNBUFFERED=1
pytest -n2 --reruns 3 --durations=0 --verbose --junitxml=test-results/unit_tests.xml \
--cov=. --cov-append --cov-config .coveragerc \
Expand All @@ -122,8 +122,9 @@ jobs:

- run:
name: Integration Tests
no_output_timeout: 30m
command: |
. env/bin/activate
. .venv/bin/activate
export PYTHONUNBUFFERED=1
pytest -n2 --reruns 3 --reruns-delay 15 --durations=0 --verbose --junitxml=test-results/integration_tests.xml \
--cov=. --cov-append --cov-config .coveragerc \
Expand All @@ -143,7 +144,7 @@ jobs:
#- run:
#name: Upload Coverage
#command: |
#. env/bin/activate && coveralls
#. .venv/bin/activate && coveralls
#env:
#CI_NAME: circleci
#CI_BUILD_NUMBER: $CIRCLE_BUILD_NUM
Expand Down Expand Up @@ -173,8 +174,8 @@ jobs:
- run:
name: Update & Activate venv
command: |
python -m venv env/
. env/bin/activate
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install '.[dev]'
pip install flake8
Expand All @@ -188,19 +189,19 @@ jobs:
- run:
name: Install Bittensor
command: |
. env/bin/activate
. .venv/bin/activate
pip install -e '.[dev]'

- run:
name: Lint with flake8
command: |
. env/bin/activate
. .venv/bin/activate
python -m flake8 bittensor/ --count

- run:
name: Type check with mypy
command: |
. env/bin/activate
. .venv/bin/activate
python -m mypy --ignore-missing-imports bittensor/

unit-tests-all-python-versions:
Expand Down Expand Up @@ -290,7 +291,7 @@ workflows:

pr-requirements:
jobs:
- black:
- ruff:
python-version: "3.9.13"
- build-and-test:
matrix:
Expand Down
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: ""
file: "requirements/prod.txt"
schedule:
interval: "daily"
open-pull-requests-limit: 0 # Only security updates will be opened as PRs
84 changes: 84 additions & 0 deletions .github/workflows/e2e-subtensor-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: E2E Subtensor Tests

concurrency:
group: e2e-subtensor-${{ github.ref }}
cancel-in-progress: true

on:
## Run automatically for all PRs against main, regardless of what the changes are
## to be safe and so we can more easily force re-run the CI when github is being
## weird by using a blank commit
push:
branches: [main, development, staging]

##
# Run automatically for PRs against default/main branch if Rust files change
pull_request:
branches: [main, development, staging]

## 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
strategy:
matrix:
rust-branch:
- nightly-2024-03-05
rust-target:
- x86_64-unknown-linux-gnu
# - x86_64-apple-darwin
os:
- ubuntu-latest
# - macos-latest
include:
- os: ubuntu-latest
# - os: macos-latest
env:
RELEASE_NAME: development
RUSTV: ${{ matrix.rust-branch }}
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v2

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

- name: Install Rust ${{ matrix.rust-branch }}
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt
profile: minimal

- name: Add wasm32-unknown-unknown target
run: |
rustup target add wasm32-unknown-unknown --toolchain stable-x86_64-unknown-linux-gnu
rustup component add rust-src --toolchain stable-x86_64-unknown-linux-gnu

- name: Clone subtensor repo
run: git clone https://github.com/opentensor/subtensor.git

- name: Setup subtensor repo
working-directory: ${{ github.workspace }}/subtensor
run: git checkout testnet

- name: Run tests
run: |
python3 -m pip install -e .[dev] pytest
LOCALNET_SH_PATH="${{ github.workspace }}/subtensor/scripts/localnet.sh" pytest tests/e2e_tests/ -s
36 changes: 25 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Changelog

## 7.2.0 / 2024-06-12

## What's Changed
* less verbose handled synapse exceptions by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1928
* Clean up the imports in commands/stake.py by @thewhaleking in https://github.com/opentensor/bittensor/pull/1951
* Fix E2E test for Commit/Reveal with Salt flag by @opendansor in https://github.com/opentensor/bittensor/pull/1952
* `bittensor.chain_data.py` module refactoring. by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1955
* ci: e2e tests by @orriin in https://github.com/opentensor/bittensor/pull/1915
* Dependency cleanup by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1967
* replace `black` with `ruff` by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1968
* post-black to ruff migration cleanup by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1979
* Revert Axon IP decoding changes by @camfairchild in https://github.com/opentensor/bittensor/pull/1981
* A wrapper for presenting extrinsics errors in a human-readable form. by @RomanCh-OT in https://github.com/opentensor/bittensor/pull/1980
* Feat: Added normalized hyperparams by @ibraheem-opentensor in https://github.com/opentensor/bittensor/pull/1891
* deprecate nest_asyncio use by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1974
* Add e2e test for axon by @opendansor in https://github.com/opentensor/bittensor/pull/1984
* Dendrite E2E test by @opendansor in https://github.com/opentensor/bittensor/pull/1988
* fix __version_as_int__ for >10 minor/patch release vers (resolves #1982) by @mjurbanski-reef in https://github.com/opentensor/bittensor/pull/1993
* Test Incentive E2E by @opendansor in https://github.com/opentensor/bittensor/pull/2002
* Add E2E faucet test by @opendansor in https://github.com/opentensor/bittensor/pull/1987
* Allow unstake below network min by @camfairchild in https://github.com/opentensor/bittensor/pull/2016

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v7.1.1...v7.2.0


## 7.1.1 / 2024-06-11

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

**Full Changelog**: https://github.com/opentensor/bittensor/compare/v7.0.0...v7.0.1

## 7.0.0 / 2024-05-17

## What's Changed
* Release/7.0.0 by @gus-opentensor in https://github.com/opentensor/bittensor/pull/1899
* Fix return of ip version. by @opendansor in https://github.com/opentensor/bittensor/pull/1961
* Fix trigger use_torch() by @renesweet24 https://github.com/opentensor/bittensor/pull/1960


**Full Changelog**: https://github.com/opentensor/bittensor/compare/v7.0.0...v7.0.1


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

##


2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.1
7.2.0
Loading