fix(ci): update UI test stderr files for pezsp_api rebrand, increase test-doc timeout

- Update 5 .stderr files: sp_api → pezsp_api references and column numbers
  (empty_impl_runtime_apis_call, impl_incorrect_method_signature,
   mock_advanced_hash_by_reference, mock_only_self_reference,
   type_reference_in_impl_runtime_apis_call)
- Increase test-doc timeout 180→300min (VPS needs ~3h for doc tests)
This commit is contained in:
2026-02-27 17:57:31 +03:00
parent 48d3a14808
commit aa45e1a108
6 changed files with 21 additions and 21 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
test-doc: test-doc:
runs-on: ${{ needs.preflight.outputs.RUNNER }} runs-on: ${{ needs.preflight.outputs.RUNNER }}
timeout-minutes: 180 timeout-minutes: 300
needs: [preflight] needs: [preflight]
container: container:
image: ${{ needs.preflight.outputs.IMAGE }} image: ${{ needs.preflight.outputs.IMAGE }}
@@ -1,7 +1,7 @@
error: No api implementation given! error: No api implementation given!
--> tests/ui/empty_impl_runtime_apis_call.rs:28:1 --> tests/ui/empty_impl_runtime_apis_call.rs:28:1
| |
28 | sp_api::impl_runtime_apis! {} 28 | pezsp_api::impl_runtime_apis! {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
= note: this error originates in the macro `sp_api::impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `pezsp_api::impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -1,7 +1,7 @@
error[E0603]: struct `RuntimeVersion` is private error[E0603]: struct `RuntimeVersion` is private
--> tests/ui/impl_incorrect_method_signature.rs:37:27 --> tests/ui/impl_incorrect_method_signature.rs:37:30
| |
37 | fn version() -> sp_api::RuntimeVersion { 37 | fn version() -> pezsp_api::RuntimeVersion {
| ^^^^^^^^^^^^^^ private struct | ^^^^^^^^^^^^^^ private struct
| |
note: the struct `RuntimeVersion` is defined here note: the struct `RuntimeVersion` is defined here
@@ -11,12 +11,12 @@ note: the struct `RuntimeVersion` is defined here
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing this struct instead help: consider importing this struct instead
| |
37 - fn version() -> sp_api::RuntimeVersion { 37 - fn version() -> pezsp_api::RuntimeVersion {
37 + fn version() -> sp_version::RuntimeVersion { 37 + fn version() -> sp_version::RuntimeVersion {
| |
help: import `RuntimeVersion` directly help: import `RuntimeVersion` directly
| |
37 - fn version() -> sp_api::RuntimeVersion { 37 - fn version() -> pezsp_api::RuntimeVersion {
37 + fn version() -> sp_version::RuntimeVersion { 37 + fn version() -> sp_version::RuntimeVersion {
| |
@@ -42,7 +42,7 @@ help: change the parameter type to match the trait
error[E0308]: mismatched types error[E0308]: mismatched types
--> tests/ui/impl_incorrect_method_signature.rs:33:11 --> tests/ui/impl_incorrect_method_signature.rs:33:11
| |
31 | / sp_api::impl_runtime_apis! { 31 | / pezsp_api::impl_runtime_apis! {
32 | | impl self::Api<Block> for Runtime { 32 | | impl self::Api<Block> for Runtime {
33 | | fn test(data: String) {} 33 | | fn test(data: String) {}
| | ^^^^ expected `u64`, found `String` | | ^^^^ expected `u64`, found `String`
@@ -1,7 +1,7 @@
error: `Hash` needs to be taken by value and not by reference! error: `Hash` needs to be taken by value and not by reference!
--> tests/ui/mock_advanced_hash_by_reference.rs:29:1 --> tests/ui/mock_advanced_hash_by_reference.rs:29:1
| |
29 | / sp_api::mock_impl_runtime_apis! { 29 | / pezsp_api::mock_impl_runtime_apis! {
30 | | impl Api<Block> for MockApi { 30 | | impl Api<Block> for MockApi {
31 | | #[advanced] 31 | | #[advanced]
32 | | fn test(&self, _: &Hash) -> Result<(), ApiError> { 32 | | fn test(&self, _: &Hash) -> Result<(), ApiError> {
@@ -9,4 +9,4 @@ error: `Hash` needs to be taken by value and not by reference!
36 | | } 36 | | }
| |_^ | |_^
| |
= note: this error originates in the macro `sp_api::mock_impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `pezsp_api::mock_impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -13,34 +13,34 @@ error: Only `&self` is supported!
error[E0050]: method `test` has 2 parameters but the declaration in trait `Api::test` has 3 error[E0050]: method `test` has 2 parameters but the declaration in trait `Api::test` has 3
--> tests/ui/mock_only_self_reference.rs:29:1 --> tests/ui/mock_only_self_reference.rs:29:1
| |
20 | / sp_api::decl_runtime_apis! { 20 | / pezsp_api::decl_runtime_apis! {
21 | | pub trait Api { 21 | | pub trait Api {
22 | | fn test(data: u64); 22 | | fn test(data: u64);
| |_________________________- trait requires 3 parameters | |_________________________- trait requires 3 parameters
... ...
29 | / sp_api::mock_impl_runtime_apis! { 29 | / pezsp_api::mock_impl_runtime_apis! {
30 | | impl Api<Block> for MockApi { 30 | | impl Api<Block> for MockApi {
31 | | fn test(self, data: u64) {} 31 | | fn test(self, data: u64) {}
... | ... |
35 | | } 35 | | }
| |_^ expected 3 parameters, found 2 | |_^ expected 3 parameters, found 2
| |
= note: this error originates in the macro `sp_api::mock_impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `pezsp_api::mock_impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0050]: method `test2` has 2 parameters but the declaration in trait `Api::test2` has 3 error[E0050]: method `test2` has 2 parameters but the declaration in trait `Api::test2` has 3
--> tests/ui/mock_only_self_reference.rs:29:1 --> tests/ui/mock_only_self_reference.rs:29:1
| |
20 | / sp_api::decl_runtime_apis! { 20 | / pezsp_api::decl_runtime_apis! {
21 | | pub trait Api { 21 | | pub trait Api {
22 | | fn test(data: u64); 22 | | fn test(data: u64);
23 | | fn test2(data: u64); 23 | | fn test2(data: u64);
| |__________________________- trait requires 3 parameters | |__________________________- trait requires 3 parameters
... ...
29 | / sp_api::mock_impl_runtime_apis! { 29 | / pezsp_api::mock_impl_runtime_apis! {
30 | | impl Api<Block> for MockApi { 30 | | impl Api<Block> for MockApi {
31 | | fn test(self, data: u64) {} 31 | | fn test(self, data: u64) {}
... | ... |
35 | | } 35 | | }
| |_^ expected 3 parameters, found 2 | |_^ expected 3 parameters, found 2
| |
= note: this error originates in the macro `sp_api::mock_impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the macro `pezsp_api::mock_impl_runtime_apis` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -1,7 +1,7 @@
error[E0603]: struct `RuntimeVersion` is private error[E0603]: struct `RuntimeVersion` is private
--> tests/ui/type_reference_in_impl_runtime_apis_call.rs:39:27 --> tests/ui/type_reference_in_impl_runtime_apis_call.rs:39:30
| |
39 | fn version() -> sp_api::RuntimeVersion { 39 | fn version() -> pezsp_api::RuntimeVersion {
| ^^^^^^^^^^^^^^ private struct | ^^^^^^^^^^^^^^ private struct
| |
note: the struct `RuntimeVersion` is defined here note: the struct `RuntimeVersion` is defined here
@@ -11,12 +11,12 @@ note: the struct `RuntimeVersion` is defined here
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing this struct instead help: consider importing this struct instead
| |
39 - fn version() -> sp_api::RuntimeVersion { 39 - fn version() -> pezsp_api::RuntimeVersion {
39 + fn version() -> sp_version::RuntimeVersion { 39 + fn version() -> sp_version::RuntimeVersion {
| |
help: import `RuntimeVersion` directly help: import `RuntimeVersion` directly
| |
39 - fn version() -> sp_api::RuntimeVersion { 39 - fn version() -> pezsp_api::RuntimeVersion {
39 + fn version() -> sp_version::RuntimeVersion { 39 + fn version() -> sp_version::RuntimeVersion {
| |
@@ -42,7 +42,7 @@ help: change the parameter type to match the trait
error[E0308]: mismatched types error[E0308]: mismatched types
--> tests/ui/type_reference_in_impl_runtime_apis_call.rs:33:11 --> tests/ui/type_reference_in_impl_runtime_apis_call.rs:33:11
| |
31 | / sp_api::impl_runtime_apis! { 31 | / pezsp_api::impl_runtime_apis! {
32 | | impl self::Api<Block> for Runtime { 32 | | impl self::Api<Block> for Runtime {
33 | | fn test(data: &u64) { 33 | | fn test(data: &u64) {
| | ^^^^^^^ expected `u64`, found `&u64` | | ^^^^^^^ expected `u64`, found `&u64`