Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pants: use __defaults__ to propogate unit,integration,benchmarks tags on tests #5853

Merged
merged 3 commits into from
Dec 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions contrib/runners/action_chain_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/action_chain_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/announcement_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/announcement_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/http_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/http_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/inquirer_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/inquirer_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/local_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/local_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)
4 changes: 4 additions & 0 deletions contrib/runners/noop_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/noop_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/orquesta_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/orquesta_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
5 changes: 5 additions & 0 deletions contrib/runners/python_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions contrib/runners/python_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions contrib/runners/remote_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
4 changes: 4 additions & 0 deletions contrib/runners/remote_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)
4 changes: 4 additions & 0 deletions contrib/runners/winrm_runner/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions contrib/runners/winrm_runner/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2actions/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2actions/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
5 changes: 5 additions & 0 deletions st2api/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
5 changes: 5 additions & 0 deletions st2api/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions st2auth/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions st2auth/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
4 changes: 4 additions & 0 deletions st2client/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
5 changes: 5 additions & 0 deletions st2client/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
3 changes: 3 additions & 0 deletions st2common/benchmarks/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__defaults__(
{(python_test, python_tests): dict(tags=["benchmarks"])},
)
5 changes: 5 additions & 0 deletions st2common/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)

python_sources()

python_tests(
Expand Down
5 changes: 5 additions & 0 deletions st2common/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
5 changes: 5 additions & 0 deletions st2reactor/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)

python_tests(
name="tests",
dependencies=[
Expand Down
5 changes: 5 additions & 0 deletions st2reactor/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)

python_tests(
name="tests",
)
4 changes: 4 additions & 0 deletions st2stream/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
extend=True,
)
4 changes: 4 additions & 0 deletions st2stream/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)
1 change: 1 addition & 0 deletions st2tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__defaults__(
{(python_test, python_tests): dict(tags=["integration"])},
all=dict(
skip_pylint=True,
),
Expand Down
4 changes: 4 additions & 0 deletions st2tests/tests/unit/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__defaults__(
{(python_test, python_tests): dict(tags=["unit"])},
extend=True,
)