mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-06 08:32:21 -08:00
Package feature has in-package tests, and an external test there blank-imported feature/condregister, so ~100 packages that depend on feature were recompiled as [feature.test] variants that never hit the build cache: about 175s of CPU on each build of feature's tests, even with everything else cached. Move that test to feature/condregister, which nothing imports, where it costs a ~3s link. Also move tailscaled's feature/ssh import into condregister so the test covers ssh without a second copy of its build tags. Likewise check PeerStatus.IsRouter agreement from ipnstate's tests rather than tailcfg's, which recompiled 5 packages. Then add TestTestVariantAmplification to fail if any test binary recompiles more than 5 packages this way; the max is now 4. Updates tailscale/corp#28679 Change-Id: I4490d9b7cb8ddd71d3888a89195327313834e652 Signed-off-by: Brad Fitzpatrick <[email protected]>