narrow-vegetable-37489
06/22/2023, 3:03 PMadhoc_tool
target (aka. not cache it)? I have an adhoc_tool
that runs a Python script that transforms some remote data into a list that I then want to pass to some experimental_test_shell_command
, but the caching of the json makes the tests quite flaky. I figured I could set extra_env_vars
to some random value and bust the cache that way, but even that’s tricky to do with no imports allowed in BUILD files. 😅bitter-ability-32190
06/22/2023, 3:06 PMnarrow-vegetable-37489
06/22/2023, 3:16 PMbitter-ability-32190
06/22/2023, 3:17 PMnarrow-vegetable-37489
06/22/2023, 3:18 PMbitter-ability-32190
06/22/2023, 3:19 PMrunnable_dependencies
values are able to say "dont cache me"
Although grepping the codebase, I don't see any use of RUN_REQUEST_NOT_HERMETIC
😕bitter-ability-32190
06/22/2023, 3:20 PMhermetic_runs: bool
alongside restartable: bool
bitter-ability-32190
06/22/2023, 3:53 PMnarrow-vegetable-37489
06/22/2023, 4:25 PMexperimental_test_shell_command
, then the test would fail (and not be cached afaik?) until it passes, at which point I don't really care about running it again (even though someone could in theory could remove the Python service again once it's been added). It's not optimal, but feels less dirty than some homebrewed cache busting.
Though thinking a bit more about it, I think I might as well make the step of our pipeline that's crashing optional instead. It's not the end of the world if someone configures it in the external system after the fact.
Anyway, thanks for the help!