enough-analyst-54434
09/05/2018, 6:20 PMwide-energy-11069
09/05/2018, 6:20 PMwide-energy-11069
09/05/2018, 6:56 PMx
to directory dir
, then run python dir/
, it works, but not ./x
?enough-analyst-54434
09/05/2018, 6:58 PMenough-analyst-54434
09/05/2018, 6:58 PMenough-analyst-54434
09/05/2018, 6:59 PMenough-analyst-54434
09/05/2018, 7:00 PMwide-energy-11069
09/05/2018, 7:00 PMwide-energy-11069
09/05/2018, 7:04 PMwide-energy-11069
09/05/2018, 7:50 PMdjango apps must be pexed up as not zip safeIs there a flag somewhere to say so?
enough-analyst-54434
09/07/2018, 3:51 PMbrainy-answer-80371
09/07/2018, 4:46 PMsources
. How can I make these available at test time?brainy-answer-80371
09/07/2018, 5:03 PMGoTest
goal only creates a workspace with dependencies that are themselves `GoTarget`s so using an approach with files like so, also doesn’t work:
files(name='foo', sources=...)
go_library(dependencies=[':foo'])
enough-analyst-54434
09/07/2018, 5:22 PMenough-analyst-54434
09/07/2018, 5:28 PMbrainy-answer-80371
09/07/2018, 7:07 PMfoo.go
file in the testdata dir (otherwise go_library complains that there’s no go files)enough-analyst-54434
09/07/2018, 7:29 PMstrong-garage-46607
09/07/2018, 9:09 PMstrong-garage-46607
09/07/2018, 9:09 PMaloof-angle-91616
09/09/2018, 6:21 AMaloof-angle-91616
09/09/2018, 6:25 AM> ./pants test tests/python/pants_test/option:a
# ...
ResolveError: "a" was not found in namespace "tests/python/pants_test/option". Did you mean one of:
:options_integration
:testing
> ./pants test tests/python/pants_test/option:{testing,a}
# ...
===== 158 passed, 1 xfailed in 2.77 seconds ======
tests/python/pants_test/option:testing ..... SUCCESS
23:25:48 00:12 [junit]
23:25:48 00:12 [go]
23:25:48 00:12 [node]
Waiting for background workers to finish.
23:25:49 00:13 [complete]
SUCCESS
aloof-angle-91616
09/09/2018, 6:31 AMhundreds-father-404
09/09/2018, 3:12 PM{a, b}
?
That sounds useful to me! A couple things to think about
- are there any goals where this doesn’t make sense to allow multiple targets to run? I can’t think of any, but would be good to check pants goals
for a sanity check
- do we parse and validate all targets first (strict evaluation), or lazily go through each running the goal and then moving on to next target? In your above example, should you get an error about the invalid a
target right away or only after executing testing
- how do we enforce you can only do this at the top level of folders path? We don’t want to allow src/python/pants/{base,bin}:other
, right?witty-crayon-22786
09/10/2018, 5:28 PMcurved-vase-73456
09/10/2018, 7:03 PMcompile
and bundle
goals.
One might expect that after compilation of src
folder all necessary artifacts are already created, yet when I bundle
on one of the subfolders of the already compiled folder it seems like it’s taking some extra time and creating some extra /checking some artifacts. And this extra time seems quite significant.
I wonder if it’s something wrong with my setup which causes cache miss or it’s something inherent to bundle
goal and what can be done to reduce time (in the same sense as remote cache reduces time for compilations)?
Also, whatever cache is made when running the bundle
goal it’s definitely not getting uploaded/downloaded the same way the cache on compilation doesaloof-angle-91616
09/11/2018, 12:14 AMbundle
does a lot more than compilation, it packs e.g. all the resources that the target depends on into a single jar, including anything specified with the bundles
keyword argument (e.g. for jvm_app()
targets). if you bundle a lot of other files into a jvm_app()
target, just copying and compressing those could take some time. i also don't believe the output of bundle
is cached, since the output is usually just to a file in the dist/
directory (which will be created if it doesn't exist). there's no reason it couldn't be, though -- what are you using the bundle
goal for? if you haven't yet, i'd check out this page on the docsite (https://www.pantsbuild.org/jvm_projects.html#jvm_bundles)curved-vase-73456
09/11/2018, 12:59 AMbundle
goal to create java executables for several different micro services from sources which I run in docker containers, also I’m pretty sure that bundle does compilation and caching as well:
- clean-all
-> compilation of src folder 4:41
-> making bundle for one of the services in sources subfolder 1:53
- clean-all
-> making bundle for one of the services in sources subfolder 4:36
-> compilation of src folder 0:25
aloof-angle-91616
09/11/2018, 1:00 AMcurved-vase-73456
09/11/2018, 1:00 AMwitty-crayon-22786
09/11/2018, 1:01 AM