hundreds-breakfast-49010
08/29/2019, 11:55 PMrun_rule
is the correct way to do this?aloof-angle-91616
08/29/2019, 11:56 PMaloof-angle-91616
08/29/2019, 11:56 PMhundreds-breakfast-49010
08/29/2019, 11:57 PMrun_rule
expects you to mock out a yield Get
hundreds-breakfast-49010
08/29/2019, 11:57 PMaloof-angle-91616
08/29/2019, 11:58 PMhundreds-breakfast-49010
08/30/2019, 12:00 AMhundreds-breakfast-49010
08/30/2019, 12:00 AMaloof-angle-91616
08/30/2019, 12:00 AMhundreds-breakfast-49010
08/30/2019, 12:06 AMhundreds-breakfast-49010
08/30/2019, 12:06 AMhundreds-breakfast-49010
08/30/2019, 12:06 AMaloof-angle-91616
08/30/2019, 12:06 AMhundreds-breakfast-49010
08/30/2019, 12:06 AMaloof-angle-91616
08/30/2019, 12:06 AMhundreds-breakfast-49010
08/30/2019, 12:06 AMaloof-angle-91616
08/30/2019, 12:07 AMaloof-angle-91616
08/30/2019, 12:07 AMaloof-angle-91616
08/30/2019, 12:08 AMhundreds-breakfast-49010
08/30/2019, 12:08 AMhundreds-breakfast-49010
08/30/2019, 12:09 AMaloof-angle-91616
08/30/2019, 12:11 AMhundreds-breakfast-49010
08/30/2019, 12:17 AMhundreds-breakfast-49010
08/30/2019, 12:17 AMaloof-angle-91616
08/30/2019, 12:19 AMhundreds-breakfast-49010
08/30/2019, 12:49 AMhundreds-breakfast-49010
08/30/2019, 12:50 AM./pants test tests/python/pants_test/engine:isolated_process
hundreds-breakfast-49010
08/30/2019, 12:50 AME pants.engine.scheduler.ExecutionError: 1 Exception encountered:
E Computing Select(FileContent(path=some.filename, content=(len:23)), ExecuteProcessResult)
E Computing Task(current_rule(), FileContent(path=some.filename, content=(len:23)), ExecuteProcessResult, true)
E Throw(WithDeps(Inner(InnerEntry { params: {InputFileContent}, rule: Task(Task { product: ExecuteProcessResult, clause: [Select { product: InputFileContent }], gets: [Get { product: Digest, subject: InputFileContent }], func: current_rule(), cacheable: true }) })) did not declare a dependency on JustGet(Get { product: ExecuteProcessResult, subject: ExecuteProcessRequest }))
E Traceback (no traceback):
E <pants native internals>
E Exception: WithDeps(Inner(InnerEntry { params: {InputFileContent}, rule: Task(Task { product: ExecuteProcessResult, clause: [Select { product: InputFileContent }], gets: [Get { product: Digest, subject: InputFileContent }], func: current_rule(), cacheable: true }) })) did not declare a dependency on JustGet(Get { product: ExecuteProcessResult, subject: ExecuteProcessRequest })
hundreds-breakfast-49010
08/30/2019, 12:50 AMhundreds-breakfast-49010
08/30/2019, 12:51 AMExecuteProcessResult
from an ExecuteProcessRequest
hundreds-breakfast-49010
08/30/2019, 12:51 AMaloof-angle-91616
08/30/2019, 12:53 AMhundreds-breakfast-49010
08/30/2019, 12:53 AMaloof-angle-91616
08/30/2019, 12:54 AMyield Get()
as the final expression in a rule was supposed to work for some reason (but i don’t know why that shouldn’t work)aloof-angle-91616
08/30/2019, 12:54 AM@rule
decoratorhundreds-breakfast-49010
08/30/2019, 12:54 AMaloof-angle-91616
08/30/2019, 12:55 AMhundreds-breakfast-49010
08/30/2019, 12:55 AMaloof-angle-91616
08/30/2019, 12:56 AM@rule
decorator raises an error when seeing certain constructs in ruleshundreds-breakfast-49010
08/30/2019, 12:57 AMaloof-angle-91616
08/30/2019, 1:01 AM-k regexp
to match the name of the test you want to run. pytest has several other options toohundreds-breakfast-49010
08/30/2019, 1:01 AMhundreds-breakfast-49010
08/30/2019, 1:01 AMaloof-angle-91616
08/30/2019, 1:01 AM@rule
decorator and your rule is supposed to be workingaloof-angle-91616
08/30/2019, 1:01 AMhundreds-breakfast-49010
08/30/2019, 1:01 AMhundreds-breakfast-49010
08/30/2019, 1:01 AMaloof-angle-91616
08/30/2019, 1:01 AMhundreds-breakfast-49010
08/30/2019, 1:01 AMaloof-angle-91616
08/30/2019, 1:01 AMaloof-angle-91616
08/30/2019, 1:02 AMaloof-angle-91616
08/30/2019, 1:03 AMaloof-angle-91616
08/30/2019, 1:12 AMhundreds-breakfast-49010
08/30/2019, 5:58 PMaloof-angle-91616
08/31/2019, 2:43 AMyield Get(...)
expressions: https://github.com/pantsbuild/pants/pull/8227hundreds-breakfast-49010
09/03/2019, 5:56 PM