Commit 452e2fb
committed
Release pipeline: route vcpkg through Terrapin asset cache
The official release pipeline has been failing since libgit2 was
statically linked via vcpkg, because the pool's build agents do not have
direct public-internet access. vcpkg was reaching out to sourceforge.net
(and other origins) for libgit2 transitive dependencies (pcre, zlib,
http_parser, ...) which the network layer blocked, causing
WinHttpSendRequest 12029 errors.
Route vcpkg asset downloads through the internal Terrapin cache (the
canonical CI asset-caching service).
This is opt-in. External contributors and the public GitHub Actions
PR-validation workflow (.github/workflows/build.yaml) continue to use
the standard vcpkg flow with direct downloads from public origins. No
internal feed authentication is required to build VFS for Git from a
fresh clone, and the repo source code intentionally contains no msbuild
SDK references that would pull internal packages into a default restore.
Changes:
Directory.Build.props
Add IsLocalBuild and UseTerrapinAssetCache properties, both
defaulted to false. IsLocalBuild controls Terrapin upload-on-fetch
(allowed on dev boxes only); UseTerrapinAssetCache opts the build
into the Terrapin asset-cache machinery (release pipeline only).
Directory.Build.targets
Build a --x-asset-sources string that combines the Terrapin
retrieval script with x-block-origin, gated on
UseTerrapinAssetCache=true, and append it to both vcpkg install
invocations. Add a guard <Error> that requires the pipeline to
supply TerrapinRetrievalToolPath up front when asset caching is
enabled. Also validate static git2.lib (was only checking dynamic
git2.dll).
.azure-pipelines/official-release-nuget.config (new)
Pipeline-only NuGet config that points at an internal feed. Used
solely by a one-off `nuget install` of Microsoft.Build.Vcpkg, not by
any csproj restore. Not consulted by external contributors or by
GitHub Actions.
.azure-pipelines/release.yml
Add NuGetAuthenticate@1 task. Add a NuGetCommand@2 task that
out-of-band installs the internal Microsoft.Build.Vcpkg package
(which ships TerrapinRetrievalTool.exe) into $(Agent.TempDirectory).
Add an explicit "Restore vcpkg native libraries (Terrapin cache)"
step that invokes _RestoreVcpkgDependencies on GVFS.Common.csproj
with -p:UseTerrapinAssetCache=true and TerrapinRetrievalToolPath
pointing at the extracted tool. Build.bat's own vcpkg install step
then skips because the libs are already present.
Assisted-by: Claude Opus 4.7
Signed-off-by: Tyrie Vella <tyrielv@gmail.com>1 parent c53aea6 commit 452e2fb
4 files changed
Lines changed: 113 additions & 3 deletions
File tree
- .azure-pipelines
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
124 | 158 | | |
125 | 159 | | |
126 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
21 | 40 | | |
22 | 41 | | |
23 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
35 | 51 | | |
36 | 52 | | |
37 | 53 | | |
| |||
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
73 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
74 | 100 | | |
75 | | - | |
| 101 | + | |
76 | 102 | | |
77 | 103 | | |
78 | 104 | | |
79 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
80 | 108 | | |
81 | 109 | | |
82 | 110 | | |
| |||
0 commit comments