Skip to content

Fix Linode teardown without deployment prerequisites - #15081

Merged
dguido merged 1 commit into
mainfrom
codex/linode-teardown
Nov 12, 2026
Merged

dguido merged 1 commit into
mainfrom
codex/linode-teardown

Conversation

@dguido

@dguido dguido commented Nov 12, 2026

Copy link
Copy Markdown
Member

Linode teardown currently runs deployment prompts, so missing local SSH keys or a failed regions request prevents deletion. Extract the existing token gathering into auth.yml and call it directly during teardown. Deployment still reads its region and public key.

Add eight regression cases that run the production playbook with the real Linode module and SDK against a local HTTP fixture. They cover variable and environment credentials, unavailable regions, missing SSH keys, an already-absent instance, rejected deletion preserving client files, the confirmation gate, and unchanged deployment setup.

Validation: 43 focused tests and all 18 prek hooks passed. Restoring the old teardown routing made all four key/region regression cases fail. No cloud resources were created.

@dguido
dguido requested a review from jackivanov as a code owner November 12, 2026 05:24
@dguido
dguido merged commit be365e9 into main Nov 12, 2026
14 checks passed
@dguido
dguido deleted the codex/linode-teardown branch November 12, 2026 05:30
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