Skip to content

fix(cloud): stop passing manage_artifact_dns to the relay root - #18442

Merged
Jinwoo-H merged 1 commit into
mainfrom
relay-split/drop-artifact-dns-var
Sep 3, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
relay-split/drop-artifact-dns-var

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4 $\color{#cf222e}{\Huge{\mathbf{−}}}$​3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11 $\color{#cf222e}{\Huge{\mathbf{−}}}$​20 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9

First public cloud-deploy-relay-staging run (33748078128) authenticated on the new identity and then failed at the C4 image bind: manage_artifact_dns is not declared by the relay root (it lives in the private apps root) and Terraform rejects an undeclared -var with exit 4. Drops the flag from 20 call sites in 6 workflows; the three tests that pinned it now assert its absence. Mirrors orca-cloud's same change. cd cloud && pnpm test: 148 + 495 pass.

The relay root does not declare it (it belongs to the private apps root), and
Terraform rejects an undeclared -var, so the first public Deploy Relay Staging
run failed at the C4 image bind.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — the flag removal is correct and complete across the workflows; one doc follow-up below.

Reviewed changes

  • manage_artifact_dns flag dropped from relay workflows — removed -var manage_artifact_dns=false from 20 terraform call sites across six relay workflows (cloud-deploy-relay-asia-topology, cloud-deploy-relay-production-capacity-job, cloud-deploy-relay-production-same-cap-job, cloud-deploy-relay-staging, cloud-prove-relay-staging-capacity, cloud-recover-relay-staging-c4-image), covering staging, production capacity, production same-cap, and Asia topology.
  • Tests now assert absence — three workflow contract tests swapped their occurrence-count assertions (assert.equal(workflow.match(/manage_artifact_dns=false/g)?.length, N)) for assert.doesNotMatch(workflow, /manage_artifact_dns/); the staging refresh test additionally pins the surviving -var-file + -lock-timeout=5m line.

ℹ️ cloud/docs/relay-workflows.md still instructs operators to pass the removed flag

The fix updates the six workflows and the infra/terraform/README.md (already asserted clean), but four references remain in cloud/docs/relay-workflows.md that now describe the exact failure this PR removes: passing -var manage_artifact_dns=false against the relay root — which no longer declares that variable — makes Terraform exit 4.

Technical details
# Stale `manage_artifact_dns` documentation

## Affected sites
- cloud/docs/relay-workflows.md:120 — "`manage_artifact_dns=false` keeps the unimported Cloudflare records out"
- cloud/docs/relay-workflows.md:128 — production capacity identity bootstrap `terraform plan` still passes `-var manage_artifact_dns=false`
- cloud/docs/relay-workflows.md:153 — "Deploy Relay Asia Topology … It always passes `manage_artifact_dns=false`" (now contradicted by this PR)
- cloud/docs/relay-workflows.md:185 — staging-state apply "with `manage_artifact_dns=false`"

## Required outcome
- Remove or correct every `manage_artifact_dns` reference in `cloud/docs/relay-workflows.md` so no operator procedure tells a reader to pass a variable the relay root no longer declares.

Pullfrog  | Fix it ➔ | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 66f34188-8d3e-4b48-99a6-a71dee4eaed2

📥 Commits

Reviewing files that changed from the base of the PR and between 3de1b9d and 8cfa473.

📒 Files selected for processing (9)
  • .github/workflows/cloud-deploy-relay-asia-topology.yml
  • .github/workflows/cloud-deploy-relay-production-capacity-job.yml
  • .github/workflows/cloud-deploy-relay-production-same-cap-job.yml
  • .github/workflows/cloud-deploy-relay-staging.yml
  • .github/workflows/cloud-prove-relay-staging-capacity.yml
  • .github/workflows/cloud-recover-relay-staging-c4-image.yml
  • cloud/dev/scripts/relay-asia-topology-workflow.test.mjs
  • cloud/dev/scripts/relay-production-capacity-workflow.test.mjs
  • cloud/dev/scripts/relay-staging-c4-refresh-workflow.test.mjs
💤 Files with no reviewable changes (2)
  • .github/workflows/cloud-deploy-relay-asia-topology.yml
  • .github/workflows/cloud-deploy-relay-production-capacity-job.yml

Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

Terraform console and plan commands no longer pass manage_artifact_dns=false across relay production, staging, topology, capacity, and recovery workflows. The commands retain their environment variable files and lock-timeout settings where applicable. Workflow tests now verify that the override is absent and that required staging recovery arguments remain present.

Merge Risk: ⚪ Minimal · up to 8cfa4

Relay deployment, capacity, topology, and recovery workflows no longer pass an undeclared artifact-DNS variable that caused Terraform failures, while retaining their existing environment and recovery arguments. No current merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the failure, the scope of the change, and the test results. However, it omits the required template sections, including the linked issue, visual proof or N/A statement, checkl… Use the repository template sections. Add a valid Linked Issue entry, provide Visual Proof or write N/A with a reason, complete the Testing and checklist items, address Review, Agent skill upstream boundary, Notes, and AI Disclosure as appl…
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: relay workflows no longer pass manage_artifact_dns to the relay Terraform root.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the failure, the scope of the change, and the test results. However, it omits the required template sections, including the linked issue, visual proof or N/A statement, checklist, review notes, and AI disclosure.

Resolution

Use the repository template sections. Add a valid Linked Issue entry, provide Visual Proof or write N/A with a reason, complete the Testing and checklist items, address Review, Agent skill upstream boundary, Notes, and AI Disclosure as applicable.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 3 files. (4 skipped: 4 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H
Jinwoo-H merged commit 67e2234 into main Sep 3, 2026
26 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…yai#18442)

The relay root does not declare it (it belongs to the private apps root), and
Terraform rejects an undeclared -var, so the first public Deploy Relay Staging
run failed at the C4 image bind.
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