hundreds-father-404
09/30/2020, 5:34 AMdist/
. (binary
, awslambda
, setup-py
, and bundle
in v1)
We’re thinking it would be clearer to consolidate them all into a new goal, possibly named ./pants build
.
We’d love any feedback about this, including what you would think the name build
means, e.g. if you would think it means “compile” some library code, for example. Or if you have suggestions for a more apt name.hundreds-father-404
09/30/2020, 5:34 AMwooden-thailand-8386
09/30/2020, 1:09 PMpublish
target. I’d love to be able to easily put my generated artifact together with my Dockerfile and build that with a single pants command 🙂aloof-angle-91616
09/30/2020, 1:10 PMjolly-midnight-72759
09/30/2020, 1:44 PMbuild
feels like the right name for processes that output artifacts.
publish
feels like the right name for processes that put artifacts into useful places.wonderful-iron-54019
09/30/2020, 1:51 PMpackage
-- generate build artifacts
• publish
-- ship artifacts to repositories
• deploy
-- move code to deployed infrastructurewonderful-iron-54019
09/30/2020, 1:55 PMpackage
seems like a specific step in the build processaloof-angle-91616
09/30/2020, 1:59 PM--dry-run
is usually an option on many scripts i've seen that publish things. @jolly-midnight-72759 @wonderful-iron-54019 would you accept that option on ./pants publish
for e.g. just building a wheel without uploading to pypi?wonderful-iron-54019
09/30/2020, 2:01 PMsetup-py
to package
to generate wheel files then just execute the upload during our publishwonderful-iron-54019
09/30/2020, 2:01 PMaloof-angle-91616
09/30/2020, 2:02 PMwonderful-iron-54019
09/30/2020, 2:18 PM--format
enum on the PR as food for thoughtaloof-angle-91616
09/30/2020, 2:18 PMjolly-midnight-72759
09/30/2020, 2:33 PM--dry-run
would build a wheel without uploading it? That would be confusing. I assume --dry-run
has no side effects which would not be the case if I understood you correctly.jolly-midnight-72759
09/30/2020, 2:35 PMpackage/publish/deploy
also works for my lexicographical wetware.jolly-midnight-72759
09/30/2020, 2:36 PMpublish
and deploy
necessary from pants
perspective?wonderful-iron-54019
09/30/2020, 2:37 PMwonderful-iron-54019
09/30/2020, 2:37 PMjolly-midnight-72759
09/30/2020, 2:38 PMpants
the right tool for doing deploys? I guess I would prefer a CD service watching repos and "deployment" configurations and doing the deploys for me. In that cause, is pants
updating the "deployment" config?aloof-angle-91616
09/30/2020, 2:38 PM./pants publish.jvm --dry-run
works in pants v1. the wheel would be created in dist/
anyway, which is configurable so you can avoid polluting it if you wantaloof-angle-91616
09/30/2020, 2:38 PMwonderful-iron-54019
09/30/2020, 2:39 PMI would prefer a CD service watching repos and "deployment" configurations and doing the deploys for me.We've largely defined custom targets for things like cloud formation stacks, databricks jobs, etc and invoke the deploy rule on those to push them out
aloof-angle-91616
09/30/2020, 2:39 PMwonderful-iron-54019
09/30/2020, 2:39 PMpublish
-able targets are mutually exclusive from our `deploy-`ableswonderful-iron-54019
09/30/2020, 2:40 PMpublish
-ables we usually want to prevent any deploys from going outaloof-angle-91616
09/30/2020, 2:40 PMOne question, is the difference between publish and deploy necessary from pants perspective?i tried to define this in my comment on the thread -- i think "publishable" targets are libraries with a
provides=
parameter, while "deployable" targets are binariesaloof-angle-91616
09/30/2020, 2:40 PMwonderful-iron-54019
09/30/2020, 2:40 PMaloof-angle-91616
09/30/2020, 2:40 PMjolly-midnight-72759
09/30/2020, 2:41 PMjolly-midnight-72759
09/30/2020, 2:42 PMaloof-angle-91616
09/30/2020, 2:42 PMjolly-midnight-72759
09/30/2020, 2:45 PMci-status
it reaches out to the testing infrastructure and gives the status of the last (or last few) test run by it. Then you don't need to leave the repo to see if the code you pushed has peeved Jenkins.aloof-angle-91616
09/30/2020, 2:45 PMaloof-angle-91616
09/30/2020, 2:46 PMhundreds-father-404
09/30/2020, 4:35 PM.pex
vs. .jar
vs. .zip
. I don’t think we’d then want a --format
flag.
I like the idea of package
a lot. It describes well what’s going on, better than a vague build
. Higher level than assemble