Skip to content

test: validate config.cfg against deprecated cloud instance types#14958

Merged
dguido merged 1 commit intomainfrom
test/validate-cloud-provider-deprecations
Jan 30, 2026
Merged

test: validate config.cfg against deprecated cloud instance types#14958
dguido merged 1 commit intomainfrom
test/validate-cloud-provider-deprecations

Conversation

@dguido
Copy link
Copy Markdown
Member

@dguido dguido commented Jan 30, 2026

Summary

  • Replace toy data tests with actual config.cfg validation
  • Catch deprecated instance types that will fail at deployment time
  • Add sanity checks for required fields and malformed values

Deprecated values checked

Provider Field Deprecated Values Replacement
Hetzner server_type cx11, cx21, cx31, cx41, cx51 Use AMD CPX series (cpx22, etc.)
DigitalOcean size 512mb, 1gb, 2gb, etc. Use s-*vcpu-* format
EC2 size t1.micro, m1.small, etc. Use current gen (t3.*, etc.)

Why not regex format validation?

Providers constantly add new instance families (AWS m7.*, g5.*, etc.). Regex patterns would break on legitimate new values, creating false CI failures. Instead, we only block known-bad values that are definitively deprecated.

Test plan

  • pytest tests/unit/test_cloud_provider_configs.py -v passes
  • Full unit test suite passes (90 tests)
  • Verified test catches deprecated values (manually tested with cx11)

Refs #14730

🤖 Generated with Claude Code

Replace toy data tests with actual config.cfg validation to catch
deprecated instance types before deployment fails. Checks for:

- Hetzner Intel CX series (removed Sept 2024, use AMD CPX)
- DigitalOcean old naming scheme (use s-*vcpu-* format)
- EC2 previous gen types (unavailable in VPC)

Also adds basic sanity checks for required fields and malformed values.

Refs #14730

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dguido dguido requested a review from jackivanov as a code owner January 30, 2026 06:31
@dguido dguido merged commit c5b88a7 into main Jan 30, 2026
21 checks passed
@dguido dguido deleted the test/validate-cloud-provider-deprecations branch January 30, 2026 06:32
@dguido dguido mentioned this pull request Jan 30, 2026
10 tasks
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