witty-crayon-22786
11/19/2018, 7:37 PMwide-energy-11069
11/19/2018, 7:47 PME CodeRemovedError: DEPRECATED: module was removed in version 1.12.0.dev2.
E Use pants_test.test_base instead
wide-energy-11069
11/19/2018, 7:48 PMwitty-crayon-22786
11/19/2018, 7:48 PM1.13.0.dev1
... the intent was definitely not for those to be removed right before rcwitty-crayon-22786
11/19/2018, 7:48 PMwitty-crayon-22786
11/19/2018, 7:49 PMwide-energy-11069
11/19/2018, 7:49 PMwide-energy-11069
11/19/2018, 7:50 PMpolite-vase-75369
11/19/2018, 9:44 PMaverage-vr-56795
11/20/2018, 1:31 PMaverage-vr-56795
11/20/2018, 3:48 PMbrief-engineer-67497
11/21/2018, 2:42 PM./pants test foo --test-junit-test="MySuite"
I have the following error:
There were 2 failures:
1) Test mechanism
java.lang.NullPointerException
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.AntJunitXmlReportListener.testStarted(AntJunitXmlReportListener.java:383)
at org.junit.runner.notification.SynchronizedRunListener.testStarted(SynchronizedRunListener.java:49)
at org.junit.runner.notification.RunNotifier$3.notifyListener(RunNotifier.java:121)
at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
at org.junit.runner.notification.RunNotifier.fireTestStarted(RunNotifier.java:118)
at org.junit.internal.runners.ErrorReportingRunner.runCause(ErrorReportingRunner.java:64)
at org.junit.internal.runners.ErrorReportingRunner.run(ErrorReportingRunner.java:38)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.CompositeRequestRunner.runChild(CompositeRequestRunner.java:66)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentCompositeRequestRunner$1$1.run(ConcurrentCompositeRequestRunner.java:37)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentRunnerScheduler.finished(ConcurrentRunnerScheduler.java:89)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentCompositeRequestRunner$1.evaluate(ConcurrentCompositeRequestRunner.java:46)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.runLegacy(ConsoleRunnerImpl.java:539)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.run(ConsoleRunnerImpl.java:455)
at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.main(ConsoleRunnerImpl.java:843)
at org.pantsbuild.tools.junit.ConsoleRunner.main(ConsoleRunner.java:12)
Any idea why ? I might be messing with pants internals : the app I'm testing has an aspect woven. to perform this task I have a temporary hack which consist in
1/ a task AspectjCompile
that basically extends ZincCompile
, override compile, call super.compile and then replace the output class files with the one that have the aspect woven on
2/ a target that copy JvmTarget & inline ScalaLibrary without being JvmTarget to not trigger the regular zinc task
I know this is messy but this is supposed to be super temporary …brief-engineer-67497
11/21/2018, 3:28 PMbrief-engineer-67497
11/21/2018, 3:29 PMbrief-engineer-67497
11/21/2018, 3:32 PMbrief-engineer-67497
11/21/2018, 3:33 PMwide-energy-11069
11/21/2018, 5:37 PMbrief-engineer-67497
11/21/2018, 5:44 PMbrief-engineer-67497
11/22/2018, 10:58 AMbrief-engineer-67497
11/22/2018, 11:01 AM--test-junit-default-concurrency=<str> (default: 'SERIAL')
Set the default concurrency mode for running tests not annotated with @TestParallel or @TestSerial.
brief-engineer-67497
11/22/2018, 11:17 AM./pants test ./::
but to have different options value for say only one or two project.
I've seen that you can pass additional pants.ini
in the cmd line but I think it's not the use case I'm looking forplain-river-51682
11/22/2018, 12:50 PM12:37:22 00:00 [main]
(To run a reporting server: ./pants server)
12:38:10 00:48 [setup]
12:38:11 00:49 [parse]
Executing tasks in goals: jvm-platform-validate -> bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> resolve -> compile -> resources -> pyprep -> test
plain-river-51682
11/22/2018, 12:52 PM-ldebug
there seems to be no debug logging in between the [main]
and [setup]
stagesplain-river-51682
11/22/2018, 12:52 PM.pants.d
folder to s3 and extract it on the next run (using gitlab-ci runners)brief-engineer-67497
11/22/2018, 4:07 PM1.9.0
trying to update coursier to enjoy a fix present since 1.1.0-M5
but it seems each time I change the version it's the same one that is dl from the bootstrap_jar_url
brief-engineer-67497
11/22/2018, 4:09 PMbrief-engineer-67497
11/26/2018, 5:10 PMdef product_types(cls):
return ['expanded_yaml']
and
def prepare(cls, options, round_manager):
super(MyGenerator, cls).prepare(options, round_manager)
round_manager.require_data('expanded_yaml')
but then how do I pass the value I'm interrested in ? (i.e the output directory in my case)
I tried self.context.products.register_data('expanded_yaml', target_workdir)
for the producer and `self.context.products.get_data('expanded_yaml')`for the consumer. It seemed to work but after cleaning all caches and invoking directly gen on the consumer target, the result of self.context.products.get_data('expanded_yaml')
is None …brief-engineer-67497
11/27/2018, 9:50 AMclass MyLibrary(JvmTarget):
def __init__(self,
payload=None,
spec=None,
**kwargs):
payload = payload or Payload()
payload.add_fields({
'spec': PrimitiveField(spec),
})
if spec:
self.inject_dependency(Address.parse(spec))
super(ControllersLibrary, self).__init__(payload=payload,
**kwargs)
But I run into 'MyLibrary' object has no attribute '_build_graph'
average-vr-56795
11/27/2018, 3:39 PMbrief-engineer-67497
11/27/2018, 3:57 PM\
so I tried the following:
my_target(
hook="\
foo\
bar\
baz"
)
which end producing "foo\ bar\ baz" in my generated file