Skip to content

Commit eeddc49

Browse files
authored
Merge pull request #5738: Create pantsbuild BUILD files with ./pants tailor ::
2 parents 11a84c2 + 080d40a commit eeddc49

File tree

240 files changed

+423
-21
lines changed

Some content is hidden

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

240 files changed

+423
-21
lines changed

Diff for: .github/workflows/pants.yaml

+17-18
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,21 @@
22
name: Validate Pants Metadata
33

44
on:
5-
# temporarily only allow manual runs until we have BUILD files and lockfiles
6-
workflow_dispatch:
7-
#push:
8-
# branches:
9-
# # only on merges to master branch
10-
# - master
11-
# # and version branches, which only include minor versions (eg: v3.4)
12-
# - v[0-9]+.[0-9]+
13-
# tags:
14-
# # also version tags, which include bugfix releases (eg: v3.4.0)
15-
# - v[0-9]+.[0-9]+.[0-9]+
16-
#pull_request:
17-
# type: [opened, reopened, edited]
18-
# branches:
19-
# # Only for PRs targeting those branches
20-
# - master
21-
# - v[0-9]+.[0-9]+
5+
push:
6+
branches:
7+
# only on merges to master branch
8+
- master
9+
# and version branches, which only include minor versions (eg: v3.4)
10+
- v[0-9]+.[0-9]+
11+
tags:
12+
# also version tags, which include bugfix releases (eg: v3.4.0)
13+
- v[0-9]+.[0-9]+.[0-9]+
14+
pull_request:
15+
type: [opened, reopened, edited]
16+
branches:
17+
# Only for PRs targeting those branches
18+
- master
19+
- v[0-9]+.[0-9]+
2220

2321
jobs:
2422
pants-tailor:
@@ -42,11 +40,12 @@ jobs:
4240
# Otherwise, we may need an additional workflow or job to delete old caches
4341
# if they are not expiring fast enough, and we hit the GHA 10GB per repo max.
4442
with:
43+
base-branch: master
4544
# To ignore a bad cache, bump the cache* integer.
4645
gha-cache-key: cache0-BUILD
4746
# This hash should include all of our lockfiles so that the pip/pex caches
4847
# get invalidated on any transitive dependency update.
49-
named-caches-hash: ${{ hashFiles('requirements.txt' }}
48+
named-caches-hash: ${{ hashFiles('requirements.txt') }}
5049
# enable the optional lmdb_store cache since we're not using remote caching.
5150
cache-lmdb-store: 'true'
5251

Diff for: BUILD

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
python_requirements(
2+
name="root",
3+
)
4+
5+
python_test_utils(
6+
name="test_utils0",
7+
)

Diff for: CHANGELOG.rst

+1-1

Diff for: contrib/chatops/actions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/chatops/tests/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_tests()

Diff for: contrib/core/BUILD

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
python_sources()
2+
3+
python_requirements(
4+
name="reqs",
5+
source="requirements-tests.txt",
6+
)

Diff for: contrib/core/actions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/core/tests/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_tests()

Diff for: contrib/debug/actions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/examples/actions/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources()
2+
3+
shell_sources(
4+
name="actions0",
5+
)

Diff for: contrib/examples/actions/bash_exit_code/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: contrib/examples/actions/bash_ping/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: contrib/examples/actions/bash_random/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: contrib/examples/actions/pythonactions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/examples/actions/ubuntu_pkg_info/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/examples/actions/ubuntu_pkg_info/lib/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/examples/lib/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/examples/sensors/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/examples/tests/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_tests()

Diff for: contrib/hello_st2/actions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: contrib/hello_st2/sensors/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/linux/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_requirements(
2+
name="reqs",
3+
)

Diff for: contrib/linux/actions/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources()
2+
3+
shell_sources(
4+
name="actions0",
5+
)

Diff for: contrib/linux/actions/checks/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/linux/sensors/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/linux/tests/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_tests()

Diff for: contrib/packs/actions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/packs/actions/pack_mgmt/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/packs/tests/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_tests()

Diff for: contrib/packs/tests/fixtures/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/action_chain_runner/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/announcement_runner/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: contrib/runners/http_runner/http_runner/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/http_runner/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/inquirer_runner/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: contrib/runners/local_runner/local_runner/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/local_runner/tests/integration/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: contrib/runners/noop_runner/noop_runner/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/noop_runner/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: contrib/runners/orquesta_runner/tests/unit/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_tests(
2+
name="tests",
3+
)
4+
5+
python_sources()

Diff for: contrib/runners/python_runner/python_runner/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: contrib/runners/python_runner/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: contrib/runners/remote_runner/remote_runner/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/winrm_runner/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: contrib/runners/winrm_runner/winrm_runner/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: pylint_plugins/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources()
2+
3+
python_tests(
4+
name="tests",
5+
)

Diff for: scripts/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources()
2+
3+
shell_sources(
4+
name="scripts0",
5+
)

Diff for: scripts/ci/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: scripts/github/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: st2actions/bin/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: st2actions/st2actions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/st2actions/cmd/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/st2actions/container/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/st2actions/notifier/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/st2actions/policies/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/st2actions/runners/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/st2actions/scheduler/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/st2actions/workflows/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2actions/tests/integration/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2actions/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2actions/tests/unit/policies/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2api/st2api/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2api/st2api/cmd/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2api/st2api/controllers/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2api/st2api/controllers/v1/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2api/tests/integration/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2api/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2api/tests/unit/controllers/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2api/tests/unit/controllers/v1/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2api/tests/unit/controllers/v1/test_packs_views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def test_get_pack_files_and_pack_file_ref_doesnt_equal_pack_name(self):
133133
# Ref is not equal to the name, controller should still work
134134
resp = self.app.get("/v1/packs/views/files/dummy_pack_16")
135135
self.assertEqual(resp.status_int, http_client.OK)
136-
self.assertEqual(len(resp.json), 3)
136+
self.assertEqual(len(resp.json), 4)
137137
self.assertIn("pack.yaml", [f["file_path"] for f in resp.json])
138138

139139
resp = self.app.get("/v1/packs/views/file/dummy_pack_16/pack.yaml")

Diff for: st2auth/st2auth/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2auth/st2auth/backends/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2auth/st2auth/cmd/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2auth/st2auth/controllers/v1/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2auth/st2auth/sso/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2auth/tests/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2auth/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2auth/tests/unit/controllers/v1/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2client/conf/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shell_sources()

Diff for: st2client/st2client/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/st2client/commands/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/st2client/exceptions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/st2client/formatters/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/st2client/models/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/st2client/utils/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/tests/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/tests/fixtures/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2client/tests/unit/BUILD

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python_tests(
2+
name="tests",
3+
)

Diff for: st2common/benchmarks/micro/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources()
2+
3+
python_tests(
4+
name="tests",
5+
)

Diff for: st2common/bin/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/bin/migrations/v1.5/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/bin/migrations/v2.1/BUILD

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_sources()
2+
3+
shell_sources(
4+
name="v2.10",
5+
)

Diff for: st2common/bin/migrations/v3.1/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/bin/migrations/v3.5/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/bootstrap/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/callback/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/cmd/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/constants/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/content/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/exceptions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/expressions/functions/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/garbage_collection/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/logging/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/metrics/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/metrics/drivers/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/middleware/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/models/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/models/api/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/models/db/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/models/system/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/models/utils/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/persistence/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/policies/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/rbac/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/rbac/backends/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/runners/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/services/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

Diff for: st2common/st2common/stream/BUILD

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python_sources()

0 commit comments

Comments
 (0)