Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Do not run slow running try state tests in CI #13286

Closed
wants to merge 3 commits into from

Conversation

Ank4n
Copy link
Contributor

@Ank4n Ank4n commented Jan 31, 2023

This should improve try state running time in CI.

Should resolve paritytech/polkadot-sdk#234.

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Jan 31, 2023
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem like an acceptable middle path for CI.

@@ -826,7 +826,7 @@ pub mod pallet {

#[cfg(feature = "try-runtime")]
fn try_state(n: BlockNumberFor<T>) -> Result<(), &'static str> {
Self::do_try_state(n)
Self::do_try_state(n, TestMode::Fast)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should support passing data into try_state so that we can run the full tests manually without code change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think we should look into how we want to do this across pallets and have a way to run full test manually probably as an arg to on-runtime-upgrade instead of having to change code.

@Ank4n Ank4n marked this pull request as draft January 31, 2023 17:53
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-check-benches
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2386880

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Staking try_state times out
3 participants