Commit 75accd3
test(storage): limit integration test forks to 1 and other integration test fixes (googleapis#13400)
After the migration to the mono-repo parent pom defined fork-count for
maven failsafe plugin as 1C which runs 1 JVM fork per CPU Core. This
could be the reason for multiple issues across various tests due to the
parallelism such as thread starvation, CPU throttling, and timeout
flakiness on multi-core CI VMs. This PR overrides the parent POM
configuration to limit the integration test fork count to 1 in
google-cloud-storage.
This Pr also contains an attempted fix for vm timeout errors and hangs
in the integration test. Rationale: Previously the GCS client and the
FakeServer run in the same JVM and share the same Netty thread pool.
When the client makes a blocking call and waits for the server, it
occupies the shared threads. This could have starved the mock server
preventing it from processing the request.
Note: The tests will take ~ 5-10 longer to run than previous
configuration.
---------
Co-authored-by: Dhriti Chopra <dhritichopra@google.com>1 parent c127538 commit 75accd3
3 files changed
Lines changed: 26 additions & 6 deletions
File tree
- java-storage/google-cloud-storage
- src/test/java/com/google/cloud/storage
- it/runner/registry
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
463 | 474 | | |
464 | 475 | | |
465 | 476 | | |
| |||
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
51 | 55 | | |
52 | 56 | | |
53 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
57 | | - | |
58 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
83 | | - | |
| 92 | + | |
84 | 93 | | |
85 | 94 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
445 | | - | |
446 | | - | |
| 445 | + | |
| 446 | + | |
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
| |||
0 commit comments