Skip to content

Revert #5754 (promote replica fix used unknown GraphQL type, broke promote) - #5755

Merged
jpr5 merged 1 commit into
mainfrom
revert-5754-promote-replicas
Jun 28, 2026
Merged

jpr5 merged 1 commit into
mainfrom
revert-5754-promote-replicas

Conversation

@jpr5

@jpr5 jpr5 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

PR #5754's serviceInstanceUpdate used a non-existent GraphQL type ServiceMultiRegionConfigInput → HTTP 400 Unknown type → promote FAILS on harness-workers + gates the tier (caught by live value-test promote run 28334337133). Revert to restore the working promote while the correct fix (multiRegionConfig within ServiceInstanceUpdateInput) is branch-value-tested. harness-workers prod held at 6 manually meanwhile.

🤖 Generated with Claude Code

… so redeploy doesn't de-scale harness-workers to 1 (#5754)"

This reverts commit 5289aac, reversing
changes made to 39ae165.
@jpr5
jpr5 merged commit 142459d into main Jun 28, 2026
13 of 14 checks passed
@jpr5
jpr5 deleted the revert-5754-promote-replicas branch June 28, 2026 20:10
@github-actions

Copy link
Copy Markdown
Contributor

📣 Social Copy Generator

Generate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.

  • Generate social media copies

@github-actions

Copy link
Copy Markdown
Contributor

Production Digest-Pinning Audit

All 41 services digest-pinned.

Run 2026-06-28 13:10:41 PDT — 0 finding(s).

jpr5 added a commit that referenced this pull request Jun 28, 2026
…l ServiceInstanceUpdateInput shape

Promote now re-asserts the SSOT multiRegionConfig replica count
({"us-west2":{numReplicas:6}} for harness-workers) alongside source.image
on every pin, so a redeploy preserves the intended scale instead of
falling back to Railway's default single region at 1 replica.

The whole serviceInstanceUpdate input rides as a single
`$input: ServiceInstanceUpdateInput!` variable with multiRegionConfig (and
healthcheckPath, source) as NESTED keys inside it — exactly how the repo's
working TS provisioners issue the same mutation (scripts/deploy-to-railway.ts
~501-509, scripts/provision-starter-fleet.ts ~594-602). Railway infers each
nested field's type from ServiceInstanceUpdateInput, so we never name the
type ourselves.

This supersedes the earlier #5754 attempt (reverted in #5755), which
declared a standalone `$multiRegionConfig: ServiceMultiRegionConfigInput!`
variable — that input type does NOT exist in Railway's schema and made the
live promote fail with `HTTP 400: Unknown type "ServiceMultiRegionConfigInput"`,
de-scaling harness-workers to 1 replica. Live-proven against real Railway
(promote run 28334807622 succeeded).

Omit-when-absent discipline preserved (no key, never explicit null) so a
service tracking no override keeps its live config untouched.

Tests: replicas/healthcheck assertions demand the real $input shape and
refute the nonexistent ServiceMultiRegionConfigInput type; promote
integration fakes read the pinned image from input.source.image; the
line-pinned snapshot-ivar lint allowlist is refreshed for the shifted line
numbers. Full bin/railway suite green (183 runs, 0 failures).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant