Skip to content

Commit 6959cba

Browse files
committed
merge
2 parents 590249c + e8eae82 commit 6959cba

File tree

20 files changed

+419
-39
lines changed

20 files changed

+419
-39
lines changed

.github/workflows/check-rust.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
strategy:
7878
matrix:
7979
rust-branch:
80-
- nightly-2024-03-05
80+
- stable
8181
rust-target:
8282
- x86_64-unknown-linux-gnu
8383
# - x86_64-apple-darwin
@@ -125,7 +125,7 @@ jobs:
125125
strategy:
126126
matrix:
127127
rust-branch:
128-
- nightly-2024-03-05
128+
- stable
129129
rust-target:
130130
- x86_64-unknown-linux-gnu
131131
# - x86_64-apple-darwin
@@ -166,15 +166,14 @@ jobs:
166166

167167
- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
168168
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
169-
170169
# runs cargo test --workspace
171170
cargo-test:
172171
name: cargo test
173172
runs-on: SubtensorCI
174173
strategy:
175174
matrix:
176175
rust-branch:
177-
- nightly-2024-03-05
176+
- stable
178177
rust-target:
179178
- x86_64-unknown-linux-gnu
180179
# - x86_64-apple-darwin
@@ -223,7 +222,7 @@ jobs:
223222
strategy:
224223
matrix:
225224
rust-branch:
226-
- nightly-2024-03-05
225+
- stable
227226
rust-target:
228227
- x86_64-unknown-linux-gnu
229228
# - x86_64-apple-darwin
@@ -272,7 +271,7 @@ jobs:
272271
strategy:
273272
matrix:
274273
rust-branch:
275-
- nightly-2024-03-05
274+
- stable
276275
rust-target:
277276
- x86_64-unknown-linux-gnu
278277
# - x86_64-apple-darwin
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Tested on Devnet
2+
on:
3+
pull_request:
4+
types: [opened, labeled, unlabeled, synchronize]
5+
branches: [main]
6+
jobs:
7+
check-labels:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: mheap/github-action-required-labels@v5
14+
with:
15+
mode: minimum
16+
count: 1
17+
labels: |
18+
devnet-pass
19+
devnet-skip

.github/workflows/docker.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- main
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
packages: write
17+
actions: read
18+
security-events: write
19+
20+
jobs:
21+
publish:
22+
runs-on: SubtensorCI
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Set up QEMU
29+
uses: docker/setup-qemu-action@v2
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v2
33+
34+
- name: Login to GHCR
35+
uses: docker/login-action@v2
36+
with:
37+
registry: ghcr.io
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Extract metadata (tags, labels) for Docker
42+
id: meta
43+
uses: docker/metadata-action@v4
44+
with:
45+
images: ghcr.io/${{ github.repository }}
46+
47+
- name: Build and push Docker image
48+
uses: docker/build-push-action@v4
49+
with:
50+
context: .
51+
push: true
52+
tags: |
53+
${{ steps.meta.outputs.tags }}
54+
ghcr.io/${{ github.repository }}:latest
55+
labels: ${{ steps.meta.outputs.labels }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ jobs:
8282
run: |
8383
pwd
8484
ls
85-
LOCALNET_SH_PATH="../scripts/localnet.sh" pytest tests/e2e_tests/ -s
85+
LOCALNET_SH_PATH="${{ github.workspace }}/scripts/localnet.sh" pytest tests/e2e_tests/ -s
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Tested on Testnet
2+
on:
3+
pull_request:
4+
types: [opened, labeled, unlabeled, synchronize]
5+
branches: [main]
6+
jobs:
7+
check-labels:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: mheap/github-action-required-labels@v5
14+
with:
15+
mode: minimum
16+
count: 1
17+
labels: |
18+
testnet-pass
19+
testnet-skip

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@ specs/*.json
3737
.vscode
3838

3939
# IntelliJ IDEA configuration
40-
.idea
40+
.idea
41+
42+
# Runtime upgrade snapshot
43+
bt.snap

node/src/rpc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct FullDeps<C, P, B> {
4242
/// Grandpa block import setup.
4343
pub grandpa: GrandpaDeps<B>,
4444
/// Backend used by the node.
45-
pub backend: Arc<B>,
45+
pub _backend: Arc<B>,
4646
}
4747

4848
/// Instantiate all full RPC extensions.
@@ -74,7 +74,7 @@ where
7474
pool,
7575
deny_unsafe,
7676
grandpa,
77-
backend: _,
77+
_backend: _,
7878
} = deps;
7979

8080
// Custom RPC methods for Paratensor

node/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
266266
subscription_executor: subscription_executor.clone(),
267267
finality_provider: finality_proof_provider.clone(),
268268
},
269-
backend: rpc_backend.clone(),
269+
_backend: rpc_backend.clone(),
270270
};
271271
crate::rpc::create_full(deps).map_err(Into::into)
272272
},

pallets/admin-utils/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ pub use weights::WeightInfo;
77
use sp_runtime::DispatchError;
88
use sp_runtime::{traits::Member, RuntimeAppPublic};
99

10-
#[cfg(feature = "runtime-benchmarks")]
1110
mod benchmarking;
1211

1312
#[deny(missing_docs)]

pallets/commitments/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#![cfg_attr(not(feature = "std"), no_std)]
22

3+
mod benchmarking;
34
#[cfg(test)]
45
mod tests;
56

6-
#[cfg(feature = "runtime-benchmarks")]
7-
mod benchmarking;
8-
97
pub mod types;
108
pub mod weights;
119

@@ -234,7 +232,7 @@ where
234232
pub fn get_priority_vanilla() -> u64 {
235233
// Return high priority so that every extrinsic except set_weights function will
236234
// have a higher priority than the set_weights call
237-
u64::max_value()
235+
u64::MAX
238236
}
239237
}
240238

0 commit comments

Comments
 (0)