diff options
author | 2018-02-23 11:37:51 -0800 | |
---|---|---|
committer | 2018-02-23 11:39:16 -0800 | |
commit | 3fb7d34ed00fa88f2d9d5a2aa530e3a4cf70c1d9 (patch) | |
tree | ad788977eb72a3d3fc1f208f323de99dbf362306 /src/test/java/com/google/devtools/build/lib/skyframe/LocalRepositoryLookupFunctionTest.java | |
parent | d829236e9feee234fde3a4aed36e1349b7e9ee16 (diff) |
A couple quality-of-life improvements for Bazel devs, in response to an email from philwo@.
(i) Only have TimestampGranularityMonitor log the first file of relevance. This reduces log spam, especially in tests, while still maintaining useful information in the logs.
(ii) Don't have ExternalFilesHelper log the fact that it encountered an external file when we're in a unit test or an integration test. Tests, especially bazel tests that use external repositories, tend to involve lots of "external" files.
RELNOTES: None
PiperOrigin-RevId: 186799176
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/LocalRepositoryLookupFunctionTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skyframe/LocalRepositoryLookupFunctionTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/LocalRepositoryLookupFunctionTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/LocalRepositoryLookupFunctionTest.java index 244505872a..e2c8bb566d 100644 --- a/src/test/java/com/google/devtools/build/lib/skyframe/LocalRepositoryLookupFunctionTest.java +++ b/src/test/java/com/google/devtools/build/lib/skyframe/LocalRepositoryLookupFunctionTest.java @@ -78,7 +78,7 @@ public class LocalRepositoryLookupFunctionTest extends FoundationTestCase { new ServerDirectories(rootDirectory, outputBase), rootDirectory, analysisMock.getProductName()); - ExternalFilesHelper externalFilesHelper = new ExternalFilesHelper( + ExternalFilesHelper externalFilesHelper = ExternalFilesHelper.createForTesting( pkgLocator, ExternalFileAction.DEPEND_ON_EXTERNAL_PKG_FOR_EXTERNAL_REPO_PATHS, directories); Map<SkyFunctionName, SkyFunction> skyFunctions = new HashMap<>(); |