Skip to content

Commit feef8d2

Browse files
authored
pants: use __defaults__ to propogate unit,integration,benchmarks tags on tests (#5853)
* use __defaults__ to propogate unit,integration,benchmarks tags on tests * update changelog entry
1 parent 17359fe commit feef8d2

File tree

38 files changed

+166
-1
lines changed

38 files changed

+166
-1
lines changed

CHANGELOG.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Added
1414
working on StackStorm, improve our security posture, and improve CI reliability thanks in part
1515
to pants' use of PEX lockfiles. This is not a user-facing addition.
1616
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
17-
#5846
17+
#5846 #5853
1818
Contributed by @cognifloyd
1919

2020
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)

contrib/runners/orquesta_runner/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
dependencies=[
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)

st2actions/tests/integration/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)

st2actions/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)

st2api/tests/integration/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
dependencies=[

st2api/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)

st2auth/tests/integration/BUILD

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)

st2auth/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
dependencies=[

st2client/tests/integration/BUILD

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)

st2client/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
dependencies=[

st2common/benchmarks/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["benchmarks"])},
3+
)

st2common/tests/integration/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
5+
16
python_sources()
27

38
python_tests(

st2common/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
dependencies=[

st2reactor/tests/integration/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
dependencies=[

st2reactor/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)
5+
16
python_tests(
27
name="tests",
38
)

st2stream/tests/integration/BUILD

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
3+
extend=True,
4+
)

st2stream/tests/unit/BUILD

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)

st2tests/integration/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
__defaults__(
2+
{(python_test, python_tests): dict(tags=["integration"])},
23
all=dict(
34
skip_pylint=True,
45
),

st2tests/tests/unit/BUILD

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__defaults__(
2+
{(python_test, python_tests): dict(tags=["unit"])},
3+
extend=True,
4+
)

0 commit comments

Comments
 (0)