From d6031ac38623fbf77d39f94d002fb51ce73e506c Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Tue, 12 Jul 2022 16:42:44 -0500 Subject: [PATCH] Add test_suites for better CI runs (#11037) --- testing/endtoend/BUILD.bazel | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/testing/endtoend/BUILD.bazel b/testing/endtoend/BUILD.bazel index 5581b86fe..2d36ce124 100644 --- a/testing/endtoend/BUILD.bazel +++ b/testing/endtoend/BUILD.bazel @@ -5,6 +5,45 @@ load("@prysm//tools/go:def.bzl", "go_test") # gazelle:exclude mainnet_scenario_e2e_test.go # gazelle:exclude minimal_scenario_e2e_test.go +# Presubmit tests represent the group of endtoend tests that are run on pull +# requests and must be passing before a pull request can merge. +test_suite( + name = "presubmit", + tags = [ + "e2e", + "manual", + ], + tests = [ + ":go_default_test", + ], +) + +# Postsubmit tests represent the group of endtoend tests that are run after a +# pull request has merged. +test_suite( + name = "postsubmit", + tags = [ + "e2e", + "manual", + ], + tests = [ + ":go_mainnet_test", + ], +) + +# Scenario tests are run infrequently in CI to test specific scenarios. +test_suite( + name = "scenario_tests", + tags = [ + "e2e", + "manual", + ], + tests = [ + ":go_mainnet_scenario_test", + ":go_minimal_scenario_test", + ], +) + common_deps = [ "//api/client/beacon:go_default_library", "//beacon-chain/blockchain/testing:go_default_library",