Compare commits
3
Commits
ccfd3fd156
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
391d849a5f | ||
|
|
874374f03f | ||
|
|
ccf0e6b0dc |
@@ -276,6 +276,15 @@ make deploy # flyctl deploy --remote-only
|
|||||||
`make deploy-status` shows machine and health-check state. The app serves
|
`make deploy-status` shows machine and health-check state. The app serves
|
||||||
the SPA at `https://<app>.fly.dev/` with `/api/health` as the health check.
|
the SPA at `https://<app>.fly.dev/` with `/api/health` as the health check.
|
||||||
|
|
||||||
|
Machine placement is imperative rather than part of `fly.toml`; the current
|
||||||
|
production topology is one machine in Sydney and one in Virginia:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
flyctl scale count 2 --region syd,iad
|
||||||
|
```
|
||||||
|
|
||||||
|
`flyctl deploy` preserves existing machines and regions on redeploys.
|
||||||
|
|
||||||
### Continuous deployment
|
### Continuous deployment
|
||||||
|
|
||||||
`.gitea/workflows/deploy.yml` deploys on any `v*` tag push (or manual
|
`.gitea/workflows/deploy.yml` deploys on any `v*` tag push (or manual
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package dns
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"net"
|
"net"
|
||||||
|
"sync/atomic"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -107,9 +108,11 @@ func TestRealExchangeUnreachable(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestClientAgainstLocalServer(t *testing.T) {
|
func TestClientAgainstLocalServer(t *testing.T) {
|
||||||
var sawRD bool
|
// Written by the server handler goroutine, read by the test goroutine;
|
||||||
|
// the UDP round-trip provides no happens-before edge, so use an atomic.
|
||||||
|
var sawRD atomic.Bool
|
||||||
addr := startTestDNSServer(t, "udp", func(w dns.ResponseWriter, r *dns.Msg) {
|
addr := startTestDNSServer(t, "udp", func(w dns.ResponseWriter, r *dns.Msg) {
|
||||||
sawRD = r.RecursionDesired
|
sawRD.Store(r.RecursionDesired)
|
||||||
aHandler("5.6.7.8")(w, r)
|
aHandler("5.6.7.8")(w, r)
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -127,7 +130,7 @@ func TestClientAgainstLocalServer(t *testing.T) {
|
|||||||
if len(resp.Answer) == 0 {
|
if len(resp.Answer) == 0 {
|
||||||
t.Fatal("expected answers")
|
t.Fatal("expected answers")
|
||||||
}
|
}
|
||||||
if sawRD {
|
if sawRD.Load() {
|
||||||
t.Error("wire query must have RD=0")
|
t.Error("wire query must have RD=0")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user