|
1 | 1 | [GLOBAL]
|
2 | 2 | pants_version = "2.13.0rc2"
|
| 3 | + |
| 4 | +[source] |
| 5 | +# recording each pack individually under root patterns is not great, but resolves these issues: |
| 6 | +# - Using a /contrib/* or other glob in root_patterns is dodgy as runners & schemas are in the same dir. |
| 7 | +# In particular, with /contrib/* in root_patterns, *_runner imports become ambiguous |
| 8 | +# (eg `import noop_runner` should use runners/noop_runner/noop_runner not runners/noop_runner). |
| 9 | +# - Using pack.yaml in marker_filenames prevents pants from inferring which fixture packs are |
| 10 | +# used by which tests. We import a PACK_NAME and PACK_PATH from fixture.py in each of these |
| 11 | +# fixture packs to enable this dependency inferrence. Having fine grained inferrence in-turn |
| 12 | +# reduces the number of tests that need to be re-run when we change a fixture. |
| 13 | +# - Using another marker_file, like PACK_ROOT, is also problematic because of the core pack. |
| 14 | +# /contrib/core is symlinked to /st2tests/st2tests/fixtures/packs/core for use as a fixture. |
| 15 | +# It is used in quite a few tests, so it needs to continue living in both places. |
| 16 | +# But, overlapping source roots (for st2tests and the pack) make importing from the fixture |
| 17 | +# as we do with the other fixtures impossible. |
| 18 | +# Thus, we really do need to register each pack in contrib (but never under st2tests) separately. |
| 19 | +# We might also need to register packs in st2tests/testpacks. |
| 20 | +root_patterns = [ |
| 21 | + # root conftest.py |
| 22 | + "/", |
| 23 | + # core libs |
| 24 | + "/st2*", |
| 25 | + # runners |
| 26 | + "/contrib/runners/*_runner", |
| 27 | + # packs (list /contrib/* packs individually; see note above) |
| 28 | + "/contrib/chatops", |
| 29 | + "/contrib/core", # WARNING: also symlinked to st2tests/st2tests/fixtures/packs/core |
| 30 | + "/contrib/default", |
| 31 | + "/contrib/examples", |
| 32 | + "/contrib/hello_st2", |
| 33 | + "/contrib/linux", |
| 34 | + "/contrib/packs", |
| 35 | + "/st2tests/testpacks/checks", |
| 36 | + "/st2tests/testpacks/errorcheck", |
| 37 | + # odd import in examples.isprime |
| 38 | + "/contrib/examples/lib", |
| 39 | + # lint plugins |
| 40 | + "/pylint_plugins", |
| 41 | + # misc |
| 42 | + "/scripts", |
| 43 | + "/tools", |
| 44 | + # benchmarks |
| 45 | + "/st2common/benchmarks/micro", |
| 46 | +] |
0 commit comments