elegant-florist-94385
07/23/2025, 1:44 PMpants run
? For example, my repo contains an api server (packaged into a docker container), and an api client with tests.
Usually, my workflow is:
pants package ::
docker compose up # docker compose expects the api server image name/tags that are used by pants, but is otherwise pantsless
pants test :: the test fixtures initialize the api client with values that assume the server is running at localhost:<port> so that it can find the running docker container
I am curious if there is a way (either by moving the docker compose info into the pants docker targets themselves, or some other way), to get pants to understand, "the api server tests depend on XYZ docker images, so I should make sure they are running and then run those tests" and reduce the above to a single pants test
commandacceptable-balloon-2043
07/23/2025, 1:58 PMcache_scope
cause depending on that, the script might not be executed everytime if it considers it's result "cached".