-
Notifications
You must be signed in to change notification settings - Fork 378
[CI/CD] Run all benchmarks as (unit)tests on every PR #2806
Comments
👍 |
Benchmarks in general already support running themselves as part of In Polkadot we also run all benchmarks in some "short setup": https://github.com/paritytech/polkadot/blob/04d2c187e46290f6f3002e76a1a5575bca68f5be/scripts/ci/gitlab/pipeline/short-benchmarks.yml#L4-L27 |
We should indeed run the benches quickly as Basti linked above. The unit tests themselves dont run with the real runtimes. |
You mean in the CI tests? Maybe we mean the same thing, but just in case, what makes the release difficult is benchmarks compiling/passing CI but then failing assertions when actually run at release time. So we should check that they still work, but still do the full |
@bkchr thank you, I prepared the same "short-benchmark" for Cumulus and it is working: #2846 @jsidorenko |
We regenerate benchmarks (well, from time to time) - for releases, when something big is coming to the Cumulus..), also we dont regenerate them on PRs to master or for every companion, companions just check if benchmarks compile.
But the consequence is that we could have non-working benchmarks in master.
Good example is: #2712 (where we want to pass with all benchmarks with new
bench bot
)#2727
#2765
#2777
everything was fixed and meantime there was some PR which again broke previously-working
asset-hub-westend
https://gitlab.parity.io/parity/mirrors/cumulus/-/jobs/3099790Issues/Solutions:
--steps=1
and--repeat=1
)polkadot-parachain
again or maybe reuse some previous one from CI (with--features=runtime-benchmarks
)The text was updated successfully, but these errors were encountered: