Skip to content

Commit bc7e0b4

Browse files
authored
integrate teerdays (#203)
* bump versions * integrated teerdays and ran benchmarks for own pallets only * run again for enclave bridge * re-ran all benchmarks * lift patches * bump pallets * pin rustc stable
1 parent 1a18046 commit bc7e0b4

24 files changed

+1274
-644
lines changed

.cargo/zepter.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version:
2+
format: 1
3+
# Minimum version of the binary that is expected to work. This is just for printing a nice error
4+
# message when someone tries to use an older version.
5+
binary: 0.13.2
6+
7+
# The examples in this file assume crate `A` to have a dependency on crate `B`.
8+
workflows:
9+
check:
10+
- [
11+
'lint',
12+
# Check that `A` activates the features of `B`.
13+
'propagate-feature',
14+
# These are the features to check:
15+
'--features=try-runtime,runtime-benchmarks,std',
16+
# Do not try to add a new section into `[features]` of `A` only because `B` expose that feature. There are edge-cases where this is still needed, but we can add them manually.
17+
'--left-side-feature-missing=ignore',
18+
# Ignore the case that `A` it outside of the workspace. Otherwise it will report errors in external dependencies that we have no influence on.
19+
'--left-side-outside-workspace=ignore',
20+
# Some features imply that they activate a specific dependency as non-optional. Otherwise the default behaviour with a `?` is used.
21+
'--feature-enables-dep=try-runtime:frame-try-runtime,runtime-benchmarks:frame-benchmarking',
22+
# Auxillary flags:
23+
'--offline',
24+
'--locked',
25+
'--show-path',
26+
'--quiet',
27+
]
28+
# Same as `check`, but with the `--fix` flag.
29+
default:
30+
- [ $check.0, '--fix' ]
31+
32+
# Will be displayed when any workflow fails:
33+
help:
34+
text: |
35+
This repo uses the Zepter CLI to detect abnormalities in the feature configuration.
36+
It looks like one more more checks failed; please check the console output. You can try to automatically address them by running `zepter`.
37+
Otherwise please ask directly in the Merge Request, GitHub Discussions or on Matrix Chat, thank you.
38+
links:
39+
- "https://github.com/ggwpez/zepter"

.github/workflows/ci.yml

+22
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,28 @@ jobs:
183183
- name: ${{ matrix.check }}
184184
run: cargo ${{ matrix.check }}
185185

186+
cargo-zepter:
187+
name: Cargo Zepter
188+
runs-on: ubuntu-latest
189+
190+
steps:
191+
- name: Install stable Rust
192+
uses: actions-rs/toolchain@v1
193+
with:
194+
profile: minimal
195+
toolchain: stable
196+
197+
- name: Install Zepter
198+
run: cargo install --locked -q zepter && zepter --version
199+
200+
- name: Checkout
201+
uses: actions/checkout@v4
202+
with:
203+
fetch-depth: 0 # Don't clone historic commits.
204+
205+
- name: Check features
206+
run: zepter run check
207+
186208
license-check:
187209
runs-on: ubuntu-latest
188210
steps:

Cargo.lock

+55-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+10-7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ pallet-claims = { default-features = false, git = "https://github.com/integritee
2828
pallet-enclave-bridge = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" }
2929
pallet-sidechain = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" }
3030
pallet-teeracle = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" }
31+
pallet-teerdays = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" }
3132
pallet-teerex = { default-features = false, git = "https://github.com/integritee-network/pallets.git", branch = "polkadot-v1.13.0" }
3233

3334
# substrate deps
@@ -105,18 +106,20 @@ substrate-wasm-builder = "23.0.0"
105106
substrate-build-script-utils = "11.0.0"
106107

107108
#[patch."https://github.com/integritee-network/pallets.git"]
109+
#claims-primitives = { path = '../pallets/primitives/claims' }
110+
#common-primitives = { path = '../pallets/primitives/common' }
111+
#enclave-bridge-primitives = { path = '../pallets/primitives/enclave-bridge' }
108112
#pallet-claims = { path = '../pallets/claims' }
109113
#pallet-enclave-bridge = { path = '../pallets/enclave-bridge' }
110-
#pallet-teerex = { path = '../pallets/teerex' }
111114
#pallet-sidechain = { path = '../pallets/sidechain' }
112-
#sgx-verify = { path = '../pallets/teerex/sgx-verify' }
113115
#pallet-teeracle = { path = '../pallets/teeracle' }
114-
#test-utils = { path = '../pallets/test-utils' }
115-
#claims-primitives = { path = '../pallets/primitives/claims' }
116-
#enclave-bridge-primitives = { path = '../pallets/primitives/enclave-bridge' }
117-
#teerex-primitives = { path = '../pallets/primitives/teerex' }
116+
#pallet-teerdays = { path = '../pallets/teerdays' }
117+
#pallet-teerex = { path = '../pallets/teerex' }
118+
#sgx-verify = { path = '../pallets/teerex/sgx-verify' }
118119
#teeracle-primitives = { path = '../pallets/primitives/teeracle' }
119-
#common-primitives = { path = '../pallets/primitives/common' }
120+
#teerdays-primitives = { path = '../pallets/primitives/teerdays' }
121+
#teerex-primitives = { path = '../pallets/primitives/teerex' }
122+
#test-utils = { path = '../pallets/test-utils' }
120123

121124
[patch.crates-io]
122125
ring = { git = "https://github.com/betrusted-io/ring-xous", branch = "0.16.20-cleanup" }

node/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = 'Apache-2.0'
88
name = 'integritee-node'
99
repository = 'https://github.com/integritee-network/integritee-node'
1010
# Align major.minor revision with polkadot sdk, bump patch revision ad lib. Make this the github release tag.
11-
version = '1.13.0'
11+
version = '1.13.1'
1212
[package.metadata.docs.rs]
1313
targets = ["x86_64-unknown-linux-gnu"]
1414

@@ -76,6 +76,8 @@ runtime-benchmarks = [
7676
"sc-service/runtime-benchmarks",
7777
"frame-benchmarking/runtime-benchmarks",
7878
"frame-benchmarking-cli/runtime-benchmarks",
79+
"frame-system/runtime-benchmarks",
80+
"sp-runtime/runtime-benchmarks",
7981
]
8082
# for secure launch of a live solo network, do enable extrinsic filtering
8183
extrinsic-filtering = ["integritee-node-runtime/extrinsic-filtering"]

runtime/Cargo.toml

+11-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = 'Apache-2.0'
66
name = 'integritee-node-runtime'
77
repository = 'https://github.com/integritee-network/integritee-node'
88
# keep patch revision with spec_version of runtime
9-
version = '1.13.390'
9+
version = '1.13.400'
1010

1111
[package.metadata.docs.rs]
1212
targets = ["x86_64-unknown-linux-gnu"]
@@ -34,6 +34,7 @@ pallet-claims = { workspace = true }
3434
pallet-enclave-bridge = { workspace = true }
3535
pallet-sidechain = { workspace = true }
3636
pallet-teeracle = { workspace = true }
37+
pallet-teerdays = { workspace = true }
3738
pallet-teerex = { workspace = true }
3839

3940
sp-api = { workspace = true }
@@ -115,14 +116,18 @@ std = [
115116
"pallet-proxy/std",
116117
"pallet-utility/std",
117118
"pallet-teeracle/std",
119+
"pallet-teerdays/std",
120+
"frame-benchmarking?/std",
121+
"frame-system-benchmarking?/std",
122+
"pallet-preimage/std",
123+
"sp-staking/std",
118124
]
119125
runtime-benchmarks = [
120126
"frame-benchmarking/runtime-benchmarks",
121127
"frame-support/runtime-benchmarks",
122128
"frame-system-benchmarking/runtime-benchmarks",
123129
"hex-literal",
124130
"sp-runtime/runtime-benchmarks",
125-
# actual pallets to be benchmarked
126131
"frame-system/runtime-benchmarks",
127132
"pallet-balances/runtime-benchmarks",
128133
"pallet-grandpa/frame-benchmarking",
@@ -139,4 +144,8 @@ runtime-benchmarks = [
139144
"pallet-utility/runtime-benchmarks",
140145
"pallet-teeracle/runtime-benchmarks",
141146
"pallet-sidechain/runtime-benchmarks",
147+
"pallet-teerdays/runtime-benchmarks",
148+
"pallet-grandpa/runtime-benchmarks",
149+
"pallet-sudo/runtime-benchmarks",
150+
"sp-staking/runtime-benchmarks",
142151
]

0 commit comments

Comments
 (0)