fresh-architect-74417
02/28/2019, 9:07 PMfresh-architect-74417
02/28/2019, 9:07 PMfresh-architect-74417
02/28/2019, 9:07 PMacoustic-book-58772
02/28/2019, 10:24 PM--no-fast
thing: is that flag or something similar available for compile
as well? (I didn't seem to find them with a quick ./pants compile --help | grep 'fast'
We did recently run into a problem where mixing targets produced different results than running separately when we're compiling changed targets, and as a result had to split them all up and run in a loop.wide-energy-11069
02/28/2019, 11:20 PMwide-energy-11069
02/28/2019, 11:21 PMas a result had to split them all up and run in a loop.Sounds like the right approach
witty-crayon-22786
02/28/2019, 11:47 PM--no-fast
only affects the test runners themselves.acoustic-book-58772
02/28/2019, 11:50 PMwitty-crayon-22786
02/28/2019, 11:51 PMwitty-crayon-22786
02/28/2019, 11:52 PMbrief-engineer-67497
03/01/2019, 12:52 PM## Exception when compiling 44 sources to /data/var/lib/jenkins/workspace/pr-mediarithmics-platform-pants/.pants.d/compile/zinc/a53b6931478d/mediarithmics-api.core-api.src.test.scala.scala/current/classes
[error] java.io.IOException: Analysis at (1bf5f43a12d32f19b8a21e7b38f4e306: /data/var/lib/jenkins/workspace/pr-mediarithmics-platform-pants/.pants.d/compile/zinc/a53b6931478d/mediarithmics-api.common-play-api.src.main.scala.scala/053bd30b9406/z.analysis) has changed since startup!
Not sure where to start to solve it 😕brief-engineer-67497
03/01/2019, 1:00 PM./pants compile ::
it works fine but then if I run this script :
#!/usr/bin/env bash
set -eEux
function clean_pants() {
./pants ng-killall
}
trap clean_pants ERR
remote=${1:-"origin"}
changedParent="${remote}/${2:-"master"}"
# Disable Zinc incremental compilation to ensure no historical cruft pollutes the current build.
export PANTS_COMPILE_ZINC_INCREMENTAL=false
changed=$(./pants --changed-parent=${changedParent} list)
dependees=$(./pants dependees --dependees-transitive --dependees-closed ${changed})
filtered=$(mktemp)
./pants filter --filter-type=junit_tests \
--filter-tag-regex=-integration,test-dev,suite-by-suite ${dependees} | sort > ${filtered}
for target in $(cat ${filtered}); do
./pants test.junit --output-mode=ALL --no-fast --parallel-threads=12 ${target}
done
./pants filter --filter-type=junit_tests \
--filter-tag-regex=suite-by-suite ${dependees} | sort > ${filtered}
for target in $(cat ${filtered}); do
./build-support/test-scripts/test-suite-by-suite.sh ${target%:*}
done
rm ${filtered}
I run into the problembrief-engineer-67497
03/01/2019, 1:01 PM#!/usr/bin/env bash
set -eEux
dir=$1
suites=$(find ${dir} \
-name "*Spec.scala" -printf "%P\n" -or \
-name "*Test.scala" -printf "%P\n" | sed -r 's@/@.@g ; s/\.scala$//g')
for s in $suites; do
./pants test.junit --test=$s --output-mode=ALL ${dir}
done
wide-energy-11069
03/01/2019, 5:45 PM+
and -
at the same time in pants.ini? E.g.
backend_packages: +[
"pants.backend.docgen",
]
but then I also want to remove one of default pluginshappy-kitchen-89482
03/01/2019, 6:25 PMhappy-kitchen-89482
03/01/2019, 6:25 PMhappy-kitchen-89482
03/01/2019, 6:25 PMhappy-kitchen-89482
03/01/2019, 6:25 PMbackend_packages: +['toolchain.pants'],-[
'pants.backend.codegen.antlr.java',
'pants.backend.codegen.antlr.python',
'pants.backend.codegen.jaxb',
'pants.backend.codegen.protobuf.java',
'pants.backend.codegen.ragel.java',
'pants.backend.codegen.thrift.java',
'pants.backend.codegen.thrift.python',
'pants.backend.codegen.wire.java']
wide-energy-11069
03/01/2019, 7:20 PMwitty-crayon-22786
03/01/2019, 7:36 PMbusy-car-23170
03/04/2019, 10:06 PM[shade-zinc]
==== stderr ====
Exception in thread "main" java.util.zip.ZipException: invalid entry size (expected 526140 but got 0 bytes)
I noticed this PR went into 1.8.0, which initially smells correlated: https://github.com/pantsbuild/pants/pull/5953
we do have a 3rdparty dependency on guava 20.0, is there more shading I should try and do? Can also provide more stacktrace/debug details in a gist. Thanks in advance!brief-engineer-67497
03/05/2019, 3:45 PMbrief-engineer-67497
03/05/2019, 3:45 PMbrief-engineer-67497
03/05/2019, 4:13 PMhappy-kitchen-89482
03/05/2019, 8:59 PMhappy-kitchen-89482
03/05/2019, 9:01 PMfromfile=True
acoustic-book-58772
03/06/2019, 12:05 AMpytest
and more-itertools
. In this case it was with tornado
. We ended up making the affected target "depend" on tornado
while pinning tornado
in our requirements file to an older version. Is there a better way to deal with this?acoustic-book-58772
03/06/2019, 12:06 AMpurple-microphone-26575
03/06/2019, 6:33 AMpex
project about embedding uwsgi in the generated pex file, is this what you’re doing for the Django project?hundreds-father-404
03/06/2019, 2:03 PM