fix: tests misc CI failures

- Add default impl for try_successful_origin in EnsureOriginWithArg trait
  to handle feature unification where pezframe-support/runtime-benchmarks
  is enabled but implementing crate's runtime-benchmarks is not
- Add SKIP_WASM_BUILD=1 to test-node-metrics job to avoid serde_core WASM bug
- Skip vendor workspace crates in check-each-crate.py that can't build standalone
This commit is contained in:
2026-01-28 16:50:26 +03:00
parent 6378693f97
commit 0cb3f97092
3 changed files with 30 additions and 1 deletions
@@ -177,8 +177,14 @@ pub trait EnsureOriginWithArg<OuterOrigin, Argument> {
/// is impossible.
///
/// ** Should be used for benchmarking only!!! **
///
/// Default implementation returns `Err(())` to handle feature unification issues where
/// pezframe-support/runtime-benchmarks is enabled but the implementing crate's
/// runtime-benchmarks feature is not. Implementations should override this.
#[cfg(feature = "runtime-benchmarks")]
fn try_successful_origin(a: &Argument) -> Result<OuterOrigin, ()>;
fn try_successful_origin(_a: &Argument) -> Result<OuterOrigin, ()> {
Err(())
}
}
/// Simple macro to explicitly implement [EnsureOriginWithArg] to be used on any type which