careful-address-89803
06/29/2022, 6:46 PMhundreds-father-404
06/29/2022, 6:48 PM~/.cache/lmdb_store. But that is an opaque cache that you can't easily inspectcareful-address-89803
06/29/2022, 6:53 PMhundreds-father-404
06/29/2022, 6:57 PM--no-pantsd so that you don't get in-memory memoization but you still have --local-cache enabled. And then somehow block the internet so it would fail to download the tools
Or, I think you can inspect -ldebughundreds-father-404
06/29/2022, 6:57 PMfast-nail-55400
06/29/2022, 7:00 PMcareful-address-89803
06/29/2022, 7:00 PMrule_runner.set_options twice and overwriting the arg to request a different version.fast-nail-55400
06/29/2022, 7:02 PMwitty-crayon-22786
06/29/2022, 7:12 PMfrom pants.testutil import rule_runner
...
@rule_runner.logging
def test_something_something() -> None:
...careful-address-89803
06/29/2022, 7:17 PMfast-nail-55400
06/29/2022, 8:35 PMisolated_local_store=True is set (defaults to False ), the test should share the same local store as the ./pants test invocation. so Terraform downloads should be shared between invocations.fast-nail-55400
06/29/2022, 8:36 PMfast-nail-55400
06/29/2022, 8:38 PMdebug! or trace! logging macro invocationcareful-address-89803
06/29/2022, 9:53 PMfast-nail-55400
06/30/2022, 12:03 AMlogging annotation on the test? also is -ldebug passed into the RuleRunner stuff via .set_options?careful-address-89803
06/30/2022, 12:28 AM-ldebug (to the tested RR or to the top-level pants) didn't seem to make a difference, but I also have RUST_LOG=trace in my env so maybe that was doing something too.