Files
Brad Fitzpatrick bcc7e46f42 tstest/integration/testcontrol: add experiment.reco implementation
Select the published reco-backed test server with a build tag while
preserving the default implementation and existing caller API. Pin the
public module with its proxy-verified checksums; no workspace is needed.

Accept incremental peer messages in the TSP test. Exercise legacy map
semantics with the default server and version-floor rejection with reco,
including current-version streaming, without manual test skips.

Document GOFLAGS usage so child Go builds inherit the experiment tag.

Updates tailscale/corp#49097

Change-Id: I9b3e086c4c6a9a57a076e76b883422875c843f20
Signed-off-by: Brad Fitzpatrick <[email protected]>
2026-09-29 10:25:02 -07:00

916 B

Experimental reco implementation

By default, this package uses the original in-memory test control server. The experiment.reco build tag substitutes github.com/bradfitz/reco/recotestcontrol using type aliases, without changing callers.

Reco is an experimental research prototype, not a production control server or a stable API. Its test server requires capability version 109 or later. The protocol tests check both legacy behavior in the default server and rejection of obsolete versions with the experiment enabled.

For example, from the module root:

GOWORK=off GOFLAGS=-tags=experiment.reco go test \
  ./tstest/integration/testcontrol ./control/tsp ./control/controlclient \
  ./tsnet ./tstest/integration

Use GOFLAGS so integration tests' child Go builds receive the tag too. Omit it to exercise the default implementation.