feat: shared container-exec primitive + Patroni probe controller - #1048
Merged
Conversation
The previous snapshot was hand-grafted per command since 2024 and had drifted badly; worse, offline regeneration from mono's full SDL would accept Internal-subgraph operations that /graphql/v2 (the only endpoint the CLI ever talks to -- the dashboard uses /graphql/internal) rejects at runtime. This snapshot is the Public subgraph's own introspection, so an internal-graph dependency now fails at compile time, and it's serialized with sorted keys so future regenerations diff cleanly. Codegen fallout: SandboxCreateInput gained `region` server-side since the old snapshot; the two construction sites initialize it to None (skip_serializing_none omits it on the wire -- byte-identical requests). Part 1/8 of the railway postgres pitr/ha/pgbouncer stack.
Promotes db_stats' private SSH exec-in-container helper to controllers::exec so other live probes can reuse it, and adds controllers::patroni: GET /cluster probes (per-member, joined by Patroni member name), scripted switchover via Patroni's REST API, and service -> live-instance resolution. All probes are best-effort with ~5s timeouts; callers degrade to "unknown" instead of failing their command. Part 2/8 of the railway postgres pitr/ha/pgbouncer stack.
8 tasks
codyde
added a commit
that referenced
this pull request
Aug 7, 2026
* origin/master: feat: shared container-exec primitive + Patroni probe controller (#1048) chore: regenerate schema.json from the Public subgraph introspection (#1047) chore: Release railwayapp version 5.31.1 test: scripted-backboard testkit + first GraphQL-layer tests (#1046) # Conflicts: # src/commands/sandbox.rs # src/gql/schema.json
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.
Part 2/8 of the railway postgres pitr/ha/pgbouncer stack (split out of #1032 for reviewability — see that PR for the full context, live-prod e2e evidence, and the test-postgres-cli harness). Each PR is based on the previous one and is independently green (cargo test/clippy/fmt).
Promotes db_stats' private SSH exec-in-container helper to
controllers::exec so other live probes can reuse it, and adds
controllers::patroni: GET /cluster probes (per-member, joined by Patroni
member name), scripted switchover via Patroni's REST API, and service ->
live-instance resolution. All probes are best-effort with ~5s timeouts;
callers degrade to "unknown" instead of failing their command.
Part 2/8 of the railway postgres pitr/ha/pgbouncer stack.