-
Notifications
You must be signed in to change notification settings - Fork 1.6k
PVF: add test-utils
feature and remove #[doc(hidden)]
#7285
Comments
Hi @mrcnski, I want to work on this, just have a few questions. polkadot/node/core/pvf/src/worker_intf.rs Lines 42 to 43 in e0ed7e8
polkadot/node/core/pvf/common/src/lib.rs Lines 33 to 34 in e0ed7e8
polkadot/node/core/pvf/common/src/pvf.rs Lines 87 to 88 in e0ed7e8
polkadot/node/core/pvf/common/src/pvf.rs Lines 99 to 100 in e0ed7e8
polkadot/node/core/pvf/common/src/pvf.rs Lines 105 to 106 in e0ed7e8
polkadot/node/core/pvf/src/lib.rs Lines 100 to 101 in e0ed7e8
polkadot/node/core/pvf/src/lib.rs Lines 103 to 105 in e0ed7e8
Is that correct? May I assume that all functions using them are test functions? |
Also, I'm not sure if the CI scripts in |
Yea I am using the |
@jpserrat as far as I see, the |
Would also be nice to gate the puppet worker behind the new feature (as anything related to the puppet worker is test-only). I think it can be done with |
Thanks a lot for the help and suggestions with this one. Let me know if there are some improvements to be made. |
ISSUE
Overview
In the PVF modules we export a good amount of stuff for only testing in other crates.
#[cfg(test)]
does not expose code across crates so we use#[doc(hidden)]
for exposing test methods. However it's unfortunate that test code ends up in production builds this way. This can be done in a nicer way by adding a new feature.Credit to @s0me0ne-unkn0wn here.
The text was updated successfully, but these errors were encountered: