Repository navigation
fix(relay): harden migration IPv6/TLS, add full worker boot test, and log public deploy outputs - #502
Merged
Merged
Conversation
1 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #477.
Addresses the five code and deploy-robustness follow-ups from #477 (leaving hosting/account items open on #477):
infra/relay/src/workerPlan.test.ts): AddedRELAY_DB_PORT: "5432"toexternalDbEnvand added an end-to-end runtime boot test that setsglobalThis.__ALCHEMY_RUNTIME__ = true(restored viaEffect.acquireUseRelease), supplies only runtime Worker bindings (zero deploy-only env vars), bootsRelayWorker.layer, and servesGET /.well-known/oauth-authorization-server.infra/relay/src/postgresMigrations.ts,postgresMigrations.test.ts): Bracketed bare IPv6 hosts (::1→[::1]) without double-bracketing when buildingsslmode=prefer|allowURLs, stripped brackets for structuredPgClientConfig.host, and added unit tests acrossprefer,allow,disable, and URL forms.sslmode=require/verify-caTLS handling (infra/relay/src/postgresMigrations.ts,postgresMigrations.test.ts): AlignedRELAY_DB_*+RELAY_DB_MIGRATION_SSLMODE=requirewithRELAY_DATABASE_URL=...sslmode=requireon verified TLS (ssl: trueor{ rejectUnauthorized: true, servername }over loopback tunnels), matching@effect/sql-pg/node-postgresv8+, and alignedverify-caacross both forms.docs/operations/hosted-fork.md): Documented the transientState store request failed (DecodeError, HTTP 404)~3s after creating a fresh account's state store Worker (re-running deploy once resolves it) and notedrequirecertificate verification..github/workflows/deploy-relay.yml,infra/relay/src/forkOwnership.test.ts): Logged only the two public outputs (T3CODE_RELAY_URLandT3CODE_CLOUD_MINT_PUBLIC_KEY) to stdout in addition to$GITHUB_STEP_SUMMARY, with updatedforkOwnership.test.tsassertions keeping the secret-free guard intact.Verification
check:changedpassed format, lint, Knip (1/2 + 2/2), typecheck (44 packages), and tests (4 files, 36/36 passed);agentContextBudget.jsonis unchanged.Built with
gemini-4-neon(antigravity).