Commit 17aa8f5
authored
Pre-install and initialize vcpkg in Windows GitLab (#8962)
## Summary of changes
Initialize vcpkg and pre-install its dependencies in Windows GitLab
image
## Reason for change
vcpkg is used to download libdatadog, but the first time it runs, it
downloads and installs all its own dependencies (git, 7zip, powershell
etc). That can cause flake, and is unecessary work to do on every build
## Implementation details
- Preinstall the vcpkg depencencies in the GitLab windows image
- Stop specifying a custom download location for these deps, and instead
use the default (I don't see a good reason _not_ to do this). Note that
this does not change where _packages_ are downloaded to, only vcpkg
dependencies.
- We can re-use this inside the Azure VMs, but for now, those are
unchanged (requires updating the VM scripts and rebuilding them)
## Test coverage
The PR is the test. Rebuilt the image, and built in Gitlab and verified
we're no longer downloading vcpkg. Azure Devops is unchanged.
## Other details
We _could_ (arguably _should_) pre-download the libdatadog version too,
and cache that in the image, and then rebuild the image when we need to
bump the version. However, that made the solution more complicated,
needing to copy files around, include it in the build context etc, so
kept the scope limited for now. We can always extend it to include
libdatadog later.
#incident-573031 parent db340bf commit 17aa8f5
5 files changed
Lines changed: 71 additions & 4 deletions
File tree
- profiler
- tracer/build/_build
- docker/gitlab
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
665 | 664 | | |
666 | 665 | | |
667 | 666 | | |
| |||
672 | 671 | | |
673 | 672 | | |
674 | 673 | | |
675 | | - | |
676 | | - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
677 | 677 | | |
678 | 678 | | |
679 | 679 | | |
| |||
2883 | 2883 | | |
2884 | 2884 | | |
2885 | 2885 | | |
| 2886 | + | |
2886 | 2887 | | |
2887 | 2888 | | |
2888 | 2889 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments