diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b324f52a6e..ea3d93bd04 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -14,7 +14,7 @@ Added working on StackStorm, improve our security posture, and improve CI reliability thanks in part to pants' use of PEX lockfiles. This is not a user-facing addition. #5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850 - #5846 + #5846 #5853 Contributed by @cognifloyd * Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805 diff --git a/contrib/runners/action_chain_runner/tests/integration/BUILD b/contrib/runners/action_chain_runner/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/contrib/runners/action_chain_runner/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/contrib/runners/action_chain_runner/tests/unit/BUILD b/contrib/runners/action_chain_runner/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/contrib/runners/action_chain_runner/tests/unit/BUILD +++ b/contrib/runners/action_chain_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/announcement_runner/tests/integration/BUILD b/contrib/runners/announcement_runner/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/contrib/runners/announcement_runner/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/contrib/runners/announcement_runner/tests/unit/BUILD b/contrib/runners/announcement_runner/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/contrib/runners/announcement_runner/tests/unit/BUILD +++ b/contrib/runners/announcement_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/http_runner/tests/integration/BUILD b/contrib/runners/http_runner/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/contrib/runners/http_runner/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/contrib/runners/http_runner/tests/unit/BUILD b/contrib/runners/http_runner/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/contrib/runners/http_runner/tests/unit/BUILD +++ b/contrib/runners/http_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/inquirer_runner/tests/integration/BUILD b/contrib/runners/inquirer_runner/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/contrib/runners/inquirer_runner/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/contrib/runners/inquirer_runner/tests/unit/BUILD b/contrib/runners/inquirer_runner/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/contrib/runners/inquirer_runner/tests/unit/BUILD +++ b/contrib/runners/inquirer_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/local_runner/tests/integration/BUILD b/contrib/runners/local_runner/tests/integration/BUILD index 57341b1358..36ed6e8c52 100644 --- a/contrib/runners/local_runner/tests/integration/BUILD +++ b/contrib/runners/local_runner/tests/integration/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/local_runner/tests/unit/BUILD b/contrib/runners/local_runner/tests/unit/BUILD new file mode 100644 index 0000000000..59df096266 --- /dev/null +++ b/contrib/runners/local_runner/tests/unit/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) diff --git a/contrib/runners/noop_runner/tests/integration/BUILD b/contrib/runners/noop_runner/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/contrib/runners/noop_runner/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/contrib/runners/noop_runner/tests/unit/BUILD b/contrib/runners/noop_runner/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/contrib/runners/noop_runner/tests/unit/BUILD +++ b/contrib/runners/noop_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/orquesta_runner/tests/integration/BUILD b/contrib/runners/orquesta_runner/tests/integration/BUILD index 57341b1358..36ed6e8c52 100644 --- a/contrib/runners/orquesta_runner/tests/integration/BUILD +++ b/contrib/runners/orquesta_runner/tests/integration/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/orquesta_runner/tests/unit/BUILD b/contrib/runners/orquesta_runner/tests/unit/BUILD index 5934dd9b24..f52633177d 100644 --- a/contrib/runners/orquesta_runner/tests/unit/BUILD +++ b/contrib/runners/orquesta_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", dependencies=[ diff --git a/contrib/runners/python_runner/tests/integration/BUILD b/contrib/runners/python_runner/tests/integration/BUILD index 57341b1358..36ed6e8c52 100644 --- a/contrib/runners/python_runner/tests/integration/BUILD +++ b/contrib/runners/python_runner/tests/integration/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/python_runner/tests/unit/BUILD b/contrib/runners/python_runner/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/contrib/runners/python_runner/tests/unit/BUILD +++ b/contrib/runners/python_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/contrib/runners/remote_runner/tests/integration/BUILD b/contrib/runners/remote_runner/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/contrib/runners/remote_runner/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/contrib/runners/remote_runner/tests/unit/BUILD b/contrib/runners/remote_runner/tests/unit/BUILD new file mode 100644 index 0000000000..59df096266 --- /dev/null +++ b/contrib/runners/remote_runner/tests/unit/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) diff --git a/contrib/runners/winrm_runner/tests/integration/BUILD b/contrib/runners/winrm_runner/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/contrib/runners/winrm_runner/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/contrib/runners/winrm_runner/tests/unit/BUILD b/contrib/runners/winrm_runner/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/contrib/runners/winrm_runner/tests/unit/BUILD +++ b/contrib/runners/winrm_runner/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/st2actions/tests/integration/BUILD b/st2actions/tests/integration/BUILD index 57341b1358..36ed6e8c52 100644 --- a/st2actions/tests/integration/BUILD +++ b/st2actions/tests/integration/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/st2actions/tests/unit/BUILD b/st2actions/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/st2actions/tests/unit/BUILD +++ b/st2actions/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/st2api/tests/integration/BUILD b/st2api/tests/integration/BUILD index 9cd1d7c3e2..cc78b24189 100644 --- a/st2api/tests/integration/BUILD +++ b/st2api/tests/integration/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) + python_tests( name="tests", dependencies=[ diff --git a/st2api/tests/unit/BUILD b/st2api/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/st2api/tests/unit/BUILD +++ b/st2api/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/st2auth/tests/integration/BUILD b/st2auth/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/st2auth/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/st2auth/tests/unit/BUILD b/st2auth/tests/unit/BUILD index bd52dfb436..8b7799ccf8 100644 --- a/st2auth/tests/unit/BUILD +++ b/st2auth/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", dependencies=[ diff --git a/st2client/tests/integration/BUILD b/st2client/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/st2client/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/st2client/tests/unit/BUILD b/st2client/tests/unit/BUILD index 4af5ab5d8d..fc8d04408d 100644 --- a/st2client/tests/unit/BUILD +++ b/st2client/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", dependencies=[ diff --git a/st2common/benchmarks/BUILD b/st2common/benchmarks/BUILD new file mode 100644 index 0000000000..6088380c8b --- /dev/null +++ b/st2common/benchmarks/BUILD @@ -0,0 +1,3 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["benchmarks"])}, +) diff --git a/st2common/tests/integration/BUILD b/st2common/tests/integration/BUILD index fc4f20c403..8370137f9c 100644 --- a/st2common/tests/integration/BUILD +++ b/st2common/tests/integration/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) + python_sources() python_tests( diff --git a/st2common/tests/unit/BUILD b/st2common/tests/unit/BUILD index 34cacadb2b..fe53c9f265 100644 --- a/st2common/tests/unit/BUILD +++ b/st2common/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", dependencies=[ diff --git a/st2reactor/tests/integration/BUILD b/st2reactor/tests/integration/BUILD index c0a9372515..db325746b8 100644 --- a/st2reactor/tests/integration/BUILD +++ b/st2reactor/tests/integration/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) + python_tests( name="tests", dependencies=[ diff --git a/st2reactor/tests/unit/BUILD b/st2reactor/tests/unit/BUILD index 57341b1358..f4100df4b4 100644 --- a/st2reactor/tests/unit/BUILD +++ b/st2reactor/tests/unit/BUILD @@ -1,3 +1,8 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) + python_tests( name="tests", ) diff --git a/st2stream/tests/integration/BUILD b/st2stream/tests/integration/BUILD new file mode 100644 index 0000000000..9cd8ca6eab --- /dev/null +++ b/st2stream/tests/integration/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, + extend=True, +) diff --git a/st2stream/tests/unit/BUILD b/st2stream/tests/unit/BUILD new file mode 100644 index 0000000000..59df096266 --- /dev/null +++ b/st2stream/tests/unit/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +) diff --git a/st2tests/integration/BUILD b/st2tests/integration/BUILD index f289067c07..2315c588d2 100644 --- a/st2tests/integration/BUILD +++ b/st2tests/integration/BUILD @@ -1,4 +1,5 @@ __defaults__( + {(python_test, python_tests): dict(tags=["integration"])}, all=dict( skip_pylint=True, ), diff --git a/st2tests/tests/unit/BUILD b/st2tests/tests/unit/BUILD new file mode 100644 index 0000000000..59df096266 --- /dev/null +++ b/st2tests/tests/unit/BUILD @@ -0,0 +1,4 @@ +__defaults__( + {(python_test, python_tests): dict(tags=["unit"])}, + extend=True, +)