Skip to content

Pants: reclassify test utils in BUILD metadata (part 2) #5931

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

Merged
merged 5 commits into from
Mar 14, 2023
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ Added
#5778 #5789 #5817 #5795 #5830 #5833 #5834 #5841 #5840 #5838 #5842 #5837 #5849 #5850
#5846 #5853 #5848 #5847 #5858 #5857 #5860 #5868 #5871 #5864 #5874 #5884 #5893 #5891
#5890 #5898 #5901 #5906 #5899 #5907 #5909 #5922 #5926 #5927 #5925 #5928 #5929 #5930
#5931
Contributed by @cognifloyd

* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805
4 changes: 2 additions & 2 deletions st2actions/BUILD
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ st2_component_python_distribution(
],
dependencies=[
# policies get wired up by metadata in st2common/st2common/policies/meta/*.yaml
"st2actions/policies",
"./st2actions/policies",
# backwards compat API:
# st2actions.runners.pythonrunner.Action moved to st2common.runners.base_action.Action
"st2actions/runners/pythonrunner.py",
"./st2actions/runners/pythonrunner.py",
],
)
4 changes: 3 additions & 1 deletion st2auth/tests/BUILD
Original file line number Diff line number Diff line change
@@ -4,4 +4,6 @@ __defaults__(
)
)

python_sources()
python_test_utils(
sources=["*.py"],
)
6 changes: 4 additions & 2 deletions st2common/tests/integration/BUILD
Original file line number Diff line number Diff line change
@@ -3,8 +3,6 @@ __defaults__(
extend=True,
)

python_sources()

python_tests(
name="tests",
dependencies=[
@@ -13,3 +11,7 @@ python_tests(
"conf/st2.tests1.conf:st2_tests_conf",
],
)

python_test_utils(
sources=["*.py", "!test_*.py"],
)
4 changes: 3 additions & 1 deletion st2stream/tests/unit/controllers/v1/BUILD
Original file line number Diff line number Diff line change
@@ -2,4 +2,6 @@ python_tests(
name="tests",
)

python_sources()
python_test_utils(
sources=["*.py", "!test_*.py"],
)