ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 1 | // Copyright 2017 The Bazel Authors. All rights reserved. |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | package com.google.devtools.build.lib.remote; |
| 15 | |
| 16 | import static com.google.common.truth.Truth.assertThat; |
| 17 | import static org.mockito.Matchers.any; |
| 18 | import static org.mockito.Matchers.eq; |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 19 | import static org.mockito.Mockito.doThrow; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 20 | import static org.mockito.Mockito.never; |
| 21 | import static org.mockito.Mockito.verify; |
| 22 | import static org.mockito.Mockito.when; |
| 23 | |
| 24 | import com.google.common.collect.ImmutableList; |
| 25 | import com.google.common.collect.ImmutableMap; |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 26 | import com.google.common.eventbus.EventBus; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 27 | import com.google.devtools.build.lib.actions.ActionInput; |
| 28 | import com.google.devtools.build.lib.actions.ActionInputFileCache; |
| 29 | import com.google.devtools.build.lib.actions.ActionInputHelper; |
| 30 | import com.google.devtools.build.lib.actions.Artifact; |
| 31 | import com.google.devtools.build.lib.actions.Artifact.ArtifactExpander; |
olaola | a22d0e9 | 2017-12-11 07:53:15 -0800 | [diff] [blame] | 32 | import com.google.devtools.build.lib.actions.ExecutionRequirements; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 33 | import com.google.devtools.build.lib.actions.ResourceSet; |
| 34 | import com.google.devtools.build.lib.actions.SimpleSpawn; |
ruperts | da40fbf | 2017-09-22 05:59:42 +0200 | [diff] [blame] | 35 | import com.google.devtools.build.lib.actions.SpawnResult; |
| 36 | import com.google.devtools.build.lib.actions.SpawnResult.Status; |
buchgr | 559a07d | 2017-11-30 11:09:35 -0800 | [diff] [blame] | 37 | import com.google.devtools.build.lib.clock.JavaClock; |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 38 | import com.google.devtools.build.lib.events.Event; |
| 39 | import com.google.devtools.build.lib.events.EventKind; |
| 40 | import com.google.devtools.build.lib.events.Reporter; |
| 41 | import com.google.devtools.build.lib.events.StoredEventHandler; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 42 | import com.google.devtools.build.lib.exec.SpawnCache.CacheHandle; |
| 43 | import com.google.devtools.build.lib.exec.SpawnInputExpander; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 44 | import com.google.devtools.build.lib.exec.SpawnRunner.ProgressStatus; |
| 45 | import com.google.devtools.build.lib.exec.SpawnRunner.SpawnExecutionPolicy; |
| 46 | import com.google.devtools.build.lib.exec.util.FakeOwner; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 47 | import com.google.devtools.build.lib.remote.TreeNodeRepository.TreeNode; |
Googler | 922d1e6 | 2018-03-05 14:49:00 -0800 | [diff] [blame] | 48 | import com.google.devtools.build.lib.remote.util.DigestUtil; |
| 49 | import com.google.devtools.build.lib.remote.util.DigestUtil.ActionKey; |
| 50 | import com.google.devtools.build.lib.remote.util.TracingMetadataUtils; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 51 | import com.google.devtools.build.lib.util.io.FileOutErr; |
| 52 | import com.google.devtools.build.lib.vfs.FileSystem; |
buchgr | 559a07d | 2017-11-30 11:09:35 -0800 | [diff] [blame] | 53 | import com.google.devtools.build.lib.vfs.FileSystem.HashFunction; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 54 | import com.google.devtools.build.lib.vfs.FileSystemUtils; |
| 55 | import com.google.devtools.build.lib.vfs.Path; |
| 56 | import com.google.devtools.build.lib.vfs.PathFragment; |
| 57 | import com.google.devtools.build.lib.vfs.inmemoryfs.InMemoryFileSystem; |
| 58 | import com.google.devtools.common.options.Options; |
| 59 | import com.google.devtools.remoteexecution.v1test.ActionResult; |
| 60 | import com.google.devtools.remoteexecution.v1test.Command; |
olaola | ba8b0b3 | 2017-10-20 09:48:56 +0200 | [diff] [blame] | 61 | import com.google.devtools.remoteexecution.v1test.RequestMetadata; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 62 | import java.io.IOException; |
| 63 | import java.time.Duration; |
| 64 | import java.util.Collection; |
| 65 | import java.util.SortedMap; |
| 66 | import org.junit.Before; |
| 67 | import org.junit.Test; |
| 68 | import org.junit.runner.RunWith; |
| 69 | import org.junit.runners.JUnit4; |
| 70 | import org.mockito.Mock; |
olaola | ba8b0b3 | 2017-10-20 09:48:56 +0200 | [diff] [blame] | 71 | import org.mockito.Mockito; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 72 | import org.mockito.MockitoAnnotations; |
olaola | ba8b0b3 | 2017-10-20 09:48:56 +0200 | [diff] [blame] | 73 | import org.mockito.invocation.InvocationOnMock; |
| 74 | import org.mockito.stubbing.Answer; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 75 | |
| 76 | /** Tests for {@link RemoteSpawnCache}. */ |
| 77 | @RunWith(JUnit4.class) |
| 78 | public class RemoteSpawnCacheTest { |
| 79 | private static final ArtifactExpander SIMPLE_ARTIFACT_EXPANDER = |
| 80 | new ArtifactExpander() { |
| 81 | @Override |
| 82 | public void expand(Artifact artifact, Collection<? super Artifact> output) { |
| 83 | output.add(artifact); |
| 84 | } |
| 85 | }; |
| 86 | |
| 87 | private FileSystem fs; |
buchgr | 559a07d | 2017-11-30 11:09:35 -0800 | [diff] [blame] | 88 | private DigestUtil digestUtil; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 89 | private Path execRoot; |
| 90 | private SimpleSpawn simpleSpawn; |
| 91 | private FakeActionInputFileCache fakeFileCache; |
Hadrien Chauvin | 3d0a04d | 2017-12-20 08:45:45 -0800 | [diff] [blame] | 92 | @Mock private AbstractRemoteActionCache remoteCache; |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 93 | private RemoteSpawnCache cache; |
| 94 | private FileOutErr outErr; |
| 95 | |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 96 | private StoredEventHandler eventHandler = new StoredEventHandler(); |
| 97 | |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 98 | private final SpawnExecutionPolicy simplePolicy = |
| 99 | new SpawnExecutionPolicy() { |
| 100 | @Override |
| 101 | public int getId() { |
| 102 | return 0; |
| 103 | } |
| 104 | |
| 105 | @Override |
| 106 | public void prefetchInputs() { |
| 107 | // CachedLocalSpawnRunner should never prefetch itself, though the nested SpawnRunner may. |
| 108 | throw new UnsupportedOperationException(); |
| 109 | } |
| 110 | |
| 111 | @Override |
| 112 | public void lockOutputFiles() throws InterruptedException { |
| 113 | throw new UnsupportedOperationException(); |
| 114 | } |
| 115 | |
| 116 | @Override |
| 117 | public boolean speculating() { |
| 118 | return false; |
| 119 | } |
| 120 | |
| 121 | @Override |
| 122 | public ActionInputFileCache getActionInputFileCache() { |
| 123 | return fakeFileCache; |
| 124 | } |
| 125 | |
| 126 | @Override |
| 127 | public ArtifactExpander getArtifactExpander() { |
| 128 | throw new UnsupportedOperationException(); |
| 129 | } |
| 130 | |
| 131 | @Override |
| 132 | public Duration getTimeout() { |
| 133 | return Duration.ZERO; |
| 134 | } |
| 135 | |
| 136 | @Override |
| 137 | public FileOutErr getFileOutErr() { |
| 138 | return outErr; |
| 139 | } |
| 140 | |
| 141 | @Override |
| 142 | public SortedMap<PathFragment, ActionInput> getInputMapping() throws IOException { |
tomlu | 1a19b62 | 2018-01-11 15:17:28 -0800 | [diff] [blame] | 143 | return new SpawnInputExpander(execRoot, /*strict*/ false) |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 144 | .getInputMapping(simpleSpawn, SIMPLE_ARTIFACT_EXPANDER, fakeFileCache, "workspace"); |
| 145 | } |
| 146 | |
| 147 | @Override |
| 148 | public void report(ProgressStatus state, String name) { |
| 149 | // TODO(ulfjack): Test that the right calls are made. |
| 150 | } |
| 151 | }; |
| 152 | |
| 153 | @Before |
| 154 | public final void setUp() throws Exception { |
| 155 | MockitoAnnotations.initMocks(this); |
buchgr | 559a07d | 2017-11-30 11:09:35 -0800 | [diff] [blame] | 156 | fs = new InMemoryFileSystem(new JavaClock(), HashFunction.SHA256); |
| 157 | digestUtil = new DigestUtil(HashFunction.SHA256); |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 158 | execRoot = fs.getPath("/exec/root"); |
| 159 | FileSystemUtils.createDirectoryAndParents(execRoot); |
| 160 | fakeFileCache = new FakeActionInputFileCache(execRoot); |
| 161 | simpleSpawn = |
| 162 | new SimpleSpawn( |
| 163 | new FakeOwner("Mnemonic", "Progress Message"), |
| 164 | ImmutableList.of("/bin/echo", "Hi!"), |
| 165 | ImmutableMap.of("VARIABLE", "value"), |
| 166 | /*executionInfo=*/ ImmutableMap.<String, String>of(), |
| 167 | /*inputs=*/ ImmutableList.of(ActionInputHelper.fromPath("input")), |
Benjamin Peterson | 4465dae | 2018-03-27 07:01:30 -0700 | [diff] [blame^] | 168 | /*outputs=*/ ImmutableList.of(ActionInputHelper.fromPath("/random/file")), |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 169 | ResourceSet.ZERO); |
| 170 | |
| 171 | Path stdout = fs.getPath("/tmp/stdout"); |
| 172 | Path stderr = fs.getPath("/tmp/stderr"); |
| 173 | FileSystemUtils.createDirectoryAndParents(stdout.getParentDirectory()); |
| 174 | FileSystemUtils.createDirectoryAndParents(stderr.getParentDirectory()); |
| 175 | outErr = new FileOutErr(stdout, stderr); |
| 176 | RemoteOptions options = Options.getDefaults(RemoteOptions.class); |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 177 | Reporter reporter = new Reporter(new EventBus()); |
| 178 | eventHandler = new StoredEventHandler(); |
| 179 | reporter.addHandler(eventHandler); |
olaola | 6f32d5a | 2017-09-20 17:12:19 +0200 | [diff] [blame] | 180 | cache = |
| 181 | new RemoteSpawnCache( |
buchgr | 559a07d | 2017-11-30 11:09:35 -0800 | [diff] [blame] | 182 | execRoot, |
| 183 | options, |
| 184 | remoteCache, |
| 185 | "build-req-id", |
| 186 | "command-id", |
| 187 | false, |
| 188 | reporter, |
| 189 | digestUtil); |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 190 | fakeFileCache.createScratchInput(simpleSpawn.getInputFiles().get(0), "xyz"); |
| 191 | } |
| 192 | |
| 193 | @SuppressWarnings("unchecked") |
| 194 | @Test |
| 195 | public void cacheHit() throws Exception { |
| 196 | ActionResult actionResult = ActionResult.getDefaultInstance(); |
olaola | ba8b0b3 | 2017-10-20 09:48:56 +0200 | [diff] [blame] | 197 | when(remoteCache.getCachedActionResult(any(ActionKey.class))) |
| 198 | .thenAnswer( |
| 199 | new Answer<ActionResult>() { |
| 200 | @Override |
| 201 | public ActionResult answer(InvocationOnMock invocation) { |
| 202 | RequestMetadata meta = TracingMetadataUtils.fromCurrentContext(); |
| 203 | assertThat(meta.getCorrelatedInvocationsId()).isEqualTo("build-req-id"); |
| 204 | assertThat(meta.getToolInvocationId()).isEqualTo("command-id"); |
| 205 | return actionResult; |
| 206 | } |
| 207 | }); |
| 208 | Mockito.doAnswer( |
| 209 | new Answer<Void>() { |
| 210 | @Override |
| 211 | public Void answer(InvocationOnMock invocation) { |
| 212 | RequestMetadata meta = TracingMetadataUtils.fromCurrentContext(); |
| 213 | assertThat(meta.getCorrelatedInvocationsId()).isEqualTo("build-req-id"); |
| 214 | assertThat(meta.getToolInvocationId()).isEqualTo("command-id"); |
| 215 | return null; |
| 216 | } |
| 217 | }) |
| 218 | .when(remoteCache) |
| 219 | .download(actionResult, execRoot, outErr); |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 220 | |
| 221 | CacheHandle entry = cache.lookup(simpleSpawn, simplePolicy); |
| 222 | assertThat(entry.hasResult()).isTrue(); |
| 223 | SpawnResult result = entry.getResult(); |
| 224 | // All other methods on RemoteActionCache have side effects, so we verify all of them. |
| 225 | verify(remoteCache).download(actionResult, execRoot, outErr); |
| 226 | verify(remoteCache, never()) |
| 227 | .ensureInputsPresent( |
| 228 | any(TreeNodeRepository.class), |
| 229 | any(Path.class), |
| 230 | any(TreeNode.class), |
| 231 | any(Command.class)); |
| 232 | verify(remoteCache, never()) |
| 233 | .upload( |
olaola | 7744b86 | 2017-09-18 23:04:33 +0200 | [diff] [blame] | 234 | any(ActionKey.class), |
| 235 | any(Path.class), |
| 236 | any(Collection.class), |
| 237 | any(FileOutErr.class), |
| 238 | any(Boolean.class)); |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 239 | assertThat(result.setupSuccess()).isTrue(); |
| 240 | assertThat(result.exitCode()).isEqualTo(0); |
olaola | e5c9bdf | 2018-02-20 05:29:19 -0800 | [diff] [blame] | 241 | assertThat(result.isCacheHit()).isTrue(); |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 242 | // We expect the CachedLocalSpawnRunner to _not_ write to outErr at all. |
| 243 | assertThat(outErr.hasRecordedOutput()).isFalse(); |
| 244 | assertThat(outErr.hasRecordedStderr()).isFalse(); |
| 245 | } |
| 246 | |
| 247 | @Test |
| 248 | public void cacheMiss() throws Exception { |
| 249 | CacheHandle entry = cache.lookup(simpleSpawn, simplePolicy); |
| 250 | assertThat(entry.hasResult()).isFalse(); |
| 251 | SpawnResult result = new SpawnResult.Builder().setExitCode(0).setStatus(Status.SUCCESS).build(); |
| 252 | ImmutableList<Path> outputFiles = ImmutableList.of(fs.getPath("/random/file")); |
olaola | ba8b0b3 | 2017-10-20 09:48:56 +0200 | [diff] [blame] | 253 | Mockito.doAnswer( |
| 254 | new Answer<Void>() { |
| 255 | @Override |
| 256 | public Void answer(InvocationOnMock invocation) { |
| 257 | RequestMetadata meta = TracingMetadataUtils.fromCurrentContext(); |
| 258 | assertThat(meta.getCorrelatedInvocationsId()).isEqualTo("build-req-id"); |
| 259 | assertThat(meta.getToolInvocationId()).isEqualTo("command-id"); |
| 260 | return null; |
| 261 | } |
| 262 | }) |
| 263 | .when(remoteCache) |
| 264 | .upload(any(ActionKey.class), any(Path.class), eq(outputFiles), eq(outErr), eq(true)); |
Benjamin Peterson | 4465dae | 2018-03-27 07:01:30 -0700 | [diff] [blame^] | 265 | entry.store(result); |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 266 | verify(remoteCache) |
olaola | 7744b86 | 2017-09-18 23:04:33 +0200 | [diff] [blame] | 267 | .upload(any(ActionKey.class), any(Path.class), eq(outputFiles), eq(outErr), eq(true)); |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 268 | } |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 269 | |
| 270 | @Test |
olaola | a22d0e9 | 2017-12-11 07:53:15 -0800 | [diff] [blame] | 271 | public void noCacheSpawns() throws Exception { |
| 272 | // Checks that spawns that have mayBeCached false are not looked up in the remote cache, |
| 273 | // and also that their result is not uploaded to the remote cache. The artifacts, however, |
| 274 | // are uploaded. |
Benjamin Peterson | 4465dae | 2018-03-27 07:01:30 -0700 | [diff] [blame^] | 275 | SimpleSpawn uncacheableSpawn = |
| 276 | new SimpleSpawn( |
| 277 | new FakeOwner("foo", "bar"), |
| 278 | /*arguments=*/ ImmutableList.of(), |
| 279 | /*environment=*/ ImmutableMap.of(), |
| 280 | ImmutableMap.of(ExecutionRequirements.NO_CACHE, ""), |
| 281 | /*inputs=*/ ImmutableList.of(), |
| 282 | /*outputs=*/ ImmutableList.of(ActionInputHelper.fromPath("/random/file")), |
| 283 | ResourceSet.ZERO); |
olaola | a22d0e9 | 2017-12-11 07:53:15 -0800 | [diff] [blame] | 284 | CacheHandle entry = cache.lookup(uncacheableSpawn, simplePolicy); |
| 285 | verify(remoteCache, never()) |
| 286 | .getCachedActionResult(any(ActionKey.class)); |
| 287 | assertThat(entry.hasResult()).isFalse(); |
| 288 | SpawnResult result = new SpawnResult.Builder().setExitCode(0).setStatus(Status.SUCCESS).build(); |
Benjamin Peterson | 4465dae | 2018-03-27 07:01:30 -0700 | [diff] [blame^] | 289 | entry.store(result); |
olaola | a22d0e9 | 2017-12-11 07:53:15 -0800 | [diff] [blame] | 290 | ImmutableList<Path> outputFiles = ImmutableList.of(fs.getPath("/random/file")); |
olaola | a22d0e9 | 2017-12-11 07:53:15 -0800 | [diff] [blame] | 291 | verify(remoteCache) |
| 292 | .upload(any(ActionKey.class), any(Path.class), eq(outputFiles), eq(outErr), eq(false)); |
| 293 | } |
| 294 | |
| 295 | @Test |
| 296 | public void noCacheSpawnsNoResultStore() throws Exception { |
| 297 | // Only successful action results are uploaded to the remote cache. The artifacts, however, |
| 298 | // are uploaded regardless. |
| 299 | CacheHandle entry = cache.lookup(simpleSpawn, simplePolicy); |
| 300 | verify(remoteCache).getCachedActionResult(any(ActionKey.class)); |
| 301 | assertThat(entry.hasResult()).isFalse(); |
| 302 | SpawnResult result = |
| 303 | new SpawnResult.Builder().setExitCode(1).setStatus(Status.NON_ZERO_EXIT).build(); |
| 304 | ImmutableList<Path> outputFiles = ImmutableList.of(fs.getPath("/random/file")); |
Benjamin Peterson | 4465dae | 2018-03-27 07:01:30 -0700 | [diff] [blame^] | 305 | entry.store(result); |
olaola | a22d0e9 | 2017-12-11 07:53:15 -0800 | [diff] [blame] | 306 | verify(remoteCache) |
| 307 | .upload(any(ActionKey.class), any(Path.class), eq(outputFiles), eq(outErr), eq(false)); |
| 308 | } |
| 309 | |
| 310 | @Test |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 311 | public void printWarningIfUploadFails() throws Exception { |
| 312 | CacheHandle entry = cache.lookup(simpleSpawn, simplePolicy); |
| 313 | assertThat(entry.hasResult()).isFalse(); |
| 314 | SpawnResult result = new SpawnResult.Builder().setExitCode(0).setStatus(Status.SUCCESS).build(); |
| 315 | ImmutableList<Path> outputFiles = ImmutableList.of(fs.getPath("/random/file")); |
| 316 | |
olaola | 7744b86 | 2017-09-18 23:04:33 +0200 | [diff] [blame] | 317 | doThrow(new IOException("cache down")) |
| 318 | .when(remoteCache) |
| 319 | .upload(any(ActionKey.class), any(Path.class), eq(outputFiles), eq(outErr), eq(true)); |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 320 | |
Benjamin Peterson | 4465dae | 2018-03-27 07:01:30 -0700 | [diff] [blame^] | 321 | entry.store(result); |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 322 | verify(remoteCache) |
olaola | 7744b86 | 2017-09-18 23:04:33 +0200 | [diff] [blame] | 323 | .upload(any(ActionKey.class), any(Path.class), eq(outputFiles), eq(outErr), eq(true)); |
Benjamin Peterson | 3ff87f7 | 2017-08-21 18:41:45 +0200 | [diff] [blame] | 324 | |
| 325 | assertThat(eventHandler.getEvents()).hasSize(1); |
| 326 | Event evt = eventHandler.getEvents().get(0); |
| 327 | assertThat(evt.getKind()).isEqualTo(EventKind.WARNING); |
| 328 | assertThat(evt.getMessage()).contains("fail"); |
| 329 | assertThat(evt.getMessage()).contains("upload"); |
| 330 | } |
ulfjack | 9274cba | 2017-08-11 23:19:48 +0200 | [diff] [blame] | 331 | } |