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

Testnet 290524 #492

Merged
merged 304 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
b791b45
fix an assert
open-junius May 6, 2024
630d5b3
fix: genesis config
orriin May 6, 2024
ef2ade3
fix: zepter
orriin May 6, 2024
2cc70b3
Merge pull request #391 from opentensor/junius/fix-metadata
open-junius May 6, 2024
a769cce
Merge pull request #397 from opentensor/fix/genesis-config-v1.10
sam0x17 May 6, 2024
3465d33
fix: clippy ci
orriin May 6, 2024
44ec632
fix: clippy
orriin May 6, 2024
42aff7e
fix: cargo warning
orriin May 6, 2024
e323eb6
do commit/reveal & add tests
JohnReedV May 6, 2024
172e31a
fix
JohnReedV May 6, 2024
4433cde
kick ci
orriin May 7, 2024
4cb17ad
kick ci
orriin May 7, 2024
c044947
fix checks
JohnReedV May 7, 2024
81a8aad
fix tests
JohnReedV May 7, 2024
51b6189
Merge branch 'development' into commit-reveal-weights
JohnReedV May 7, 2024
001918a
re add errors
JohnReedV May 7, 2024
68ed802
add doc for call
open-junius May 8, 2024
46b350d
add comments
open-junius May 8, 2024
ebebd21
add commitments pallet
open-junius May 8, 2024
7936383
add registry pallet
open-junius May 8, 2024
b56c179
fix: clippy
orriin May 8, 2024
144386e
ci: use subtensorci
orriin May 8, 2024
d7633ac
Merge pull request #398 from opentensor/fix/clippy-deny-warnings
orriin May 8, 2024
81ce10e
start subtensor pallet
open-junius May 8, 2024
1b22f33
revert set_weights removal
JohnReedV May 8, 2024
dcd0b0f
revert set_weights removal
JohnReedV May 8, 2024
2686bef
cargo clippy
JohnReedV May 8, 2024
9ba4e48
expand test_commit_reveal_interval
JohnReedV May 8, 2024
024c744
feat: make faucet feeless
May 8, 2024
60f1e67
fix more docs
open-junius May 9, 2024
83dabf9
fix doc check
open-junius May 9, 2024
1260934
remove '
open-junius May 9, 2024
dc6ff91
fix pays no check
open-junius May 9, 2024
deb32dd
remove test
open-junius May 9, 2024
d241191
fix benchmark
open-junius May 9, 2024
2b8d13e
revert make faucet feeless
JohnReedV May 9, 2024
f765321
remove commented code
open-junius May 9, 2024
60e8fd0
remove nonce from hash
JohnReedV May 9, 2024
2a2ba23
cargo clippy
JohnReedV May 9, 2024
7d70267
cargo fmt
JohnReedV May 9, 2024
e4d9220
Added reserved nodes to docker compose to ensure sync with validator
shibshib May 10, 2024
bc13b7b
fix: bump spec version
orriin May 10, 2024
18c520d
Merge pull request #408 from opentensor/fix/bump-development-spec-ver…
sam0x17 May 10, 2024
da21fb6
Merge pull request #406 from opentensor/reserved_test_nodes
sam0x17 May 10, 2024
a3e0813
Added reserved nodes to docker compose to ensure sync with validator
shibshib May 10, 2024
8d6890b
commit missing Cargo.lock changes
sam0x17 May 10, 2024
833364b
Merge pull request #404 from opentensor/junius/fix-pays-no
sam0x17 May 10, 2024
cb8754f
Merge pull request #409 from opentensor/bring-in-reserved-nodes-chang…
sam0x17 May 10, 2024
5961668
fix nonce to bytes
open-junius May 10, 2024
5f93914
use le types
open-junius May 10, 2024
1a538c5
remove unneed test
open-junius May 10, 2024
74f2f3b
Merge pull request #410 from opentensor/junius/fix-faucet-calc
distributedstatemachine May 10, 2024
0ae2d5e
start commit-reveal WIP
JohnReedV May 5, 2024
9bf95fb
do commit/reveal & add tests
JohnReedV May 6, 2024
2d26b09
fix
JohnReedV May 6, 2024
bbc9383
fix checks
JohnReedV May 7, 2024
93b3e6c
fix tests
JohnReedV May 7, 2024
45989cb
re add errors
JohnReedV May 7, 2024
69899f0
revert set_weights removal
JohnReedV May 8, 2024
3466bf6
revert set_weights removal
JohnReedV May 8, 2024
3f5cc37
cargo clippy
JohnReedV May 8, 2024
677a241
expand test_commit_reveal_interval
JohnReedV May 8, 2024
c8b5d2e
feat: make faucet feeless
May 8, 2024
098efb2
revert make faucet feeless
JohnReedV May 9, 2024
e6daa91
remove nonce from hash
JohnReedV May 9, 2024
7f88478
cargo clippy
JohnReedV May 9, 2024
a65a43b
cargo fmt
JohnReedV May 10, 2024
4b5175b
Merge branch 'commit-reveal-weights' of github.com:opentensor/subtens…
JohnReedV May 10, 2024
50a305b
Merge branch 'development' into commit-reveal-weights
JohnReedV May 10, 2024
3fa337e
fix cargo.lock
JohnReedV May 10, 2024
9c8cab6
Merge branch 'commit-reveal-weights' of github.com:opentensor/subtens…
JohnReedV May 10, 2024
627ca4d
Merge branch 'development' into junius/doc-improvement
open-junius May 10, 2024
3178bfa
add logs
JohnReedV May 10, 2024
45c09da
add
open-junius May 11, 2024
3c29a06
place holder for doc
open-junius May 11, 2024
fffc6cb
correct format
open-junius May 11, 2024
841db8a
add doc comments for commit/reveal
JohnReedV May 12, 2024
f8a4839
more correct doc
open-junius May 12, 2024
79d9dc0
docs done
open-junius May 12, 2024
c4e0903
revert update
open-junius May 12, 2024
4a3156e
finish doc comments
JohnReedV May 12, 2024
c4246dc
prevent division by zero
JohnReedV May 12, 2024
869eabb
add benchmarks for commit/reveal
JohnReedV May 12, 2024
da4d9b9
fix warning
JohnReedV May 12, 2024
f073f03
Merge pull request #390 from cuteolaf/patch-1
distributedstatemachine May 13, 2024
08e5a5c
Fix root subnetwork weights normalization
May 13, 2024
5e557b2
comments -> rust docs
JohnReedV May 13, 2024
dc2396c
merge with development
open-junius May 13, 2024
22a9a66
update weight values
JohnReedV May 13, 2024
81b8400
update wrong error code
open-junius May 13, 2024
ede6d4c
fix some docs
open-junius May 14, 2024
751143d
better error desc
open-junius May 14, 2024
8bd62d3
fix test
open-junius May 14, 2024
c1d4ef8
feat: allow invoking localnet.sh from anywhere
orriin May 14, 2024
bc563ca
fix two function doc
open-junius May 14, 2024
9cd8108
chore: fix test_network_pruning
May 14, 2024
17452cc
chore: fmt
May 14, 2024
cae140e
remove some unused errors
open-junius May 14, 2024
e905e63
remove more unused errors
open-junius May 14, 2024
d4464ed
remove unused errors
open-junius May 14, 2024
c823cd8
Merge pull request #413 from opentensor/feat/call-localnet-from-anywhere
sam0x17 May 14, 2024
4ee2aab
more doc for function
open-junius May 14, 2024
c3450f3
add docs for function
open-junius May 14, 2024
dd93e0c
Merge pull request #396 from opentensor/commit-reveal-weights
distributedstatemachine May 14, 2024
05f922a
fix doc error
open-junius May 14, 2024
564509e
more function doc
open-junius May 14, 2024
c531371
merge with development
open-junius May 14, 2024
d77316f
correct format doc
open-junius May 14, 2024
bed6568
update wrong format doc
open-junius May 15, 2024
5cf85a9
remove tab
open-junius May 15, 2024
250625c
remove tab
open-junius May 15, 2024
ed84d0d
Merge pull request #400 from opentensor/junius/doc-improvement
open-junius May 15, 2024
39ae13a
fix benchmarks
JohnReedV May 15, 2024
bfc43b9
test dissolve_network
JohnReedV May 15, 2024
7148878
cargo fmt
JohnReedV May 15, 2024
967e5a4
update weights
JohnReedV May 15, 2024
ecbf959
fix new errors in old tests
JohnReedV May 15, 2024
397eb54
Merge pull request #423 from opentensor/test-dissolve-network
distributedstatemachine May 16, 2024
2a08486
Merge pull request #424 from opentensor/fix-benchmarks
distributedstatemachine May 16, 2024
47ef3d8
fix: localnet pow-faucet feature
orriin May 16, 2024
8ef17ba
Merge pull request #427 from opentensor/fix/localnet-features
distributedstatemachine May 16, 2024
86c94b8
chore: clean up tests
May 16, 2024
0120e42
Merge pull request #415 from opentensor/pr/igoralferov/411-1
distributedstatemachine May 16, 2024
31ecfff
Remove more direct indexing
keithtensor May 16, 2024
7d2c624
Remove unused import
keithtensor May 16, 2024
b263c1e
add sudo calls & tests
JohnReedV May 16, 2024
a1937cd
cargo fmt
JohnReedV May 16, 2024
6d3786f
init the solution
open-junius May 17, 2024
d5d20a3
Merge pull request #429 from opentensor/fix-remaining-direct-indexing
sam0x17 May 17, 2024
751f834
update more errors
open-junius May 17, 2024
00c7a75
correct unit test
open-junius May 17, 2024
ac9a166
fix more unit test
open-junius May 17, 2024
894e6c7
fix unit test
open-junius May 17, 2024
8010214
update one more error
open-junius May 17, 2024
6ff738b
update one error
open-junius May 17, 2024
d1ee620
feat: e2e bittensor tests
orriin May 17, 2024
9c77315
chore: increase initial balances
orriin May 17, 2024
14b1682
fix: concurrency groups
orriin May 17, 2024
5cdf439
improve more errors
open-junius May 17, 2024
3f0c369
update more errors
open-junius May 17, 2024
7c18b5f
update more error
open-junius May 17, 2024
b0be095
fix unit test
open-junius May 17, 2024
f62af27
more error change
open-junius May 17, 2024
32adeca
fix fmt
open-junius May 17, 2024
7b58ba3
more error update
open-junius May 17, 2024
f0a2f36
update last one
open-junius May 17, 2024
10dcb20
Merge branch 'development' into junius/detailed-error-type
open-junius May 17, 2024
5fa5475
add to subnet hyperparams
JohnReedV May 17, 2024
2e073f8
Merge pull request #434 from opentensor/feat/e2e-bittensor-tests
distributedstatemachine May 19, 2024
15a5546
Remove more direct indexing
keithtensor May 16, 2024
f1db90d
Remove unused import
keithtensor May 16, 2024
f7553e2
chore: give alice more 💵
May 19, 2024
62e3fda
chore: reduce block time to 1 second
May 19, 2024
88cd41e
Merge remote-tracking branch 'origin/testnet' into try-finney-deploy-…
sam0x17 May 20, 2024
1048858
Merge remote-tracking branch 'origin/testnet' into try-finney-deploy-…
sam0x17 May 20, 2024
44ac0a9
Merge branch 'development' into junius/detailed-error-type
open-junius May 21, 2024
4407df4
remove unused method
open-junius May 21, 2024
083f3d2
Merge branch 'try-finney-deploy-5-20-2024' of github.com:opentensor/s…
May 21, 2024
54578ab
chore: bump finney spec version
May 21, 2024
3ddd88a
chore: bump spec version
May 21, 2024
65d8367
Merge pull request #442 from opentensor/try-finney-deploy-5-20-2024
distributedstatemachine May 21, 2024
d3b07a0
update error docs
open-junius May 22, 2024
ee625c4
chore: use staging e2e tests
orriin May 22, 2024
56f6c02
feat: min take 9%
May 22, 2024
c0e3078
chore: fmt
May 22, 2024
5bdb80d
fix: admin-utils tests
May 22, 2024
29814dc
chore: fmt
May 22, 2024
ca5dfe6
fix one comment
open-junius May 22, 2024
0632431
fix one comment
open-junius May 22, 2024
481cf61
fix one comment
open-junius May 22, 2024
ef16b6d
fix one comment
open-junius May 22, 2024
8d3f182
fix one comment
open-junius May 22, 2024
4129c8a
fix one comment
open-junius May 22, 2024
6bf9072
fix one more comment
open-junius May 22, 2024
3784610
Merge pull request #450 from opentensor/feat/use-staging-e2e-tests
distributedstatemachine May 22, 2024
7a09392
Update comments in staking tes
gztensor May 22, 2024
1e37c13
chore: comment out publish ci
May 22, 2024
54e620c
chore: pr comments
May 22, 2024
74778a6
fmt , delete publish job
May 22, 2024
8aa14d9
fix: test
May 22, 2024
8153831
Merge pull request #451 from opentensor/patch/delegate_take
distributedstatemachine May 22, 2024
f748825
add benchmark weight results
JohnReedV May 22, 2024
d3de3fd
update test comment
open-junius May 23, 2024
2e586d7
typo
orriin Apr 30, 2024
07d8f77
fix last comment
open-junius May 23, 2024
4f8f62e
Merge branch 'development' into junius/detailed-error-type
open-junius May 23, 2024
1e1ba1b
Merge pull request #433 from opentensor/junius/detailed-error-type
open-junius May 23, 2024
f75f40e
init solution
open-junius May 23, 2024
55c06d9
fix node id
open-junius May 23, 2024
2530066
use removed stake to update balance in clear nom
camfairchild May 23, 2024
e380c6b
add tests
camfairchild May 23, 2024
dd25a7c
Sweep nom stake below minimum
camfairchild May 23, 2024
a4a8b87
Fix hotregs hotpatch rebased off of main
shibshib Apr 29, 2024
ac0be46
fix test for POW register
camfairchild May 23, 2024
94a55e6
bump spec
camfairchild May 23, 2024
55dcbd9
remove applied migrations
orriin May 23, 2024
33284b1
Merge pull request #463 from opentensor/fix/fix-reg-interval-too-short
distributedstatemachine May 23, 2024
55195c9
Merge pull request #462 from opentensor/fix/allow-unstake-below-nom-l…
distributedstatemachine May 23, 2024
dc401bc
Update pallets/subtensor/src/staking.rs
camfairchild May 23, 2024
d30411e
remove applied migrations
orriin May 23, 2024
53a02df
fix: fmt
orriin May 23, 2024
970e3ec
revert change to initial mock config
camfairchild May 23, 2024
dbef23b
Merge pull request #464 from opentensor/hotfix/reapply-before-testnet…
distributedstatemachine May 23, 2024
a63bde9
Merge pull request #459 from opentensor/chore/migrations
orriin May 23, 2024
b392030
Merge branch 'main' into junius/fix-wrong-raw-spec
open-junius May 23, 2024
571a409
Merge pull request #460 from opentensor/junius/fix-wrong-raw-spec
distributedstatemachine May 23, 2024
42ff4c9
Merge pull request #364 from PawKanarek/fix-run-subtensor
distributedstatemachine May 23, 2024
8ee36c9
fix spec in dev
open-junius May 24, 2024
0ea83b5
Merge pull request #470 from opentensor/junius/fix-spec-dev
distributedstatemachine May 24, 2024
86ea8d4
add test
JohnReedV May 24, 2024
1f4a389
use reference instead of take()
JohnReedV May 24, 2024
46990bd
feat: burn emissions for subnets with registrations turned off
May 25, 2024
490ea18
chore: make registrations allowed field pub
May 25, 2024
05151ef
chore: use getter
May 25, 2024
b09065c
tests
May 25, 2024
a90a3ce
Merge branch 'development' into backport/dev_no_registration_no_emission
distributedstatemachine May 27, 2024
04137e1
chore: change error def in delegate take test , lints
May 27, 2024
cbc5e4b
Add salt to weights commit-reveal
gztensor May 27, 2024
0acb78f
chore: clippy
May 27, 2024
d3c487a
chore: fmt
May 27, 2024
52e1ed3
feat: chain extension
orriin May 24, 2024
8b28f54
Enable exponential backoff for AuRa
keithtensor May 27, 2024
da7b41c
cargo fmt
keithtensor May 27, 2024
906864b
Use 15 blocks as the unfinalized slack
keithtensor May 27, 2024
25abdf3
Use 6 blocks as the unfinalized slack
keithtensor May 27, 2024
38ea19d
Merge pull request #480 from opentensor/enable-exponential-backoff
distributedstatemachine May 27, 2024
e93174d
feat: localnet fast blocks
orriin May 28, 2024
abaaf60
Merge branch 'development' into feat/localnet-fast-blocks
orriin May 28, 2024
7c6e34f
fix: clean up hanging nodes
orriin May 28, 2024
c56a418
Merge pull request #481 from opentensor/feat/localnet-fast-blocks
distributedstatemachine May 28, 2024
c911072
feat: add cititation.cft
May 28, 2024
d969e6c
add set_target_stakes_per_interval extrinsic
open-junius May 28, 2024
cf8be17
add it in mock file
open-junius May 28, 2024
0b283e2
Merge pull request #483 from opentensor/junius/add-one-admin-extrinsic
open-junius May 28, 2024
b89bbdf
cargo fmt & clippy
JohnReedV May 28, 2024
b6965ef
add event for stakes interval set
open-junius May 28, 2024
06295e4
salt u8 -> u16
JohnReedV May 28, 2024
86ee896
Merge branch 'development' into feat/chain-extension
orriin May 29, 2024
255d867
Merge pull request #479 from opentensor/feat/chain-extension
orriin May 29, 2024
e73d193
Merge pull request #478 from opentensor/feat/add-random-salt-commit-r…
distributedstatemachine May 29, 2024
737adf8
Merge branch 'testnet_290524' into development
distributedstatemachine May 29, 2024
8431083
Merge remote-tracking branch 'origin/development' into sudo-calls-com…
JohnReedV May 29, 2024
8060e47
fix merge
JohnReedV May 29, 2024
396b035
Merge pull request #484 from opentensor/junius/event-for-stakes-inter…
distributedstatemachine May 29, 2024
e663b37
Merge branch 'development' into sudo-calls-commit-reveal
JohnReedV May 29, 2024
b59e28c
fix merge
JohnReedV May 29, 2024
bb73abf
Merge branch 'development' into backport/dev_no_registration_no_emission
distributedstatemachine May 29, 2024
8b91ed4
Merge pull request #475 from opentensor/backport/dev_no_registration_…
distributedstatemachine May 29, 2024
cac9b44
Merge branch 'development' into sudo-calls-commit-reveal
May 29, 2024
86b7f6d
Merge pull request #432 from opentensor/sudo-calls-commit-reveal
distributedstatemachine May 29, 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
131 changes: 86 additions & 45 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI
name: Check Rust

concurrency:
group: ci-${{ github.ref }}
group: check-rust-${{ github.ref }}
cancel-in-progress: true

on:
Expand Down Expand Up @@ -71,8 +71,7 @@ jobs:
- name: cargo fmt
run: cargo fmt --check --all

# runs cargo clippy --workspace --all-targets --all-features
cargo-clippy:
cargo-clippy-default-features:
name: cargo clippy
runs-on: SubtensorCI
strategy:
Expand Down Expand Up @@ -117,8 +116,56 @@ jobs:
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo clippy --workspace --all-targets --all-features
run: cargo clippy --workspace --all-targets --all-features
- name: cargo clippy --workspace --all-targets -- -D warnings
run: cargo clippy --workspace --all-targets -- -D warnings

cargo-clippy-all-features:
name: cargo clippy --all-features
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
# RUSTFLAGS: -A warnings
RUSTV: ${{ matrix.rust-branch }}
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
SKIP_WASM_BUILD: 1
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/toolchain@v1.0.6
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt, clippy
profile: minimal

- name: Utilize Shared Rust Cache
uses: Swatinem/rust-cache@v2.2.1
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets --all-features -- -D warnings

# runs cargo test --workspace
cargo-test:
Expand Down Expand Up @@ -279,7 +326,7 @@ jobs:

check-feature-propagation:
name: zepter run check
runs-on: ubuntu-22.04
runs-on: SubtensorCI

steps:
- name: Install stable Rust
Expand All @@ -301,7 +348,7 @@ jobs:

check-finney-migrations:
name: check finney migrations
runs-on: ubuntu-22.04
runs-on: SubtensorCI
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand All @@ -312,40 +359,34 @@ jobs:
runtime-package: "node-subtensor-runtime"
node-uri: "wss://entrypoint-finney.opentensor.ai:443"
checks: "pre-and-post"
extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"

# ----
# We can enable devnet and finney migrations once Polkadot v1.0 is deployed to finney, after
# which time all future migrations should be idempotent and won't start failing after the
# upgrade is deployed.
# ----
# check-devnet-migrations:
# name: check devnet migrations
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout sources
# uses: actions/checkout@v3
#
# - name: Run Try Runtime Checks
# uses: "paritytech/try-runtime-gha@v0.1.0"
# with:
# runtime-package: "node-subtensor-runtime"
# node-uri: "wss://dev.chain.opentensor.ai:443"
# checks: "pre-and-post"
# extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
#
# check-testnet-migrations:
# name: check testnet migrations
# runs-on: ubuntu-22.04
# steps:
# - name: Checkout sources
# uses: actions/checkout@v3
#
# - name: Run Try Runtime Checks
# uses: "paritytech/try-runtime-gha@v0.1.0"
# with:
# runtime-package: "node-subtensor-runtime"
# node-uri: "wss://test.chain.opentensor.ai:443"
# checks: "pre-and-post"
# extra-args: "--disable-spec-version-check --no-weight-warnings --disable-idempotency-checks"
#
extra-args: "--disable-spec-version-check --no-weight-warnings"

check-devnet-migrations:
name: check devnet migrations
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v3

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

check-testnet-migrations:
name: check testnet migrations
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Run Try Runtime Checks
uses: "paritytech/try-runtime-gha@v0.1.0"
with:
runtime-package: "node-subtensor-runtime"
node-uri: "wss://test.chain.opentensor.ai:443"
checks: "pre-and-post"
extra-args: "--disable-spec-version-check --no-weight-warnings"
84 changes: 84 additions & 0 deletions .github/workflows/e2e-bittensor-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: E2E Bittensor Tests

concurrency:
group: e2e-bittensor-${{ 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/toolchain@v1.0.6
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt
profile: minimal

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

- name: Setup bittensor repo
working-directory: ${{ github.workspace }}/bittensor
run: |
git checkout staging
python3 -m pip install -e .
python3 -m pip install torch

- name: Run tests
working-directory: ${{ github.workspace }}/bittensor
run: |
pwd
ls
LOCALNET_SH_PATH="../scripts/localnet.sh" pytest tests/e2e_tests/ -s
102 changes: 0 additions & 102 deletions .github/workflows/publish-tag.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ specs/*.json
*.orig

# VSCode configuration
.vscode
.vscode

# IntelliJ IDEA configuration
.idea
Empty file added CITATION.cft
Empty file.
Loading
Loading