carlos / platform Public

edge: after commit, request every path route from every box (#186)

Astra round 4 P2: TestImportCommitRoutesPathsAcrossBoxes requested the
front's own route and the same-box prefix only through the front's box.
Each of /other, /here/x and /acme/y now goes through all three boxes,
and the imported, same-box and tenant backends' request lists are
asserted in full.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 2004d150955d3ebeb75e00f5839b0fc945801bbe parent 7fdcb97
1 file changed, +9 −3
  • internal/edge/path_across_import_test.go +9 −3

CI cancelled — superseded by a newer push — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading github.com/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading golang.org/x/text v0.43.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec

amadan: job cancelled — a newer push superseded it
diff --git a/internal/edge/path_across_import_test.go b/internal/edge/path_across_import_test.go
index cb74a1277..ef21382d6 100644
--- a/internal/edge/path_across_import_test.go
+++ b/internal/edge/path_across_import_test.go
@@ -159,11 +159,17 @@ func TestImportCommitRoutesPathsAcrossBoxes(t *testing.T) {
t.Fatal(err)
}
s.republishHub(t, 7)
- s.get(t, s.hub, acrossHub, "/other").want(t, http.StatusOK, "imported-1|"+acrossHub+"|/other")
- s.get(t, s.hub, acrossHub, "/here/x").want(t, http.StatusOK, "here-1|"+acrossHub+"|/here/x")
- here.wantSeen(t, acrossSeen{acrossHub, "/here/x"})
+ var importedSeen, hereSeen, tenantSeen []acrossSeen
for _, be := range s.boxes() {
+ s.get(t, be, acrossHub, "/other").want(t, http.StatusOK, "imported-1|"+acrossHub+"|/other")
+ s.get(t, be, acrossHub, "/here/x").want(t, http.StatusOK, "here-1|"+acrossHub+"|/here/x")
s.get(t, be, acrossHub, "/acme/y").want(t, http.StatusOK, "tenant-1|"+acrossHub+"|/acme/y")
+ importedSeen = append(importedSeen, acrossSeen{acrossHub, "/other"})
+ hereSeen = append(hereSeen, acrossSeen{acrossHub, "/here/x"})
+ tenantSeen = append(tenantSeen, acrossSeen{acrossHub, "/acme/y"})
}
+ imported.wantSeen(t, importedSeen...)
+ here.wantSeen(t, hereSeen...)
+ s.tenantApp.wantSeen(t, append([]acrossSeen{{acrossHub, "/acme/x"}}, tenantSeen...)...)
s.hubApp.wantSeen(t)
}