Skip to content

Commit 741d47e

Browse files
Update shivarthu_2_keeganquigley.md
1 parent ecb18c3 commit 741d47e

File tree

1 file changed

+191
-0
lines changed

1 file changed

+191
-0
lines changed

evaluations/shivarthu_2_keeganquigley.md

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,196 @@
11
# General Notes
22

3+
Benchmarking tests are failing:
4+
5+
<details>
6+
<summary>Output</summary>
7+
8+
```rust
9+
error[E0599]: no variant or associated item named `new_call_variant_do_something` found for enum `pallet::Call` in the current scope
10+
--> custom-pallets/sortition-sum-game/src/benchmarking.rs:10:1
11+
|
12+
10 | #[benchmarks]
13+
| ^^^^^^^^^^^^^ variant or associated item not found in `Call<T>`
14+
|
15+
::: custom-pallets/sortition-sum-game/src/lib.rs:32:1
16+
|
17+
32 | pub mod pallet {
18+
| --- variant or associated item `new_call_variant_do_something` not found for this enum
19+
|
20+
= note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
21+
22+
error[E0433]: failed to resolve: use of undeclared type `Something`
23+
--> custom-pallets/sortition-sum-game/src/benchmarking.rs:21:14
24+
|
25+
21 | assert_eq!(Something::<T>::get(), Some(value));
26+
| ^^^^^^^^^ use of undeclared type `Something`
27+
28+
error[E0433]: failed to resolve: use of undeclared type `Something`
29+
--> custom-pallets/sortition-sum-game/src/benchmarking.rs:26:3
30+
|
31+
26 | Something::<T>::put(100u32);
32+
| ^^^^^^^^^ use of undeclared type `Something`
33+
34+
error[E0599]: no variant or associated item named `new_call_variant_cause_error` found for enum `pallet::Call` in the current scope
35+
--> custom-pallets/sortition-sum-game/src/benchmarking.rs:10:1
36+
|
37+
10 | #[benchmarks]
38+
| ^^^^^^^^^^^^^ variant or associated item not found in `Call<T>`
39+
|
40+
::: custom-pallets/sortition-sum-game/src/lib.rs:32:1
41+
|
42+
32 | pub mod pallet {
43+
| --- variant or associated item `new_call_variant_cause_error` not found for this enum
44+
|
45+
= note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
46+
47+
error[E0433]: failed to resolve: use of undeclared type `Something`
48+
--> custom-pallets/sortition-sum-game/src/benchmarking.rs:31:14
49+
|
50+
31 | assert_eq!(Something::<T>::get(), Some(101u32));
51+
| ^^^^^^^^^ use of undeclared type `Something`
52+
53+
Some errors have detailed explanations: E0433, E0599.
54+
For more information about an error, try `rustc --explain E0433`.
55+
error: could not compile `pallet-sortition-sum-game` (lib) due to 7 previous errors
56+
warning: build failed, waiting for other jobs to finish...
57+
error: failed to run custom build command for `node-template-runtime v0.0.0 (/home/ubuntu/shivarthu/runtime)`
58+
59+
Caused by:
60+
process didn't exit successfully: `/home/ubuntu/shivarthu/target/debug/build/node-template-runtime-d16dcaae1a46c1b2/build-script-build` (exit status: 1)
61+
--- stdout
62+
Information that should be included in a bug report.
63+
Executing build command: env -u CARGO_ENCODED_RUSTFLAGS -u RUSTC CARGO_TARGET_DIR="/home/ubuntu/shivarthu/target/debug/wbuild/node-template-runtime/target" RUSTC_BOOTSTRAP="1" RUSTFLAGS="-C target-cpu=mvp -C target-feature=-sign-ext -C link-arg=--export-table -Clink-arg=--export=__heap_base -C link-arg=--import-memory --cfg substrate_runtime " SKIP_WASM_BUILD="" "/home/ubuntu/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/ubuntu/shivarthu/target/debug/wbuild/node-template-runtime/Cargo.toml" "--color=always" "--profile" "release" "-Z" "build-std"
64+
Using rustc version: rustc 1.81.0 (eeb90cda1 2024-09-04)
65+
66+
67+
--- stderr
68+
Locking 1 package to latest compatible version
69+
Adding node-template-runtime-blob v1.0.0 (/home/ubuntu/shivarthu/target/debug/wbuild/node-template-runtime)
70+
Compiling sp-runtime v31.0.1 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
71+
Compiling node-template-runtime v0.0.0 (/home/ubuntu/shivarthu/runtime)
72+
Compiling sp-version v29.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
73+
Compiling sp-staking v26.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
74+
Compiling sp-timestamp v26.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
75+
Compiling sp-consensus-slots v0.32.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
76+
Compiling sp-api v26.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
77+
Compiling sp-genesis-builder v0.7.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
78+
Compiling sp-session v27.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
79+
Compiling sp-consensus-grandpa v13.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
80+
Compiling sp-consensus-aura v0.32.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
81+
Compiling frame-support v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
82+
Compiling sp-offchain v26.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
83+
Compiling frame-system-rpc-runtime-api v26.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
84+
Compiling sp-block-builder v26.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
85+
Compiling sp-transaction-pool v26.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
86+
Compiling frame-system v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
87+
Compiling trait-sortition-sum-game v0.1.0 (/home/ubuntu/shivarthu/traits/trait-sortition-sum-game)
88+
Compiling trait-schelling-game-shared v0.1.0 (/home/ubuntu/shivarthu/traits/trait-schelling-game-shared)
89+
Compiling trait-shared-storage v0.1.0 (/home/ubuntu/shivarthu/traits/trait-shared-storage)
90+
Compiling trait-departments v0.1.0 (/home/ubuntu/shivarthu/traits/trait-departments)
91+
Compiling project-tips-runtime-api v0.1.0 (/home/ubuntu/shivarthu/custom-pallets/project-tips/project-tips-runtime-api)
92+
Compiling department-funding-runtime-api v0.1.0 (/home/ubuntu/shivarthu/custom-pallets/department-funding/department-funding-runtime-api)
93+
warning: unused import: `sp_std::prelude::*`
94+
--> /home/ubuntu/shivarthu/custom-pallets/project-tips/project-tips-runtime-api/src/lib.rs:6:5
95+
|
96+
6 | use sp_std::prelude::*;
97+
| ^^^^^^^^^^^^^^^^^^
98+
|
99+
= note: `#[warn(unused_imports)]` on by default
100+
101+
warning: unused import: `sp_std::prelude::*`
102+
--> /home/ubuntu/shivarthu/custom-pallets/department-funding/department-funding-runtime-api/src/lib.rs:6:5
103+
|
104+
6 | use sp_std::prelude::*;
105+
| ^^^^^^^^^^^^^^^^^^
106+
|
107+
= note: `#[warn(unused_imports)]` on by default
108+
109+
warning: `project-tips-runtime-api` (lib) generated 1 warning (run `cargo fix --lib -p project-tips-runtime-api` to apply 1 suggestion)
110+
Compiling profile-validation-runtime-api v0.1.0 (/home/ubuntu/shivarthu/custom-pallets/profile-validation/profile-validation-runtime-api)
111+
warning: `department-funding-runtime-api` (lib) generated 1 warning (run `cargo fix --lib -p department-funding-runtime-api` to apply 1 suggestion)
112+
Compiling positive-externality-runtime-api v0.1.0 (/home/ubuntu/shivarthu/custom-pallets/positive-externality/positive-externality-runtime-api)
113+
warning: unused import: `sp_std::prelude::*`
114+
--> /home/ubuntu/shivarthu/custom-pallets/positive-externality/positive-externality-runtime-api/src/lib.rs:6:5
115+
|
116+
6 | use sp_std::prelude::*;
117+
| ^^^^^^^^^^^^^^^^^^
118+
|
119+
= note: `#[warn(unused_imports)]` on by default
120+
121+
warning: `positive-externality-runtime-api` (lib) generated 1 warning (run `cargo fix --lib -p positive-externality-runtime-api` to apply 1 suggestion)
122+
Compiling frame-benchmarking v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
123+
Compiling pallet-authorship v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
124+
Compiling pallet-transaction-payment v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
125+
Compiling frame-executive v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
126+
Compiling pallet-insecure-randomness-collective-flip v16.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
127+
Compiling pallet-transaction-payment-rpc-runtime-api v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
128+
Compiling pallet-timestamp v27.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
129+
Compiling pallet-balances v28.0.0 (https://github.com/paritytech/polkadot-sdk.git?tag=polkadot-v1.9.0#3c3d6fce)
130+
Compiling pallet-sortition-sum-game v4.0.0-dev (/home/ubuntu/shivarthu/custom-pallets/sortition-sum-game)
131+
error[E0599]: no variant or associated item named `new_call_variant_do_something` found for enum `pallet::Call` in the current scope
132+
--> /home/ubuntu/shivarthu/custom-pallets/sortition-sum-game/src/benchmarking.rs:10:1
133+
|
134+
10 | #[benchmarks]
135+
| ^^^^^^^^^^^^^ variant or associated item not found in `Call<T>`
136+
|
137+
::: /home/ubuntu/shivarthu/custom-pallets/sortition-sum-game/src/lib.rs:32:1
138+
|
139+
32 | / pub mod pallet {
140+
33 | | use super::*;
141+
34 | |
142+
35 | | #[pallet::pallet]
143+
... |
144+
70 | | }
145+
71 | | }
146+
| |_- variant or associated item `new_call_variant_do_something` not found for this enum
147+
|
148+
= note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
149+
150+
error[E0433]: failed to resolve: use of undeclared type `Something`
151+
--> /home/ubuntu/shivarthu/custom-pallets/sortition-sum-game/src/benchmarking.rs:21:14
152+
|
153+
21 | assert_eq!(Something::<T>::get(), Some(value));
154+
| ^^^^^^^^^ use of undeclared type `Something`
155+
156+
error[E0433]: failed to resolve: use of undeclared type `Something`
157+
--> /home/ubuntu/shivarthu/custom-pallets/sortition-sum-game/src/benchmarking.rs:26:3
158+
|
159+
26 | Something::<T>::put(100u32);
160+
| ^^^^^^^^^ use of undeclared type `Something`
161+
162+
error[E0599]: no variant or associated item named `new_call_variant_cause_error` found for enum `pallet::Call` in the current scope
163+
--> /home/ubuntu/shivarthu/custom-pallets/sortition-sum-game/src/benchmarking.rs:10:1
164+
|
165+
10 | #[benchmarks]
166+
| ^^^^^^^^^^^^^ variant or associated item not found in `Call<T>`
167+
|
168+
::: /home/ubuntu/shivarthu/custom-pallets/sortition-sum-game/src/lib.rs:32:1
169+
|
170+
32 | / pub mod pallet {
171+
33 | | use super::*;
172+
34 | |
173+
35 | | #[pallet::pallet]
174+
... |
175+
70 | | }
176+
71 | | }
177+
| |_- variant or associated item `new_call_variant_cause_error` not found for this enum
178+
|
179+
= note: this error originates in the attribute macro `benchmarks` (in Nightly builds, run with -Z macro-backtrace for more info)
180+
181+
error[E0433]: failed to resolve: use of undeclared type `Something`
182+
--> /home/ubuntu/shivarthu/custom-pallets/sortition-sum-game/src/benchmarking.rs:31:14
183+
|
184+
31 | assert_eq!(Something::<T>::get(), Some(101u32));
185+
| ^^^^^^^^^ use of undeclared type `Something`
186+
187+
Some errors have detailed explanations: E0433, E0599.
188+
For more information about an error, try `rustc --explain E0433`.
189+
error: could not compile `pallet-sortition-sum-game` (lib) due to 5 previous errors
190+
warning: build failed, waiting for other jobs to finish...
191+
```
192+
</details>
193+
3194
There are a ton of warnings when running cargo clippy:
4195

5196
<details>

0 commit comments

Comments
 (0)