proud-dentist-22844
06/03/2021, 3:02 AMcontrib/core
primarily has files+code (in a StackStorm pack) that gets installed with StackStorm itself.
But, it is also distributed as part of the st2tests
module which provides general purpose test fixtures for use in the StackStorm ecosystem.
There are a couple of issues with the symlink. The first of which was disambiguating a dependency which was simple enough:
https://github.com/st2sandbox/st2/blob/pants/contrib/core/tests/BUILD#L3
The next couple of issues are intertwined:
• For all the other fixtures, I used a python import so that pants could infer the dependency from test to fixture. But that get's a little odd with the symlinked code living in two places.
• contrib/core
is a source root (identified by a [source].marker_filenames
file), but st2tests/fixtures/packs/core
should not be a source root.
Please help me think through what to do about this. I'm not even sure what questions to ask. Any thoughts?happy-kitchen-89482
06/03/2021, 2:37 PMhappy-kitchen-89482
06/03/2021, 2:38 PMhappy-kitchen-89482
06/03/2021, 10:01 PMproud-dentist-22844
06/03/2021, 11:33 PMpack.yaml
as a marker file, which conflicted with how I had to load the fixtures. Now I’ve got a more limited set of files with an empty PACK_ROOT
file. There are 7 (maybe 9) of those, so I guess I’ll just have to list them.proud-dentist-22844
06/03/2021, 11:34 PMhappy-kitchen-89482
06/04/2021, 6:22 AMst2tests/fixtures/packs/core
happy-kitchen-89482
06/04/2021, 6:22 AMhappy-kitchen-89482
06/04/2021, 6:22 AMhappy-kitchen-89482
06/04/2021, 6:24 AMproud-dentist-22844
06/04/2021, 4:45 PMhappy-kitchen-89482
06/05/2021, 9:43 AM