Skip to content

Commit

Permalink
Merge pull request #5931: Pants: reclassify test utils in BUILD metad…
Browse files Browse the repository at this point in the history
…ata (part 2)
  • Loading branch information
cognifloyd authored Mar 14, 2023
2 parents 3803450 + d11849e commit a87585c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions st2actions/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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
Expand Up @@ -3,8 +3,6 @@ __defaults__(
extend=True,
)

python_sources()

python_tests(
name="tests",
dependencies=[
Expand All @@ -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
Expand Up @@ -2,4 +2,6 @@ python_tests(
name="tests",
)

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

0 comments on commit a87585c

Please sign in to comment.