docs: record unified transport startup and shutdown acceptance

This commit is contained in:
2026-09-23 13:02:46 +08:00
parent be620d2243
commit 467c890363
7 changed files with 1050 additions and 1 deletions

View File

@@ -0,0 +1,196 @@
go version go1.25.14 linux/amd64
go: downloading github.com/go-sql-driver/mysql v1.9.3
go: downloading golang.org/x/net v0.25.0
go: downloading github.com/go-playground/validator/v10 v10.20.0
go: downloading filippo.io/edwards25519 v1.1.0
go: downloading github.com/gabriel-vasile/mimetype v1.4.3
go: downloading github.com/go-playground/universal-translator v0.18.1
go: downloading github.com/leodido/go-urn v1.4.0
go: downloading golang.org/x/crypto v0.23.0
go: downloading golang.org/x/text v0.15.0
go: downloading github.com/go-playground/locales v0.14.1
ok git.yuntuo.hk/k2safe/go-omni 1.086s
ok git.yuntuo.hk/k2safe/go-omni/app 1.395s
ok git.yuntuo.hk/k2safe/go-omni/auth 1.037s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni 1.127s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni/scaffold 1.133s
ok git.yuntuo.hk/k2safe/go-omni/config 1.035s
ok git.yuntuo.hk/k2safe/go-omni/database 1.013s
? git.yuntuo.hk/k2safe/go-omni/errors [no test files]
? git.yuntuo.hk/k2safe/go-omni/examples/basic [no test files]
ok git.yuntuo.hk/k2safe/go-omni/examples/reference 1.151s
? git.yuntuo.hk/k2safe/go-omni/examples/reference/handler [no test files]
? git.yuntuo.hk/k2safe/go-omni/examples/reference/model [no test files]
ok git.yuntuo.hk/k2safe/go-omni/examples/reference/repository 1.013s
? git.yuntuo.hk/k2safe/go-omni/examples/reference/service [no test files]
ok git.yuntuo.hk/k2safe/go-omni/health 1.039s
ok git.yuntuo.hk/k2safe/go-omni/httpx 1.033s
ok git.yuntuo.hk/k2safe/go-omni/internal/perfcheck 1.047s
? git.yuntuo.hk/k2safe/go-omni/internal/testutil [no test files]
ok git.yuntuo.hk/k2safe/go-omni/logx 1.013s
ok git.yuntuo.hk/k2safe/go-omni/metrics 1.036s
ok git.yuntuo.hk/k2safe/go-omni/middleware 1.036s
? git.yuntuo.hk/k2safe/go-omni/response [no test files]
ok git.yuntuo.hk/k2safe/go-omni/transport 1.053s
ok git.yuntuo.hk/k2safe/go-omni/transport/http2 12.452s
? git.yuntuo.hk/k2safe/go-omni/transport/internal/routing [no test files]
ok git.yuntuo.hk/k2safe/go-omni/transport/native 2.053s
ok git.yuntuo.hk/k2safe/go-omni/transport/nethttp 1.034s
? git.yuntuo.hk/k2safe/go-omni/transport/transporttest [no test files]
? git.yuntuo.hk/k2safe/go-omni/validate [no test files]
=== RUN TestConfiguredTransportLifecycle
=== RUN TestConfiguredTransportLifecycle/nethttp/drain
=== RUN TestConfiguredTransportLifecycle/nethttp/timeout
=== RUN TestConfiguredTransportLifecycle/native/drain
=== RUN TestConfiguredTransportLifecycle/native/timeout
=== RUN TestConfiguredTransportLifecycle/http2/drain
=== RUN TestConfiguredTransportLifecycle/http2/timeout
--- PASS: TestConfiguredTransportLifecycle (0.28s)
--- PASS: TestConfiguredTransportLifecycle/nethttp/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/nethttp/timeout (0.09s)
--- PASS: TestConfiguredTransportLifecycle/native/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/native/timeout (0.09s)
--- PASS: TestConfiguredTransportLifecycle/http2/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/http2/timeout (0.09s)
=== RUN TestConfiguredStartupFailureClosesResources
=== RUN TestConfiguredStartupFailureClosesResources/unknown
=== RUN TestConfiguredStartupFailureClosesResources/http2WithoutTLS
=== RUN TestConfiguredStartupFailureClosesResources/partialTLS
=== RUN TestConfiguredStartupFailureClosesResources/nethttpCertificate
=== RUN TestConfiguredStartupFailureClosesResources/nativeCertificate
=== RUN TestConfiguredStartupFailureClosesResources/http2Certificate
--- PASS: TestConfiguredStartupFailureClosesResources (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/unknown (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/http2WithoutTLS (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/partialTLS (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/nethttpCertificate (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/nativeCertificate (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/http2Certificate (0.00s)
=== RUN TestRunContextConfiguredTLS
=== RUN TestRunContextConfiguredTLS/nethttp
=== RUN TestRunContextConfiguredTLS/native
=== RUN TestRunContextConfiguredTLS/http2
--- PASS: TestRunContextConfiguredTLS (0.05s)
--- PASS: TestRunContextConfiguredTLS/nethttp (0.02s)
--- PASS: TestRunContextConfiguredTLS/native (0.02s)
--- PASS: TestRunContextConfiguredTLS/http2 (0.02s)
=== RUN TestRunWithRemainsIndependentOfBuiltInTransport
--- PASS: TestRunWithRemainsIndependentOfBuiltInTransport (0.00s)
=== RUN TestConfiguredTransportLifecycle
=== RUN TestConfiguredTransportLifecycle/nethttp/drain
=== RUN TestConfiguredTransportLifecycle/nethttp/timeout
=== RUN TestConfiguredTransportLifecycle/native/drain
transport_test.go:98: context deadline exceeded
=== RUN TestConfiguredTransportLifecycle/native/timeout
=== RUN TestConfiguredTransportLifecycle/http2/drain
=== RUN TestConfiguredTransportLifecycle/http2/timeout
--- FAIL: TestConfiguredTransportLifecycle (3.28s)
--- PASS: TestConfiguredTransportLifecycle/nethttp/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/nethttp/timeout (0.09s)
--- FAIL: TestConfiguredTransportLifecycle/native/drain (3.01s)
--- PASS: TestConfiguredTransportLifecycle/native/timeout (0.09s)
--- PASS: TestConfiguredTransportLifecycle/http2/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/http2/timeout (0.09s)
=== RUN TestConfiguredStartupFailureClosesResources
=== RUN TestConfiguredStartupFailureClosesResources/unknown
=== RUN TestConfiguredStartupFailureClosesResources/http2WithoutTLS
=== RUN TestConfiguredStartupFailureClosesResources/partialTLS
=== RUN TestConfiguredStartupFailureClosesResources/nethttpCertificate
=== RUN TestConfiguredStartupFailureClosesResources/nativeCertificate
=== RUN TestConfiguredStartupFailureClosesResources/http2Certificate
--- PASS: TestConfiguredStartupFailureClosesResources (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/unknown (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/http2WithoutTLS (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/partialTLS (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/nethttpCertificate (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/nativeCertificate (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/http2Certificate (0.00s)
=== RUN TestRunContextConfiguredTLS
=== RUN TestRunContextConfiguredTLS/nethttp
=== RUN TestRunContextConfiguredTLS/native
=== RUN TestRunContextConfiguredTLS/http2
--- PASS: TestRunContextConfiguredTLS (0.05s)
--- PASS: TestRunContextConfiguredTLS/nethttp (0.02s)
--- PASS: TestRunContextConfiguredTLS/native (0.02s)
--- PASS: TestRunContextConfiguredTLS/http2 (0.02s)
=== RUN TestRunWithRemainsIndependentOfBuiltInTransport
--- PASS: TestRunWithRemainsIndependentOfBuiltInTransport (0.00s)
=== RUN TestConfiguredTransportLifecycle
=== RUN TestConfiguredTransportLifecycle/nethttp/drain
=== RUN TestConfiguredTransportLifecycle/nethttp/timeout
=== RUN TestConfiguredTransportLifecycle/native/drain
=== RUN TestConfiguredTransportLifecycle/native/timeout
=== RUN TestConfiguredTransportLifecycle/http2/drain
=== RUN TestConfiguredTransportLifecycle/http2/timeout
--- PASS: TestConfiguredTransportLifecycle (0.28s)
--- PASS: TestConfiguredTransportLifecycle/nethttp/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/nethttp/timeout (0.09s)
--- PASS: TestConfiguredTransportLifecycle/native/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/native/timeout (0.09s)
--- PASS: TestConfiguredTransportLifecycle/http2/drain (0.01s)
--- PASS: TestConfiguredTransportLifecycle/http2/timeout (0.09s)
=== RUN TestConfiguredStartupFailureClosesResources
=== RUN TestConfiguredStartupFailureClosesResources/unknown
=== RUN TestConfiguredStartupFailureClosesResources/http2WithoutTLS
=== RUN TestConfiguredStartupFailureClosesResources/partialTLS
=== RUN TestConfiguredStartupFailureClosesResources/nethttpCertificate
=== RUN TestConfiguredStartupFailureClosesResources/nativeCertificate
=== RUN TestConfiguredStartupFailureClosesResources/http2Certificate
--- PASS: TestConfiguredStartupFailureClosesResources (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/unknown (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/http2WithoutTLS (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/partialTLS (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/nethttpCertificate (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/nativeCertificate (0.00s)
--- PASS: TestConfiguredStartupFailureClosesResources/http2Certificate (0.00s)
=== RUN TestRunContextConfiguredTLS
=== RUN TestRunContextConfiguredTLS/nethttp
=== RUN TestRunContextConfiguredTLS/native
=== RUN TestRunContextConfiguredTLS/http2
--- PASS: TestRunContextConfiguredTLS (0.05s)
--- PASS: TestRunContextConfiguredTLS/nethttp (0.02s)
--- PASS: TestRunContextConfiguredTLS/native (0.02s)
--- PASS: TestRunContextConfiguredTLS/http2 (0.02s)
=== RUN TestRunWithRemainsIndependentOfBuiltInTransport
--- PASS: TestRunWithRemainsIndependentOfBuiltInTransport (0.00s)
FAIL
FAIL git.yuntuo.hk/k2safe/go-omni/app 4.025s
=== RUN TestBusinessConfiguredTransports
=== RUN TestBusinessConfiguredTransports/nethttp
=== RUN TestBusinessConfiguredTransports/native
=== RUN TestBusinessConfiguredTransports/nethttpTLS
=== RUN TestBusinessConfiguredTransports/nativeTLS
=== RUN TestBusinessConfiguredTransports/http2TLS
--- PASS: TestBusinessConfiguredTransports (0.09s)
--- PASS: TestBusinessConfiguredTransports/nethttp (0.02s)
--- PASS: TestBusinessConfiguredTransports/native (0.02s)
--- PASS: TestBusinessConfiguredTransports/nethttpTLS (0.02s)
--- PASS: TestBusinessConfiguredTransports/nativeTLS (0.02s)
--- PASS: TestBusinessConfiguredTransports/http2TLS (0.02s)
=== RUN TestBusinessConfiguredTransports
=== RUN TestBusinessConfiguredTransports/nethttp
=== RUN TestBusinessConfiguredTransports/native
=== RUN TestBusinessConfiguredTransports/nethttpTLS
=== RUN TestBusinessConfiguredTransports/nativeTLS
=== RUN TestBusinessConfiguredTransports/http2TLS
--- PASS: TestBusinessConfiguredTransports (0.09s)
--- PASS: TestBusinessConfiguredTransports/nethttp (0.01s)
--- PASS: TestBusinessConfiguredTransports/native (0.01s)
--- PASS: TestBusinessConfiguredTransports/nethttpTLS (0.02s)
--- PASS: TestBusinessConfiguredTransports/nativeTLS (0.02s)
--- PASS: TestBusinessConfiguredTransports/http2TLS (0.02s)
=== RUN TestBusinessConfiguredTransports
=== RUN TestBusinessConfiguredTransports/nethttp
=== RUN TestBusinessConfiguredTransports/native
=== RUN TestBusinessConfiguredTransports/nethttpTLS
=== RUN TestBusinessConfiguredTransports/nativeTLS
=== RUN TestBusinessConfiguredTransports/http2TLS
--- PASS: TestBusinessConfiguredTransports (0.08s)
--- PASS: TestBusinessConfiguredTransports/nethttp (0.01s)
--- PASS: TestBusinessConfiguredTransports/native (0.01s)
--- PASS: TestBusinessConfiguredTransports/nethttpTLS (0.02s)
--- PASS: TestBusinessConfiguredTransports/nativeTLS (0.02s)
--- PASS: TestBusinessConfiguredTransports/http2TLS (0.02s)
PASS
ok git.yuntuo.hk/k2safe/go-omni/examples/reference 1.297s
FAIL