hello there :wave: I was wondering what would be t...
# general
b
hello there 👋 I was wondering what would be the best way to integrate an unsupported tool with pants. I'm specifically referring to container-structure-test , used for validating built container images. Pants would be useful in running the tests only e.g. when the image itself or an upstream dependency has been updated. I'm not sure how it would fit in the picture, feels like a test but needs to happen post-package. What would be the best approach for this? adhoc_tool? plugin? Thanks in advance 🙏
b
Two options, as you say: • run it as part of one of the existing test targets, eg have a pytest test that invokes it, or
experimental_test_shell_command
. This’ll require specifying dependencies etc, and you may want to use
adhoc_tool
,
shell_command
and/or a
file
target with
http_source
to install the tool (or just require it to be installed globally, outside pants ) • A plug-in Which makes sense depends on how hard the tool is to integrate and your appetite for working with the unstable plug-in APIs
b
ah
experimental_test_shell_command
looks promising, thanks!