-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize Dockerized integTest with GOCACHE (#17957)
Create a reusable GOCACHE located at $repoRoot/docker-gocache to speed up building the Linux system test binaries and running tests. This can yield proportionally large speed-up when doing selective testing as you often do in the development cycle. For example when testing a single module in x-pack/filebeat: ``` NOSE_TESTMATCH=misp time mage -v pythonIntegTest 199.62 real 20.86 user 35.55 sys NOSE_TESTMATCH=misp time mage -v pythonIntegTest 104.97 real 21.44 user 35.55 sys ``` I also compared running mage integTest for x-pack/filebeat without a cache then with a cache: ``` Go Unit Test: 2m35s Go Test Compile: 30.2s real 12m2.626s user 0m21.141s sys 0m35.212s ``` ``` Go Unit Test: 47s Go Test Compile: 36s real 9m16.326s user 0m21.697s sys 0m38.908s ```
- Loading branch information
1 parent
522ffd5
commit f39d869
Showing
5 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.13.7 | ||
FROM golang:1.13.10 | ||
|
||
RUN \ | ||
apt-get update \ | ||
|