mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-24 02:31:18 -08:00
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]>
23 lines
916 B
Markdown
23 lines
916 B
Markdown
# 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`](https://pkg.go.dev/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:
|
|
|
|
```sh
|
|
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.
|