-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring the TEST_TMPDIR global variable changes the max_idle_secs bazel server parameter #11062
Comments
In case it helps, the override comes from this file: The timeout was introduced in this commit (Update from Google.): d08b27f And increased to 15 secs here (Increase the server timeout for tests so that we don't get spurious failures on busy machines.): 28764a3 And made more apparent here: d5f0ecb |
I don't think any behavior based on |
I do get that this was the original intention, but while TEST_TMPDIR is somehow documented publicly, this behavior is not: To make this more interesting, the printout itself can also be incorrect (if max_idle_secs is defined), as it doesn't consider the actual value used by the server:
|
The environment variable is documented as an internal-use only behavior: "If the environment variable $TEST_TMPDIR is set, as in a test of bazel itself, then that value overrides the default." It's not meant to be set by users. The test encyclopedia talks about the world as seen from the viewpoint of a test, not about how you can tweak it - for example, even if you set TEST_TMPDIR to some value, Bazel will override this anyway when it runs tests. If you want to change the TEST_TMPDIR that Bazel uses, you have to use the |
hi, I run into the same issue too. But I set this environment to specify the cache path, seems --test_tmpdir is not designed for this? Is it any other paraments can be used? Thanks! |
Description of the problem / feature request:
According to the https://docs.bazel.build/versions/master/output_directories.html#current-layout, the TEST_TMPDIR global variable can be used to override the default outputRoot directory.
However, it seems that setting that variable also has an unintended side affect, as it changes the max_idle_secs bazel server parameter as well
Is that the expected behavior? If so, is it documented anywhere?
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
Linux (can be reproduced under Ubuntu and Fedora as well(
What's the output of
bazel info release
?release 2.2.0
Have you found anything relevant by searching the web?
Seems that this behavior has been introduced as part of the d5f0ecb commit.
Any other information, logs, or outputs that you want to share?
https://pastebin.com/BzQ1WjFk
The text was updated successfully, but these errors were encountered: