Skip to content

Commit 17359fe

Browse files
authored
Merge pull request #5846: pants: register assets (like conf files) and dependencies on them
pants: register assets (like conf files) and dependencies on them
2 parents ebaf307 + e0119dc commit 17359fe

File tree

63 files changed

+528
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+528
-36
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +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
1718
Contributed by @cognifloyd
1819

1920
* Added a joint index to solve the problem of slow mongo queries for scheduled executions. #5805

conf/BUILD

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
file(
2+
name="st2client_sample_config",
3+
source="st2rc.sample.ini",
4+
)
5+
6+
file(
7+
name="st2.conf.sample",
8+
source="st2.conf.sample",
9+
)
10+
11+
file(
12+
name="logrotate",
13+
source="logrotate.conf",
14+
)
15+
16+
file(
17+
name="nginx_sample_config",
18+
source="nginx/st2.conf",
19+
)
20+
21+
file(
22+
name="st2_kvstore_demo_crypto_key",
23+
source="st2_kvstore_demo.crypto.key.json",
24+
)
25+
26+
files(
27+
name="st2_tests_conf",
28+
sources=[
29+
"st2.tests*.conf",
30+
],
31+
dependencies=[
32+
"st2auth/conf:htpasswd",
33+
"st2actions/conf:logging",
34+
"st2reactor/conf:logging",
35+
"st2tests/conf:other_logging_conf",
36+
],
37+
)
38+
39+
file(
40+
name="st2_dev_conf",
41+
source="st2.dev.conf",
42+
dependencies=[
43+
":st2_kvstore_demo_crypto_key",
44+
"st2auth/conf:htpasswd",
45+
"st2actions/conf:logging",
46+
"st2api/conf:logging",
47+
"st2auth/conf:logging",
48+
"st2reactor/conf:logging",
49+
"st2stream/conf:logging",
50+
],
51+
)
52+
53+
file(
54+
name="st2_package_conf",
55+
source="st2.package.conf",
56+
)

contrib/chatops/tests/BUILD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
files(
2+
name="fixtures",
3+
sources=["fixtures/*.json"],
4+
)
5+
16
python_tests(
7+
name="tests",
8+
dependencies=[":fixtures"],
29
skip_pylint=True,
310
)
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
resource(
2+
name="runner_metadata",
3+
source="runner.yaml",
4+
)
5+
6+
python_sources(
7+
dependencies=[":runner_metadata"],
8+
)
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
resource(
2+
name="runner_metadata",
3+
source="runner.yaml",
4+
)
5+
6+
python_sources(
7+
dependencies=[":runner_metadata"],
8+
)
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
resource(
2+
name="runner_metadata",
3+
source="runner.yaml",
4+
)
5+
6+
python_sources(
7+
dependencies=[":runner_metadata"],
8+
)
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
resource(
2+
name="runner_metadata",
3+
source="runner.yaml",
4+
)
5+
6+
python_sources(
7+
dependencies=[":runner_metadata"],
8+
)
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
resource(
2+
name="runner_metadata",
3+
source="runner.yaml",
4+
)
5+
6+
python_sources(
7+
dependencies=[":runner_metadata"],
8+
)
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
resource(
2+
name="runner_metadata",
3+
source="runner.yaml",
4+
)
5+
6+
python_sources(
7+
dependencies=[":runner_metadata"],
8+
)
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
python_sources()
1+
resource(
2+
name="runner_metadata",
3+
source="runner.yaml",
4+
)
5+
6+
python_sources(
7+
dependencies=[":runner_metadata"],
8+
)

0 commit comments

Comments
 (0)