Building cigocacher took most of the ~15-27s "Set up cigocacher" step
on every Windows job. Cache the binary in actions/cache, keyed on
cmd/cigocacher, go.mod, and go.sum, and add a test that cigocacher has
no other tailscale.com dependencies so that key stays complete.
Updates tailscale/corp#34812
Updates tailscale/corp#28679
Change-Id: I2def6f28a045249b2e87331a1f42c621e161031f
Signed-off-by: Brad Fitzpatrick <[email protected]>
Instead of restoring the module cache from actions/cache, the Windows
jobs now install WinFsp and mount a gomodfs remote store (on the Azure
VNet, at vars.GOMODFS_AZURE_URL, defaulting to ci-gocached-azure-1:8090)
on M:, which also provides the tsgo toolchain via ~/.cache/tsgo. gomodfs
is started via ShellExecute so it doesn't inherit the step's pipes,
which would make the runner kill it at the end of the step, and a
separate step checks that it survived before pointing GOMODCACHE at it.
If anything fails, the jobs warn and fall back to downloading modules
and the toolchain directly.
Updates tailscale/corp#34812
Change-Id: I26cea9cfa483d5fb3fd51b1d0f87a9204f792690
Signed-off-by: Brad Fitzpatrick <[email protected]>
Some CI runner images now have cigocacher baked in. Skip building if
it's already present.
Updates tailscale/corp#35667
Change-Id: I5ea0d606d44b1373bc1c8f7bca4ab780e763e2a9
Signed-off-by: Tom Proctor <[email protected]>
If local tailscale/tailscale checkout is not available,
pulll cigocacher remotely.
Fall back to ./tool/go if no other Go installation
is present.
Updates tailscale/corp#32493
Signed-off-by: Irbe Krumina <[email protected]>
Add flags:
* --cigocached-host to support alternative host resolution in other
environments, like the corp repo.
* --stats to reduce the amount of bash script we need.
* --version to support a caching tool/cigocacher script that will
download from GitHub releases.
Updates tailscale/corp#10808
Change-Id: Ib2447bc5f79058669a70f2c49cef6aedd7afc049
Signed-off-by: Tom Proctor <[email protected]>
Implements a new disk put function for cigocacher that does not cause
locking issues on Windows when there are multiple processes reading and
writing the same files concurrently. Integrates cigocacher into test.yml
for Windows where we are running on larger runners that support
connecting to private Azure vnet resources where cigocached is hosted.
Updates tailscale/corp#10808
Change-Id: I0d0e9b670e49e0f9abf01ff3d605cd660dd85ebb
Signed-off-by: Tom Proctor <[email protected]>