mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-21 14:35:22 +08:00
This commit does the following: - Move existing smoke benchmark workflows to seperate workflow. - Add differential benchmark workflows - Split benchmarks into heavy and micro categories - Add make target arguments for benchmark time and count - Move smoketests to run only on PRs - Differential benchmarks run on merge queue Benchmarks above 1ms/op are considered heavy and should make use of iteration based benchtime to prevent the CI job from taking too much time. Benchmarks are skipped based on env vars, this is an alternative to splitting benchmark targets into seperate files with build tags. The smoke tests should be much faster and as such are set to run on PRs to ensure the targets are not broken in the change. The current parameters for differential benchmarks attempt to balance CI runner time and confidence for benchstat. Differential benchmarks determine the base commit to run the tests against, this happens within the same job to remove the runner to runner variance.